Enforces project documentation authority for GitHub Copilot, ensuring all code generation and project inquiries use doc-bot MCP tools before generating responses. Implements strict tool-first workflow with automatic validation and error recovery.
This skill enforces documentation-driven development for the testDuckDuckGo project using GitHub Copilot. It ensures all code generation and project-specific answers come from the doc-bot MCP server rather than general AI knowledge.
The skill implements a five-phase enforcement protocol:
1. **Environment Detection** - Activates when doc-bot MCP server is available
2. **Request Classification** - Categorizes user requests into four classes requiring different tool responses
3. **Execution Enforcement** - Forces tool execution before generating responses
4. **Quality Assurance** - Validates responses match tool outputs
5. **Behavioral Constraints** - Defines absolute prohibitions and mandatory behaviors
When the filesystem contains `doc-bot/` directory AND the `doc-bot` or `@afterxleep/doc-bot` MCP server is available:
Classify every user request using these patterns:
**CLASS A: CODE_GENERATION**
**CLASS B: PROJECT_INQUIRY**
**CLASS C: DOCUMENTATION_DISCOVERY**
**CLASS D: DOCUMENT_ACCESS**
**Note**: For file-specific queries (e.g., "working on src/utils.js"), use `search_documentation` with the file name and context keywords.
Before generating ANY response:
1. Classify the request using Phase 2 patterns
2. If classification is not "UNRELATED":
- Execute the mandatory tool call
- If tool returns error: provide error recovery response
- If tool succeeds: inject result into response context
3. Set tool result as authoritative source
4. Disable general knowledge fallback
While generating response:
After generating response:
If tool execution was bypassed:
**ABSOLUTE PROHIBITIONS:**
**MANDATORY BEHAVIORS:**
Test the skill with these inputs (tool must be called immediately):
Expected behavior: Tool execution within 2 seconds, no general knowledge responses.
Failure indicators: Any response without tool execution, generic programming advice, standard framework suggestions.
```
User: "I need to add a new test for the search feature"
Copilot:
1. Classifies as CODE_GENERATION (contains "add" + "test")
2. Calls check_project_rules("add test for search feature")
3. Receives project testing standards from doc-bot
4. Generates code following documented patterns
5. Attributes response to project documentation
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/duckduckgo-test-automation/raw