Use github
Personal dev environment config and AI agent skills. Install via: npx skills add dgr8akki/my-dev-setup
npx -y skills add dgr8akki/my-dev-setup --skill use-githubAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Reference for gh CLI commands—auth, repo context, GraphQL conventions. Workflow skills delegate here for shared mechanics.
SKILL.md
2.3 KB, 534 tokens by cl100k_base, as published. Nobody here has run it
Use GitHub
Reference for shared gh CLI mechanics—auth, repo context, and GraphQL conventions. Workflow skills own their specific commands and delegate here for these common patterns.
Auth
gh needs required_permissions: ["full_network"].
gh auth status
If failed: Tell user gh auth login.
Repo Context
gh repo view --json owner,name
Extract owner.login and name — needed for REST and GraphQL API calls.
GraphQL API
Invocation Pattern
gh api graphql \
-f query="$(cat path/to/query.graphql)" \
-F owner=<owner> \
-F name=<repo> \
-F number=<number>
Pass each variable as its own -F flag (not a variables object). Use -f (lowercase) for string values and -F (uppercase) for typed values (integers, booleans).
Conventions for Query Templates
Each skill owns its own .graphql query files. Follow these conventions:
- Always include
pageInfo { hasNextPage endCursor }on paginated connections. IfhasNextPageistrue, tell the user that more results exist and offer three options: fetch the next page, fetch all remaining pages, or continue with the current page only. - Include
databaseIdon any node you will reference via the REST API (REST endpoints use integer IDs, not GraphQL node IDs). - Include
createdAton comments when ordering matters.
Pagination
When pageInfo.hasNextPage is true, fetch the next page by passing the endCursor value as the after argument on the connection:
gh api graphql \
-f query="$(cat path/to/query.graphql)" \
-F owner=<owner> \
-F name=<repo> \
-F number=<number> \
-f after=<end_cursor>
Query templates that support pagination should accept an optional $after: String variable and pass it to the connection (e.g. reviewThreads(first: 50, after: $after)). The $after is nullable so the first call works without it.
Merge results across pages before processing.
Error Handling
- Auth failure (401): Tell user
gh auth login. - Rate limit (403 with rate limit headers): Report remaining reset time and suggest waiting.
- Not found (404 / null data): Report and abort the operation.