Agent skill
github
Use for GitHub operations - create PR, pull request, issues, repository, commits, branches, code search, file contents, fork, merge. 26 tools for GitHub API integration.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/github-bjornslib-cobuilder-harness
SKILL.md
github Skill
Access GitHub API for repository operations, pull requests, issues, code search, and more.
Context Efficiency
Traditional MCP approach:
- All 26 tools loaded at startup
- Estimated context: 13000 tokens
This skill approach:
- Metadata only: ~100 tokens
- Full instructions (when used): ~5k tokens
- Tool execution: 0 tokens (runs externally)
How This Works
Instead of loading all MCP tool definitions upfront, this skill:
- Tells you what tools are available (just names and brief descriptions)
- You decide which tool to call based on the user's request
- Generate a JSON command to invoke the tool
- The executor handles the actual MCP communication
Available Tools
create_or_update_file: Create or update a single file in a GitHub repositorysearch_repositories: Search for GitHub repositoriescreate_repository: Create a new GitHub repository in your accountget_file_contents: Get the contents of a file or directory from a GitHub repositorypush_files: Push multiple files to a GitHub repository in a single commitcreate_issue: Create a new issue in a GitHub repositorycreate_pull_request: Create a new pull request in a GitHub repositoryfork_repository: Fork a GitHub repository to your account or specified organizationcreate_branch: Create a new branch in a GitHub repositorylist_commits: Get list of commits of a branch in a GitHub repositorylist_issues: List issues in a GitHub repository with filtering optionsupdate_issue: Update an existing issue in a GitHub repositoryadd_issue_comment: Add a comment to an existing issuesearch_code: Search for code across GitHub repositoriessearch_issues: Search for issues and pull requests across GitHub repositoriessearch_users: Search for users on GitHubget_issue: Get details of a specific issue in a GitHub repository.get_pull_request: Get details of a specific pull requestlist_pull_requests: List and filter repository pull requestscreate_pull_request_review: Create a review on a pull requestmerge_pull_request: Merge a pull requestget_pull_request_files: Get the list of files changed in a pull requestget_pull_request_status: Get the combined status of all status checks for a pull requestupdate_pull_request_branch: Update a pull request branch with the latest changes from the base branchget_pull_request_comments: Get the review comments on a pull requestget_pull_request_reviews: Get the reviews on a pull request
Usage Pattern
When the user's request matches this skill's capabilities:
Step 1: Identify the right tool from the list above
Step 2: Generate a tool call in this JSON format:
{
"tool": "tool_name",
"arguments": {
"param1": "value1",
"param2": "value2"
}
}
Step 3: Execute via bash:
python .claude/skills/mcp-skills/executor.py --skill github --call 'YOUR_JSON_HERE'
Getting Tool Details
If you need detailed information about a specific tool's parameters:
python .claude/skills/mcp-skills/executor.py --skill github --describe tool_name
This loads ONLY that tool's schema, not all tools.
Examples
Example 1: Simple tool call
User: "Create a GitHub issue"
Your workflow:
- Identify tool:
create_issue - Generate call JSON
- Execute:
python .claude/skills/mcp-skills/executor.py --skill github --call '{"tool": "create_issue", "arguments": {"owner": "user", "repo": "repo", "title": "Bug fix"}}'
Example 2: Get tool details first
python .claude/skills/mcp-skills/executor.py --skill github --describe create_issue
Returns the full schema, then you can generate the appropriate call.
Error Handling
If the executor returns an error:
- Check the tool name is correct
- Verify required arguments are provided
- Ensure the MCP server is accessible
Performance Notes
Context usage comparison for this skill:
| Scenario | MCP (preload) | Skill (dynamic) |
|---|---|---|
| Idle | 13000 tokens | 100 tokens |
| Active | 13000 tokens | 5k tokens |
| Executing | 13000 tokens | 0 tokens |
Savings: ~61% reduction in typical usage
This skill was auto-generated from an MCP server configuration. Generator: mcp_to_skill.py
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?