From Flagrare
Drafts Technical Design Documents for large projects by analyzing the codebase and fetching context via MCP. Every technical claim is verified against actual code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/flagrare:tdd-writerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Draft Technical Design Documents for staging up large or complex projects. TDDs are communication tools for aligning stakeholders and providing high-level execution plans.
Draft Technical Design Documents for staging up large or complex projects. TDDs are communication tools for aligning stakeholders and providing high-level execution plans.
Never assume, imply, or hallucinate ANY technical information.
Every piece of information about architecture, code, systems, services, data models, and APIs must be:
Use these markers:
[UNKNOWN: Brief description of what's missing]
[NEEDS VERIFICATION: What needs to be checked and where]
[TBD: Decision pending - who needs to decide]
Before drafting, collect and verify information from all available sources.
Step 1: Fetch External Context via MCP
Jira/Linear ticket (if provided):
Confluence/Notion docs (if referenced):
Figma designs (if linked):
Step 2: Explore Existing UI (if modifying an existing system)
If the feature modifies an existing interface, explore the current state:
Step 3: Analyze Codebase (required)
Read actual code before writing technical details:
Step 4: Mark All Unknowns
After gathering, explicitly list what could NOT be verified:
Use this template. Mark ANY unverified information with the markers above.
# TDD: [Initiative Title]
**Author:** [Name]
**Team:** [Team/Squad Name]
**Status:** IN REVIEW | GO | NO GO
**Links:**
- Ticket: [link]
- Designs: [link]
- Docs: [link]
---
## Introduction
### Context
[1-2 paragraphs: What problem are we solving? Business-oriented terms.]
### Problem Statement (Current State)
[Current limitations, pain points, gaps.]
### Current Flow (if modifying existing system)
[Document the existing UI and user flow.]
### Proposed Solution
[2-3 sentences: How do you plan on solving it?]
### Long Term Vision
[How does this bring us closer to the team's long-term goals?]
---
## Decision Record
- **Driver:** [Author]
- **Approver:** [EM or senior IC with domain expertise]
- **Contributors:** [Your team, affected teams]
- **Informed:** [Engineering, PM, relevant stakeholders]
---
## Phase 1
### LOE (T-Shirt Size)
| Size | Time |
|------|------|
| XS | 1-2 days |
| S | 1 week |
| M | 2 weeks |
| L | 4 weeks |
| XL | 4+ weeks |
**This phase:** [SIZE]
### External Dependencies / Impact
**Teams:** [Dependent teams, BI impact]
**Vendors:** [New vendors, cost analysis]
**Libraries:** [Open source, internal services]
### Concepts
[Describe each idea/model and how they relate to each other.]
### System Architecture / Data Model / API Endpoints
**Database Changes:**
- New tables? Updated tables? Migrations?
- Schema naming and structure
**API Changes:**
- New/updated endpoints, payloads
- Schema changes (GraphQL, protobuf, REST)
**Business Logic:**
- Non-trivial logic added or altered
- Response and load considerations
- Caching strategy
### Testing
| Scenario | Type | Data Considerations |
|----------|------|---------------------|
| [scenario] | unit/integration/e2e/manual | [special data] |
**What Won't Be Tested:**
[Explicit exclusions]
### Localization
[Translation strategy if applicable]
### PII
[New PII fields? PII persisted outside databases?]
### Observability and Alerting
[New metrics, dashboards, alerts]
### Security
[Auth, permissions, vulnerabilities]
### Analytics
[New/modified events, destinations]
### Rollout Strategy
- Dry run?
- Stealth mode?
- Feature flags?
- Gradual rollout percentage?
### Post-Deployment Monitoring
[How will we know it's working? Queries, dashboards, who monitors?]
### Risks
[Known risks and mitigations]
### Documentation
[New docs needed?]
### Open Questions
- [ ] Question 1?
- [ ] Question 2?
### Alternative Solutions
[Other options considered and why they were discarded]
---
## Phase 2
[If applicable]
## Future Work
[Deferred items]
---
## Verification Summary
**Sources Checked:**
- [ ] Ticket: [ticket ID]
- [ ] Docs: [page IDs]
- [ ] Codebase files read: [list files]
- [ ] API definitions: [list files]
- [ ] Database schemas: [list files]
**Information Gaps:**
- [UNKNOWN: items that could not be verified]
- [NEEDS VERIFICATION: items requiring additional review]
- [TBD: pending decisions]
Voice:
Diagrams: Always use Mermaid for flowcharts and graphs when possible:
flowchart TD
A[User Action] --> B{Decision Point}
B -->|Option 1| C[Service A]
B -->|Option 2| D[Service B]
C --> E[Database]
D --> E
Use color coding:
Structure patterns:
Before presenting the TDD:
npx claudepluginhub flagrare/agent-skills --plugin flagrareProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.