/github:search-codefrom github
Searches for code, files, or implementations across GitHub repositories using keywords and GitHub search syntax. Useful for finding code examples, patterns, or specific implementations.
Ships in github. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
github:search-code - Search for code across GitHub repositories
/search-code [arguments]
Search for code across GitHub repositories
Search for code, files, or implementations across GitHub repositories.
/search-code [query]
This command helps you find relevant code across repositories.
search_codeUser: /search-code JWT token validation
Claude: Searching for "JWT token validation"...
Found 4 relevant code snippets:
### 1. my-org/auth-service - src/middleware/validateToken.ts
```typescript
export function validateJWT(token: string): UserPayload {
try {
const decoded = jwt.verify(token, process.env.JWT_SECRET);
return decoded as UserPayload;
} catch (error) {
throw new UnauthorizedError('Invalid token');
}
}
async function verifyToken(req: Request): Promise<boolean> {
const token = req.headers.authorization?.split(' ')[1];
if (!token) return false;
return await jwt.verify(token, publicKey, { algorithms: ['RS256'] });
}
Would you like to see more results or explore any of these files?
## Search Syntax
GitHub code search supports advanced syntax:
- **Exact phrase**: `"function authenticate"`
- **File type**: `language:typescript`
- **Path filter**: `path:src/auth`
- **Repository**: `repo:owner/repo-name`
- **Organization**: `org:my-org`
- **Extension**: `extension:ts`
### Examples
authenticate language:typescript
validate path:src/middleware
JWT repo:my-org/auth-service
async function org:my-org language:javascript
## Tips
- Use specific keywords for better results
- Filter by language to reduce noise
- Search across an organization with `org:`
- Combine with path filters to narrow scope
- Use quotes for exact phrases
- Review multiple implementations for patterns
## Related Commands
- `/review-pr`: Review PRs that modify found code
- `/create-issue`: File issues for problems found
- `/create-pr`: Create PR to fix or improve code
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub thebushidocollective/han --plugin github7 skills in this plugin
/create-issueCreate a new issue in a GitHub repository/create-prCreate a new pull request in a GitHub repository/load-pr-contextLoad PR context for the current branch using GitHub MCP tools/resume-from-prResume work on a pull request by loading its context, diff, CI status, and review comments/review-prGet comprehensive review of a GitHub pull request/view-workflowView GitHub Actions workflow runs and statusOther plugins' skills for the same job