- Home
- Skills
- Agents & Orchestration
- SDD Spec Architect
Works with the AI Agents you already use
SDD Spec Architect
Architects software specifications, architecture decisions, and dependency-ordered tasks from ambiguous requests.
$19
SDD Spec Architect
Example session with this skill installed
Create a specification for adding a JWT-based authentication middleware to our existing Express.js API. Check the /src folder for current patterns.
- Read your context and instructions
- Compiled the sdd spec architect
I have analyzed the /src directory. The project currently uses a custom ErrorHandler in middleware/ but lacks a session or token validation layer. I have drafted the technical specification below.
Technical Specification: JWT Middleware
| ID | Requirement | Acceptance Criteria |
|---|---|---|
| REQ-01 | Token Extraction | Extract Bearer token from Authorization header; return 401 if missing. |
| REQ-02 | Signature Validation | Verify token against process.env.JWT_SECRET using jsonwebtoken library. |
| REQ-03 | Context Injection | Attach decoded payload to req.user for downstream route access. |
| REQ-04 | Expiry Handling | Reject tokens that have passed their exp claim with a specific 'Token Expired' message. |
Architecture Decisions
- Library: Using
jsonwebtokenfor industry-standard compatibility. - Strategy: Stateless JWT validation to maintain horizontal scalability of the API nodes.
- Failure Path: Unauthorized requests will be passed to the existing
ErrorHandlervianext(err).
Implementation Tasks
- [TASK-01] Install
jsonwebtokenand@types/jsonwebtoken. (Dep: None) - [TASK-02] Create
src/middleware/auth.tsimplementing REQ-01 through REQ-04. (Dep: TASK-01)
[TASK-03] Create unit tests in tests/middleware/auth.test.ts for valid, expired, and malformed tokens. (Dep: TASK-02)
4. [TASK-04] Apply middleware to protected routes in src/routes/user.ts. (Dep: TASK-03)
Verification (NOT RUN)
npm test tests/middleware/auth.test.ts- Manual curl:
curl -H "Authorization: Bearer <invalid_token>" http://localhost:3000/api/profile
Next steps
- Confirm the list of protected route files.
- Provide the
JWT_SECRETfor the local.envtest environment. - Approve this spec to proceed with task implementation.
Connects securely to your tools. The creator never sees your data.
About this skill
Software projects often stall due to ambiguous requirements and unplanned technical debt. This skill acts as a Specification-Driven Development (SDD) architect to bridge the gap between high-level ideas and executable code. It enforces a rigorous pre-coding phase where system design, edge cases, and dependency-ordered tasks are defined before a single line of logic is written.
What it does
- Requirement Analysis: Converts vague objectives into numbered functional and nonfunctional requirements.
- System Architecture: Proposes data contracts, failure paths, and rollback strategies while recording architectural decisions.
- Task Orchestration: Generates dependency-ordered implementation tasks mapped directly to requirement IDs.
- Traceability Auditing: Ensures every requirement has at least one measurable acceptance criterion and verification step.
- Risk Assessment: Identifies blockers, security considerations, and unknowns that require stakeholder approval.
How it works
- Context Analysis: The agent scans the repository, project conventions, and existing modules to distinguish facts from assumptions.
- Scoping: It defines goals, non-goals, and constraints while surfacing targeted questions for any discovered ambiguities.
- Spec Drafting: The agent builds the technical specification, including architecture decisions and measurable acceptance criteria.
- Tasking: It breaks down the plan into prioritized tasks with inputs, outputs, and verifiable completion triggers.
Frameworks & tools
This skill is framework-agnostic and works with any stack. It is designed for use within agentic IDEs like Claude Code, Cursor, or Windsurf that support SKILL.md definitions and local repository context.
Why this beats prompting it yourself
Standard prompts often skip the "audit" phase, leading to missing edge cases or circular dependencies. This skill enforces a structured SDD workflow that separates planning from execution, ensuring every task is grounded in verified repository context rather than AI hallucinations.
Use cases
- Translate a messy PRD or Slack thread into a formal technical design document.
- Map out complex feature migrations where dependency ordering is critical.
- Create testable acceptance criteria for QA and engineering alignment.
- Audit existing project context to identify technical risks before starting a sprint.
Known limitations
The skill requires clear user objectives and repository access to be effective. It will not execute code or perform destructive operations like git merges without explicit separate authorization.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean 2 days ago
- Passed all security checks, Safe to install