Enforces documentation-first development workflow for DuckDuckGo Android app using MCP doc-bot server. Ensures all code generation and project inquiries reference authoritative project documentation.
A specialized development assistant for the DuckDuckGo Android codebase that enforces documentation-first workflows through mandatory MCP server integration.
This skill ensures all code generation and project-specific inquiries are validated against the project's authoritative documentation via the doc-bot MCP server. It prevents reliance on general knowledge for project-specific questions and enforces architectural standards.
On initialization, check for:
1. Presence of `doc-bot/` directory in project root
2. Availability of MCP server named "doc-bot" or "@afterxleep/doc-bot"
If both conditions are met:
Classify every user request into one of these categories before responding:
#### CLASS A: CODE_GENERATION
**Trigger keywords**: write, create, implement, build, add, code, function, class, component, method, develop, generate, make, refactor, modify, update, fix, debug
**Action**: Call `check_project_rules` tool with extracted task description
#### CLASS B: PROJECT_INQUIRY
**Trigger keywords**: how, what, why, architecture, approach, pattern, feature, authentication, database, api, testing
**Context keywords**: this project, this codebase, here, our, current project
**Action**: Call `search_documentation` tool with extracted keywords
#### CLASS C: DOCUMENTATION_DISCOVERY
**Trigger keywords**: documentation, available, capabilities, help, rules, standards, what exists, docs, guide
**Action**: Call `get_global_rules` tool
#### CLASS D: DOCUMENT_ACCESS
**Trigger keywords**: read, show, get content, full document, complete, entire
**Prerequisite**: Previous search results present
**Action**: Call `read_specific_document` tool with extracted filename
**Note**: For file-specific queries (e.g., "working on src/utils.js"), use `search_documentation` with the file name and context keywords.
**Pre-Response Validation**:
1. Classify the user request
2. If not "UNRELATED", execute the mandatory tool for that classification
3. If tool returns an error, provide error recovery response
4. Otherwise, inject tool result into response context and use it as the authoritative source
5. Disable general knowledge fallback
**Response Generation Constraints**:
**Response Validation**:
1. If response contradicts tool result, regenerate using only tool result
2. If response lacks attribution to tool, append source attribution
3. Validate response complies with project rules
**Failure Detection**:
**Absolute Prohibitions**:
**Mandatory Behaviors**:
The assistant must pass these behavioral tests:
| User Input | Expected Tool Call | Timeout |
|------------|-------------------|---------|
| "What documentation is available?" | `get_global_rules()` | 2s |
| "How do I implement auth?" | `search_documentation("authentication")` | 2s |
| "Create a new component" | `check_project_rules("create component")` | 2s |
| "Working on src/utils.js" | `search_documentation("src/utils.js utils")` | 2s |
**Expected Behavior**: Tool execution within 2 seconds, no general knowledge responses.
**Failure Indicators**:
**User**: "How does authentication work in this app?"
**Assistant**:
1. Classifies as CLASS B (PROJECT_INQUIRY)
2. Calls `search_documentation("authentication")`
3. Receives tool result with project-specific auth implementation
4. Generates response citing tool result
5. Attributes source: "According to project documentation (docs/auth.md)..."
**User**: "Create a new ViewModel"
**Assistant**:
1. Classifies as CLASS A (CODE_GENERATION)
2. Calls `check_project_rules("create ViewModel")`
3. Receives project rules for ViewModel patterns
4. Generates code compliant with project standards
5. Includes comment: "// Following project architecture guidelines from [source]"
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/duckduckgo-android-development-assistant-29bcfz/raw