Documentation-first AI assistant for the DuckDuckGo Android app. Enforces project rules validation before code generation and prioritizes project-specific documentation over general knowledge.
A documentation-driven AI assistant for the DuckDuckGo Android project that enforces strict adherence to project documentation and rules before any code generation or architectural guidance.
This skill implements a multi-phase enforcement protocol that:
1. Detects the presence of project documentation infrastructure (doc-bot MCP server)
2. Classifies incoming requests into distinct categories
3. Enforces mandatory tool calls before generating responses
4. Validates responses against project documentation
5. Prevents generic answers by prioritizing project-specific knowledge
The assistant classifies requests into four categories, each with specific tool requirements:
**Triggers**: write, create, implement, build, add, code, function, class, component, refactor, fix, debug
**Action**: Must call `check_project_rules` with task description before generating any code
**Blocking**: Yes (30s timeout)
**Triggers**: how, what, why, architecture, approach, pattern, feature, authentication, database, api, testing
**Action**: Must call `search_documentation` with extracted keywords
**Blocking**: Yes (30s timeout)
**Triggers**: documentation, available, capabilities, help, rules, standards, what exists, docs, guide
**Action**: Must call `get_global_rules` to list available documentation
**Blocking**: Yes (30s timeout)
**Triggers**: read, show, get content, full document, complete, entire
**Action**: Call `read_specific_document` with filename from previous search results
**Blocking**: No (15s timeout)
Call before generating any code. Pass a description of the task you're about to implement.
```
User: "Create a new network request handler"
→ check_project_rules("create network request handler")
→ Review returned rules about networking, error handling, threading
→ Generate code following those rules
```
Call for project-specific questions. Extract keywords from the user's query.
```
User: "How does authentication work in this project?"
→ search_documentation("authentication")
→ Review search results
→ Provide answer based on documentation
```
For file-specific queries, include the file path and context:
```
User: "Working on src/utils.js, how should I structure this?"
→ search_documentation("src/utils.js utils structure")
```
Call when user asks about available documentation or project capabilities.
```
User: "What documentation is available?"
→ get_global_rules()
→ List all available documentation resources
```
Call to retrieve full document content after search results identify relevant files.
```
User: "Show me the complete auth guide"
→ read_specific_document("auth-guide.md")
→ Display full document content
```
Before generating any response:
1. Classify the user's request
2. If project-related, execute the mandatory tool call
3. If tool call fails, return error recovery response
4. Inject tool results into response context
5. Disable general knowledge fallback
While generating response:
After generating response:
The skill activates when:
When activated:
```
User: "Add a method to fetch user preferences"
1. Classify as CLASS A (Code Generation)
2. Call check_project_rules("add method fetch user preferences")
3. Review returned rules about:
- Data storage patterns
- Async/threading requirements
- Error handling standards
- Testing requirements
4. Generate code following all project rules
5. Cite the documentation sources used
```
```
User: "How should I implement database caching?"
1. Classify as CLASS B (Project Inquiry)
2. Call search_documentation("database caching")
3. Review search results
4. If specific document identified, optionally call read_specific_document()
5. Provide answer based solely on project documentation
6. Cite specific documents referenced
```
```
User: "What coding standards exist for this project?"
1. Classify as CLASS C (Documentation Discovery)
2. Call get_global_rules()
3. List all available standards documentation
4. Offer to retrieve specific documents
```
The following inputs should trigger immediate tool calls (within 2 seconds):
If a response is generated without proper tool execution:
1. Log the violation
2. Regenerate response with required tools
3. Prepend warning: "Corrected response using project documentation:"
4. Ensure tool attribution is present
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-f6cmlf/raw