tad-generator
Generate a Technical Architecture Document (TAD) from a PRD. Use when asked to design the architecture, create a TAD, or define how a product is built. Creates/updates tad.md and reports GitHub links. Skip PRD authoring, sprint-tasks, or code implementation.
What this skill does
# TAD Generator Generate comprehensive Technical Architecture Documents with modular design for startups. ## Subagent Architecture This skill uses parallel research agents with upfront content extraction. **Pattern**: D (Research+Synthesis) + E (Staged Pipeline). ### Agents | Agent | Role | Parallelization | |-------|------|-----------------| | **prd-reader** | Read PRD + supporting docs, return structured extraction | Sequential (only once) | | **tech-researcher** | Handle one research round (spawned 5x in parallel) | Parallel (5 instances) | | **tad-writer** | Generate complete tad.md from all inputs | Sequential (after all research) | ### Research Rounds (5 Parallel) - **Round 1**: Technology Stack validation (React, Node.js, PostgreSQL, Elasticsearch) - **Round 2**: Infrastructure validation (Vercel, AWS, CDN, cost estimation) - **Round 3**: Security review (auth, encryption, compliance, API security) - **Round 4**: Risk assessment (bottlenecks, vendor lock-in, team gaps) - **Round 5**: Holistic review (PRD alignment, team capability, quick wins) ### Parallelization Strategy - **PRD Content**: Extracted once by prd-reader, stays out of main context - **Research Independence**: Each round researches conceptually different angle (tech vs. infra vs. security) - **Reasoning Isolation**: Parallel rounds keep each area's reasoning isolated, prevent groupthink - **Note**: Research rounds are conceptual reasoning, not data fetching — parallel rounds won't produce fundamentally different info, but isolation improves quality **Result**: All 5 rounds complete concurrently, tad-writer synthesizes outputs into unified TAD. ## Environment Check Before executing: 1. Verify prd.md exists in project directory 2. Check for supporting docs (idea.md, validate.md) if available 3. Confirm WebSearch and WebFetch tools available for research 4. Verify write permissions to project root for tad.md creation 5. Ensure git access for final commit ## Repo Sync Before Edits (mandatory) Before creating/updating/deleting files in an existing repository, sync the current branch with remote: ```bash branch="$(git rev-parse --abbrev-ref HEAD)" git fetch origin git pull --rebase origin "$branch" ``` If the working tree is not clean, stash first, sync, then restore: ```bash git stash push -u -m "pre-sync" branch="$(git rev-parse --abbrev-ref HEAD)" git fetch origin && git pull --rebase origin "$branch" git stash pop ``` If `origin` is missing, pull is unavailable, or rebase/stash conflicts occur, stop and ask the user before continuing. ## Input Project folder path in `$ARGUMENTS` containing: - `prd.md` - Product requirements (required) - `idea.md`, `validate.md` - Additional context (optional) ## Workflow ### Phase 1: Setup & Validation 1. Verify `prd.md` exists 2. Read supporting docs if present 3. Read [references/tech-stack.md](references/tech-stack.md) for technology recommendations 4. Backup existing `tad.md` if present ### Phase 2: Extract Context From PRD extract: - Product name and vision - Core features and requirements - User flows - Non-functional requirements - Third-party integrations - Analytics requirements ### Phase 3: Clarify Architecture Ask user (if not clear): | Decision | Options | |----------|---------| | Deployment | Vercel/Netlify (recommended), AWS, GCP, Self-hosted | | Database | PostgreSQL, MongoDB, Supabase/Firebase, Multiple | | Auth | Social (OAuth), Email/password, Magic links, Enterprise SSO | | Budget | Free tier, <$50/mo, <$200/mo, Flexible | ### Phase 4: Research & Validation Conduct 5 research rounds: 1. **Technology Stack**: Validate choices against industry standards 2. **Infrastructure**: Compare hosting for cost and scalability 3. **Security**: Review OWASP guidelines for chosen stack 4. **Risk Assessment**: Identify bottlenecks, vendor lock-in 5. **Holistic Review**: Ensure PRD alignment and startup feasibility ### Phase 5: Generate TAD Create `tad.md` with sections: 1. **System Overview** - Purpose, scope, PRD alignment 2. **Architecture Diagram** - Mermaid diagrams for system and flows 3. **Technology Stack** - Frontend, backend, database, infrastructure, DevOps 4. **System Components** - Modular design with interfaces and dependencies 5. **Data Architecture** - Schema, models, flows, storage 6. **Infrastructure** - Hosting, environments, scaling, CI/CD, monitoring 7. **Security** - Auth, authorization, data protection, API security 8. **Performance** - Targets, optimization strategies, caching 9. **Development** - Environment setup, project structure, testing, deployment 10. **Risks** - Risk matrix with mitigations 11. **Appendix** - Research insights, alternatives, costs, glossary See [references/tad-template.md](references/tad-template.md) for full template structure. ### Phase 6: README Maintenance (ideas repo) After writing `tad.md`, if the project folder is inside an `ideas` repo, update the repo README ideas table: - Preferred: `cd` to repo root and run `python3 scripts/update_readme_ideas_index.py` (if it exists) - Fallback: update `README.md` manually (ensure TAD status becomes ✅ for that idea) ### Phase 7: Commit and push - Commit immediately after updates. - Confirm before pushing — this is a visible action: ```bash git push origin <branch> ``` - If push is rejected: rebase against the actual upstream tracking branch and retry: `branch="$(git rev-parse --abbrev-ref HEAD)"; git fetch origin && git rebase "origin/$branch" && git push`. ### Phase 8: Output 1. Write `tad.md` to project folder 2. Summarize architecture decisions 3. Highlight modular design benefits 4. List cost estimates by phase 5. Suggest next steps (setup dev environment, create tasks) ## Reporting with GitHub links (mandatory) When reporting completion, include: - GitHub link to `tad.md` - GitHub link to `README.md` when it was updated - Commit hash Link format (derive `<owner>/<repo>` from `git remote get-url origin`): - `https://github.com/<owner>/<repo>/blob/main/<relative-path>` ## Step Completion Reports After completing each major step, output a status report in this format: ``` ◆ [Step Name] ([step N of M] — [context]) ·································································· [Check 1]: √ pass [Check 2]: √ pass (note if relevant) [Check 3]: × fail — [reason] [Check 4]: √ pass [Criteria]: √ N/M met ____________________________ Result: PASS | FAIL | PARTIAL ``` Adapt the check names to match what the step actually validates. Use `√` for pass, `×` for fail, and `—` to add brief context. The "Criteria" line summarizes how many acceptance criteria were met. The "Result" line gives the overall verdict. ### Phase-specific checks **Phase 1 — Setup** ``` ◆ Setup (step 1 of 8 — environment validation) ·································································· PRD found: √ pass Context extracted: √ pass (product + features + NFRs read) Architecture questions answered: √ pass (deployment, DB, auth, budget confirmed) ____________________________ Result: PASS | FAIL | PARTIAL ``` **Phase 4 — Research** ``` ◆ Research (step 4 of 8 — validation rounds) ·································································· 5 parallel rounds completed: √ pass Best practices gathered: √ pass (tech, infra, security, risk, holistic) Patterns validated: √ pass (OWASP, vendor lock-in, startup feasibility) ____________________________ Result: PASS | FAIL | PARTIAL ``` **Phase 5 — Generation** ``` ◆ Generation (step 5 of 8 — TAD authoring) ·································································· 11 sections written: √ pass tad.md created: √ pass Diagrams included: √ pass (mermaid architecture + flow diagrams) ____________________________ Result: PASS | FAIL | PARTIAL ``` **Phase 8 — Output** `
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.