AI Builder - Technical Specifications
This skill creates/updates the technical specifications documentation defining the technology stack, security posture, theme standards (extracted from UX mockup), coding standards, testing standards, and security standards.
When to Use This Skill
- User asks to "define tech specs" or "choose tech stack"
- User requests to start Stage 7 or the next stage after architecture
- User wants to select technologies and frameworks
- User wants to establish coding and testing standards
- User needs to define security standards
Prerequisites
This skill requires 06-architecture to be completed for L3+ projects. For L2 projects, this stage can proceed without architecture documentation.
Your Roles in This Skill
- Tech Manager (Architect): Lead tech stack selection and standards definition. Review architecture to choose appropriate technologies. Define coding and testing standards. Ensure technical choices align with requirements and constraints.
- Security Engineer: Define security posture, authentication approach, and secure coding standards. Identify security threats and mitigation strategies. Establish security testing and compliance requirements.
- UI Designer: Extract theme standards from approved UX mockup. Document colors, fonts, spacing, and design tokens. Ensure design consistency rules are clear for implementation.
- DevOps Engineer: Review tech stack for deployment and operational feasibility. Provide input on infrastructure compatibility. Consider monitoring and logging requirements.
Role Communication
As an expert in your assigned roles, you must announce your actions before performing them using the following format:
As a {Role} [and {Role}, ...], I will {action description}
This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.
Instructions
Follow these steps in order:
Step 0: Verify Prerequisites and Gather Context
First read and understand rules: dev-swarm/docs/research-specs-rules.md then:
Check for Project Scale (L2 vs L3+):
- Check
00-init-ideas/README.md or classification to determine project scale.
Check if 06-architecture/ folder exists:
- For L3+ projects (Mandatory):
- If NOT found: Inform user they need to create architecture first, then STOP.
- If found: Read all files.
- For L2 projects (Optional):
- If found: Read files.
- If NOT found: Proceed without it.
2.5 Verify previous stage completion (06-architecture when required):
- If
06-architecture/README.md exists, read it and list required docs
- If README is missing or required docs are missing:
- Ask the user to start/continue stage 06, or skip it if allowed
- If skip: create
06-architecture/SKIP.md with a short reason
- If continue: STOP and return after stage 06 is complete
Check if 05-ux/ folder exists (Mandatory for L3+):
- If NOT found and project is L3+: Warn user.
- For L2: Skip if not relevant.
- CSS variables and design tokens
- Color palette
- Typography (fonts, sizes)
- Spacing system
- Border radius and shadows
- Component styles
Check if 00-init-ideas/ folder exists (recommended):
- If found: Read all files to understand it
Check if 04-prd/ folder exists (recommended):
- If found: Read to understand:
- Non-functional requirements (performance, security, compliance)
- Technical constraints
Check if 03-mvp/ folder exists (recommended):
- If found: Read to understand:
- MVP scope (prioritize tech choices for MVP)
- Timeline constraints
Check if this stage should be skipped:
- Check if
07-tech-specs/SKIP.md exists
- If SKIP.md exists:
- Read SKIP.md to understand why this stage was skipped
- Inform the user: "Stage 7 (tech-specs) is marked as SKIP because [reason from SKIP.md]"
- Ask the user: "Would you like to proceed to the next stage (devops)?"
- If user says yes:
- Exit this skill and inform them to run the next stage skill
- If user says no:
- Ask if they want to proceed with tech specs anyway
- If yes, delete SKIP.md and continue with this skill
- If no, exit the skill
Check if 07-tech-specs/ folder exists:
- If exists: Read all existing files to understand current tech specs state
- If NOT exists: Will create new structure
If README.md exists: Check whether it requires diagrams. If it does,
follow dev-swarm/docs/mermaid-diagram-guide.md and use the
dev-swarm-mermaid skill to render outputs.
Read source code structure guidance (mandatory):
- Read
dev-swarm/docs/source-code-structure.md
- Use it as the baseline when creating
07-tech-specs/source-code-structure.md
Proceed to Step 1 with gathered context
Step 1: Refine Design Requirements in README and Get Approval
CRITICAL: Create/update README.md first without pre-approval. Then ask the user to review/update/approve it, re-read it after approval, and only then create other docs.
Analyze information from previous stages:
- Read
06-architecture/ to understand system components and deployment
- Read
05-ux/mockups/styles.css to extract theme (CRITICAL for theme-standards.md)
- Read
04-prd/ to understand non-functional requirements
- Read
03-mvp/ (if exists) to understand what to prioritize
- Consider cost-budget constraints for this stage
Create or update 07-tech-specs/README.md with refined requirements:
- Use the template in
references/README.md
- Follow the checkbox rules: checked items apply after README approval; create file items only after approval; propose default checks; allow user changes
- Populate only the template sections; do not add new headings such as Documents or Deliverables
- Follow
dev-swarm/docs/stage-readme-guidelines.md before drafting
- Refer to
references/deliverables.md to select deliverables by project type
- Present any choices as checkbox lists with a default selection
- For L2 projects: Create a simple README (just several lines) indicating the project level and that only
tech-stack.md is required.
- For L3+ projects: List deliverables explicitly in README (typical: tech-stack.md, security.md, theme-standards.md, coding-standards.md, source-code-structure.md, testing-standards.md, security-standards.md)
- Stage overview and objectives (based on previous stage context)
- Owners: Tech Manager (lead), Security Engineer, UI Designer, DevOps Engineer
- Diagrams (if required by project init):
- Reference
dev-swarm/docs/mermaid-diagram-guide.md
- Include
diagram/ deliverables when needed
- What tech specs will include:
- Technology stack selection with rationale
- Security posture and authentication approach
- Theme standards extracted from UX mockup (CRITICAL)
- Coding standards and best practices
- Testing standards and coverage requirements
- Security standards for secure coding
- Methodology:
- How tech stack will be selected (based on architecture + requirements)
- How theme will be extracted from mockup CSS (DO NOT invent values)
- Deliverables planned:
- List of files that will be created (tech-stack.md, theme-standards.md, etc.)
- Status: In Progress (update to "Completed" after implementation)
Notify user after README is created:
- Say: "I have created README.md file, please check and update or approve the content."
- Summarize the tech specs approach and what will be defined
- Summarize what documentation files will be created
- Explain how it aligns with previous stages
Wait for user approval:
- If user says yes: Re-read README.md (user may have updated it), then proceed to Step 2
- If user says no:
- Ask what needs to be changed
- Update README based on feedback
- Ask for approval again, then re-read README.md before proceeding
Step 2: Create/Update Tech Specs Structure
Only after user approves the README and you re-read it:
Create files as specified in the approved README.md:
IMPORTANT: The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.
Typical structure (example):
07-tech-specs/
├── README.md (created in Step 1, then reviewed/approved)
├── tech-stack.md (if specified in README)
├── security.md (if specified in README)
├── theme-standards.md (if specified in README - MUST extract from UX mockup)
├── coding-standards.md (if specified in README)
├── source-code-structure.md (if specified in README)
├── testing-standards.md (if specified in README)
└── security-standards.md (if specified in README)
Create only the files listed in the README's "Deliverables planned" section.
Step 3: Create/Update Technical Specifications Documentation
IMPORTANT: Only create tech specs documentation after README is approved in Step 1 and re-read.
NOTE: Use references/deliverables.md for file-by-file content guidance. Adapt based on the approved README and project needs.
Step 4: Ensure Alignment
Make sure tech specs align with:
- Architecture from 06-architecture/
- Non-functional requirements from 04-prd/non-functional-requirements.md
- UX mockup theme from 05-ux/mockups/styles.css (CRITICAL for theme-standards.md)
- MVP scope from 03-mvp/ (prioritize tech choices for MVP)
Verify that:
- Tech stack can implement the architecture
- Theme standards match the UX mockup exactly
- Security standards address requirements
- Testing standards ensure quality
- Coding standards are clear and enforceable
Step 5: Final User Review
Inform user that tech specs are complete
Update README.md:
- Change Status from "In Progress" to "Completed"
- Add a Summary section with key insights (2-3 paragraphs)
- Add a Created Files section listing all created files
Present completed work to user:
- Review chosen tech stack and rationale
- Show theme standards extracted from UX mockup
- Explain security approach
- Walk through coding and testing standards
Highlight key insights:
- Frontend framework choice and why
- Backend framework choice and why
- Database choice and why
- Theme values extracted from mockup (show side-by-side)
- Security compliance level
- Test coverage requirements
Ask questions:
- Comfortable with tech stack choices?
- Theme standards match their vision?
- Any security concerns?
- Testing requirements achievable?
- Ready to proceed to next stage (DevOps)?
Make adjustments based on user feedback if needed
Step 6: Commit to Git (if user confirms)
- If user confirms tech specs are complete:
- Ask if they want to commit to git
- If user wants to commit:
- Stage all changes in
07-tech-specs/
- Commit with message: "Define tech stack and engineering standards (Stage 7)"
1---2name: dev-swarm-tech-specs3description: Define technical specifications including tech stack, security, theme standards (from UX mockup), coding standards, and testing standards. Use when user asks to define tech specs, choose tech stack, or start Stage 7 after architecture.4---56# AI Builder - Technical Specifications78This skill creates/updates the technical specifications documentation defining the technology stack, security posture, theme standards (extracted from UX mockup), coding standards, testing standards, and security standards.910## When to Use This Skill1112- User asks to "define tech specs" or "choose tech stack"13- User requests to start Stage 7 or the next stage after architecture14- User wants to select technologies and frameworks15- User wants to establish coding and testing standards16- User needs to define security standards1718## Prerequisites1920This skill requires **06-architecture** to be completed for L3+ projects. For L2 projects, this stage can proceed without architecture documentation.2122## Your Roles in This Skill2324- **Tech Manager (Architect)**: Lead tech stack selection and standards definition. Review architecture to choose appropriate technologies. Define coding and testing standards. Ensure technical choices align with requirements and constraints.25- **Security Engineer**: Define security posture, authentication approach, and secure coding standards. Identify security threats and mitigation strategies. Establish security testing and compliance requirements.26- **UI Designer**: Extract theme standards from approved UX mockup. Document colors, fonts, spacing, and design tokens. Ensure design consistency rules are clear for implementation.27- **DevOps Engineer**: Review tech stack for deployment and operational feasibility. Provide input on infrastructure compatibility. Consider monitoring and logging requirements.2829## Role Communication3031As an expert in your assigned roles, you must announce your actions before performing them using the following format:3233As a {Role} [and {Role}, ...], I will {action description}3435This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.36## Instructions3738Follow these steps in order:3940### Step 0: Verify Prerequisites and Gather Context4142First read and understand rules: `dev-swarm/docs/research-specs-rules.md` then:43441. **Check for Project Scale (L2 vs L3+):**45 - Check `00-init-ideas/README.md` or classification to determine project scale.46472. **Check if `06-architecture/` folder exists:**48 - **For L3+ projects (Mandatory):**49 - If NOT found: Inform user they need to create architecture first, then STOP.50 - If found: Read all files.51 - **For L2 projects (Optional):**52 - If found: Read files.53 - If NOT found: Proceed without it.54552.5 **Verify previous stage completion (06-architecture when required):**56 - If `06-architecture/README.md` exists, read it and list required docs57 - If README is missing or required docs are missing:58 - Ask the user to start/continue stage 06, or skip it if allowed59 - If skip: create `06-architecture/SKIP.md` with a short reason60 - If continue: STOP and return after stage 06 is complete61623. **Check if `05-ux/` folder exists (Mandatory for L3+):**63 - If NOT found and project is L3+: Warn user.64 - For L2: Skip if not relevant.65 - **CSS variables and design tokens**66 - **Color palette**67 - **Typography (fonts, sizes)**68 - **Spacing system**69 - **Border radius and shadows**70 - **Component styles**71723. **Check if `00-init-ideas/` folder exists (recommended):**73 - If found: Read all files to understand it74754. **Check if `04-prd/` folder exists (recommended):**76 - If found: Read to understand:77 - Non-functional requirements (performance, security, compliance)78 - Technical constraints79805. **Check if `03-mvp/` folder exists (recommended):**81 - If found: Read to understand:82 - MVP scope (prioritize tech choices for MVP)83 - Timeline constraints84856. **Check if this stage should be skipped:**86 - Check if `07-tech-specs/SKIP.md` exists87 - **If SKIP.md exists:**88 - Read SKIP.md to understand why this stage was skipped89 - Inform the user: "Stage 7 (tech-specs) is marked as SKIP because [reason from SKIP.md]"90 - Ask the user: "Would you like to proceed to the next stage (devops)?"91 - **If user says yes:**92 - Exit this skill and inform them to run the next stage skill93 - **If user says no:**94 - Ask if they want to proceed with tech specs anyway95 - If yes, delete SKIP.md and continue with this skill96 - If no, exit the skill97987. **Check if `07-tech-specs/` folder exists:**99 - If exists: Read all existing files to understand current tech specs state100 - If NOT exists: Will create new structure1011028. **If README.md exists:** Check whether it requires diagrams. If it does,103 follow `dev-swarm/docs/mermaid-diagram-guide.md` and use the104 `dev-swarm-mermaid` skill to render outputs.1051069. **Read source code structure guidance (mandatory):**107 - Read `dev-swarm/docs/source-code-structure.md`108 - Use it as the baseline when creating `07-tech-specs/source-code-structure.md`10911010. Proceed to Step 1 with gathered context111112### Step 1: Refine Design Requirements in README and Get Approval113114**CRITICAL: Create/update README.md first without pre-approval. Then ask the user to review/update/approve it, re-read it after approval, and only then create other docs.**1151161. **Analyze information from previous stages:**117 - Read `06-architecture/` to understand system components and deployment118 - Read `05-ux/mockups/styles.css` to extract theme (CRITICAL for theme-standards.md)119 - Read `04-prd/` to understand non-functional requirements120 - Read `03-mvp/` (if exists) to understand what to prioritize121 - Consider cost-budget constraints for this stage1221232. **Create or update 07-tech-specs/README.md with refined requirements:**124 - Use the template in `references/README.md`125 - Follow the checkbox rules: checked items apply after README approval; create file items only after approval; propose default checks; allow user changes126 - Populate only the template sections; do not add new headings such as Documents or Deliverables127 - Follow `dev-swarm/docs/stage-readme-guidelines.md` before drafting128 - Refer to `references/deliverables.md` to select deliverables by project type129 - Present any choices as checkbox lists with a default selection130 - **For L2 projects:** Create a simple README (just several lines) indicating the project level and that only `tech-stack.md` is required.131 - **For L3+ projects:** List deliverables explicitly in README (typical: tech-stack.md, security.md, theme-standards.md, coding-standards.md, source-code-structure.md, testing-standards.md, security-standards.md)132 - **Stage overview and objectives** (based on previous stage context)133 - **Owners:** Tech Manager (lead), Security Engineer, UI Designer, DevOps Engineer134 - **Diagrams (if required by project init):**135 - Reference `dev-swarm/docs/mermaid-diagram-guide.md`136 - Include `diagram/` deliverables when needed137 - **What tech specs will include:**138 - Technology stack selection with rationale139 - Security posture and authentication approach140 - Theme standards extracted from UX mockup (CRITICAL)141 - Coding standards and best practices142 - Testing standards and coverage requirements143 - Security standards for secure coding144 - **Methodology:**145 - How tech stack will be selected (based on architecture + requirements)146 - How theme will be extracted from mockup CSS (DO NOT invent values)147 - **Deliverables planned:**148 - List of files that will be created (tech-stack.md, theme-standards.md, etc.)149 - **Status:** In Progress (update to "Completed" after implementation)1501513. **Notify user after README is created:**152 - Say: "I have created README.md file, please check and update or approve the content."153 - Summarize the tech specs approach and what will be defined154 - Summarize what documentation files will be created155 - Explain how it aligns with previous stages1561574. **Wait for user approval:**158 - **If user says yes:** Re-read README.md (user may have updated it), then proceed to Step 2159 - **If user says no:**160 - Ask what needs to be changed161 - Update README based on feedback162 - Ask for approval again, then re-read README.md before proceeding163164### Step 2: Create/Update Tech Specs Structure165166**Only after user approves the README and you re-read it:**1671681. **Create files as specified in the approved README.md:**169170 **IMPORTANT:** The file structure below is a SAMPLE only. The actual files you create must follow what was approved in the README.md in Step 1.171172 **Typical structure (example):**173 ```174 07-tech-specs/175 ├── README.md (created in Step 1, then reviewed/approved)176 ├── tech-stack.md (if specified in README)177 ├── security.md (if specified in README)178 ├── theme-standards.md (if specified in README - MUST extract from UX mockup)179 ├── coding-standards.md (if specified in README)180 ├── source-code-structure.md (if specified in README)181 ├── testing-standards.md (if specified in README)182 └── security-standards.md (if specified in README)183 ```184185 **Create only the files listed in the README's "Deliverables planned" section.**186187### Step 3: Create/Update Technical Specifications Documentation188189**IMPORTANT: Only create tech specs documentation after README is approved in Step 1 and re-read.**190191**NOTE:** Use `references/deliverables.md` for file-by-file content guidance. Adapt based on the approved README and project needs.192193### Step 4: Ensure Alignment194195Make sure tech specs align with:196- Architecture from 06-architecture/197- Non-functional requirements from 04-prd/non-functional-requirements.md198- **UX mockup theme** from 05-ux/mockups/styles.css (CRITICAL for theme-standards.md)199- MVP scope from 03-mvp/ (prioritize tech choices for MVP)200201Verify that:202- Tech stack can implement the architecture203- Theme standards match the UX mockup exactly204- Security standards address requirements205- Testing standards ensure quality206- Coding standards are clear and enforceable207208### Step 5: Final User Review2092101. **Inform user that tech specs are complete**2112. **Update README.md:**212 - Change **Status** from "In Progress" to "Completed"213 - Add a **Summary** section with key insights (2-3 paragraphs)214 - Add a **Created Files** section listing all created files2152163. **Present completed work to user:**217 - Review chosen tech stack and rationale218 - Show theme standards extracted from UX mockup219 - Explain security approach220 - Walk through coding and testing standards2212224. **Highlight key insights:**223 - Frontend framework choice and why224 - Backend framework choice and why225 - Database choice and why226 - **Theme values extracted from mockup** (show side-by-side)227 - Security compliance level228 - Test coverage requirements2292305. **Ask questions:**231 - Comfortable with tech stack choices?232 - Theme standards match their vision?233 - Any security concerns?234 - Testing requirements achievable?235 - Ready to proceed to next stage (DevOps)?2362376. Make adjustments based on user feedback if needed238239### Step 6: Commit to Git (if user confirms)2402411. **If user confirms tech specs are complete:**242 - Ask if they want to commit to git2432. **If user wants to commit:**244 - Stage all changes in `07-tech-specs/`245 - Commit with message: "Define tech stack and engineering standards (Stage 7)"