Agent skill
docs
Fetch latest documentation for libraries and frameworks. CRITICAL - AUTO-INVOKE when: - User wants to implement with ANY external library (GSAP, Lenis, Three.js, Framer, Radix, etc.) - User asks "how to use X", "X docs", "X API", "X reference" - Before writing ANY code that uses external packages - User mentions library names: gsap, lenis, three, framer, motion, radix, sanity, zustand MANDATORY: Never assume API knowledge. Always fetch current docs first.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/docs-darkroomengineering-cc-settings
SKILL.md
Documentation Fetcher
CRITICAL: Always fetch current documentation before implementing with ANY external library. APIs change. Your training data is outdated.
Using Context7 MCP
# Step 1: Resolve library ID
mcp__context7__resolve-library-id { "libraryName": "gsap" }
# Step 2: Fetch docs for specific topic
mcp__context7__get-library-docs {
"context7CompatibleLibraryID": "greensock/docs",
"topic": "ScrollTrigger",
"tokens": 10000
}
Common Libraries
| Library | Context7 ID | Topics |
|---|---|---|
| GSAP | greensock/docs |
ScrollTrigger, Timeline, Tweens |
| Lenis | darkroom/lenis |
setup, scrollTo, events |
| Three.js | mrdoob/three.js |
Scene, Camera, Renderer |
| Framer Motion | framer/motion |
animate, variants, gestures |
| Radix | radix-ui/primitives |
Dialog, Dropdown, Tabs |
| Next.js | vercel/nextjs |
App Router, Server Components |
| React | facebook/react |
hooks, components, patterns |
| Sanity | sanity-io/sanity |
GROQ, schemas, studio |
Pre-Implementation Checklist
Before writing code with a library:
- Fetch docs - Get current API documentation
- Check version - Run
bun info <package> - Find examples - Look for usage patterns in docs
- Verify imports - Confirm correct import paths
Output
After fetching docs, summarize:
- Key APIs needed for the task
- Import statements to use
- Example usage from docs
- Gotchas or important notes
Remember
- NEVER write library code from memory
- Always verify current API before implementing
- Store useful discoveries as learnings
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?