.forge/skills/context7-integration/SKILL.md
# Context7 Integration Query Context7 for up-to-date library documentation before implementing code that uses external dependencies. This ensures you use current APIs and best practices. ## When to Query Context7 - Before first use of an unfamiliar or rapidly-evolving library - When implementing patterns you haven't used recently - When errors suggest API changes or deprecations - When the spec mentions specific library features ## When NOT to Query - Standard library features (Rust `std`,
npx skillsauth add jdsingh122918/forge .forge/skills/context7-integrationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Query Context7 for up-to-date library documentation before implementing code that uses external dependencies. This ensures you use current APIs and best practices.
std, Python built-ins)serde, clap basics)Use the MCP tools in sequence:
Resolve the library ID first:
Tool: mcp__plugin_context7_context7__resolve-library-id
Parameters:
libraryName: "tokio"
query: "async file operations"
Query documentation with the resolved ID:
Tool: mcp__plugin_context7_context7__query-docs
Parameters:
libraryId: "/tokio-rs/tokio" (from step 1)
query: "how to read file asynchronously"
If Context7 doesn't have documentation for a library:
development
# Testing Strategy Apply this testing strategy for all new code: ## Test Levels 1. **Unit Tests** - Test individual functions in isolation - Located in `mod tests` at the bottom of each file - Mock external dependencies - Fast, deterministic, no I/O 2. **Integration Tests** - Test modules working together - Located in `tests/` directory - Use real dependencies where practical - May involve filesystem, database, or network 3. **End-to-End Tests** - Test complete user workflo
development
# TDD Workflow Apply Test-Driven Development when implementing new functionality. Use your judgment to determine when TDD is appropriate — it's most valuable for business logic, algorithms, and complex state management. ## When to Use TDD - New functions with defined inputs/outputs - Bug fixes (write failing test first, then fix) - Refactoring existing code (ensure tests exist first) - API endpoints and data transformations ## When TDD May Not Apply - Configuration files, constants, types/i
tools
# Secure Coding Follow these secure coding practices for all code in this project. ## Input Validation - Validate all external input (user input, API responses, file contents) - Use allowlists over denylists when validating - Sanitize data before use in SQL, shell commands, or HTML output - Validate early, at system boundaries (CLI args, file reads, network responses) ## Rust-Specific Security - Minimize `unsafe` blocks; document safety invariants when used - Use established crypto librarie
tools
# Rust Conventions Follow these Rust conventions for all code in this project: ## Code Style - Use `rustfmt` defaults for formatting - Run `cargo clippy` and address all warnings before committing - Prefer `?` operator for error propagation over `.unwrap()` in library code - Use `.expect("meaningful message")` only when failure indicates a bug ## Error Handling - Use `anyhow::Result` for application code and CLI - Use `thiserror` for library errors that callers need to match on - Provide cont