mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
feat(commands): add /docs; feat(mcp-configs): document Context7 (#530)
* feat(commands): add /docs; feat(agents): add docs-lookup; feat(mcp-configs): document Context7; docs: add MCP subsection to CONTRIBUTING Made-with: Cursor * fix: address PR review — use Context7 MCP tool names in docs-lookup agent; CONTRIBUTING Agent Fields + MCP wording; mcp-config description; /docs quoted example; treat fetched docs as untrusted Made-with: Cursor * docs-lookup: note that harness may expose Context7 tools under prefixed names Made-with: Cursor * docs-lookup: examples use prefixed tool names (mcp__context7__*) for resolution Made-with: Cursor
This commit is contained in:
@@ -10,6 +10,7 @@ Thanks for wanting to contribute! This repo is a community resource for Claude C
|
||||
- [Contributing Agents](#contributing-agents)
|
||||
- [Contributing Hooks](#contributing-hooks)
|
||||
- [Contributing Commands](#contributing-commands)
|
||||
- [MCP and documentation (e.g. Context7)](#mcp-and-documentation-eg-context7)
|
||||
- [Cross-Harness and Translations](#cross-harness-and-translations)
|
||||
- [Pull Request Process](#pull-request-process)
|
||||
|
||||
@@ -193,7 +194,7 @@ Output: [what you return]
|
||||
|-------|-------------|---------|
|
||||
| `name` | Lowercase, hyphenated | `code-reviewer` |
|
||||
| `description` | Used to decide when to invoke | Be specific! |
|
||||
| `tools` | Only what's needed | `Read, Write, Edit, Bash, Grep, Glob, WebFetch, Task` |
|
||||
| `tools` | Only what's needed | `Read, Write, Edit, Bash, Grep, Glob, WebFetch, Task`, or MCP tool names (e.g. `mcp__context7__resolve-library-id`, `mcp__context7__query-docs`) when the agent uses MCP |
|
||||
| `model` | Complexity level | `haiku` (simple), `sonnet` (coding), `opus` (complex) |
|
||||
|
||||
### Example Agents
|
||||
@@ -349,6 +350,17 @@ What the user receives.
|
||||
|
||||
---
|
||||
|
||||
## MCP and documentation (e.g. Context7)
|
||||
|
||||
Skills and agents can use **MCP (Model Context Protocol)** tools to pull in up-to-date data instead of relying only on training data. This is especially useful for documentation.
|
||||
|
||||
- **Context7** is an MCP server that exposes `resolve-library-id` and `query-docs`. Use it when the user asks about libraries, frameworks, or APIs so answers reflect current docs and code examples.
|
||||
- When contributing **skills** that depend on live docs (e.g. setup, API usage), describe how to use the relevant MCP tools (e.g. resolve the library ID, then query docs) and point to the `documentation-lookup` skill or Context7 as the pattern.
|
||||
- When contributing **agents** that answer docs/API questions, include the Context7 MCP tool names (e.g. `mcp__context7__resolve-library-id`, `mcp__context7__query-docs`) in the agent's tools and document the resolve → query workflow.
|
||||
- **mcp-configs/mcp-servers.json** includes a Context7 entry; users enable it in their harness (e.g. Claude Code, Cursor) to use the documentation-lookup skill (in `skills/documentation-lookup/`) and the `/docs` command.
|
||||
|
||||
---
|
||||
|
||||
## Cross-Harness and Translations
|
||||
|
||||
### Skill subsets (Codex and Cursor)
|
||||
|
||||
Reference in New Issue
Block a user