sdd-toolkit 2.0.2 โ†’ 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -51,7 +51,7 @@ Reads agnostic definitions (YAML) and converts them to specific formats:
51
51
  - **Cursor:** Generates rules in `.cursor/commands/*.mdc`.
52
52
  - **Windsurf:** Generates workflows in `.windsurf/workflows/*.md`.
53
53
  - **Trae:** Generates instructions in `.trae/instructions.md`.
54
- - **OpenCode:** Generates agents in `.opencode/commands/*.md`.
54
+ - **OpenCode:** Generates skills in `.opencode/skills/`.
55
55
  - **Kilo Code:** Generates Markdown prompts (`.kilocode/workflows/*.md`).
56
56
 
57
57
  ## ๐Ÿ‘ฅ The Squad (Agent Roles)
@@ -190,17 +190,17 @@ Once agents are installed, use these commands in your AI coding assistant:
190
190
 
191
191
  After running `sdd-toolkit`, the following structure is created in your project:
192
192
 
193
- ```
194
- .sdd-toolkit/
195
- โ”œโ”€โ”€ project.md # Project scope and principles
196
- โ”œโ”€โ”€ requirements.md # Technical requirements and stack
197
- โ”œโ”€โ”€ milestones.md # Development roadmap
198
- โ”œโ”€โ”€ task.md # Task execution backlog
199
- โ”œโ”€โ”€ features/ # Individual feature specifications
200
- โ”‚ โ””โ”€โ”€ [feature-name].md
201
- โ”œโ”€โ”€ logs/
202
- โ”‚ โ”œโ”€โ”€ executions/ # Task execution logs
203
- โ”‚ โ”œโ”€โ”€ reviews/ # Code review reports
193
+ ```
194
+ .sdd-toolkit/
195
+ โ”œโ”€โ”€ project.md # Project scope and principles
196
+ โ”œโ”€โ”€ requirements.md # Technical requirements and stack
197
+ โ”œโ”€โ”€ milestones.md # Development roadmap
198
+ โ”œโ”€โ”€ task.md # Task execution backlog
199
+ โ”œโ”€โ”€ features/ # Individual feature specifications
200
+ โ”‚ โ””โ”€โ”€ [feature-name].md
201
+ โ”œโ”€โ”€ logs/
202
+ โ”‚ โ”œโ”€โ”€ executions/ # Task execution logs
203
+ โ”‚ โ”œโ”€โ”€ reviews/ # Code review reports
204
204
  โ”‚ โ””โ”€โ”€ archive/ # Archived completed work
205
205
  โ””โ”€โ”€ agents/ # Custom agent definitions (optional overrides)
206
206
  ```
@@ -327,7 +327,7 @@ MIT
327
327
  - Re-run `sdd-toolkit` and ensure you select the correct language during setup (English, Portuguese, or Spanish).
328
328
  - Or manually edit the `LANGUAGE_RULES` in your agent files.
329
329
 
330
- ### `.sdd-toolkit/` folder not created
330
+ ### `.sdd-toolkit/` folder not created
331
331
 
332
332
  **Problem:** The hidden folder structure is not created after installation.
333
333
 
@@ -343,9 +343,9 @@ MIT
343
343
 
344
344
  A: Yes! You can install agents for multiple AI tools in the same project. Each tool has its own folder structure (`.roo/`, `.cline/`, `.cursor/`, etc.) and they can coexist without conflicts.
345
345
 
346
- **Q: How do I update agents after initial setup?**
347
-
348
- A: Run `sdd-toolkit upgrade`. This will update all installed agents without requiring you to reconfigure global rules.
346
+ **Q: How do I update agents after initial setup?**
347
+
348
+ A: Run `sdd-toolkit upgrade`. This will update all installed agents without requiring you to reconfigure global rules.
349
349
 
350
350
  **Q: Can I customize agent definitions?**
351
351
 
@@ -371,10 +371,10 @@ A: Simply delete the `.sdd-toolkit/` folder and any tool-specific folders (`.roo
371
371
 
372
372
  A: No, sdd-toolkit only manages documentation and AI agent configurations. It does not track code changes, read your source files, or interfere with version control.
373
373
 
374
- **Q: How do I define my tech stack and conventions?**
375
-
376
- A: Use the Requirements Engineer agent (`/sdd.requirements`) to define your tech stack. The agent will interview you with detailed questions about frontend, backend, database, and infrastructure. Stack-specific conventions can also be added via "Global Rules" during setup or by manually editing `.sdd-toolkit/requirements.md`.
374
+ **Q: How do I define my tech stack and conventions?**
375
+
376
+ A: Use the Requirements Engineer agent (`/sdd.requirements`) to define your tech stack. The agent will interview you with detailed questions about frontend, backend, database, and infrastructure. Stack-specific conventions can also be added via "Global Rules" during setup or by manually editing `.sdd-toolkit/requirements.md`.
377
+
378
+ **Q: Is this suitable for enterprise projects?**
377
379
 
378
- **Q: Is this suitable for enterprise projects?**
379
-
380
- A: Yes, sdd-toolkit is designed to scale. The `.sdd-toolkit/` folder can be committed to your repository, ensuring all team members use the same agent configurations and follow the same development principles defined in `requirements.md` and `project.md`. Stack-specific conventions are automatically applied via selected profile during agent installation.
380
+ A: Yes, sdd-toolkit is designed to scale. The `.sdd-toolkit/` folder can be committed to your repository, ensuring all team members use the same agent configurations and follow the same development principles defined in `requirements.md` and `project.md`. Stack-specific conventions are automatically applied via selected profile during agent installation.
@@ -0,0 +1,114 @@
1
+ # AGENTS.md โ€” SDD Toolkit
2
+
3
+ This document describes the agent and skill structure of SDD Toolkit to guide coding agents.
4
+
5
+ ## Overview
6
+
7
+ SDD Toolkit is a collaborative agent system for specification-driven development. Agents work as a team, each with specific responsibilities.
8
+
9
+ ## Available Agents
10
+
11
+ | Command | Agent | Emoji | Responsibility |
12
+ |---------|--------|-------|----------------|
13
+ | `/sdd.project` | Project Architect | ๐Ÿ›๏ธ | Defines project scope and vision |
14
+ | `/sdd.requirements` | Requirements Engineer | ๐Ÿ“ | Documents requirements and tech stack |
15
+ | `/sdd.feature` | Feature Manager | โœจ | Manages features and milestones |
16
+ | `/sdd.coder` | Coder | ๐Ÿ’ป | Implements code following SOLID |
17
+ | `/sdd.frontend` | Frontend Architect | ๐ŸŽจ | Design and UI/UX (framework-agnostic) |
18
+ | `/sdd.backend` | Backend Architect | โš™๏ธ | APIs and server-side systems (agnostic) |
19
+ | `/sdd.test` | Test Engineer | ๐Ÿงช | Automated testing and TDD |
20
+ | `/sdd.review` | QA Engineer | ๐Ÿ” | Reviews and validates code quality |
21
+ | `/sdd.security` | Security Auditor | ๐Ÿ›ก๏ธ | Security analysis following OWASP Top 10 |
22
+ | `/sdd.prompt` | Prompt Architect | ๐Ÿง  | Creates AI prompts and agents |
23
+ | `/sdd.log` | Release Manager | ๐Ÿ“ฆ | Consolidates logs and manages changelog |
24
+
25
+ ## Workflow
26
+
27
+ ```
28
+ Project Architect โ†’ Requirements Engineer โ†’ Feature Manager โ†’ Coder โ†’ Security Auditor โ†’ QA Engineer โ†’ Release Manager
29
+ ๐Ÿ›๏ธ ๐Ÿ“ โœจ ๐Ÿ’ป ๐Ÿ›ก๏ธ ๐Ÿ” ๐Ÿ“ฆ
30
+ ```
31
+
32
+ ## File Structure
33
+
34
+ ```
35
+ definitions/
36
+ โ”œโ”€โ”€ AGENTS.md # This file (main index)
37
+ โ”œโ”€โ”€ sdd-project.yaml # Project Architect
38
+ โ”œโ”€โ”€ sdd-requirements.yaml # Requirements Engineer
39
+ โ”œโ”€โ”€ sdd-feature.yaml # Feature Manager
40
+ โ”œโ”€โ”€ sdd-coder.yaml # Coder
41
+ โ”œโ”€โ”€ sdd-frontend.yaml # Frontend Architect (Agnostic)
42
+ โ”œโ”€โ”€ sdd-backend.yaml # Backend Architect (Agnostic)
43
+ โ”œโ”€โ”€ sdd-test.yaml # Test Engineer (TDD)
44
+ โ”œโ”€โ”€ sdd-review.yaml # QA Engineer
45
+ โ”œโ”€โ”€ sdd-security.yaml # Security Auditor (OWASP)
46
+ โ”œโ”€โ”€ sdd-prompt.yaml # Prompt Architect (Meta-Agent)
47
+ โ”œโ”€โ”€ sdd-log.yaml # Release Manager
48
+ โ””โ”€โ”€ skills/ # Reusable skills
49
+ โ”œโ”€โ”€ handover-protocol/
50
+ โ”‚ โ””โ”€โ”€ SKILL.md
51
+ โ””โ”€โ”€ detect-manifest/
52
+ โ””โ”€โ”€ SKILL.md
53
+ ```
54
+
55
+ ## Available Skills
56
+
57
+ Skills are reusable instruction modules that agents can load on demand.
58
+
59
+ | Skill | Description | Used By |
60
+ |-------|-------------|---------|
61
+ | `handover-protocol` | Handover protocol between agents | All |
62
+ | `detect-manifest` | Detects manifests and identifies tech stack | Project, Requirements, Coder |
63
+
64
+ ### How to Use a Skill
65
+
66
+ 1. Read the `skills/[name]/SKILL.md` file before executing
67
+ 2. Follow the instructions contained in the skill
68
+ 3. Return to main flow after completion
69
+
70
+ ## Generated Artifacts
71
+
72
+ Agents generate documentation in the `.sdd-toolkit/` folder:
73
+
74
+ ```
75
+ .sdd-toolkit/
76
+ โ”œโ”€โ”€ project.md # Conceptual scope (Project Architect)
77
+ โ”œโ”€โ”€ requirements.md # Requirements and stack (Requirements Engineer)
78
+ โ”œโ”€โ”€ context.md # Feature matrix
79
+ โ”œโ”€โ”€ features/ # Active features
80
+ โ”‚ โ””โ”€โ”€ [feature-slug]/
81
+ โ”‚ โ”œโ”€โ”€ index.md # Feature overview
82
+ โ”‚ โ”œโ”€โ”€ state.md # Progress and context
83
+ โ”‚ โ”œโ”€โ”€ MT01.md # Milestone 1 with tasks
84
+ โ”‚ โ”œโ”€โ”€ MT02.md # Milestone 2 with tasks
85
+ โ”‚ โ””โ”€โ”€ ... # (MTXX = Milestone XX)
86
+ โ””โ”€โ”€ logs/ # Execution history
87
+ โ”œโ”€โ”€ executions/ # Executed task logs
88
+ โ”œโ”€โ”€ reviews/ # Review reports
89
+ โ””โ”€โ”€ archive/ # Archived logs after release
90
+ ```
91
+
92
+ ## Build and Test Commands
93
+
94
+ ```bash
95
+ # Install dependencies
96
+ npm install
97
+
98
+ # Run CLI
99
+ npm start
100
+
101
+ # Check available agents
102
+ node src/index.js
103
+ ```
104
+
105
+ ## Code Conventions
106
+
107
+ - **Language**: English for documentation and responses
108
+ - **Agent format**: YAML with frontmatter
109
+ - **Skill format**: Markdown with YAML frontmatter
110
+ - **Handover**: Always use the handover protocol
111
+
112
+ ## Reference
113
+
114
+ This format follows the [AGENTS.md](https://agents.md/) convention for compatibility with multiple coding agents.
@@ -0,0 +1,248 @@
1
+ # RULES.md โ€” SDD Toolkit Usage Rules
2
+
3
+ This document defines usage rules, folder structure, and where to document each type of artifact.
4
+
5
+ ---
6
+
7
+ ## ๐Ÿ“ Target Project Folder Structure
8
+
9
+ All agents work with the `.sdd-toolkit/` folder in the target project:
10
+
11
+ ```
12
+ .sdd-toolkit/
13
+ โ”œโ”€โ”€ project.md # Conceptual project scope
14
+ โ”œโ”€โ”€ requirements.md # Functional requirements + Tech stack
15
+ โ”œโ”€โ”€ context.md # Feature matrix (global view)
16
+ โ”œโ”€โ”€ system.md # System state (deploys, migrations)
17
+ โ”‚
18
+ โ”œโ”€โ”€ features/ # Active features
19
+ โ”‚ โ””โ”€โ”€ [feature-slug]/
20
+ โ”‚ โ”œโ”€โ”€ index.md # Feature overview
21
+ โ”‚ โ”œโ”€โ”€ state.md # Progress + context + created files
22
+ โ”‚ โ”œโ”€โ”€ MT01.md # Milestone 1 with tasks
23
+ โ”‚ โ”œโ”€โ”€ MT02.md # Milestone 2 with tasks
24
+ โ”‚ โ””โ”€โ”€ ...
25
+ โ”‚
26
+ โ””โ”€โ”€ logs/ # Execution history
27
+ โ”œโ”€โ”€ executions/ # Executed task logs
28
+ โ”‚ โ””โ”€โ”€ [Task_ID].md # Ex: MT01-task-1.md
29
+ โ”œโ”€โ”€ reviews/ # Review logs
30
+ โ”‚ โ””โ”€โ”€ [Task_ID]-REVIEW.md
31
+ โ””โ”€โ”€ archive/ # Archived logs after release
32
+ โ””โ”€โ”€ [feature-slug]/
33
+ ```
34
+
35
+ ---
36
+
37
+ ## ๐Ÿ“– What to Read Before Starting
38
+
39
+ ### Layered Reading Protocol (L1 โ†’ L2 โ†’ L3)
40
+
41
+ All agents must follow this protocol to avoid context explosion:
42
+
43
+ #### L1: Global Context (ALWAYS READ)
44
+ 1. `.sdd-toolkit/context.md` โ€” Feature matrix + executive summary
45
+ 2. `.sdd-toolkit/requirements.md` โ€” Tech stack + business rules
46
+
47
+ #### L2: Feature Context (IF WORKING ON A FEATURE)
48
+ 3. `.sdd-toolkit/features/[feature-slug]/index.md` โ€” Overview
49
+ 4. `.sdd-toolkit/features/[feature-slug]/state.md` โ€” Progress + context
50
+ 5. `.sdd-toolkit/features/[feature-slug]/[MILESTONE].md` โ€” Tasks
51
+
52
+ #### L3: Task Context (ON DEMAND)
53
+ 6. `.sdd-toolkit/logs/executions/[Task_ID].md` โ€” Previous execution log
54
+ 7. `.sdd-toolkit/logs/reviews/[Task_ID]-REVIEW.md` โ€” Previous review
55
+
56
+ ---
57
+
58
+ ## ๐Ÿ“ Where to Document Each Artifact Type
59
+
60
+ ### Project Scope (Project Architect ๐Ÿ›๏ธ)
61
+
62
+ | Artifact | Location | Description |
63
+ |----------|----------|-------------|
64
+ | Conceptual scope | `.sdd-toolkit/project.md` | Project constitution |
65
+
66
+ **Actions after creation:**
67
+ - Update `.sdd-toolkit/context.md` if applicable
68
+
69
+ ---
70
+
71
+ ### Requirements (Requirements Engineer ๐Ÿ“)
72
+
73
+ | Artifact | Location | Description |
74
+ |----------|----------|-------------|
75
+ | Functional requirements | `.sdd-toolkit/requirements.md` | Stack + FR + NFR + BR |
76
+
77
+ **Actions after creation:**
78
+ - Update `.sdd-toolkit/context.md` if there are relevant changes
79
+
80
+ ---
81
+
82
+ ### Features (Feature Manager โœจ)
83
+
84
+ | Artifact | Location | Description |
85
+ |----------|----------|-------------|
86
+ | Overview | `.sdd-toolkit/features/[slug]/index.md` | Objective + roadmap |
87
+ | State | `.sdd-toolkit/features/[slug]/state.md` | Progress + context |
88
+ | Milestones | `.sdd-toolkit/features/[slug]/MT01.md` | Milestone tasks |
89
+
90
+ **`index.md` Structure:**
91
+ ```markdown
92
+ # ๐Ÿš€ Feature: [Name]
93
+
94
+ ## Overview
95
+ - **Objective:** [Value description]
96
+ - **Linked Requirements:** [FR-XXX, FR-YYY]
97
+
98
+ ## Roadmap
99
+ - **MT01:** [Milestone Name]
100
+ - **MT02:** [Milestone Name]
101
+
102
+ ## Dependencies
103
+ - Depends on: [other features]
104
+ - Blocks: [other features]
105
+ ```
106
+
107
+ **`state.md` Structure:**
108
+ ```markdown
109
+ # ๐Ÿ“Š Feature: [Name] - State & Context
110
+
111
+ ## Progress
112
+ - **MT01:** โณ Not Started (0/X tasks)
113
+ - **MT02:** ๐Ÿ”„ In Progress (Y/Z tasks)
114
+
115
+ ## Current Work
116
+ - **Last Completed Task:** [Task_ID]
117
+ - **Current Task:** [Task_ID]
118
+
119
+ ## Technical Context (Created Files)
120
+ [File list]
121
+
122
+ ## Key Decisions
123
+ [YYYY-MM-DD] [DT] Description
124
+
125
+ ## Known Issues
126
+ [YYYY-MM-DD] [ISSUE] Description
127
+ ```
128
+
129
+ **Actions after creation:**
130
+ - ALWAYS update `.sdd-toolkit/context.md` with the new feature
131
+ - Initial status: "Not Started"
132
+
133
+ ---
134
+
135
+ ### Executed Tasks (Coder ๐Ÿ’ป)
136
+
137
+ | Artifact | Location | Description |
138
+ |----------|----------|-------------|
139
+ | Execution log | `.sdd-toolkit/logs/executions/[Task_ID].md` | What was done |
140
+
141
+ **Execution log structure:**
142
+ ```markdown
143
+ **Task:** [Task_ID]
144
+ **Status:** Completed
145
+ **Feature:** [feature-slug]
146
+
147
+ **Changes:**
148
+ - Created `src/components/Button.tsx`
149
+ - Updated `src/utils/helpers.ts`
150
+
151
+ **Technical Reasoning:**
152
+ - Decision A: Technical justification.
153
+
154
+ **Self-Check:**
155
+ - [x] Linter Passed
156
+ - [x] Tests Passed (if applicable)
157
+ ```
158
+
159
+ **Actions after each task:**
160
+ 1. Create log in `.sdd-toolkit/logs/executions/[Task_ID].md`
161
+ 2. Update `.sdd-toolkit/features/[slug]/state.md` (Progress, Current Work, Files)
162
+ 3. Update `.sdd-toolkit/context.md` (Feature Matrix)
163
+ 4. Mark task as completed in `[MILESTONE].md`
164
+
165
+ ---
166
+
167
+ ### Reviews (QA Engineer ๐Ÿ”)
168
+
169
+ | Artifact | Location | Description |
170
+ |----------|----------|-------------|
171
+ | Review report | `.sdd-toolkit/logs/reviews/[Task_ID]-REVIEW.md` | Approval/Rejection |
172
+
173
+ **Report structure:**
174
+ ```markdown
175
+ ### ๐Ÿ”ฌ REVIEW RECORD
176
+
177
+ **Task_ID:** [Task_ID]
178
+ **Reviewer:** Senior QA Engineer
179
+ **Status:** Approved / Rejected
180
+
181
+ **Checklist:**
182
+ - [x] Business logic verified
183
+ - [x] Adequate test coverage
184
+ - [x] DoD compliance
185
+
186
+ **Items for Correction:** (if rejected)
187
+ - [Problem description]
188
+ ```
189
+
190
+ **Actions after review:**
191
+ 1. Create report in `.sdd-toolkit/logs/reviews/[Task_ID]-REVIEW.md`
192
+ 2. Update `.sdd-toolkit/features/[slug]/state.md`
193
+ 3. If approved: indicate next task or milestone
194
+ 4. If rejected: list items for correction
195
+
196
+ ---
197
+
198
+ ### Releases (Release Manager ๐Ÿ“ฆ)
199
+
200
+ | Artifact | Location | Description |
201
+ |----------|----------|-------------|
202
+ | Changelog | `changelog.md` (project root) | Version history |
203
+ | Archived logs | `.sdd-toolkit/logs/archive/[feature-slug]/` | Processed logs |
204
+
205
+ **Changelog structure:**
206
+ ```markdown
207
+ ## [v1.0.1] - 2024-03-20
208
+
209
+ ### Added
210
+ - New feature X
211
+
212
+ ### Changed
213
+ - Improvements to Y
214
+
215
+ ### Fixed
216
+ - Bug Z
217
+ ```
218
+
219
+ **Actions after release:**
220
+ 1. Add version to top of `changelog.md`
221
+ 2. Move logs from `executions/` and `reviews/` to `archive/[feature-slug]/`
222
+ 3. Update `.sdd-toolkit/context.md` to mark feature as "Completed"
223
+ 4. Update `.sdd-toolkit/system.md` if necessary
224
+
225
+ ---
226
+
227
+ ## ๐Ÿท๏ธ Standard Naming Conventions
228
+
229
+ | Element | Format | Example |
230
+ |---------|--------|---------|
231
+ | Feature slug | `kebab-case` | `user-authentication` |
232
+ | Milestone | `MTXX` | `MT01`, `MT02` |
233
+ | Task ID | `MTXX-task Y` | `MT01-task 1` |
234
+ | Functional Requirement | `FR-XXX` | `FR-001` |
235
+ | Business Rule | `BR-XXX` | `BR-001` |
236
+ | Non-Functional Requirement | `NFR-XXX` | `NFR-001` |
237
+ | Temporary features | `fix-[name]` or `refactor-[name]` | `fix-login-bug` |
238
+
239
+ ---
240
+
241
+ ## โš ๏ธ Critical Rules
242
+
243
+ 1. **Logs are global** โ€” DO NOT create `logs/` folder inside features
244
+ 2. **Always update state.md** โ€” After EACH executed task
245
+ 3. **Always update context.md** โ€” After feature status changes
246
+ 4. **Maximum 5 tasks per milestone** โ€” If exceeded, create new milestone
247
+ 5. **Do not delete logs** โ€” Archive in `logs/archive/` after release
248
+ 6. **Language** โ€” Respond in the user's language (English by default)