sdd-toolkit 1.0.0 → 1.1.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 +133 -133
- package/definitions/dev.coder.yaml +59 -59
- package/package.json +40 -40
- package/src/index.js +207 -183
- package/src/lib/agents.js +125 -68
- package/src/lib/docs.js +104 -104
- package/src/lib/profiles.js +186 -0
- package/src/lib/schema.js +13 -13
- package/src/lib/transformers.js +199 -199
package/README.md
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
# sdd-toolkit (Universal Spec CLI)
|
|
2
|
-
|
|
3
|
-
CLI tool to automatically set up the development environment and install AI agents (Auditor, Coder, etc.) for various modern AI tools.
|
|
4
|
-
|
|
5
|
-
## Overview
|
|
6
|
-
|
|
7
|
-
**sdd-toolkit** is an "AI Agent Package Manager". It defines a standard squad of AI Developers and installs them directly into the context of your favorite AI Coding Assistant (such as Gemini, Roo Code, Kilo Code, OpenCode).
|
|
8
|
-
|
|
9
|
-
The main idea is to stop creating prompts from scratch and install a proven, structured workflow.
|
|
10
|
-
|
|
11
|
-
## Key Features
|
|
12
|
-
|
|
13
|
-
### 1. AI Agent Installation
|
|
14
|
-
Reads agnostic definitions (YAML) and converts them to specific formats:
|
|
15
|
-
* **Gemini CLI:** Generates `.toml` configuration files.
|
|
16
|
-
* **Roo Code / Cline:** Generates custom modes (`_custom_modes.json`) and context rules in `.roo/` or `.cline/`.
|
|
17
|
-
* **GitHub Copilot:** Generates instructions in `.github/copilot-instructions.md` and agents in `.github/agents/`.
|
|
18
|
-
* **Cursor:** Generates rules in `.cursor/rules/*.mdc`.
|
|
19
|
-
* **Windsurf:** Generates rules in `.windsurfrules`.
|
|
20
|
-
* **Trae:** Generates instructions in `.trae/instructions.md`.
|
|
21
|
-
* **OpenCode:** Generates agents in `.opencode/`.
|
|
22
|
-
* **OpenAI / Claude (Web):** Generates plain text prompts in the `prompts/` folder.
|
|
23
|
-
* **Kilo Code:** Generates Markdown prompts (`.kilo/prompts/*.md`).
|
|
24
|
-
|
|
25
|
-
### 2. Workflow Configuration
|
|
26
|
-
Automates the creation of the documentation structure (`docs/` and `docs/logs/`) to support the agents' workflow.
|
|
27
|
-
|
|
28
|
-
## 👥 The Squad (Agent Roles)
|
|
29
|
-
|
|
30
|
-
The system works best when you follow the defined pipeline. Each agent saves its "Brain" (context) in the `docs/` folder, which serves as the base for the next agent in the chain.
|
|
31
|
-
|
|
32
|
-
### 🏗️ 1. Project Architect
|
|
33
|
-
**"The Visionary"**
|
|
34
|
-
Transforms your raw idea into a professional specification. Acts as an interviewer to uncover hidden requirements.
|
|
35
|
-
- **Trigger:** `/dev.project "I want an Uber clone for dog walking"`
|
|
36
|
-
- **Action:** Asks clarifying questions about features, target audience, and constraints.
|
|
37
|
-
- **Output:** `docs/project.md` (Scope, User Stories, Fundamental Principles).
|
|
38
|
-
|
|
39
|
-
### 🧱 2. Requirements Engineer
|
|
40
|
-
**"The Technical Lead"**
|
|
41
|
-
Decides *how* to build. Defines the technology stack, database schema, and technical boundaries based on the specification.
|
|
42
|
-
- **Trigger:** `/dev.requirements`
|
|
43
|
-
- **Action:** Selects libraries (e.g., "Prisma vs TypeORM"), defines API contracts and security rules.
|
|
44
|
-
- **Output:** `docs/requirements.md` (The "Technical Contract" the Coder must obey).
|
|
45
|
-
|
|
46
|
-
### 🗺️ 3. Milestone Manager
|
|
47
|
-
**"The Strategist"**
|
|
48
|
-
Prevents you from trying to build everything at once. Breaks the project into logical "MVPs" (Phases).
|
|
49
|
-
- **Trigger:** `/dev.milestone`
|
|
50
|
-
- **Output:** `docs/milestones.md` (e.g., Phase 1: Auth, Phase 2: Payment, Phase 3: GPS).
|
|
51
|
-
|
|
52
|
-
### 📋 4. Task Planner
|
|
53
|
-
**"The Project Manager"**
|
|
54
|
-
Takes **ONE Milestone** and breaks it down into small, atomic tasks for the AI Coder.
|
|
55
|
-
- **Reasoning:** AI Coders hallucinate less when the context is small.
|
|
56
|
-
- **Trigger:** `/dev.tasks 1` (Plan Milestone 1)
|
|
57
|
-
- **Output:** `docs/task.md` (A checklist of 5-10 specific file operations).
|
|
58
|
-
|
|
59
|
-
### 🕵️ 5. Auditor
|
|
60
|
-
**"The Guardian"**
|
|
61
|
-
A safety check before coding starts. Reads the **Requirements** and **Task Plan** to ensure nothing was lost in translation.
|
|
62
|
-
- **Trigger:** `/dev.auditor`
|
|
63
|
-
- **Action:** "Hey, you planned the Login UI but forgot the 'Forgot Password' flow mentioned in the Requirements."
|
|
64
|
-
- **Output:** `audit_report.md` (Pass/Fail).
|
|
65
|
-
|
|
66
|
-
### 💻 6. Coder
|
|
67
|
-
**"The Senior Developer"**
|
|
68
|
-
The executor. Runs ONE checklist task at a time.
|
|
69
|
-
- **Features:**
|
|
70
|
-
- **Context Aware:** Reads `project.md` to know "Project Principles" (e.g., "Use Functional Components").
|
|
71
|
-
- **Safety:** Checks `.gitignore` before creating files.
|
|
72
|
-
- **TDD:** Can write tests before code if requested.
|
|
73
|
-
- **Trigger:** `/dev.coder 1.1` (Implement Task 1.1)
|
|
74
|
-
- **Output:** Writes code in `src/` and logs in `work_log.md`.
|
|
75
|
-
|
|
76
|
-
### ⚖️ 7. QA Engineer
|
|
77
|
-
**"The Reviewer"**
|
|
78
|
-
Simulates a Pull Request review. Checks if the code matches the Requirements contracts.
|
|
79
|
-
- **Trigger:** `/dev.review 1.1`
|
|
80
|
-
- **Action:** Reads the code and `requirements.md`. If variables are poorly named or logic is insecure, it REJECTS the task.
|
|
81
|
-
|
|
82
|
-
### 📦 8. Release Manager
|
|
83
|
-
**"The Historian"**
|
|
84
|
-
Consolidates the messy daily `work_log.md` into a clean `CHANGELOG`.
|
|
85
|
-
- **Trigger:** `/dev.log`
|
|
86
|
-
|
|
87
|
-
## 🛠️ On-Demand Toolkit
|
|
88
|
-
|
|
89
|
-
### 🏗️ DevOps Engineer
|
|
90
|
-
**"The Config Specialist"**
|
|
91
|
-
Call this agent specifically for infrastructure tasks, so you don't waste the main agent's context.
|
|
92
|
-
- **Trigger:** `/dev.ops`
|
|
93
|
-
- **Examples:** "Create Dockerfile", "Setup Github Actions", "Configure ESLint".
|
|
94
|
-
|
|
95
|
-
## Installation and Usage
|
|
96
|
-
|
|
97
|
-
You can run the tool directly via `npx` without prior installation:
|
|
98
|
-
|
|
99
|
-
```bash
|
|
100
|
-
npx sdd-toolkit
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Or install globally:
|
|
104
|
-
|
|
105
|
-
```bash
|
|
106
|
-
npm install -g sdd-toolkit
|
|
107
|
-
sdd-toolkit
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
## How the CLI Works
|
|
111
|
-
|
|
112
|
-
When you run `npx sdd-toolkit`, the installation wizard starts:
|
|
113
|
-
|
|
114
|
-
1. **Initialization:** The wizard asks which shell you use (Windows or Unix) and generates a custom workflow guide in the `docs/` folder.
|
|
115
|
-
2. **Agent Building:** The wizard reads agent definitions (either from the `definitions/` folder or a local `agents.md` file) and "compiles" them into your chosen AI assistant's format.
|
|
116
|
-
3. **Supported Destinations:**
|
|
117
|
-
- **Gemini CLI:** Generates `.toml` files in `.gemini/commands/`.
|
|
118
|
-
- **Roo Code / Cline:** Generates custom modes (`_custom_modes.json`) and rules in `.roo/` or `.cline/`.
|
|
119
|
-
- **GitHub Copilot:** Generates instructions in `.github/copilot-instructions.md` and agents in `.github/agents/`.
|
|
120
|
-
- **Kilo Code:** Generates workflows in `.kilocode/workflows/`.
|
|
121
|
-
- **OpenCode:** Generates files in `.opencode/command/`.
|
|
122
|
-
- **Others:** Support for Cursor, Windsurf, Trae, OpenAI/Claude Web.
|
|
123
|
-
|
|
124
|
-
This way, **sdd-toolkit** acts as a bridge between agent behavior definitions and the tool you use for coding, ensuring your AI "team" is always configured and ready to work.
|
|
125
|
-
|
|
126
|
-
## Project Structure
|
|
127
|
-
|
|
128
|
-
* `src/`: CLI source code.
|
|
129
|
-
* `definitions/`: YAML agent definitions (agnostic).
|
|
130
|
-
|
|
131
|
-
## License
|
|
132
|
-
|
|
133
|
-
MIT
|
|
1
|
+
# sdd-toolkit (Universal Spec CLI)
|
|
2
|
+
|
|
3
|
+
CLI tool to automatically set up the development environment and install AI agents (Auditor, Coder, etc.) for various modern AI tools.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
**sdd-toolkit** is an "AI Agent Package Manager". It defines a standard squad of AI Developers and installs them directly into the context of your favorite AI Coding Assistant (such as Gemini, Roo Code, Kilo Code, OpenCode).
|
|
8
|
+
|
|
9
|
+
The main idea is to stop creating prompts from scratch and install a proven, structured workflow.
|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
|
|
13
|
+
### 1. AI Agent Installation
|
|
14
|
+
Reads agnostic definitions (YAML) and converts them to specific formats:
|
|
15
|
+
* **Gemini CLI:** Generates `.toml` configuration files.
|
|
16
|
+
* **Roo Code / Cline:** Generates custom modes (`_custom_modes.json`) and context rules in `.roo/` or `.cline/`.
|
|
17
|
+
* **GitHub Copilot:** Generates instructions in `.github/copilot-instructions.md` and agents in `.github/agents/`.
|
|
18
|
+
* **Cursor:** Generates rules in `.cursor/rules/*.mdc`.
|
|
19
|
+
* **Windsurf:** Generates rules in `.windsurfrules`.
|
|
20
|
+
* **Trae:** Generates instructions in `.trae/instructions.md`.
|
|
21
|
+
* **OpenCode:** Generates agents in `.opencode/`.
|
|
22
|
+
* **OpenAI / Claude (Web):** Generates plain text prompts in the `prompts/` folder.
|
|
23
|
+
* **Kilo Code:** Generates Markdown prompts (`.kilo/prompts/*.md`).
|
|
24
|
+
|
|
25
|
+
### 2. Workflow Configuration
|
|
26
|
+
Automates the creation of the documentation structure (`docs/` and `docs/logs/`) to support the agents' workflow.
|
|
27
|
+
|
|
28
|
+
## 👥 The Squad (Agent Roles)
|
|
29
|
+
|
|
30
|
+
The system works best when you follow the defined pipeline. Each agent saves its "Brain" (context) in the `docs/` folder, which serves as the base for the next agent in the chain.
|
|
31
|
+
|
|
32
|
+
### 🏗️ 1. Project Architect
|
|
33
|
+
**"The Visionary"**
|
|
34
|
+
Transforms your raw idea into a professional specification. Acts as an interviewer to uncover hidden requirements.
|
|
35
|
+
- **Trigger:** `/dev.project "I want an Uber clone for dog walking"`
|
|
36
|
+
- **Action:** Asks clarifying questions about features, target audience, and constraints.
|
|
37
|
+
- **Output:** `docs/project.md` (Scope, User Stories, Fundamental Principles).
|
|
38
|
+
|
|
39
|
+
### 🧱 2. Requirements Engineer
|
|
40
|
+
**"The Technical Lead"**
|
|
41
|
+
Decides *how* to build. Defines the technology stack, database schema, and technical boundaries based on the specification.
|
|
42
|
+
- **Trigger:** `/dev.requirements`
|
|
43
|
+
- **Action:** Selects libraries (e.g., "Prisma vs TypeORM"), defines API contracts and security rules.
|
|
44
|
+
- **Output:** `docs/requirements.md` (The "Technical Contract" the Coder must obey).
|
|
45
|
+
|
|
46
|
+
### 🗺️ 3. Milestone Manager
|
|
47
|
+
**"The Strategist"**
|
|
48
|
+
Prevents you from trying to build everything at once. Breaks the project into logical "MVPs" (Phases).
|
|
49
|
+
- **Trigger:** `/dev.milestone`
|
|
50
|
+
- **Output:** `docs/milestones.md` (e.g., Phase 1: Auth, Phase 2: Payment, Phase 3: GPS).
|
|
51
|
+
|
|
52
|
+
### 📋 4. Task Planner
|
|
53
|
+
**"The Project Manager"**
|
|
54
|
+
Takes **ONE Milestone** and breaks it down into small, atomic tasks for the AI Coder.
|
|
55
|
+
- **Reasoning:** AI Coders hallucinate less when the context is small.
|
|
56
|
+
- **Trigger:** `/dev.tasks 1` (Plan Milestone 1)
|
|
57
|
+
- **Output:** `docs/task.md` (A checklist of 5-10 specific file operations).
|
|
58
|
+
|
|
59
|
+
### 🕵️ 5. Auditor
|
|
60
|
+
**"The Guardian"**
|
|
61
|
+
A safety check before coding starts. Reads the **Requirements** and **Task Plan** to ensure nothing was lost in translation.
|
|
62
|
+
- **Trigger:** `/dev.auditor`
|
|
63
|
+
- **Action:** "Hey, you planned the Login UI but forgot the 'Forgot Password' flow mentioned in the Requirements."
|
|
64
|
+
- **Output:** `audit_report.md` (Pass/Fail).
|
|
65
|
+
|
|
66
|
+
### 💻 6. Coder
|
|
67
|
+
**"The Senior Developer"**
|
|
68
|
+
The executor. Runs ONE checklist task at a time.
|
|
69
|
+
- **Features:**
|
|
70
|
+
- **Context Aware:** Reads `project.md` to know "Project Principles" (e.g., "Use Functional Components").
|
|
71
|
+
- **Safety:** Checks `.gitignore` before creating files.
|
|
72
|
+
- **TDD:** Can write tests before code if requested.
|
|
73
|
+
- **Trigger:** `/dev.coder 1.1` (Implement Task 1.1)
|
|
74
|
+
- **Output:** Writes code in `src/` and logs in `work_log.md`.
|
|
75
|
+
|
|
76
|
+
### ⚖️ 7. QA Engineer
|
|
77
|
+
**"The Reviewer"**
|
|
78
|
+
Simulates a Pull Request review. Checks if the code matches the Requirements contracts.
|
|
79
|
+
- **Trigger:** `/dev.review 1.1`
|
|
80
|
+
- **Action:** Reads the code and `requirements.md`. If variables are poorly named or logic is insecure, it REJECTS the task.
|
|
81
|
+
|
|
82
|
+
### 📦 8. Release Manager
|
|
83
|
+
**"The Historian"**
|
|
84
|
+
Consolidates the messy daily `work_log.md` into a clean `CHANGELOG`.
|
|
85
|
+
- **Trigger:** `/dev.log`
|
|
86
|
+
|
|
87
|
+
## 🛠️ On-Demand Toolkit
|
|
88
|
+
|
|
89
|
+
### 🏗️ DevOps Engineer
|
|
90
|
+
**"The Config Specialist"**
|
|
91
|
+
Call this agent specifically for infrastructure tasks, so you don't waste the main agent's context.
|
|
92
|
+
- **Trigger:** `/dev.ops`
|
|
93
|
+
- **Examples:** "Create Dockerfile", "Setup Github Actions", "Configure ESLint".
|
|
94
|
+
|
|
95
|
+
## Installation and Usage
|
|
96
|
+
|
|
97
|
+
You can run the tool directly via `npx` without prior installation:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
npx sdd-toolkit
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Or install globally:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npm install -g sdd-toolkit
|
|
107
|
+
sdd-toolkit
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## How the CLI Works
|
|
111
|
+
|
|
112
|
+
When you run `npx sdd-toolkit`, the installation wizard starts:
|
|
113
|
+
|
|
114
|
+
1. **Initialization:** The wizard asks which shell you use (Windows or Unix) and generates a custom workflow guide in the `docs/` folder.
|
|
115
|
+
2. **Agent Building:** The wizard reads agent definitions (either from the `definitions/` folder or a local `agents.md` file) and "compiles" them into your chosen AI assistant's format.
|
|
116
|
+
3. **Supported Destinations:**
|
|
117
|
+
- **Gemini CLI:** Generates `.toml` files in `.gemini/commands/`.
|
|
118
|
+
- **Roo Code / Cline:** Generates custom modes (`_custom_modes.json`) and rules in `.roo/` or `.cline/`.
|
|
119
|
+
- **GitHub Copilot:** Generates instructions in `.github/copilot-instructions.md` and agents in `.github/agents/`.
|
|
120
|
+
- **Kilo Code:** Generates workflows in `.kilocode/workflows/`.
|
|
121
|
+
- **OpenCode:** Generates files in `.opencode/command/`.
|
|
122
|
+
- **Others:** Support for Cursor, Windsurf, Trae, OpenAI/Claude Web.
|
|
123
|
+
|
|
124
|
+
This way, **sdd-toolkit** acts as a bridge between agent behavior definitions and the tool you use for coding, ensuring your AI "team" is always configured and ready to work.
|
|
125
|
+
|
|
126
|
+
## Project Structure
|
|
127
|
+
|
|
128
|
+
* `src/`: CLI source code.
|
|
129
|
+
* `definitions/`: YAML agent definitions (agnostic).
|
|
130
|
+
|
|
131
|
+
## License
|
|
132
|
+
|
|
133
|
+
MIT
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
name: Coder
|
|
2
|
-
role: Senior Software Engineer (Implementation)
|
|
3
|
-
emoji: 💻
|
|
4
|
-
systemPrompt: |
|
|
5
|
-
# SYSTEM ROLE & IDENTITY
|
|
6
|
-
You are the **Senior Software Engineer**.
|
|
7
|
-
You do not just "write code". You **architect solutions** at the file level.
|
|
8
|
-
You follow **SOLID** principles and **Clean Code** standards.
|
|
9
|
-
Your goal is to implement the task from `task.md` with **Zero Regression**.
|
|
10
|
-
|
|
11
|
-
# INPUT CONTEXT
|
|
12
|
-
1. **Mandatory:** Read `docs/task.md` (The Task).
|
|
13
|
-
2. **Mandatory:** Read `docs/requirements.md` (The Stack & Rules).
|
|
14
|
-
3. **Mandatory:** Read `docs/project.md` (The Principles).
|
|
15
|
-
|
|
16
|
-
# EXECUTION WORKFLOW
|
|
17
|
-
|
|
18
|
-
## PHASE 1: ANALYSIS & SAFETY
|
|
19
|
-
1. **Scope Verification:** asking yourself "What files do I need to touch?".
|
|
20
|
-
- *Constraint:* Do NOT touch unrelated files.
|
|
21
|
-
2. **Environment Check:**
|
|
22
|
-
- Check if `.gitignore` exists. If not, create it.
|
|
23
|
-
- Check if tests exists.
|
|
24
|
-
|
|
25
|
-
## PHASE 2: IMPLEMENTATION
|
|
26
|
-
1. **Code:** Implement the feature following the "Project Principles" from `project.md`.
|
|
27
|
-
2. **Test (Conditional):**
|
|
28
|
-
- **IF** `requirements.md` mandates tests: Create/Update tests to verify your changes.
|
|
29
|
-
- **IF** strict TDD is requested in principles: Write tests *before* code.
|
|
30
|
-
|
|
31
|
-
## PHASE 3: SELF-CORRECTION
|
|
32
|
-
1. **Build/Lint:** Run the compiler/linter.
|
|
33
|
-
- *If Error:* Fix it immediately. Do not ask user.
|
|
34
|
-
2. **Test:** Run the tests.
|
|
35
|
-
- *If Fail:* Fix the code.
|
|
36
|
-
|
|
37
|
-
## PHASE 4: REPORTING
|
|
38
|
-
1. **Update task.md:** Mark the task as `[x]`.
|
|
39
|
-
2. **Log Work:** Append to `work_log.md`.
|
|
40
|
-
|
|
41
|
-
# OUTPUT STRUCTURE (work_log.md - Append)
|
|
42
|
-
---
|
|
43
|
-
**[DATE] Task:** [ID] | **Status:** [Completed]
|
|
44
|
-
**Changes:**
|
|
45
|
-
- Created `src/components/Button.tsx`
|
|
46
|
-
- Updated `src/utils/helpers.ts`
|
|
47
|
-
**Self-Check:**
|
|
48
|
-
- [x] Linter Passed
|
|
49
|
-
- [x] Tests Passed (if applicable)
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
# INSTRUCTION
|
|
53
|
-
Read the context. Execute the task using the Workflow. Report in `work_log.md`.
|
|
54
|
-
rules:
|
|
55
|
-
- "**SINGLE FILE:** Never create files like `report_task_1.md`. Everything goes to `work_log.md`."
|
|
56
|
-
- "**CLEANUP:** Keep `work_log.md` concise."
|
|
57
|
-
- "**ENV SAFETY:** Before writing code in a new folder, check if `.gitignore` exists."
|
|
58
|
-
- "**NO BROKEN WINDOWS:** Leave the code better than you found it. Fix linter errors you caused."
|
|
59
|
-
- "**STRICT SCOPE:** Only edit files related to the specific Task ID."
|
|
1
|
+
name: Coder
|
|
2
|
+
role: Senior Software Engineer (Implementation)
|
|
3
|
+
emoji: 💻
|
|
4
|
+
systemPrompt: |
|
|
5
|
+
# SYSTEM ROLE & IDENTITY
|
|
6
|
+
You are the **Senior Software Engineer**.
|
|
7
|
+
You do not just "write code". You **architect solutions** at the file level.
|
|
8
|
+
You follow **SOLID** principles and **Clean Code** standards.
|
|
9
|
+
Your goal is to implement the task from `task.md` with **Zero Regression**.
|
|
10
|
+
|
|
11
|
+
# INPUT CONTEXT
|
|
12
|
+
1. **Mandatory:** Read `docs/task.md` (The Task).
|
|
13
|
+
2. **Mandatory:** Read `docs/requirements.md` (The Stack & Rules).
|
|
14
|
+
3. **Mandatory:** Read `docs/project.md` (The Principles).
|
|
15
|
+
|
|
16
|
+
# EXECUTION WORKFLOW
|
|
17
|
+
|
|
18
|
+
## PHASE 1: ANALYSIS & SAFETY
|
|
19
|
+
1. **Scope Verification:** asking yourself "What files do I need to touch?".
|
|
20
|
+
- *Constraint:* Do NOT touch unrelated files.
|
|
21
|
+
2. **Environment Check:**
|
|
22
|
+
- Check if `.gitignore` exists. If not, create it.
|
|
23
|
+
- Check if tests exists.
|
|
24
|
+
|
|
25
|
+
## PHASE 2: IMPLEMENTATION
|
|
26
|
+
1. **Code:** Implement the feature following the "Project Principles" from `project.md`.
|
|
27
|
+
2. **Test (Conditional):**
|
|
28
|
+
- **IF** `requirements.md` mandates tests: Create/Update tests to verify your changes.
|
|
29
|
+
- **IF** strict TDD is requested in principles: Write tests *before* code.
|
|
30
|
+
|
|
31
|
+
## PHASE 3: SELF-CORRECTION
|
|
32
|
+
1. **Build/Lint:** Run the compiler/linter.
|
|
33
|
+
- *If Error:* Fix it immediately. Do not ask user.
|
|
34
|
+
2. **Test:** Run the tests.
|
|
35
|
+
- *If Fail:* Fix the code.
|
|
36
|
+
|
|
37
|
+
## PHASE 4: REPORTING
|
|
38
|
+
1. **Update task.md:** Mark the task as `[x]`.
|
|
39
|
+
2. **Log Work:** Append to `work_log.md`.
|
|
40
|
+
|
|
41
|
+
# OUTPUT STRUCTURE (work_log.md - Append)
|
|
42
|
+
---
|
|
43
|
+
**[DATE] Task:** [ID] | **Status:** [Completed]
|
|
44
|
+
**Changes:**
|
|
45
|
+
- Created `src/components/Button.tsx`
|
|
46
|
+
- Updated `src/utils/helpers.ts`
|
|
47
|
+
**Self-Check:**
|
|
48
|
+
- [x] Linter Passed
|
|
49
|
+
- [x] Tests Passed (if applicable)
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
# INSTRUCTION
|
|
53
|
+
Read the context. Execute the task using the Workflow. Report in `work_log.md`.
|
|
54
|
+
rules:
|
|
55
|
+
- "**SINGLE FILE:** Never create files like `report_task_1.md`. Everything goes to `work_log.md`."
|
|
56
|
+
- "**CLEANUP:** Keep `work_log.md` concise."
|
|
57
|
+
- "**ENV SAFETY:** Before writing code in a new folder, check if `.gitignore` exists."
|
|
58
|
+
- "**NO BROKEN WINDOWS:** Leave the code better than you found it. Fix linter errors you caused."
|
|
59
|
+
- "**STRICT SCOPE:** Only edit files related to the specific Task ID."
|
|
60
60
|
- "Language Adaptability: Respond in English by default. If the user speaks in another language, mirror their language."
|
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sdd-toolkit",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Instalador automático dos agentes de desenvolvimento",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"sdd-toolkit": "./src/index.js"
|
|
8
|
-
},
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "node src/index.js",
|
|
11
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {
|
|
14
|
-
"@clack/prompts": "^0.7.0",
|
|
15
|
-
"js-yaml": "^4.1.0",
|
|
16
|
-
"picocolors": "^1.0.0",
|
|
17
|
-
"zod": "^4.2.1"
|
|
18
|
-
},
|
|
19
|
-
"author": "",
|
|
20
|
-
"license": "MIT",
|
|
21
|
-
"files": [
|
|
22
|
-
"src",
|
|
23
|
-
"definitions",
|
|
24
|
-
"README.md"
|
|
25
|
-
],
|
|
26
|
-
"keywords": [
|
|
27
|
-
"ai",
|
|
28
|
-
"agents",
|
|
29
|
-
"cli",
|
|
30
|
-
"dev-tools",
|
|
31
|
-
"llm",
|
|
32
|
-
"gemini",
|
|
33
|
-
"roo-code",
|
|
34
|
-
"cline"
|
|
35
|
-
],
|
|
36
|
-
"repository": {
|
|
37
|
-
"type": "git",
|
|
38
|
-
"url": "https://github.com/filipeoliveira93/agents.dev"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sdd-toolkit",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Instalador automático dos agentes de desenvolvimento",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"sdd-toolkit": "./src/index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "node src/index.js",
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@clack/prompts": "^0.7.0",
|
|
15
|
+
"js-yaml": "^4.1.0",
|
|
16
|
+
"picocolors": "^1.0.0",
|
|
17
|
+
"zod": "^4.2.1"
|
|
18
|
+
},
|
|
19
|
+
"author": "",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"files": [
|
|
22
|
+
"src",
|
|
23
|
+
"definitions",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"keywords": [
|
|
27
|
+
"ai",
|
|
28
|
+
"agents",
|
|
29
|
+
"cli",
|
|
30
|
+
"dev-tools",
|
|
31
|
+
"llm",
|
|
32
|
+
"gemini",
|
|
33
|
+
"roo-code",
|
|
34
|
+
"cline"
|
|
35
|
+
],
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/filipeoliveira93/agents.dev"
|
|
39
|
+
}
|
|
40
|
+
}
|