code-context
Code Context Retrieval
This skill provides 5 methods for retrieving code context. Select methods based on the target: public GitHub repos, library docs, code search, direct inspection, or post-clone web enrichment.
Token Isolation (Critical)
Never run any external lookup in the main context. Always spawn Task agents:
- DeepWiki: Agent calls
read_wiki_structure/read_wiki_contents/ask_question, extracts architecture summary and key relationships, returns concise overview. - Context7: Agent calls
resolve-library-idthenquery-docs, extracts the minimum viable API surface and usage examples, returns copyable snippets with version notes. - Exa: Agent calls
get_code_context_exa, extracts minimum viable snippets, deduplicates near-identical results (mirrors, forks, repeated StackOverflow answers), returns copyable snippets + brief explanation. - Git clone: Agent clones to
/tmp/, reads entry points and core modules, runsrm -rfcleanup, returns file structure summary and key patterns. - Web Search+Fetch: Agent runs
WebSearchwith version-anchored queries derived from clone findings, callsWebFetchon high-signal URLs, returns only validated insights cross-referenced against cloned code.
Main context stays clean regardless of search volume. Only final summaries return to the caller.
Method 1: DeepWiki (AI-powered repo documentation)
Best for: Well-known public GitHub repositories where you need architecture overview, component explanations, or high-level understanding fast.
More from fradser/dotclaude
patent-architect
Automatically searches prior art via SerpAPI and generates Chinese patent application forms. This skill should be used when the user wants to generate Chinese patent application forms (专利申请表), or mentions "patents", "inventions", "专利", "申请表", or wants to protect technical innovations.
323executing-plans
Executes written implementation plans efficiently using agent teams or subagents. This skill should be used when the user has a completed plan.md, asks to "execute the plan", or is ready to run batches of independent tasks in parallel following BDD principles.
68behavior-driven-development
Applies behavior-driven development principles including Gherkin scenarios and test-driven development. This skill should be used when the user asks to implement features, fix bugs, or when writing executable specifications and tests before writing production code.
67update-gitignore
Creates or updates a .gitignore file using git-agent AI generation. This skill should be used when the user asks to "update gitignore", "create gitignore", "add ignore rules", or needs to initialize ignore rules for a project.
65commit-and-push
Creates conventional git commits using git-agent and pushes to the remote repository. This skill should be used when the user asks to "commit and push", "push my changes", or wants to commit and immediately push to remote. The executing AI auto-derives its own co-author string from its runtime model identity (e.g., `Claude Opus 4.7 <noreply@anthropic.com>`) and passes it to `--co-author`. `$ARGUMENTS`, if provided, overrides the auto-derived value.
65plugin-best-practices
This skill should be used when the user asks to "validate plugin structure", "review manifest files", "check frontmatter compliance", "verify tool invocation patterns", "explain plugin component types", or needs Claude Code plugin architectural guidance.
64