Spec Context
Spec Context provides detailed contextual information for a given topic, boosting accuracy and relevance in AI responses.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add spec-context npx -- -y @trustedskills/spec-context
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"spec-context": {
"command": "npx",
"args": [
"-y",
"@trustedskills/spec-context"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
Spec Context provides a mechanism for AI agents to accurately determine and utilize contextual information related to specific specifications (Specs). It defines FEATURE_DIR, which serves as an anchor point for locating relevant files like those in the requirements/*.md directory. The skill prioritizes reusing previously determined values, or executing scripts to discover the correct path when needed, ensuring accuracy and preventing reliance on guesswork.
When to use it
- When needing to read or write files within a specific specification's requirements (
requirements/*.md). - When unsure of the current spec pack or encountering errors related to branches, directories, or
.aisdlccontext. - During implementation phases where verifying branch consistency and submodule states is necessary (if the repository contains
.gitmodules).
Key capabilities
- Determines
FEATURE_DIRfor a given specification. - Prioritizes reusing previously established
FEATURE_DIRvalues. - Executes scripts to determine
FEATURE_DIRwhen reuse isn't possible. - Exposes submodule state snapshots (if
.gitmodulesexists) for verification during implementation. - Supports PowerShell and Bash script execution for path determination.
Example prompts
- "I am using the spec-context skill to locate the current Spec Pack (FEATURE_DIR)."
- "Determine FEATURE_DIR."
- "What is the value of FEATURE_DIR?"
Tips & gotchas
- Before reading or writing
requirements/*.mdfiles, you must first establish and echoFEATURE_DIR=.... - If the script used to determine
FEATURE_DIRfails, execution must stop. - When
.gitmodulesis present, avoid manually guessing submodule paths – rely on the provided scripts.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.