Forces AI to verify package documentation before coding, preventing outdated knowledge errors. Integrates with rtfmbro-mcp for version-specific docs.
Forces GitHub Copilot to consult real-time, version-specific package documentation before using any library, module, or package. Prevents errors from outdated internal knowledge by integrating with rtfmbro-mcp for always-current documentation context.
**Critical Rule:** Before using ANY package, module, or library, ALWAYS consult its documentation. Your internal knowledge may be outdated and could cause errors or failures.
Follow this sequence EVERY time you work with external dependencies:
**0. Pause First**
**1. Identify Package Version**
- Python: `uv.lock`, `poetry.lock`, `Pipfile.lock`
- Node.js: `package-lock.json`, `yarn.lock`, `bun.lock`
- Swift: `Package.resolved`
**2. Fetch Documentation**
Execute one of these tools based on the package ecosystem:
**Ecosystem Selection:**
**Note:** Documentation may live in a separate repository (e.g., `tailwindlabs/tailwindcss.com`). Use the repo owner to search for documentation repos.
**3. Review Thoroughly**
Study the documentation to understand:
**4. Reference Examples**
Use code examples from the documentation to guide your implementation. Don't improvise when examples exist.
**Common Issues Prevented:**
**Bad (Old Behavior):**
```
User: "Add authentication with next-auth"
Copilot: *immediately writes code from memory*
Result: Uses outdated v4 API in a v5 project → runtime errors
```
**Good (With This Skill):**
```
User: "Add authentication with next-auth"
Copilot:
1. Checks package-lock.json → finds "next-auth": "5.0.0-beta.4"
2. Executes get_readme with ecosystem=npm, package=next-auth
3. Reviews v5 breaking changes (App Router support, new callbacks)
4. References v5 migration guide examples
5. Writes correct implementation
Result: Clean, working code on first try
```
This skill requires the rtfmbro-mcp server to be installed and configured:
```bash
npm install -g rtfmbro-mcp
```
1. **Always check lock files first** - Don't rely on package.json or requirements.txt for version info
2. **Read changelogs for major version jumps** - Breaking changes are often documented separately
3. **Verify deprecation warnings** - Many packages announce deprecations before removal
4. **Cross-reference multiple sources** - READMEs, official docs, and migration guides all provide value
5. **Update your mental model** - If documentation contradicts what you "know," trust the docs
**"Package not found in lock file"**
**"Documentation repository not found"**
**"Conflicting information between sources"**
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/always-current-package-documentation/raw