tech-spec-planning
Skill1 starsChanged 9 months agoMITView on GitHub
Creates tech-spec.md with architecture, decisions, testing strategy, and implementation plan.
2 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- AgentShekel/agentic-workflowedited, first seen Oct 14, 2026
- stepanenkoviktor0110-boop/ai-dev-methodologyedited, first seen May 31, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- AgentShekel/agentic-workflow★ 425% same
- stepanenkoviktor0110-boop/ai-dev-methodology★ 217% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- skills/skill-master/references/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- code-reviewingSkill
- code-writingSkill
- deploy-pipelineSkill
- documentation-writingSkill
- feature-executionSkill
- infrastructure-setupSkill
- methodologySkill
- post-deploy-qaSkill
- pre-deploy-qaSkill
- project-planningSkill
- prompt-masterSkill
- security-auditorSkill
- skill-masterSkill
- skill-test-designerSkill
- skill-testerSkill
- task-decompositionSkill
- test-masterSkill
- user-spec-planningSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 10 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Create technical specification through code research, adaptive clarification, and multi-validator review.
- Very specific: line 22
Ask user for feature name if not provided.
- Very specific: line 24
Read work/{feature}/user-spec.md.
- Very specific: line 27
Read all files in .claude/skills/project-knowledge/references/ (project.md, architecture.md, patterns.md, deployment.md, ux-guidelines.md, …
- Very specific: line 40
After subagent completes — read {feature_path}/code-research.md.
- Very specific: line 42
If during later phases a gap is discovered — launch code-researcher again with the specific question.
- Distinctive: line 52
Ask technical questions if gaps exist.
- Distinctive: line 54
If gaps found in user-spec requirements — discuss with user and update user-spec too (via subagent or directly).
- Distinctive: line 55
If requirements are fundamentally unclear — suggest creating user-spec first.
- Very specific: line 86
Write Verify-user: when user should check something: UI on localhost, behavior, UX.
- Distinctive: line 92
All technical decisions belong in the Decisions section, not in task descriptions.
- Distinctive: line 139
Read all 5 reports. For each finding:
- Distinctive: line 146
If fixes were made:
- Distinctive: line 152
If problems remain after 3 iterations — show user: "Validation didn't pass in 3 iterations.
- Distinctive: line 163
Wait for explicit approval.
- Distinctive: line 164
If user has comments — fix, re-validate, show again.
- Very specific: line 165
After approval: update status: draft → status: approved in tech-spec frontmatter.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tech Spec Planning
Create technical specification through code research, adaptive clarification, and multi-validator review.
Input: work/{feature}/user-spec.md + Project Knowledge
Output: work/{feature}/tech-spec.md (approved)
Language: Technical documentation in English, communication in English
Phase 1: Load Context
- Ask user for feature name if not provided. Check
work/{feature}/exists, create if needed. - Read
work/{feature}/user-spec.md. If missing — ask user to describe the task or create user-spec first. Extractsize: S|M|Lfrom user-spec frontmatter — it determines testing strategy depth in tech-spec. - Read all files in
.claude/skills/project-knowledge/references/(project.md, architecture.md, patterns.md, deployment.md, ux-guidelines.md, and any custom domain files). Missing files are fine — not all projects have all guides. - user-spec.md is the single input source — all information from interview.yml and code research is already consolidated there.
Checkpoint:
- Feature folder exists
- user-spec.md read, size extracted
- Project Knowledge read
Phase 2: Code Research
Launch code-researcher subagent (Task tool, opus) with feature path and user-spec path. The agent reads existing code-research.md (from user-spec phase if available) and deepens analysis for implementation.
After subagent completes — read {feature_path}/code-research.md. Use in Phase 3 clarification and Phase 4 spec writing.
If during later phases a gap is discovered — launch code-researcher again with the specific question.
Checkpoint:
- code-research.md created/updated with implementation-level analysis
- Research file read by orchestrator
Phase 3: Clarification (Adaptive)
Analyze if additional information is needed based on user-spec and code research.
- Ask technical questions if gaps exist. No limit on question count — ask as many as needed.
- Focus: technical constraints, integration points, data sources, external dependencies.
- If gaps found in user-spec requirements — discuss with user and update user-spec too (via subagent or directly).
- If requirements are fundamentally unclear — suggest creating user-spec first.
Checkpoint:
- All technical gaps clarified (or none existed)
Phase 4: Create tech-spec
- Copy template to feature folder:
Then edit sections one by one using Edit tool. This keeps template structure and examples visible while you work.cp ~/.claude/shared/work-templates/tech-spec.md.template work/{feature}/tech-spec.md - Fill frontmatter:
created: today's datestatus: draftsize: copy from user-spec (S|M|L)branch:dev(simple change, single component) orfeature/{name}(multiple components, architectural changes)
- Fill all template sections. The template defines section structure — follow it directly. In Architecture → Shared Resources: list heavy resources (ML models, DB pools, browser instances, API clients) shared across components. Specify owner (who creates), consumers, instance count. If none — write "None".
Fill Implementation Tasks by waves. For each task provide: Description, Skill, Reviewers, Verify-smoke (optional), Verify-user (optional), Files to modify, Files to read. Select skill and reviewers from skills-and-reviewers.md (execution skills catalog, reviewer agents, default mappings).
For each task, write
Verify-smoke:when the task involves:- External API integration → curl/httpie command to real endpoint with expected response
- Library/model initialization →
python -cor import check that verifies setup - Docker/infrastructure →
docker compose build,docker runcommands - LLM/prompt work → spawn agent with prompt + test question, check response
- External service API (OpenRouter, Stripe, etc.) → test API call with expected response
- MCP-verifiable UI/frontend → use Playwright MCP or similar to check rendered page
Write
Verify-user:when user should check something: UI on localhost, behavior, UX. Omit both if task is purely internal logic covered by unit tests.
Task brevity rules:
- Tasks are brief scope descriptions (2-3 sentences). Detailed steps, AC, and TDD anchors are created during task-decomposition phase.
- Task Description answers WHAT and WHY, not HOW. No step-by-step instructions, no line numbers, no implementation details.
- All technical decisions belong in the Decisions section, not in task descriptions. If you're writing a decision rationale inside a task — move it to Decisions.
The last two waves are always Audit Wave and Final Wave, in that order:
Audit Wave (always present) — 3 tasks running in parallel,
reviewers: none:- Code Audit (skill:
code-reviewing) — holistic code quality review of all feature code - Security Audit (skill:
security-auditor) — OWASP Top 10 across all components - Test Audit (skill:
test-master) — test quality and coverage across all components
Auditors read all source files from the feature and write reports (analysis only). If issues found — feature-execution lead spawns a fixer agent, auditors become reviewers for the fix.
Final Wave:
- QA (skill:
pre-deploy-qa) — always present. Acceptance testing: run all tests, verify acceptance criteria from user-spec and tech-spec. - Deploy (skill:
deploy-pipeline) — only if deploy is needed for this feature. - Post-deploy verification (skill:
post-deploy-qa) — only if live-environment checks are needed (MCP tools listed in Agent Verification Plan → Tools required). QA is mandatory. Deploy and post-deploy — if applicable.
- Code Audit (skill:
- Task Count Check: if >15 tasks — propose splitting into MVP + Extension phases. Wait for user decision.
- Git commit:
draft(techspec): create tech-spec for {feature}
Checkpoint:
- tech-spec.md created in work/{feature}/ with all sections
- Implementation Tasks include Description (2-3 sentences), skill, reviewers for each task
- No AC or TDD anchors in tasks (those come from task-decomposition phase)
- Technical decisions are in Decisions section, not in task descriptions
- Final Wave present with QA (mandatory) + Deploy/Post-deploy (if applicable)
- Task count ≤15 (or user approved larger scope)
Phase 5: Validation
Run 5 validators in parallel
Launch all as subagents, each writes JSON report to logs/techspec/{name}-review.json:
| Validator | Agent | Checks |
| Mirage detector | skeptic | Non-existent files, APIs, functions, dependencies |
| Completeness + adequacy | completeness-validator | Bidirectional traceability, scope creep, overengineering, underengineering, solution depth |
| Security | security-auditor | OWASP, input validation, auth, sensitive data |
| Testing strategy | test-reviewer | Test plan adequacy for feature size S/M/L |
| Template + wave conflicts | tech-spec-validator | All sections filled, frontmatter, format, skills/reviewers, wave conflict detection |
Pass to each validator: work/{feature}/tech-spec.md + work/{feature}/user-spec.md.
Process findings
Read all 5 reports. For each finding:
- Fix if clearly valid
- Reject with reasoning if disagree
- Discuss with user if controversial
Iterate if needed (up to 3 iterations)
If fixes were made:
- Apply targeted fixes directly in
work/{feature}/tech-spec.md. - Git commit:
chore(techspec): validation round {N} — {summary of fixes} - Re-run validators on updated tech-spec.
- Repeat up to 3 iterations.
If problems remain after 3 iterations — show user: "Validation didn't pass in 3 iterations. Here's what remains — let's resolve together."
Checkpoint:
- All 5 validators ran
- Findings processed (fixed / rejected / discussed)
- Final tech-spec.md placed in work/{feature}/
Phase 6: User Approval
- Show user the full tech-spec.md.
- Show validation summary: iterations count, issues found and resolved.
- Wait for explicit approval.
- If user has comments — fix, re-validate, show again.
- After approval: update
status: draft→status: approvedin tech-spec frontmatter. - Git commit:
chore(techspec): approve tech-spec for {feature} - Tell user next step: run
/decompose-tech-specto create task files.
Checkpoint:
- User explicitly approved tech-spec
- status = approved
Final Check
- tech-spec.md created with all sections (Implementation Tasks are brief scope descriptions)
- Validation passed (5 validators)
- User approved tech-spec
- status = approved in frontmatter
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

