@kienha/anti-chaotic 1.0.5 → 1.0.7

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.
@@ -0,0 +1,81 @@
1
+ ---
2
+ description: Analyze ideas with the user and create preliminary high-level documents (Roadmap, PRD).
3
+ ---
4
+
5
+ # Brainstorm Workflow
6
+
7
+ > [!IMPORTANT]
8
+ > **MANDATORY**: Read `.agent/rules/documents.md` before creating any document.
9
+
10
+ ---
11
+
12
+ ## MCP Usage Guidelines
13
+
14
+ | MCP Tool | When to Use | Example |
15
+ | :------------------------------------------- | :----------------------------------------------------- | :-------------------------------- |
16
+ | `mcp_sequential-thinking_sequentialthinking` | Analyze requirements, feature dependencies, trade-offs | Break down ambiguous requests |
17
+ | `mcp_context7_resolve-library-id` | Find library ID before querying | "mermaid js" |
18
+ | `mcp_context7_query-docs` | Research tech stack options, diagram syntax | "Mermaid sequence diagram syntax" |
19
+
20
+ ---
21
+
22
+ ## Document Priority Order
23
+
24
+ ```
25
+ Priority 0: Roadmap ← Project Planning & Timeline
26
+ Priority 1: PRD ← Strategic Overview
27
+ ```
28
+
29
+ ---
30
+
31
+ ## Step 0: Clarification & Understanding
32
+
33
+ **Role: Product Manager**
34
+
35
+ > [!NOTE]
36
+ > This step is **MANDATORY**. Do NOT proceed without user confirmation.
37
+
38
+ > 💡 **MCP**: Use `sequential-thinking` to analyze ambiguous or complex requests
39
+
40
+ 1. **Invoke `[product-manager]` skill** to:
41
+ - Summarize understanding
42
+ - Create clarification questions
43
+ 2. Create `clarification-questions.md` artifact
44
+ 3. **WAIT** for user to review and confirm
45
+
46
+ ---
47
+
48
+ ## Step 1: Create Roadmap
49
+
50
+ // turbo
51
+
52
+ > 💡 **MCP**: Use `sequential-thinking` for phased planning and risk assessment
53
+
54
+ 1. **Invoke `[product-manager]` skill** to draft:
55
+ - Project timeline and milestones
56
+ - Phase breakdown (MVP, v1.0, v2.0)
57
+ - Key deliverables per phase
58
+ 2. Create `draft-roadmap.md` artifact
59
+ 3. After approval → Save to `docs/010-Planning/Roadmap-{ProjectName}.md`
60
+ 4. **WAIT** for user response
61
+
62
+ ---
63
+
64
+ ## Step 2: Create PRD
65
+
66
+ // turbo
67
+
68
+ 1. **Invoke `[product-manager]` skill** to draft:
69
+ - Business objectives and success metrics
70
+ - Target audience/user personas
71
+ - Feature prioritization (MoSCoW)
72
+ 2. Create `draft-prd.md` artifact
73
+ 3. After approval → Save to `docs/020-Requirements/PRD-{ProjectName}.md`
74
+ 4. **WAIT** for user response
75
+
76
+ ---
77
+
78
+ ## Step 3: Transition to Documentation
79
+
80
+ 1. Present summary of created artifacts (Roadmap, PRD).
81
+ 2. Suggest next step: Run `/documentation` to generate detailed specifications (SDD, Epics, Stories).
@@ -0,0 +1,64 @@
1
+ ---
2
+ description: Workflow for safely customizing Agent rules and workflows with impact analysis and user confirmation.
3
+ ---
4
+
5
+ # Custom Behavior Workflow
6
+
7
+ ## Tool Usage Guidelines
8
+
9
+ | Tool | When to Use | Example Query |
10
+ | --------------- | ---------------------------------------------------- | --------------------------------------------------------------- |
11
+ | `find_by_name` | Step 1: To find if a rule/workflow already exists | `Pattern="*security*", SearchDirectory=".agent/rules"` |
12
+ | `view_file` | Step 2: To read the existing content for comparison | `AbsolutePath="/.../.agent/rules/security.md"` |
13
+ | `notify_user` | Step 3: To present analysis and ask for confirmation | `Message="I found an existing rule. Do you want to overwrite?"` |
14
+ | `write_to_file` | Step 4: To create or overwrite the file | `Overwrite=true` |
15
+
16
+ ## Step 1: Identification & Search
17
+
18
+ // turbo
19
+
20
+ > 💡 **Tip**: Don't assume the file doesn't exist. Always search first.
21
+
22
+ 1. Analyze the user's request to identify the _intent_ (e.g., "Add stricter linting", "Skip tests in deployment").
23
+ 2. Search for existing Rules or Workflows that might already cover this.
24
+ - Rules: search in `.agent/rules/`
25
+ - Workflows: search in `.agent/workflows/`
26
+
27
+ ## Step 2: Impact Analysis
28
+
29
+ > 💡 **Tip**: If a file exists, you MUST read it and compare it with the request.
30
+
31
+ **Condition A: Target does NOT exist:**
32
+
33
+ 1. Verify if a template exists in `.agent/assets/` or `references/` that could be used as a base.
34
+ 2. Draft the new content in your memory.
35
+
36
+ **Condition B: Target ALREADY exists:**
37
+
38
+ 1. **Read** the current content of the file.
39
+ 2. **Compare** the User's request vs the Current Content.
40
+ 3. **Identify Conflicts**:
41
+ - Will this break existing constraints?
42
+ - Is this a "Breaking Change" or just an "Enhancement"?
43
+ 4. **Formulate Recommendation**:
44
+ - _Adapt_: "I recommend creating a new file `custom-X.md` to avoid breaking standard X."
45
+ - _Override_: "This helps matches your specific need, but removes the safety check Y."
46
+
47
+ ## Step 3: User Confirmation
48
+
49
+ > 💡 **Tip**: You must be explicit about what will change.
50
+
51
+ 1. **Notify User** with a summary of your analysis.
52
+ - If **New**: "I will create a new rule [filename] that [does X]."
53
+ - If **modifying**: "I will modify [filename]. \n**Current**: [Summary of old]\n**Proposed**: [Summary of new]\n**Impact**: [Warning about side effects]"
54
+ 2. **WAIT** for user approval.
55
+
56
+ ## Step 4: Execution
57
+
58
+ 1. Perform the file operation (`write_to_file` or `replace_file_content`).
59
+ 2. **Validate**: Read the file back to ensure syntax is correct (Markdown/YAML frontmatter).
60
+ 3. **Register**: If it's a rule, remind the user if they need to manually activate it (unless it's `always_on`).
61
+
62
+ ## Step 5: Verification
63
+
64
+ 1. Check if the customization works as expected (if possible, by running a dry-run or asking user to test).
@@ -0,0 +1,123 @@
1
+ ---
2
+ description: Generate comprehensive documentation (Architecture, API, Specs) from either Codebase or Requirements.
3
+ ---
4
+
5
+ # Documentation Workflow
6
+
7
+ > [!IMPORTANT]
8
+ > **MANDATORY**: Apply `.agent/rules/documents.md` for all document creation.
9
+
10
+ ---
11
+
12
+ ## MCP Usage Guidelines
13
+
14
+ | MCP Tool | When to Use |
15
+ | :------------------------------------------- | :--------------------------------------------- |
16
+ | `mcp_sequential-thinking_sequentialthinking` | Analyze complex architecture, design decisions |
17
+ | `mcp_context7_query-docs` | Research framework patterns, diagram syntax |
18
+
19
+ ---
20
+
21
+ ## Step 0: Determine Mode
22
+
23
+ **Determine the source of truth:**
24
+
25
+ 1. **From Codebase**: Reverse engineer docs from existing code.
26
+ 2. **From Requirements**: Forward engineer detailed specs (SDD, Stories) from PRD/Roadmap.
27
+
28
+ ---
29
+
30
+ # MODE A: From Codebase
31
+
32
+ ## Step A1: Codebase Discovery
33
+
34
+ // turbo
35
+
36
+ > 💡 **MCP**: Use `sequential-thinking` to analyze unfamiliar project structures
37
+
38
+ 1. **Invoke `[lead-architect]` skill** to analyze codebase structure
39
+ 2. Identify: tech stack, entry points, API routes, DB schemas
40
+ 3. **WAIT** for user to confirm understanding
41
+
42
+ ---
43
+
44
+ ## Step A2: Legacy Docs Generation (Architecture, API, Schema)
45
+
46
+ // turbo
47
+
48
+ 1. **Invoke `[lead-architect]` skill** to create:
49
+ - System Context (C4 Context Diagram)
50
+ - Component View (C4 Component Diagram)
51
+ 2. **Invoke `[backend-developer]` skill** to:
52
+ - Document API endpoints
53
+ - Generate Entity Relationship Diagram (ERD)
54
+ 3. Save to `docs/030-Specs/` and `docs/030-Specs/Architecture/`
55
+
56
+ ---
57
+
58
+ # MODE B: From Requirements
59
+
60
+ **Prerequisite**: Existing PRD (from `/brainstorm`).
61
+
62
+ ## Step B1: Create SDD (System Design Document)
63
+
64
+ // turbo
65
+
66
+ > 💡 **MCP**:
67
+ >
68
+ > - **MUST** use `sequential-thinking` for architectural decisions
69
+ > - Use `context7` with `/vercel/next.js`, `/supabase/supabase` for tech stack research
70
+
71
+ 1. **Invoke `[lead-architect]` skill** to draft:
72
+ - High-level system architecture
73
+ - Technology stack decisions
74
+ - Component diagram
75
+ - Data flow overview
76
+ 2. Create `draft-sdd.md` artifact
77
+ 3. After approval → Save to `docs/030-Specs/Architecture/SDD-{ProjectName}.md`
78
+
79
+ ---
80
+
81
+ ## Step B2: Create Epics & Use Cases
82
+
83
+ // turbo
84
+
85
+ 1. **Invoke `[business-analysis]` skill** to:
86
+ - Break PRD features into Epics (`docs/022-User-Stories/Epics/`)
87
+ - Define Use Cases with Mermaid diagrams (`docs/020-Requirements/Use-Cases/`)
88
+ 2. Create artifacts for review before saving
89
+
90
+ ---
91
+
92
+ ## Step B3: Create User Stories
93
+
94
+ // turbo
95
+
96
+ 1. **Invoke `[business-analysis]` skill** to create:
97
+ - User Stories with Acceptance Criteria (`docs/022-User-Stories/Backlog/`)
98
+ - Complexity estimates
99
+ 2. Create `draft-user-stories.md` artifact
100
+ 3. After approval → Save
101
+
102
+ ---
103
+
104
+ ## Step B4: Create ADRs (Optional)
105
+
106
+ // turbo
107
+
108
+ **Skip if**: User did not request ADRs.
109
+
110
+ 1. **Invoke `[lead-architect]` skill** to document technical decisions.
111
+ 2. Save to `docs/030-Specs/Architecture/ADR-{NNN}-{Decision}.md`
112
+
113
+ ---
114
+
115
+ # Finalize
116
+
117
+ ## Step X: Finalize
118
+
119
+ // turbo
120
+
121
+ 1. Create/update MOC files
122
+ 2. Validate wiki-links and frontmatter
123
+ 3. Present summary and suggest next steps (`/ui-ux-design` or `/implement-feature`)
@@ -1,13 +1,11 @@
1
1
  ---
2
- description: End-to-end feature implementation workflow (Spec Design → Code → Test → Deploy)
2
+ description: Orchestrates feature implementation from specification to deployment.
3
3
  ---
4
4
 
5
5
  # Feature Implementation Workflow
6
6
 
7
- Orchestrates feature implementation from specification to deployment.
8
-
9
7
  > [!IMPORTANT]
10
- > **MANDATORY**: Read `.agent/rules/documentation.md` before creating any document.
8
+ > **MANDATORY**: Read `.agent/rules/documents.md` before creating any document.
11
9
 
12
10
  ---
13
11
 
@@ -1,13 +1,11 @@
1
1
  ---
2
- description: Transform requirement into UI/UX design (System → Components → Prototypes)
2
+ description: Transform requirements into comprehensive UI/UX design deliverables.
3
3
  ---
4
4
 
5
5
  # UI/UX Design Workflow
6
6
 
7
- Transform requirements into comprehensive UI/UX design deliverables.
8
-
9
7
  > [!IMPORTANT]
10
- > **MANDATORY**: Apply `.agent/rules/documentation.md` for all documentation structure.
8
+ > **MANDATORY**: Apply `.agent/rules/documents.md` for all documentation structure.
11
9
 
12
10
  ---
13
11
 
package/README.md CHANGED
@@ -9,12 +9,25 @@
9
9
 
10
10
  ## 🎯 Introduction
11
11
 
12
- **Anti-Chaotic** is a comprehensive **Agent Kit** for Antigravity, designed to standardize and optimize your software development workflow. It serves as a versatile toolkit rather than a rigid framework:
12
+ **Anti-Chaotic** is a comprehensive **Agent Kit** for Antigravity, designed to standardize and optimize your software development workflow.
13
13
 
14
- - 🧠 **12+ Multi-domain AI Skills** - From Product Manager, Business Analyst to Lead Architect, DevOps Engineer
15
- - 🔄 **5 Automated Workflows** - Pre-defined, reusable work processes
16
- - 📜 **Rules Engine** - A rule system that ensures AI Agents follow project standards
17
- - 📚 **References Library** - Documentation references for various technologies and frameworks
14
+ ### 🎯 Core Philosophy
15
+
16
+ > **Process over Speed**: This kit is designed for **development teams** and **collaborative environments**. It prioritizes robust processes, structure, and long-term maintainability over "fast shipping" or quick hacks. It aims to bring standard engineering practices to AI-assisted coding.
17
+
18
+ ### 🧩 Concepts
19
+
20
+ - **Skills = Knowledge**: What the agent knows (Best practices, languages, patterns).
21
+ - **Rules & Workflows = Process**: How the agent executes (Steps, restrictions, output formats).
22
+
23
+ _We encourage teams to customize these skills and define their own rules & workflows to align with their specific enterprise standards._
24
+
25
+ ### 📦 Components
26
+
27
+ - 🧠 **12+ Multi-domain AI Skills** - From Product Manager, Business Analyst to Lead Architect.
28
+ - 🔄 **6 Automated Workflows** - Pre-defined, reusable work processes.
29
+ - 📜 **Rules Engine** - A rule system that ensures AI Agents follow project standards.
30
+ - 📚 **References Library** - Documentation references for various technologies.
18
31
 
19
32
  ---
20
33
 
@@ -43,11 +56,20 @@
43
56
  - **Clean Code Rules**: Coding standards and best practices
44
57
  - **Project Rules**: Project-specific conventions
45
58
 
59
+ > **ℹ️ Documentation & Tools**: The default generated documentation is optimized for **Obsidian**. If your team uses **Jira**, **GitHub**, or other tools, simply connect the relevant **MCP Server** and customize the `documents.md` rule to align the output format.
60
+
46
61
  ---
47
62
 
48
63
  ## 🚀 Quick Start
49
64
 
50
- ### 1. Initialize in your project
65
+ ### 1. Recommended Setup (MCP Servers)
66
+
67
+ To achieve the best results, we highly recommend installing the following MCP (Model Context Protocol) servers:
68
+
69
+ - **[sequence-thinking](https://github.com/axiom-team/mcp-server-sequence-thinking)**: AI model for advanced problem breakdown and step-by-step reasoning.
70
+ - **[context7](https://github.com/axiom-team/mcp-server-context7)**: For managing and retrieving broad project context.
71
+
72
+ ### 2. Initialize in your project
51
73
 
52
74
  Run the following command in your project root to install the Agent Kit:
53
75
 
@@ -57,29 +79,29 @@ npx @kienha/anti-chaotic init
57
79
 
58
80
  This will download the `.agent` folder containing all skills, rules, and workflows into your project.
59
81
 
60
- ### 2. Using the Agent Kit
82
+ ### 3. Using the Agent Kit
61
83
 
62
84
  Once initialized, start a new chat with your AI IDE (Cursor, Windsurf, etc.) and reference the installed rules/workflows.
63
85
 
64
86
  #### Start a new project with AI:
65
87
 
66
88
  ```
67
- /requirement-analysis Create a sales management application for a fashion store
89
+ /brainstorm Create a sales management application for a fashion store
68
90
  ```
69
91
 
70
92
  #### Generate docs for an existing project:
71
93
 
72
94
  ```
73
- /generate-docs-from-codebase
95
+ /documentation
74
96
  ```
75
97
 
76
98
  #### Design UI from requirements:
77
99
 
78
100
  ```
79
- /ui-ux-design-from-doc docs/020-Requirements/PRD-YourProject.md
101
+ /ui-ux-design docs/020-Requirements/PRD-YourProject.md
80
102
  ```
81
103
 
82
- ### 3. Updating the Kit
104
+ ### 4. Updating the Kit
83
105
 
84
106
  To update your Agent Kit to the latest version:
85
107
 
@@ -96,19 +118,19 @@ npx @kienha/anti-chaotic update
96
118
  **Method 1: Slash Command**
97
119
 
98
120
  ```
99
- /requirement-analysis [Your project description]
121
+ /brainstorm [Your project description]
100
122
  ```
101
123
 
102
124
  **Method 2: Direct Request**
103
125
 
104
126
  ```
105
- Please run the requirement-analysis workflow to analyze requirements for an e-commerce project
127
+ Please run the brainstorm workflow to analyze requirements for an e-commerce project
106
128
  ```
107
129
 
108
130
  **Method 3: File Reference**
109
131
 
110
132
  ```
111
- Read and execute the workflow at .agent/workflows/requirement-analysis.md
133
+ Read and execute the workflow at .agent/workflows/brainstorm.md
112
134
  ```
113
135
 
114
136
  ---
@@ -117,13 +139,14 @@ Read and execute the workflow at .agent/workflows/requirement-analysis.md
117
139
 
118
140
  ## 🔄 Automated Workflows
119
141
 
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. |
142
+ | Workflow | Description | Use Case |
143
+ | :----------------------- | :--------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------ |
144
+ | **`/bootstrap`** | Sets up project structure, installs dependencies, and configures environment based on architectural specs. | Start of Implementation Phase. |
145
+ | **`/brainstorm`** | Analyze ideas with the user and create preliminary high-level documents (Roadmap, PRD). | Start of a new project or feature when you only have a rough idea. |
146
+ | **`/custom-behavior`** | Safely customize Agent rules and workflows with impact analysis and user confirmation. | As needed to adjust Agent behavior or fix recurring mistakes. |
147
+ | **`/documentation`** | Generate comprehensive documentation (Architecture, API, Specs) from either Codebase or Requirements. | Onboarding to a legacy project OR creating detailed specs from PRD. |
148
+ | **`/implement-feature`** | Orchestrates feature implementation from specification to deployment. | After design and specs are ready, for actual coding and deployment. |
149
+ | **`/ui-ux-design`** | Transform requirements into comprehensive UI/UX design deliverables. | After requirements are finalized, before coding. |
127
150
 
128
151
  ---
129
152
 
@@ -150,5 +173,3 @@ This project is released under the [MIT License](LICENSE).
150
173
  <p align="center">
151
174
  <b>Made with ❤️ for the AI-Driven Development Community</b>
152
175
  </p>
153
-
154
- > 💡 **Tip**: You can create new workflows by adding `.md` files in the `.agent/workflows/` directory following the same structure as existing workflows.
@@ -26,6 +26,22 @@ program
26
26
  force: true,
27
27
  });
28
28
 
29
+ // Cleanup deprecated files
30
+ const deprecatedFiles = [
31
+ "rules/documentation.md",
32
+ "workflows/docs-from-codebase.md",
33
+ "workflows/requirement-analysis.md",
34
+ "workflows/setup-codebase.md",
35
+ ];
36
+
37
+ for (const file of deprecatedFiles) {
38
+ const filePath = path.join(targetAgentDir, file);
39
+ if (await fs.pathExists(filePath)) {
40
+ await fs.remove(filePath);
41
+ console.log(chalk.dim(` Removed legacy file: ${file}`));
42
+ }
43
+ }
44
+
29
45
  console.log(
30
46
  chalk.green("✔ Successfully installed Anti-Chaotic Agent Kit."),
31
47
  );
@@ -70,6 +86,22 @@ program
70
86
  force: true,
71
87
  });
72
88
 
89
+ // Cleanup deprecated files
90
+ const deprecatedFiles = [
91
+ "rules/documentation.md",
92
+ "workflows/docs-from-codebase.md",
93
+ "workflows/requirement-analysis.md",
94
+ "workflows/setup-codebase.md",
95
+ ];
96
+
97
+ for (const file of deprecatedFiles) {
98
+ const filePath = path.join(targetAgentDir, file);
99
+ if (await fs.pathExists(filePath)) {
100
+ await fs.remove(filePath);
101
+ console.log(chalk.dim(` Removed legacy file: ${file}`));
102
+ }
103
+ }
104
+
73
105
  console.log(chalk.green("✔ Successfully updated .agent from GitHub."));
74
106
  console.log(chalk.dim(` Location: ${targetAgentDir}`));
75
107
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kienha/anti-chaotic",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Anti-Chaotic - An agent kit for Antigravity to standardize the software development process",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -1,104 +0,0 @@
1
- ---
2
- description: Generate comprehensive documentation from existing codebase (Architecture, API, Specs).
3
- ---
4
-
5
- # Generate Documentation from Codebase
6
-
7
- Automatically generates structured documentation from an existing codebase.
8
-
9
- > [!IMPORTANT]
10
- > **MANDATORY**: Apply `.agent/rules/documentation.md` for all document creation.
11
-
12
- ---
13
-
14
- ## MCP Usage Guidelines
15
-
16
- | MCP Tool | When to Use |
17
- | -------------------------------------------- | ---------------------------------------------- |
18
- | `mcp_sequential-thinking_sequentialthinking` | Analyze complex architecture, design decisions |
19
- | `mcp_context7_query-docs` | Research framework patterns, diagram syntax |
20
-
21
- ---
22
-
23
- ## Step 1: Codebase Discovery
24
-
25
- // turbo
26
-
27
- > 💡 **MCP**: Use `sequential-thinking` to analyze unfamiliar project structures
28
-
29
- 1. **Invoke `[lead-architect]` skill** to analyze codebase structure
30
- 2. Identify: tech stack, entry points, API routes, DB schemas
31
- 3. **WAIT** for user to confirm understanding
32
-
33
- ---
34
-
35
- ## Step 2: Determine Scope
36
-
37
- // turbo
38
-
39
- Ask user which documentation to generate:
40
-
41
- - System Architecture
42
- - API Documentation
43
- - Database Schema
44
- - Component Reference
45
-
46
- **Default**: Generate all if not specified.
47
-
48
- ---
49
-
50
- ## Step 3: Generate Architecture Documentation
51
-
52
- // turbo
53
-
54
- > 💡 **MCP**: Use `sequential-thinking` + `context7` with `/mermaid-js/mermaid` for C4 diagrams
55
-
56
- 1. **Invoke `[lead-architect]` skill** to create:
57
- - System Context (C4 Context Diagram)
58
- - Component View (C4 Component Diagram)
59
- - Data Flow documentation
60
-
61
- ---
62
-
63
- ## Step 4: Generate API Documentation
64
-
65
- // turbo
66
-
67
- > 💡 **MCP**: Use `context7` for framework-specific API patterns
68
-
69
- 1. **Invoke `[backend-developer]` skill** to:
70
- - Scan and document API routes
71
- - Create endpoint specifications
72
-
73
- ---
74
-
75
- ## Step 5: Generate Database Schema Documentation
76
-
77
- // turbo
78
-
79
- > 💡 **MCP**: Use `context7` with `/drizzle-team/*` or `/prisma/*` + `/mermaid-js/mermaid` for ERD
80
-
81
- 1. **Invoke `[backend-developer]` skill** to:
82
- - Document entities and relationships
83
- - Generate ERD diagram
84
-
85
- ---
86
-
87
- ## Step 6: Finalize
88
-
89
- // turbo
90
-
91
- 1. Create/update MOC files
92
- 2. Validate wiki-links and frontmatter
93
- 3. Present summary and suggest next steps
94
-
95
- ---
96
-
97
- ## Quick Reference
98
-
99
- | Step | Skill | Output |
100
- | ---- | ----------------- | ----------------- |
101
- | 1 | lead-architect | Codebase analysis |
102
- | 3 | lead-architect | Architecture docs |
103
- | 4 | backend-developer | API docs |
104
- | 5 | backend-developer | Schema docs |