@kienha/anti-chaotic 1.0.2 → 1.0.5
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/.agent/rules/documentation.md +1 -1
- package/.agent/skills/backend-developer/SKILL.md +4 -14
- package/.agent/skills/business-analysis/SKILL.md +2 -4
- package/.agent/skills/designer/SKILL.md +36 -58
- package/.agent/skills/devops-engineer/SKILL.md +0 -9
- package/.agent/skills/frontend-developer/SKILL.md +17 -3
- package/.agent/skills/frontend-developer/react/SKILL.md +16 -12
- package/.agent/skills/lead-architect/SKILL.md +2 -2
- package/.agent/skills/rules-workflows/SKILL.md +62 -19
- package/.agent/skills/rules-workflows/assets/workflow-basic.md +112 -0
- package/.agent/skills/rules-workflows/references/orchestration-patterns.md +15 -3
- package/.agent/skills/rules-workflows/references/rules-guide.md +6 -47
- package/.agent/skills/rules-workflows/references/workflows-guide.md +12 -20
- package/.agent/skills/skill-creator/SKILL.md +18 -20
- package/.agent/skills/skill-creator/assets/skill-questionnaire.md +8 -0
- package/.agent/workflows/docs-from-codebase.md +104 -0
- package/.agent/workflows/implement-feature.md +148 -0
- package/.agent/workflows/requirement-analysis.md +113 -249
- package/.agent/workflows/setup-codebase.md +51 -58
- package/.agent/workflows/ui-ux-design.md +72 -51
- package/README.md +23 -343
- package/bin/{ag.js → anti-chaotic.js} +17 -0
- package/package.json +5 -4
- package/.agent/skills/frontend-developer/references/react-next.md +0 -67
- package/.agent/skills/frontend-developer/references/react.md +0 -91
- package/.agent/skills/rules-workflows/assets/example-workflow.md +0 -37
- package/.agent/skills/rules-workflows/assets/templates/rule-project-context.md +0 -26
- package/.agent/skills/rules-workflows/assets/templates/workflow-agile-feature.md +0 -62
- package/.agent/workflows/generate-docs-from-codebase.md +0 -335
- package/.agent/workflows/workflow-rule-from-codebase.md +0 -43
- package/.agent/workflows/workflow-rule-from-feedback.md +0 -38
- /package/.agent/skills/rules-workflows/assets/{example-rule-always-on.md → rule-always-on.md} +0 -0
- /package/.agent/skills/rules-workflows/assets/{example-rule-glob.md → rule-glob.md} +0 -0
- /package/.agent/skills/rules-workflows/assets/{example-rule-manual.md → rule-manual.md} +0 -0
- /package/.agent/skills/rules-workflows/assets/{example-rule-model-decision.md → rule-model-decision.md} +0 -0
|
@@ -1,77 +1,98 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Transform
|
|
2
|
+
description: Transform requirement into UI/UX design (System → Components → Prototypes)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
# UI/UX Design Workflow
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Transform requirements into comprehensive UI/UX design deliverables.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
> [!IMPORTANT]
|
|
10
|
+
> **MANDATORY**: Apply `.agent/rules/documentation.md` for all documentation structure.
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## MCP Usage Guidelines
|
|
15
|
+
|
|
16
|
+
| MCP Tool | When to Use |
|
|
17
|
+
| ------------------------- | ----------------------------------------------- |
|
|
18
|
+
| `mcp_context7_query-docs` | Research UI libraries (shadcn, radix, tailwind) |
|
|
19
|
+
| `generate_image` | Create low-fi wireframes or conceptual assets |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Step 0: Discovery & Context
|
|
24
|
+
|
|
25
|
+
// turbo
|
|
26
|
+
|
|
27
|
+
1. **Invoke `[designer]` skill** to:
|
|
28
|
+
- Check if Design System exists in `docs/`
|
|
29
|
+
- Analyze requirements/PRD
|
|
30
|
+
- Determine design scope (New System vs New Feature)
|
|
31
|
+
2. **WAIT** for analysis result
|
|
12
32
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Step 1: Design System (If Needed)
|
|
36
|
+
|
|
37
|
+
// turbo
|
|
38
|
+
|
|
39
|
+
**Skip if**: Design system already exists.
|
|
20
40
|
|
|
21
|
-
|
|
41
|
+
> 💡 **MCP**: Use `context7` with `/tailwindcss/tailwindcss` or `/shadcn/ui` for config
|
|
22
42
|
|
|
23
|
-
|
|
43
|
+
1. **Invoke `[designer]` skill** to define:
|
|
44
|
+
- Typography, Colors, Spacing scale
|
|
45
|
+
- Component primitives (Buttons, Inputs, Cards)
|
|
46
|
+
- Motion principles
|
|
47
|
+
2. Create/Update Design System documentation
|
|
48
|
+
3. **WAIT** for user approval
|
|
24
49
|
|
|
25
|
-
|
|
26
|
-
- Scan for existing styles (`app.css`, `tailwind.config.ts`, `globals.css`) or UI components.
|
|
27
|
-
- **Condition**:
|
|
28
|
-
- **IF Codebase has Design System**: Analyze and extract the current design system (tokens, colors, typography). Use this as the foundation. Then, apply specific user requirements or overrides from the document on top of this existing system.
|
|
29
|
-
- **IF New/Empty Codebase**: Create the design system from scratch based strictly on the requirements document.
|
|
50
|
+
---
|
|
30
51
|
|
|
31
|
-
|
|
52
|
+
## Step 2: Component & Flow Design
|
|
32
53
|
|
|
33
|
-
|
|
34
|
-
- **Visual Style**: Minimal/Clean vs. Bold/Playful (as defined in Doc).
|
|
35
|
-
- **Theme**: Light vs. Dark mode preference.
|
|
54
|
+
// turbo
|
|
36
55
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
1. **Invoke `[designer]` skill** to:
|
|
57
|
+
- Map user flows based on User Stories
|
|
58
|
+
- Define necessary components (Reuse vs New)
|
|
59
|
+
- Create component specifications
|
|
60
|
+
2. Create flow and component documentation
|
|
61
|
+
3. **WAIT** for user review
|
|
41
62
|
|
|
42
|
-
|
|
63
|
+
---
|
|
43
64
|
|
|
44
|
-
|
|
65
|
+
## Step 3: Prototyping
|
|
45
66
|
|
|
46
|
-
|
|
47
|
-
2. **Step-by-Step Flow**: List the screens or states users will encounter for each path.
|
|
48
|
-
3. **Information Architecture**: Structure the navigation and hierarchy suitable for the flows.
|
|
67
|
+
// turbo
|
|
49
68
|
|
|
50
|
-
|
|
69
|
+
> 💡 **MCP**: Use `generate_image` for visual concept validation if needed
|
|
51
70
|
|
|
52
|
-
**
|
|
71
|
+
1. **Invoke `[frontend-developer]` skill** to:
|
|
72
|
+
- Build HTML/CSS prototypes in `prototype/` (keep it simple)
|
|
73
|
+
- Or create interactive mockups
|
|
74
|
+
2. **Invoke `[designer]` skill** to:
|
|
75
|
+
- Review for accessibility (Contrast, Semantic HTML)
|
|
76
|
+
- Check alignment with Design System
|
|
53
77
|
|
|
54
|
-
|
|
55
|
-
- All design artifacts must be contained within a `prototype/` directory at the project root.
|
|
56
|
-
- Sub-assets (images, icons, illustrations) must be stored in `prototype/assets/`.
|
|
78
|
+
---
|
|
57
79
|
|
|
58
|
-
|
|
59
|
-
- **Proactively use "Nano Banana" (`generate_image`)** to create high-fidelity demo images, icons, or UI backgrounds.
|
|
60
|
-
- **Asset Storage**: Save these generated images directly into `prototype/assets/`.
|
|
80
|
+
## Step 4: Review & Handoff
|
|
61
81
|
|
|
62
|
-
|
|
63
|
-
- Create functional **HTML/CSS files** (e.g., `prototype/home.html`, `prototype/dashboard.html`).
|
|
64
|
-
- **Focus**: Visual impact, layout, spacing, and responsiveness.
|
|
65
|
-
- **Do NOT**: Break down into complex React/Vue components (e.g., `.tsx`, `.vue`) at this stage. Keep it as raw HTML/CSS for easy iteration.
|
|
66
|
-
- **Resource Linking**: Ensure all image `src` paths correctly reference the `./assets/` folder relative to the prototype file.
|
|
82
|
+
// turbo
|
|
67
83
|
|
|
68
|
-
|
|
84
|
+
1. Present prototypes to user
|
|
85
|
+
2. Collect and apply feedback
|
|
86
|
+
3. Update MOC files and finalize docs
|
|
87
|
+
4. **Handoff**: Trigger `/implement-feature` if approved
|
|
69
88
|
|
|
70
|
-
|
|
89
|
+
---
|
|
71
90
|
|
|
72
|
-
|
|
91
|
+
## Quick Reference
|
|
73
92
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
93
|
+
| Step | Skill | Output |
|
|
94
|
+
| ---- | ------------------ | ------------------- |
|
|
95
|
+
| 0 | designer | Scope analysis |
|
|
96
|
+
| 1 | designer | Design System docs |
|
|
97
|
+
| 2 | designer | Flow/Component docs |
|
|
98
|
+
| 3 | frontend-developer | HTML Prototypes |
|
package/README.md
CHANGED
|
@@ -37,16 +37,6 @@
|
|
|
37
37
|
| **rules-workflows** | Create and manage rules, workflows |
|
|
38
38
|
| **skill-creator** | Create new skills for the framework |
|
|
39
39
|
|
|
40
|
-
### 🔄 Automated Workflows
|
|
41
|
-
|
|
42
|
-
| Workflow | Description | Trigger |
|
|
43
|
-
| ------------------------------ | --------------------------------------------- | ---------------------------- |
|
|
44
|
-
| `/requirement-analysis` | Analyze requirements → PRD, SDD, User Stories | Starting a new project |
|
|
45
|
-
| `/generate-docs-from-codebase` | Generate documentation from existing code | Project without docs |
|
|
46
|
-
| `/ui-ux-design-from-doc` | Transform requirements → UI/UX design | After having PRD |
|
|
47
|
-
| `/workflow-rule-from-codebase` | Create project rules from code | Onboarding to a project |
|
|
48
|
-
| `/workflow-rule-from-feedback` | Update rules based on feedback | Fixing recurring AI mistakes |
|
|
49
|
-
|
|
50
40
|
### 📜 Smart Rules Engine
|
|
51
41
|
|
|
52
42
|
- **Documentation Rules**: Standard document structure and formatting
|
|
@@ -55,56 +45,21 @@
|
|
|
55
45
|
|
|
56
46
|
---
|
|
57
47
|
|
|
58
|
-
## 📁 Directory Structure
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
anti-chaotic/
|
|
62
|
-
├── .agent/
|
|
63
|
-
│ ├── skills/ # 12 AI skills with detailed instructions
|
|
64
|
-
│ │ ├── product-manager/
|
|
65
|
-
│ │ ├── business-analysis/
|
|
66
|
-
│ │ ├── lead-architect/
|
|
67
|
-
│ │ ├── designer/
|
|
68
|
-
│ │ ├── frontend-developer/
|
|
69
|
-
│ │ ├── backend-developer/
|
|
70
|
-
│ │ ├── devops-engineer/
|
|
71
|
-
│ │ ├── qa-tester/
|
|
72
|
-
│ │ ├── ai-engineer/
|
|
73
|
-
│ │ ├── blockchain-engineer/
|
|
74
|
-
│ │ ├── rules-workflows/
|
|
75
|
-
│ │ └── skill-creator/
|
|
76
|
-
│ ├── workflows/ # Automated workflows
|
|
77
|
-
│ │ ├── requirement-analysis.md
|
|
78
|
-
│ │ ├── generate-docs-from-codebase.md
|
|
79
|
-
│ │ ├── ui-ux-design-from-doc.md
|
|
80
|
-
│ │ ├── workflow-rule-from-codebase.md
|
|
81
|
-
│ │ └── workflow-rule-from-feedback.md
|
|
82
|
-
│ └── rules/ # Project & documentation rules
|
|
83
|
-
│ ├── documentation.md
|
|
84
|
-
│ └── clean-code.md
|
|
85
|
-
├── bin/ # CLI utilities
|
|
86
|
-
├── docs/ # Generated documentation
|
|
87
|
-
└── README.md
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
48
|
## 🚀 Quick Start
|
|
93
49
|
|
|
94
|
-
### 1.
|
|
50
|
+
### 1. Initialize in your project
|
|
51
|
+
|
|
52
|
+
Run the following command in your project root to install the Agent Kit:
|
|
95
53
|
|
|
96
54
|
```bash
|
|
97
|
-
|
|
98
|
-
cd anti-chaotic
|
|
55
|
+
npx @kienha/anti-chaotic init
|
|
99
56
|
```
|
|
100
57
|
|
|
101
|
-
|
|
58
|
+
This will download the `.agent` folder containing all skills, rules, and workflows into your project.
|
|
102
59
|
|
|
103
|
-
|
|
104
|
-
npm install
|
|
105
|
-
```
|
|
60
|
+
### 2. Using the Agent Kit
|
|
106
61
|
|
|
107
|
-
|
|
62
|
+
Once initialized, start a new chat with your AI IDE (Cursor, Windsurf, etc.) and reference the installed rules/workflows.
|
|
108
63
|
|
|
109
64
|
#### Start a new project with AI:
|
|
110
65
|
|
|
@@ -124,6 +79,14 @@ npm install
|
|
|
124
79
|
/ui-ux-design-from-doc docs/020-Requirements/PRD-YourProject.md
|
|
125
80
|
```
|
|
126
81
|
|
|
82
|
+
### 3. Updating the Kit
|
|
83
|
+
|
|
84
|
+
To update your Agent Kit to the latest version:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
npx @kienha/anti-chaotic update
|
|
88
|
+
```
|
|
89
|
+
|
|
127
90
|
---
|
|
128
91
|
|
|
129
92
|
## 📖 Workflow Guide
|
|
@@ -148,293 +111,19 @@ Please run the requirement-analysis workflow to analyze requirements for an e-co
|
|
|
148
111
|
Read and execute the workflow at .agent/workflows/requirement-analysis.md
|
|
149
112
|
```
|
|
150
113
|
|
|
151
|
-
### Special Annotations
|
|
152
|
-
|
|
153
|
-
| Annotation | Meaning |
|
|
154
|
-
| -------------- | ---------------------------------------- |
|
|
155
|
-
| `// turbo` | Auto-run this step without user approval |
|
|
156
|
-
| `// turbo-all` | Auto-run ALL steps in the workflow |
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## 🔗 Workflow Chaining
|
|
161
|
-
|
|
162
|
-
Workflows can be chained together to create a complete process:
|
|
163
|
-
|
|
164
|
-
```
|
|
165
|
-
┌──────────────────────────────────────────────────────────────┐
|
|
166
|
-
│ 🔄 FULL PROJECT LIFECYCLE │
|
|
167
|
-
├──────────────────────────────────────────────────────────────┤
|
|
168
|
-
│ │
|
|
169
|
-
│ 1. /requirement-analysis │
|
|
170
|
-
│ │ │
|
|
171
|
-
│ ▼ │
|
|
172
|
-
│ 2. /ui-ux-design-from-doc (with the generated PRD) │
|
|
173
|
-
│ │ │
|
|
174
|
-
│ ▼ │
|
|
175
|
-
│ 3. [Development Phase - implement code] │
|
|
176
|
-
│ │ │
|
|
177
|
-
│ ▼ │
|
|
178
|
-
│ 4. /generate-docs-from-codebase │
|
|
179
|
-
│ │ │
|
|
180
|
-
│ ▼ │
|
|
181
|
-
│ 5. /workflow-rule-from-feedback (if needed) │
|
|
182
|
-
│ │
|
|
183
|
-
└──────────────────────────────────────────────────────────────┘
|
|
184
|
-
```
|
|
185
|
-
|
|
186
114
|
---
|
|
187
115
|
|
|
188
116
|
## 🎓 Workflow Details
|
|
189
117
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
> **Description**: Analyze requirements from raw ideas → complete documentation
|
|
193
|
-
|
|
194
|
-
#### 🎯 When to Use?
|
|
118
|
+
## 🔄 Automated Workflows
|
|
195
119
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
┌─────────────────────────────────────────────────────┐
|
|
204
|
-
│ Step 0: Clarification & Understanding (PM) │
|
|
205
|
-
│ → Create clarification-questions.md │
|
|
206
|
-
├─────────────────────────────────────────────────────┤
|
|
207
|
-
│ Step 1: Create Roadmap (PM) │
|
|
208
|
-
│ → docs/010-Planning/Roadmap-{Project}.md │
|
|
209
|
-
├─────────────────────────────────────────────────────┤
|
|
210
|
-
│ Step 2: Create PRD (PM) │
|
|
211
|
-
│ → docs/020-Requirements/PRD-{Project}.md │
|
|
212
|
-
├─────────────────────────────────────────────────────┤
|
|
213
|
-
│ Step 3: Create SDD (Architect) │
|
|
214
|
-
│ → docs/030-Specs/Architecture/SDD-{...}.md │
|
|
215
|
-
├─────────────────────────────────────────────────────┤
|
|
216
|
-
│ Step 4: Create Epics (BA) │
|
|
217
|
-
│ → docs/022-User-Stories/Epics/*.md │
|
|
218
|
-
├─────────────────────────────────────────────────────┤
|
|
219
|
-
│ Step 5: Create Use Cases (BA) │
|
|
220
|
-
│ → docs/020-Requirements/Use-Cases/*.md │
|
|
221
|
-
├─────────────────────────────────────────────────────┤
|
|
222
|
-
│ Step 6: Create User Stories (BA) │
|
|
223
|
-
│ → docs/022-User-Stories/Backlog/*.md │
|
|
224
|
-
├─────────────────────────────────────────────────────┤
|
|
225
|
-
│ Step 7: Create ADRs (Architect) - Optional │
|
|
226
|
-
│ → docs/030-Specs/Architecture/ADR-*.md │
|
|
227
|
-
├─────────────────────────────────────────────────────┤
|
|
228
|
-
│ Step 8: Finalize & Summary (PM) │
|
|
229
|
-
│ → Update MOC files & Index │
|
|
230
|
-
└─────────────────────────────────────────────────────┘
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
#### 💡 Example
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
/requirement-analysis Create a personal finance management app with features:
|
|
237
|
-
- Income/expense tracking
|
|
238
|
-
- Budget planning
|
|
239
|
-
- Analytics reports
|
|
240
|
-
- Bank synchronization
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
### `/generate-docs-from-codebase`
|
|
246
|
-
|
|
247
|
-
> **Description**: Automatically generate documentation from an existing codebase
|
|
248
|
-
|
|
249
|
-
#### 🎯 When to Use?
|
|
250
|
-
|
|
251
|
-
- Onboarding to an existing project without documentation
|
|
252
|
-
- Updating docs after significant code changes
|
|
253
|
-
- Need to create API docs, schema docs, architecture overview
|
|
254
|
-
|
|
255
|
-
#### 📊 Process Flow
|
|
256
|
-
|
|
257
|
-
```
|
|
258
|
-
┌─────────────────────────────────────────────────────┐
|
|
259
|
-
│ Step 1: Codebase Discovery & Analysis │
|
|
260
|
-
│ → Scan package.json, config files │
|
|
261
|
-
│ → Analyze folder structure │
|
|
262
|
-
├─────────────────────────────────────────────────────┤
|
|
263
|
-
│ Step 2: Determine Documentation Scope │
|
|
264
|
-
│ → Choose: Architecture, API, Schema, etc. │
|
|
265
|
-
├─────────────────────────────────────────────────────┤
|
|
266
|
-
│ Step 3: Generate System Architecture │
|
|
267
|
-
│ → C4 diagrams, component relationships │
|
|
268
|
-
├─────────────────────────────────────────────────────┤
|
|
269
|
-
│ Step 4: Generate API Documentation │
|
|
270
|
-
│ → Endpoint specs, request/response schemas │
|
|
271
|
-
├─────────────────────────────────────────────────────┤
|
|
272
|
-
│ Step 5: Generate Database Schema Documentation │
|
|
273
|
-
│ → Entity descriptions, ERD diagram │
|
|
274
|
-
├─────────────────────────────────────────────────────┤
|
|
275
|
-
│ Step 6: Generate MOC Files │
|
|
276
|
-
│ → Index files for navigation │
|
|
277
|
-
├─────────────────────────────────────────────────────┤
|
|
278
|
-
│ Step 7: Validation & Linking │
|
|
279
|
-
│ → Check frontmatter, wiki-links │
|
|
280
|
-
├─────────────────────────────────────────────────────┤
|
|
281
|
-
│ Step 8: Summary & Next Steps │
|
|
282
|
-
│ → Report generated files │
|
|
283
|
-
└─────────────────────────────────────────────────────┘
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
#### 💡 Example
|
|
287
|
-
|
|
288
|
-
```
|
|
289
|
-
/generate-docs-from-codebase
|
|
290
|
-
|
|
291
|
-
Or specify a specific scope:
|
|
292
|
-
/generate-docs-from-codebase Only create API documentation and Database Schema
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
---
|
|
296
|
-
|
|
297
|
-
### `/ui-ux-design-from-doc`
|
|
298
|
-
|
|
299
|
-
> **Description**: Transform requirements documents into UI/UX designs
|
|
300
|
-
|
|
301
|
-
#### 🎯 When to Use?
|
|
302
|
-
|
|
303
|
-
- Already have PRD/requirements and need interface design
|
|
304
|
-
- Need to create a design system for the project
|
|
305
|
-
- Want to quickly prototype main screens
|
|
306
|
-
|
|
307
|
-
#### 📊 Process Flow
|
|
308
|
-
|
|
309
|
-
```
|
|
310
|
-
┌─────────────────────────────────────────────────────┐
|
|
311
|
-
│ Step 1: Analyze Requirements │
|
|
312
|
-
│ → Extract target audience, features │
|
|
313
|
-
├─────────────────────────────────────────────────────┤
|
|
314
|
-
│ Step 2: Define Design System │
|
|
315
|
-
│ → Typography, colors, spacing │
|
|
316
|
-
├─────────────────────────────────────────────────────┤
|
|
317
|
-
│ Step 3: Map User Flows │
|
|
318
|
-
│ → Critical paths, screen sequences │
|
|
319
|
-
├─────────────────────────────────────────────────────┤
|
|
320
|
-
│ Step 4: Create Visual Artifacts │
|
|
321
|
-
│ → Components, page layouts │
|
|
322
|
-
├─────────────────────────────────────────────────────┤
|
|
323
|
-
│ Step 5: Verification │
|
|
324
|
-
│ → Req check, usability check │
|
|
325
|
-
└─────────────────────────────────────────────────────┘
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
#### 💡 Example
|
|
329
|
-
|
|
330
|
-
```
|
|
331
|
-
/ui-ux-design-from-doc docs/020-Requirements/PRD-ShopManagement.md
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
---
|
|
335
|
-
|
|
336
|
-
### `/workflow-rule-from-codebase`
|
|
337
|
-
|
|
338
|
-
> **Description**: Analyze codebase to create project rules file
|
|
339
|
-
|
|
340
|
-
#### 🎯 When to Use?
|
|
341
|
-
|
|
342
|
-
- Newly joining an existing project
|
|
343
|
-
- Want AI Agent to "learn" project conventions
|
|
344
|
-
- Need to document coding standards
|
|
345
|
-
|
|
346
|
-
#### 📊 Process Flow
|
|
347
|
-
|
|
348
|
-
```
|
|
349
|
-
┌─────────────────────────────────────────────────────┐
|
|
350
|
-
│ Step 1: Discovery Scan │
|
|
351
|
-
│ → Read config, analyze structure │
|
|
352
|
-
├─────────────────────────────────────────────────────┤
|
|
353
|
-
│ Step 2: Synthesize Observations │
|
|
354
|
-
│ → Tech stack, conventions, directories │
|
|
355
|
-
├─────────────────────────────────────────────────────┤
|
|
356
|
-
│ Step 3: Create Project Rules │
|
|
357
|
-
│ → .agent/rules/project-rules.md │
|
|
358
|
-
├─────────────────────────────────────────────────────┤
|
|
359
|
-
│ Step 4: Write the File │
|
|
360
|
-
│ → Save with standard format │
|
|
361
|
-
├─────────────────────────────────────────────────────┤
|
|
362
|
-
│ Step 5: Validation │
|
|
363
|
-
│ → Check alignment with package.json │
|
|
364
|
-
└─────────────────────────────────────────────────────┘
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
#### 💡 Example
|
|
368
|
-
|
|
369
|
-
```
|
|
370
|
-
/workflow-rule-from-codebase
|
|
371
|
-
```
|
|
372
|
-
|
|
373
|
-
---
|
|
374
|
-
|
|
375
|
-
### `/workflow-rule-from-feedback`
|
|
376
|
-
|
|
377
|
-
> **Description**: Create/update rules based on user feedback
|
|
378
|
-
|
|
379
|
-
#### 🎯 When to Use?
|
|
380
|
-
|
|
381
|
-
- Want AI Agent to remember a specific rule
|
|
382
|
-
- Fixing mistakes that AI frequently makes
|
|
383
|
-
- Adding preferences for the project
|
|
384
|
-
|
|
385
|
-
#### 📊 Process Flow
|
|
386
|
-
|
|
387
|
-
```
|
|
388
|
-
┌─────────────────────────────────────────────────────┐
|
|
389
|
-
│ Step 1: Analyze Feedback & Existing Rules │
|
|
390
|
-
│ → Check conflicts, determine action │
|
|
391
|
-
├─────────────────────────────────────────────────────┤
|
|
392
|
-
│ Step 2: Determine Target Rule File │
|
|
393
|
-
│ → project-rules.md or new file? │
|
|
394
|
-
├─────────────────────────────────────────────────────┤
|
|
395
|
-
│ Step 3: Update Project Content │
|
|
396
|
-
│ → Append/update the rule │
|
|
397
|
-
├─────────────────────────────────────────────────────┤
|
|
398
|
-
│ Step 4: Write the File │
|
|
399
|
-
│ → Save changes │
|
|
400
|
-
├─────────────────────────────────────────────────────┤
|
|
401
|
-
│ Step 5: Confirmation │
|
|
402
|
-
│ → Notify user │
|
|
403
|
-
└─────────────────────────────────────────────────────┘
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
#### 💡 Example
|
|
407
|
-
|
|
408
|
-
```
|
|
409
|
-
/workflow-rule-from-feedback Always use Zod for validation instead of Yup
|
|
410
|
-
|
|
411
|
-
/workflow-rule-from-feedback Never use any type in TypeScript
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
---
|
|
415
|
-
|
|
416
|
-
## 💡 Tips & Best Practices
|
|
417
|
-
|
|
418
|
-
### ✅ Do's
|
|
419
|
-
|
|
420
|
-
1. **Read output carefully before approving** - Each step has a checkpoint for review
|
|
421
|
-
2. **Use artifacts for comments** - AI will create draft files for you to review first
|
|
422
|
-
3. **Provide complete context** - Describe requirements in detail from the start
|
|
423
|
-
4. **Chain workflows** - Combine multiple workflows for a complete process
|
|
424
|
-
|
|
425
|
-
### ❌ Don'ts
|
|
426
|
-
|
|
427
|
-
1. **Skip clarification step** - The clarification step is crucial
|
|
428
|
-
2. **Approve without reading** - Always review before confirming
|
|
429
|
-
3. **Run inappropriate workflows** - Choose the right workflow for the right use case
|
|
430
|
-
|
|
431
|
-
### 🔧 Troubleshooting
|
|
432
|
-
|
|
433
|
-
| Issue | Solution |
|
|
434
|
-
| -------------------------- | --------------------------------------------- |
|
|
435
|
-
| Workflow doesn't run | Check slash command syntax |
|
|
436
|
-
| Output has wrong format | Ensure `.agent/rules/documentation.md` exists |
|
|
437
|
-
| AI asks too many questions | Provide more context in the initial request |
|
|
120
|
+
| Workflow | Description | Use Case |
|
|
121
|
+
| :--------------------------------- | :------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------------------ |
|
|
122
|
+
| **`/requirement-analysis`** | Analyzes raw requirements and generates detailed documentation (Roadmap, PRD, SDD, Epics, User Stories). | Start of a new project or feature when you only have a rough idea. |
|
|
123
|
+
| **`/generate-docs-from-codebase`** | Scans the current codebase and generates comprehensive documentation (Architecture, API, Schema). | Onboarding to a legacy project or updating docs after development. |
|
|
124
|
+
| **`/ui-ux-design-from-doc`** | Transforms PRD/requirements documents into UI/UX design specifications, design systems, and visual artifacts. | After requirements are finalized, before coding. |
|
|
125
|
+
| **`/workflow-rule-from-codebase`** | Analyzes the codebase to identify patterns and conventions, creating a project-specific rules file. | Establishing coding standards for a new or existing team. |
|
|
126
|
+
| **`/workflow-rule-from-feedback`** | Updates or creates rules based on user feedback to prevent recurring AI errors. | When the Agent makes repeated mistakes or you want to enforce a new preference. |
|
|
438
127
|
|
|
439
128
|
---
|
|
440
129
|
|
|
@@ -452,15 +141,6 @@ We welcome all contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for detaile
|
|
|
452
141
|
|
|
453
142
|
---
|
|
454
143
|
|
|
455
|
-
## 📚 Additional Resources
|
|
456
|
-
|
|
457
|
-
- **Documentation Rules**: `.agent/rules/documentation.md`
|
|
458
|
-
- **Available Skills**: `.agent/skills/`
|
|
459
|
-
- **Project Rules**: `.agent/rules/project-rules.md` (if exists)
|
|
460
|
-
- **Agent Skills Specification**: [agentskills.io/specification](https://agentskills.io/specification)
|
|
461
|
-
|
|
462
|
-
---
|
|
463
|
-
|
|
464
144
|
## 📄 License
|
|
465
145
|
|
|
466
146
|
This project is released under the [MIT License](LICENSE).
|
|
@@ -41,8 +41,25 @@ program
|
|
|
41
41
|
.description("Update .agent configuration from GitHub")
|
|
42
42
|
.action(async () => {
|
|
43
43
|
const targetAgentDir = path.join(process.cwd(), ".agent");
|
|
44
|
+
const { default: inquirer } = await import("inquirer");
|
|
44
45
|
|
|
45
46
|
try {
|
|
47
|
+
if (await fs.pathExists(targetAgentDir)) {
|
|
48
|
+
const { confirm } = await inquirer.prompt([
|
|
49
|
+
{
|
|
50
|
+
type: "confirm",
|
|
51
|
+
name: "confirm",
|
|
52
|
+
message: `Directory ${targetAgentDir} already exists. Do you want to overwrite it?`,
|
|
53
|
+
default: false,
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
|
|
57
|
+
if (!confirm) {
|
|
58
|
+
console.log(chalk.yellow("Operation cancelled by user."));
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
46
63
|
console.log(
|
|
47
64
|
chalk.blue(`Updating Anti-Chaotic Agent Kit from ${REPO_URI}...`),
|
|
48
65
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kienha/anti-chaotic",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Anti-Chaotic - An agent kit for Antigravity to standardize the software development process",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"publishConfig": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"type": "commonjs",
|
|
28
28
|
"bin": {
|
|
29
|
-
"
|
|
30
|
-
"anti-chaotic": "bin/
|
|
29
|
+
"ac": "bin/anti-chaotic.js",
|
|
30
|
+
"anti-chaotic": "bin/anti-chaotic.js"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
33
|
".agent",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"chalk": "^4.1.2",
|
|
38
38
|
"commander": "^14.0.2",
|
|
39
39
|
"fs-extra": "^11.3.3",
|
|
40
|
-
"giget": "^2.0.0"
|
|
40
|
+
"giget": "^2.0.0",
|
|
41
|
+
"inquirer": "^13.2.0"
|
|
41
42
|
}
|
|
42
43
|
}
|