@mind-fold/open-flow 0.1.17 → 0.2.2
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/dist/configurators/templates.d.ts.map +1 -1
- package/dist/configurators/templates.js +17 -6
- package/dist/configurators/templates.js.map +1 -1
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +82 -6
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/templates/commands/break-loop.txt +107 -0
- package/dist/templates/commands/check-cross-layer.txt +153 -0
- package/dist/templates/commands/finish-work.txt +129 -0
- package/dist/templates/commands/index.d.ts +9 -5
- package/dist/templates/commands/index.d.ts.map +1 -1
- package/dist/templates/commands/index.js +16 -5
- package/dist/templates/commands/index.js.map +1 -1
- package/dist/templates/commands/init-agent.txt +100 -9
- package/dist/templates/commands/sync-from-runtime.txt +140 -0
- package/dist/templates/markdown/flow.md.txt +96 -84
- package/dist/templates/markdown/index.d.ts +21 -4
- package/dist/templates/markdown/index.d.ts.map +1 -1
- package/dist/templates/markdown/index.js +27 -4
- package/dist/templates/markdown/index.js.map +1 -1
- package/dist/templates/markdown/structure/backend/database-guidelines.md.txt +247 -0
- package/dist/templates/markdown/structure/backend/directory-structure.md.txt +153 -0
- package/dist/templates/markdown/structure/backend/error-handling.md.txt +257 -0
- package/dist/templates/markdown/structure/backend/index.md.txt +88 -0
- package/dist/templates/markdown/structure/backend/logging-guidelines.md.txt +212 -0
- package/dist/templates/markdown/structure/backend/quality-guidelines.md.txt +219 -0
- package/dist/templates/markdown/structure/backend/type-safety.md.txt +192 -0
- package/dist/templates/markdown/structure/flows/code-reuse-thinking-guide.md.txt +343 -0
- package/dist/templates/markdown/structure/flows/cross-layer-thinking-guide.md.txt +283 -0
- package/dist/templates/markdown/structure/flows/index.md.txt +133 -0
- package/dist/templates/markdown/structure/flows/pre-implementation-checklist.md.txt +182 -0
- package/dist/templates/markdown/structure/flows/spec-flow-template.md.txt +145 -0
- package/dist/templates/markdown/structure/frontend/component-guidelines.md.txt +335 -0
- package/dist/templates/markdown/structure/frontend/directory-structure.md.txt +172 -0
- package/dist/templates/markdown/structure/frontend/hook-guidelines.md.txt +287 -0
- package/dist/templates/markdown/structure/frontend/index.md.txt +91 -0
- package/dist/templates/markdown/structure/frontend/quality-guidelines.md.txt +274 -0
- package/dist/templates/markdown/structure/frontend/state-management.md.txt +293 -0
- package/dist/templates/markdown/structure/frontend/type-safety.md.txt +275 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAyBH,MAAM,WAAW,gBAAgB;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CAoCtD"}
|
|
@@ -2,25 +2,36 @@
|
|
|
2
2
|
* Short command templates for AI assistants
|
|
3
3
|
* These are the core commands that enable AI-assisted development workflow
|
|
4
4
|
*/
|
|
5
|
-
import { initAgentTemplate, checkFrontendTemplate, checkBackendTemplate, recordAgentFlowTemplate, recordQuestionTemplate, onboardDeveloperTemplate, generateFrontendStructureTemplate, generateBackendStructureTemplate, beforeFrontendDevTemplate, beforeBackendDevTemplate, updateFrontendStructureTemplate, updateBackendStructureTemplate, createCommandTemplate, integrateSkillTemplate, extractLlmDocsTemplate, extractToRulesTemplate, } from "../templates/commands/index.js";
|
|
5
|
+
import { initAgentTemplate, checkFrontendTemplate, checkBackendTemplate, checkCrossLayerTemplate, recordAgentFlowTemplate, recordQuestionTemplate, onboardDeveloperTemplate, generateFrontendStructureTemplate, generateBackendStructureTemplate, beforeFrontendDevTemplate, beforeBackendDevTemplate, updateFrontendStructureTemplate, updateBackendStructureTemplate, createCommandTemplate, integrateSkillTemplate, extractLlmDocsTemplate, extractToRulesTemplate, finishWorkTemplate, breakLoopTemplate, syncFromRuntimeTemplate, } from "../templates/commands/index.js";
|
|
6
6
|
export function getCommandTemplates() {
|
|
7
7
|
return {
|
|
8
|
+
// Core workflow
|
|
8
9
|
"init-agent": initAgentTemplate,
|
|
9
|
-
"check-frontend": checkFrontendTemplate,
|
|
10
|
-
"check-backend": checkBackendTemplate,
|
|
11
10
|
"record-agent-flow": recordAgentFlowTemplate,
|
|
12
|
-
"record-question": recordQuestionTemplate,
|
|
13
11
|
"onboard-developer": onboardDeveloperTemplate,
|
|
14
|
-
|
|
15
|
-
"
|
|
12
|
+
// Development checks
|
|
13
|
+
"check-frontend": checkFrontendTemplate,
|
|
14
|
+
"check-backend": checkBackendTemplate,
|
|
15
|
+
"check-cross-layer": checkCrossLayerTemplate,
|
|
16
|
+
// Pre-development
|
|
16
17
|
"before-frontend-dev": beforeFrontendDevTemplate,
|
|
17
18
|
"before-backend-dev": beforeBackendDevTemplate,
|
|
19
|
+
// Structure generation
|
|
20
|
+
"generate-frontend-structure": generateFrontendStructureTemplate,
|
|
21
|
+
"generate-backend-structure": generateBackendStructureTemplate,
|
|
18
22
|
"update-frontend-structure": updateFrontendStructureTemplate,
|
|
19
23
|
"update-backend-structure": updateBackendStructureTemplate,
|
|
24
|
+
// Work completion
|
|
25
|
+
"finish-work": finishWorkTemplate,
|
|
26
|
+
"break-loop": breakLoopTemplate,
|
|
27
|
+
// Utilities
|
|
20
28
|
"create-command": createCommandTemplate,
|
|
21
29
|
"integrate-skill": integrateSkillTemplate,
|
|
22
30
|
"extract-llm-docs": extractLlmDocsTemplate,
|
|
23
31
|
"extract-to-rules": extractToRulesTemplate,
|
|
32
|
+
"record-question": recordQuestionTemplate,
|
|
33
|
+
// Knowledge sync
|
|
34
|
+
"sync-from-runtime": syncFromRuntimeTemplate,
|
|
24
35
|
};
|
|
25
36
|
}
|
|
26
37
|
//# sourceMappingURL=templates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,iCAAiC,EACjC,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/configurators/templates.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,iCAAiC,EACjC,gCAAgC,EAChC,yBAAyB,EACzB,wBAAwB,EACxB,+BAA+B,EAC/B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,GACvB,MAAM,gCAAgC,CAAC;AAMxC,MAAM,UAAU,mBAAmB;IAClC,OAAO;QACN,gBAAgB;QAChB,YAAY,EAAE,iBAAiB;QAC/B,mBAAmB,EAAE,uBAAuB;QAC5C,mBAAmB,EAAE,wBAAwB;QAE7C,qBAAqB;QACrB,gBAAgB,EAAE,qBAAqB;QACvC,eAAe,EAAE,oBAAoB;QACrC,mBAAmB,EAAE,uBAAuB;QAE5C,kBAAkB;QAClB,qBAAqB,EAAE,yBAAyB;QAChD,oBAAoB,EAAE,wBAAwB;QAE9C,uBAAuB;QACvB,6BAA6B,EAAE,iCAAiC;QAChE,4BAA4B,EAAE,gCAAgC;QAC9D,2BAA2B,EAAE,+BAA+B;QAC5D,0BAA0B,EAAE,8BAA8B;QAE1D,kBAAkB;QAClB,aAAa,EAAE,kBAAkB;QACjC,YAAY,EAAE,iBAAiB;QAE/B,YAAY;QACZ,gBAAgB,EAAE,qBAAqB;QACvC,iBAAiB,EAAE,sBAAsB;QACzC,kBAAkB,EAAE,sBAAsB;QAC1C,kBAAkB,EAAE,sBAAsB;QAC1C,iBAAiB,EAAE,sBAAsB;QAEzC,iBAAiB;QACjB,mBAAmB,EAAE,uBAAuB;KAC5C,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AA4CA,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8BxE"}
|
|
@@ -2,7 +2,13 @@ import path from "node:path";
|
|
|
2
2
|
// Import script templates
|
|
3
3
|
import { initDeveloperScript, getDeveloperScript, extractMdHeadingsScript, featureScript, getContextScript, updateIndexScript, addSessionScript, } from "../templates/scripts/index.js";
|
|
4
4
|
// Import markdown templates
|
|
5
|
-
import { agentProgressIndexContent,
|
|
5
|
+
import { agentProgressIndexContent, flowMdContent, workflowGitignoreContent,
|
|
6
|
+
// Backend structure (multi-doc)
|
|
7
|
+
backendIndexContent, backendDirectoryStructureContent, backendTypeSafetyContent, backendDatabaseGuidelinesContent, backendLoggingGuidelinesContent, backendQualityGuidelinesContent, backendErrorHandlingContent,
|
|
8
|
+
// Frontend structure (multi-doc)
|
|
9
|
+
frontendIndexContent, frontendDirectoryStructureContent, frontendTypeSafetyContent, frontendHookGuidelinesContent, frontendComponentGuidelinesContent, frontendQualityGuidelinesContent, frontendStateManagementContent,
|
|
10
|
+
// Flows structure
|
|
11
|
+
flowsIndexContent, flowsCrossLayerThinkingGuideContent, flowsSpecFlowTemplateContent, flowsPreImplementationChecklistContent, flowsCodeReuseThinkingGuideContent, } from "../templates/markdown/index.js";
|
|
6
12
|
import { writeFile, ensureDir } from "../utils/file-writer.js";
|
|
7
13
|
export async function createWorkflowStructure(cwd) {
|
|
8
14
|
// Create directories
|
|
@@ -13,6 +19,7 @@ export async function createWorkflowStructure(cwd) {
|
|
|
13
19
|
"workflow/structure",
|
|
14
20
|
"workflow/structure/frontend",
|
|
15
21
|
"workflow/structure/backend",
|
|
22
|
+
"workflow/structure/flows",
|
|
16
23
|
];
|
|
17
24
|
for (const dir of dirs) {
|
|
18
25
|
ensureDir(path.join(cwd, dir));
|
|
@@ -21,7 +28,7 @@ export async function createWorkflowStructure(cwd) {
|
|
|
21
28
|
await createScripts(cwd);
|
|
22
29
|
// Create agent-progress index
|
|
23
30
|
await createAgentProgressIndex(cwd);
|
|
24
|
-
// Create structure templates
|
|
31
|
+
// Create structure templates (multi-doc format)
|
|
25
32
|
await createStructureTemplates(cwd);
|
|
26
33
|
// Create flow.md
|
|
27
34
|
await createFlowMd(cwd);
|
|
@@ -47,10 +54,79 @@ async function createAgentProgressIndex(cwd) {
|
|
|
47
54
|
await writeFile(path.join(cwd, "workflow/agent-progress/index.md"), agentProgressIndexContent);
|
|
48
55
|
}
|
|
49
56
|
async function createStructureTemplates(cwd) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
// Backend structure (multi-doc format)
|
|
58
|
+
const backendDocs = [
|
|
59
|
+
{ name: "index.md", content: backendIndexContent },
|
|
60
|
+
{
|
|
61
|
+
name: "directory-structure.md",
|
|
62
|
+
content: backendDirectoryStructureContent,
|
|
63
|
+
},
|
|
64
|
+
{ name: "type-safety.md", content: backendTypeSafetyContent },
|
|
65
|
+
{
|
|
66
|
+
name: "database-guidelines.md",
|
|
67
|
+
content: backendDatabaseGuidelinesContent,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "logging-guidelines.md",
|
|
71
|
+
content: backendLoggingGuidelinesContent,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "quality-guidelines.md",
|
|
75
|
+
content: backendQualityGuidelinesContent,
|
|
76
|
+
},
|
|
77
|
+
{ name: "error-handling.md", content: backendErrorHandlingContent },
|
|
78
|
+
];
|
|
79
|
+
for (const doc of backendDocs) {
|
|
80
|
+
await writeFile(path.join(cwd, "workflow/structure/backend", doc.name), doc.content);
|
|
81
|
+
}
|
|
82
|
+
// Frontend structure (multi-doc format)
|
|
83
|
+
const frontendDocs = [
|
|
84
|
+
{ name: "index.md", content: frontendIndexContent },
|
|
85
|
+
{
|
|
86
|
+
name: "directory-structure.md",
|
|
87
|
+
content: frontendDirectoryStructureContent,
|
|
88
|
+
},
|
|
89
|
+
{ name: "type-safety.md", content: frontendTypeSafetyContent },
|
|
90
|
+
{ name: "hook-guidelines.md", content: frontendHookGuidelinesContent },
|
|
91
|
+
{
|
|
92
|
+
name: "component-guidelines.md",
|
|
93
|
+
content: frontendComponentGuidelinesContent,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "quality-guidelines.md",
|
|
97
|
+
content: frontendQualityGuidelinesContent,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "state-management.md",
|
|
101
|
+
content: frontendStateManagementContent,
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
for (const doc of frontendDocs) {
|
|
105
|
+
await writeFile(path.join(cwd, "workflow/structure/frontend", doc.name), doc.content);
|
|
106
|
+
}
|
|
107
|
+
// Flows structure
|
|
108
|
+
const flowsDocs = [
|
|
109
|
+
{ name: "index.md", content: flowsIndexContent },
|
|
110
|
+
{
|
|
111
|
+
name: "cross-layer-thinking-guide.md",
|
|
112
|
+
content: flowsCrossLayerThinkingGuideContent,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "spec-flow-template.md",
|
|
116
|
+
content: flowsSpecFlowTemplateContent,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "pre-implementation-checklist.md",
|
|
120
|
+
content: flowsPreImplementationChecklistContent,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "code-reuse-thinking-guide.md",
|
|
124
|
+
content: flowsCodeReuseThinkingGuideContent,
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
for (const doc of flowsDocs) {
|
|
128
|
+
await writeFile(path.join(cwd, "workflow/structure/flows", doc.name), doc.content);
|
|
129
|
+
}
|
|
54
130
|
}
|
|
55
131
|
async function createFlowMd(cwd) {
|
|
56
132
|
await writeFile(path.join(cwd, "workflow/flow.md"), flowMdContent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,0BAA0B;AAC1B,OAAO,EACN,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACN,yBAAyB,EACzB,
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,0BAA0B;AAC1B,OAAO,EACN,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACN,yBAAyB,EACzB,aAAa,EACb,wBAAwB;AACxB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,wBAAwB,EACxB,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6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AI,CAAC,GAAG,EAAE,0BAA0B,EAAE,GAAG,CAAC,IAAI,CAAC,EACpD,GAAG,CAAC,OAAO,CACX,CAAC;IACH,CAAC;AACF,CAAC;AAED,KAAK,UAAU,YAAY,CAAC,GAAW;IACtC,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,kBAAkB,CAAC,EAAE,aAAa,CAAC,CAAC;AACpE,CAAC;AAED,KAAK,UAAU,uBAAuB,CAAC,GAAW;IACjD,MAAM,SAAS,CACd,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,qBAAqB,CAAC,EACrC,wBAAwB,CACxB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Break the Loop - Deep Bug Analysis
|
|
2
|
+
|
|
3
|
+
When debug is complete, use this command for deep analysis to break the "fix bug → forget → repeat" cycle.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Analysis Framework
|
|
8
|
+
|
|
9
|
+
Analyze the bug you just fixed from these 5 dimensions:
|
|
10
|
+
|
|
11
|
+
### 1. Root Cause Category
|
|
12
|
+
|
|
13
|
+
Which category does this bug belong to?
|
|
14
|
+
|
|
15
|
+
| Category | Characteristics | Example |
|
|
16
|
+
|----------|-----------------|---------|
|
|
17
|
+
| **A. Missing Spec** | No documentation on how to do it | New feature without checklist |
|
|
18
|
+
| **B. Cross-Layer Contract** | Interface between layers unclear | API returns different format than expected |
|
|
19
|
+
| **C. Change Propagation Failure** | Changed one place, missed others | Changed function signature, missed call sites |
|
|
20
|
+
| **D. Test Coverage Gap** | Unit test passes, integration fails | Works alone, breaks when combined |
|
|
21
|
+
| **E. Implicit Assumption** | Code relies on undocumented assumption | Timestamp seconds vs milliseconds |
|
|
22
|
+
|
|
23
|
+
### 2. Why Fixes Failed (if applicable)
|
|
24
|
+
|
|
25
|
+
If you tried multiple fixes before succeeding, analyze each failure:
|
|
26
|
+
|
|
27
|
+
- **Surface Fix**: Fixed symptom, not root cause
|
|
28
|
+
- **Incomplete Scope**: Found root cause, didn't cover all cases
|
|
29
|
+
- **Tool Limitation**: grep missed it, type check wasn't strict
|
|
30
|
+
- **Mental Model**: Kept looking in same layer, didn't think cross-layer
|
|
31
|
+
|
|
32
|
+
### 3. Prevention Mechanisms
|
|
33
|
+
|
|
34
|
+
What mechanisms would prevent this from happening again?
|
|
35
|
+
|
|
36
|
+
| Type | Description | Example |
|
|
37
|
+
|------|-------------|---------|
|
|
38
|
+
| **Documentation** | Write it down so people know | Update thinking guide |
|
|
39
|
+
| **Architecture** | Make the error impossible structurally | Type-safe wrappers |
|
|
40
|
+
| **Compile-time** | TypeScript strict, no any | Signature change causes compile error |
|
|
41
|
+
| **Runtime** | Monitoring, alerts, scans | Detect orphan entities |
|
|
42
|
+
| **Test Coverage** | E2E tests, integration tests | Verify full flow |
|
|
43
|
+
| **Code Review** | Checklist, PR template | "Did you check X?" |
|
|
44
|
+
|
|
45
|
+
### 4. Systematic Expansion
|
|
46
|
+
|
|
47
|
+
What broader problems does this bug reveal?
|
|
48
|
+
|
|
49
|
+
- **Similar Issues**: Where else might this problem exist?
|
|
50
|
+
- **Design Flaw**: Is there a fundamental architecture issue?
|
|
51
|
+
- **Process Flaw**: Is there a development process improvement?
|
|
52
|
+
- **Knowledge Gap**: Is the team missing some understanding?
|
|
53
|
+
|
|
54
|
+
### 5. Knowledge Capture
|
|
55
|
+
|
|
56
|
+
Solidify insights into the system:
|
|
57
|
+
|
|
58
|
+
- [ ] Update `workflow/structure/flows/` thinking guides
|
|
59
|
+
- [ ] Update `workflow/structure/backend/` or `frontend/` docs
|
|
60
|
+
- [ ] Create issue record (if applicable)
|
|
61
|
+
- [ ] Create feature ticket for root fix
|
|
62
|
+
- [ ] Update check commands if needed
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Output Format
|
|
67
|
+
|
|
68
|
+
Please output analysis in this format:
|
|
69
|
+
|
|
70
|
+
```markdown
|
|
71
|
+
## Bug Analysis: [Short Description]
|
|
72
|
+
|
|
73
|
+
### 1. Root Cause Category
|
|
74
|
+
- **Category**: [A/B/C/D/E] - [Category Name]
|
|
75
|
+
- **Specific Cause**: [Detailed description]
|
|
76
|
+
|
|
77
|
+
### 2. Why Fixes Failed (if applicable)
|
|
78
|
+
1. [First attempt]: [Why it failed]
|
|
79
|
+
2. [Second attempt]: [Why it failed]
|
|
80
|
+
...
|
|
81
|
+
|
|
82
|
+
### 3. Prevention Mechanisms
|
|
83
|
+
| Priority | Mechanism | Specific Action | Status |
|
|
84
|
+
|----------|-----------|-----------------|--------|
|
|
85
|
+
| P0 | ... | ... | TODO/DONE |
|
|
86
|
+
|
|
87
|
+
### 4. Systematic Expansion
|
|
88
|
+
- **Similar Issues**: [List places with similar problems]
|
|
89
|
+
- **Design Improvement**: [Architecture-level suggestions]
|
|
90
|
+
- **Process Improvement**: [Development process suggestions]
|
|
91
|
+
|
|
92
|
+
### 5. Knowledge Capture
|
|
93
|
+
- [ ] [Documents to update / tickets to create]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Core Philosophy
|
|
99
|
+
|
|
100
|
+
> **The value of debugging is not in fixing the bug, but in making this class of bugs never happen again.**
|
|
101
|
+
|
|
102
|
+
Three levels of insight:
|
|
103
|
+
1. **Tactical**: How to fix THIS bug
|
|
104
|
+
2. **Strategic**: How to prevent THIS CLASS of bugs
|
|
105
|
+
3. **Philosophical**: How to expand thinking patterns
|
|
106
|
+
|
|
107
|
+
30 minutes of analysis saves 30 hours of future debugging.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Cross-Layer Check
|
|
2
|
+
|
|
3
|
+
Check if your changes considered all dimensions. Most bugs come from "didn't think of it", not lack of technical skill.
|
|
4
|
+
|
|
5
|
+
> **Note**: This is a **post-implementation** safety net. Ideally, read the [Pre-Implementation Checklist](workflow/structure/flows/pre-implementation-checklist.md) **before** writing code.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Related Documents
|
|
10
|
+
|
|
11
|
+
| Document | Purpose | Timing |
|
|
12
|
+
|----------|---------|--------|
|
|
13
|
+
| [Pre-Implementation Checklist](workflow/structure/flows/pre-implementation-checklist.md) | Questions before coding | **Before** writing code |
|
|
14
|
+
| [Code Reuse Thinking Guide](workflow/structure/flows/code-reuse-thinking-guide.md) | Pattern recognition | During implementation |
|
|
15
|
+
| **`/check-cross-layer`** (this) | Verification check | **After** implementation |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Execution Steps
|
|
20
|
+
|
|
21
|
+
### 1. Identify Change Scope
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
git status
|
|
25
|
+
git diff --name-only
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### 2. Select Applicable Check Dimensions
|
|
29
|
+
|
|
30
|
+
Based on your change type, execute relevant checks below:
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Dimension A: Cross-Layer Data Flow (Required when 3+ layers)
|
|
35
|
+
|
|
36
|
+
**Trigger**: Changes involve 3 or more layers
|
|
37
|
+
|
|
38
|
+
| Layer | Identifier |
|
|
39
|
+
|-------|------------|
|
|
40
|
+
| API Route | `routes/`, `api/` |
|
|
41
|
+
| Service | `services/`, `lib/` |
|
|
42
|
+
| Database | `db/`, `schema` |
|
|
43
|
+
| Hook | `hooks/`, `use*.ts` |
|
|
44
|
+
| Component | `components/`, `*.tsx` |
|
|
45
|
+
| Utility | `utils/`, `lib/` |
|
|
46
|
+
|
|
47
|
+
**Checklist**:
|
|
48
|
+
- [ ] Read flow: Database → Service → API → Hook → Component
|
|
49
|
+
- [ ] Write flow: Component → Hook → API → Service → Database
|
|
50
|
+
- [ ] Types correctly passed between layers?
|
|
51
|
+
- [ ] Errors properly propagated to UI?
|
|
52
|
+
- [ ] Loading states handled at each layer?
|
|
53
|
+
|
|
54
|
+
**Detailed Guide**: `workflow/structure/flows/cross-layer-thinking-guide.md`
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Dimension B: Code Reuse (Required when modifying constants/config)
|
|
59
|
+
|
|
60
|
+
**Trigger**:
|
|
61
|
+
- Modifying UI constants (label, icon, color)
|
|
62
|
+
- Modifying any hardcoded value
|
|
63
|
+
- Seeing similar code in multiple places
|
|
64
|
+
- Creating a new utility/helper function
|
|
65
|
+
- Just finished batch modifications across files
|
|
66
|
+
|
|
67
|
+
**Checklist**:
|
|
68
|
+
- [ ] Search first: How many places define this value?
|
|
69
|
+
```bash
|
|
70
|
+
grep -r "value-to-change" --include="*.ts" --include="*.tsx"
|
|
71
|
+
```
|
|
72
|
+
- [ ] If 2+ places define same value → Should extract to shared constant
|
|
73
|
+
- [ ] After modification, all usage sites updated?
|
|
74
|
+
- [ ] If creating utility: Does similar utility already exist?
|
|
75
|
+
|
|
76
|
+
**Detailed Guide**: `workflow/structure/flows/code-reuse-thinking-guide.md`
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Dimension B2: New Utility Functions
|
|
81
|
+
|
|
82
|
+
**Trigger**: About to create a new utility/helper function
|
|
83
|
+
|
|
84
|
+
**Checklist**:
|
|
85
|
+
- [ ] Search for existing similar utilities first
|
|
86
|
+
```bash
|
|
87
|
+
grep -r "functionNamePattern" --include="*.ts"
|
|
88
|
+
```
|
|
89
|
+
- [ ] If similar exists, can you extend it instead?
|
|
90
|
+
- [ ] If creating new, is it in the right location (shared vs domain-specific)?
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Dimension B3: After Batch Modifications
|
|
95
|
+
|
|
96
|
+
**Trigger**: Just modified similar patterns in multiple files
|
|
97
|
+
|
|
98
|
+
**Checklist**:
|
|
99
|
+
- [ ] Did you check ALL files with similar patterns?
|
|
100
|
+
```bash
|
|
101
|
+
grep -r "patternYouChanged" --include="*.ts" --include="*.tsx"
|
|
102
|
+
```
|
|
103
|
+
- [ ] Any files missed that should also be updated?
|
|
104
|
+
- [ ] Should this pattern be abstracted to prevent future duplication?
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Dimension C: Import Paths (Required when creating new files)
|
|
109
|
+
|
|
110
|
+
**Trigger**: Creating new .ts/.tsx files
|
|
111
|
+
|
|
112
|
+
**Checklist**:
|
|
113
|
+
- [ ] Using correct path aliases?
|
|
114
|
+
- [ ] No circular imports?
|
|
115
|
+
- [ ] Relative vs absolute paths consistent with project convention?
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Dimension D: Same-Layer Consistency
|
|
120
|
+
|
|
121
|
+
**Trigger**:
|
|
122
|
+
- Modifying display logic in a component
|
|
123
|
+
- Same domain concept used in multiple components
|
|
124
|
+
|
|
125
|
+
**Checklist**:
|
|
126
|
+
- [ ] Search for other components using same concept
|
|
127
|
+
```bash
|
|
128
|
+
grep -r "ConceptName" --include="*.tsx"
|
|
129
|
+
```
|
|
130
|
+
- [ ] Are these components' displays consistent?
|
|
131
|
+
- [ ] Should they share configuration?
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Common Issues Quick Reference
|
|
136
|
+
|
|
137
|
+
| Issue | Root Cause | Prevention |
|
|
138
|
+
|-------|------------|------------|
|
|
139
|
+
| Changed one place, missed others | Didn't search impact scope | `grep` before changing |
|
|
140
|
+
| Data lost at some layer | Didn't check data flow | Trace data source to destination |
|
|
141
|
+
| Type mismatch | Cross-layer types inconsistent | Use shared types |
|
|
142
|
+
| UI inconsistent | Same concept in multiple places | Extract shared constants |
|
|
143
|
+
| Similar utility exists | Didn't search first | Search before creating |
|
|
144
|
+
| Batch fix incomplete | Didn't verify all occurrences | grep after fixing |
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Output
|
|
149
|
+
|
|
150
|
+
Report:
|
|
151
|
+
1. Which dimensions your changes involve
|
|
152
|
+
2. Check results for each dimension
|
|
153
|
+
3. Issues found and fix suggestions
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Finish Work - Pre-Commit Checklist
|
|
2
|
+
|
|
3
|
+
Before submitting or committing, use this checklist to ensure work completeness.
|
|
4
|
+
|
|
5
|
+
**Timing**: After code is written and tested, before commit
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Checklist
|
|
10
|
+
|
|
11
|
+
### 1. Code Quality
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Must pass
|
|
15
|
+
pnpm lint
|
|
16
|
+
pnpm type-check
|
|
17
|
+
pnpm test
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- [ ] `pnpm lint` passes with 0 errors?
|
|
21
|
+
- [ ] `pnpm type-check` passes with no type errors?
|
|
22
|
+
- [ ] Tests pass?
|
|
23
|
+
- [ ] No `console.log` statements (use logger)?
|
|
24
|
+
- [ ] No non-null assertions `!`?
|
|
25
|
+
- [ ] No `any` types?
|
|
26
|
+
|
|
27
|
+
### 2. Documentation Sync
|
|
28
|
+
|
|
29
|
+
**Structure Docs**:
|
|
30
|
+
- [ ] Does `workflow/structure/backend/` need updates?
|
|
31
|
+
- New patterns, new modules, new conventions
|
|
32
|
+
- [ ] Does `workflow/structure/frontend/` need updates?
|
|
33
|
+
- New components, new hooks, new patterns
|
|
34
|
+
- [ ] Does `workflow/structure/flows/` need updates?
|
|
35
|
+
- New cross-layer flows, lessons from bugs
|
|
36
|
+
|
|
37
|
+
**Key Question**:
|
|
38
|
+
> "If I fixed a bug or discovered something non-obvious, should I document it so future me (or others) won't hit the same issue?"
|
|
39
|
+
|
|
40
|
+
If YES → Update the relevant structure doc.
|
|
41
|
+
|
|
42
|
+
### 3. API Changes
|
|
43
|
+
|
|
44
|
+
If you modified API endpoints:
|
|
45
|
+
|
|
46
|
+
- [ ] Input schema updated?
|
|
47
|
+
- [ ] Output schema updated?
|
|
48
|
+
- [ ] API documentation updated?
|
|
49
|
+
- [ ] Client code updated to match?
|
|
50
|
+
|
|
51
|
+
### 4. Database Changes
|
|
52
|
+
|
|
53
|
+
If you modified database schema:
|
|
54
|
+
|
|
55
|
+
- [ ] Migration file created?
|
|
56
|
+
- [ ] Schema file updated?
|
|
57
|
+
- [ ] Related queries updated?
|
|
58
|
+
- [ ] Seed data updated (if applicable)?
|
|
59
|
+
|
|
60
|
+
### 5. Cross-Layer Verification
|
|
61
|
+
|
|
62
|
+
If the change spans multiple layers:
|
|
63
|
+
|
|
64
|
+
- [ ] Data flows correctly through all layers?
|
|
65
|
+
- [ ] Error handling works at each boundary?
|
|
66
|
+
- [ ] Types are consistent across layers?
|
|
67
|
+
- [ ] Loading states handled?
|
|
68
|
+
|
|
69
|
+
### 6. Manual Testing
|
|
70
|
+
|
|
71
|
+
- [ ] Feature works in browser/app?
|
|
72
|
+
- [ ] Edge cases tested?
|
|
73
|
+
- [ ] Error states tested?
|
|
74
|
+
- [ ] Works after page refresh?
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Quick Check Flow
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
# 1. Code checks
|
|
82
|
+
pnpm lint && pnpm type-check
|
|
83
|
+
|
|
84
|
+
# 2. View changes
|
|
85
|
+
git status
|
|
86
|
+
git diff --name-only
|
|
87
|
+
|
|
88
|
+
# 3. Based on changed files, check relevant items above
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Common Oversights
|
|
94
|
+
|
|
95
|
+
| Oversight | Consequence | Check |
|
|
96
|
+
|-----------|-------------|-------|
|
|
97
|
+
| Structure docs not updated | Others don't know the change | Check workflow/structure/ |
|
|
98
|
+
| Migration not created | Schema out of sync | Check db/migrations/ |
|
|
99
|
+
| Types not synced | Runtime errors | Check shared types |
|
|
100
|
+
| Tests not updated | False confidence | Run full test suite |
|
|
101
|
+
| Console.log left in | Noisy production logs | Search for console.log |
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Relationship to Other Commands
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
Development Flow:
|
|
109
|
+
Write code → Test → /finish-work → git commit → /record-agent-flow
|
|
110
|
+
↑ ↑
|
|
111
|
+
Ensure completeness Record progress
|
|
112
|
+
|
|
113
|
+
Debug Flow:
|
|
114
|
+
Hit bug → Fix → /break-loop → Knowledge capture
|
|
115
|
+
↑
|
|
116
|
+
Deep analysis
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
- `/finish-work` - Check work completeness (this command)
|
|
120
|
+
- `/record-agent-flow` - Record session and commits
|
|
121
|
+
- `/break-loop` - Deep analysis after debugging
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Core Principle
|
|
126
|
+
|
|
127
|
+
> **Delivery includes not just code, but also documentation, verification, and knowledge capture.**
|
|
128
|
+
|
|
129
|
+
Complete work = Code + Docs + Tests + Verification
|
|
@@ -3,19 +3,23 @@
|
|
|
3
3
|
* Each command is stored as a .txt file
|
|
4
4
|
*/
|
|
5
5
|
export declare const initAgentTemplate: string;
|
|
6
|
-
export declare const checkFrontendTemplate: string;
|
|
7
|
-
export declare const checkBackendTemplate: string;
|
|
8
6
|
export declare const recordAgentFlowTemplate: string;
|
|
9
|
-
export declare const recordQuestionTemplate: string;
|
|
10
7
|
export declare const onboardDeveloperTemplate: string;
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
8
|
+
export declare const checkFrontendTemplate: string;
|
|
9
|
+
export declare const checkBackendTemplate: string;
|
|
10
|
+
export declare const checkCrossLayerTemplate: string;
|
|
13
11
|
export declare const beforeFrontendDevTemplate: string;
|
|
14
12
|
export declare const beforeBackendDevTemplate: string;
|
|
13
|
+
export declare const generateFrontendStructureTemplate: string;
|
|
14
|
+
export declare const generateBackendStructureTemplate: string;
|
|
15
15
|
export declare const updateFrontendStructureTemplate: string;
|
|
16
16
|
export declare const updateBackendStructureTemplate: string;
|
|
17
|
+
export declare const finishWorkTemplate: string;
|
|
18
|
+
export declare const breakLoopTemplate: string;
|
|
17
19
|
export declare const createCommandTemplate: string;
|
|
18
20
|
export declare const integrateSkillTemplate: string;
|
|
19
21
|
export declare const extractLlmDocsTemplate: string;
|
|
20
22
|
export declare const extractToRulesTemplate: string;
|
|
23
|
+
export declare const recordQuestionTemplate: string;
|
|
24
|
+
export declare const syncFromRuntimeTemplate: string;
|
|
21
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/commands/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAC/D,eAAO,MAAM,uBAAuB,QAAuC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,QAAuC,CAAC;AAG7E,eAAO,MAAM,qBAAqB,QAAoC,CAAC;AACvE,eAAO,MAAM,oBAAoB,QAAmC,CAAC;AACrE,eAAO,MAAM,uBAAuB,QAAuC,CAAC;AAG5E,eAAO,MAAM,yBAAyB,QAAyC,CAAC;AAChF,eAAO,MAAM,wBAAwB,QAAwC,CAAC;AAG9E,eAAO,MAAM,iCAAiC,QAE7C,CAAC;AACF,eAAO,MAAM,gCAAgC,QAE5C,CAAC;AACF,eAAO,MAAM,+BAA+B,QAE3C,CAAC;AACF,eAAO,MAAM,8BAA8B,QAE1C,CAAC;AAGF,eAAO,MAAM,kBAAkB,QAAiC,CAAC;AACjE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAG/D,eAAO,MAAM,qBAAqB,QAAoC,CAAC;AACvE,eAAO,MAAM,sBAAsB,QAAqC,CAAC;AACzE,eAAO,MAAM,sBAAsB,QAAsC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,QAAsC,CAAC;AAC1E,eAAO,MAAM,sBAAsB,QAAqC,CAAC;AAGzE,eAAO,MAAM,uBAAuB,QAAuC,CAAC"}
|
|
@@ -3,20 +3,31 @@
|
|
|
3
3
|
* Each command is stored as a .txt file
|
|
4
4
|
*/
|
|
5
5
|
import { readCommand } from "../extract.js";
|
|
6
|
+
// Core workflow commands
|
|
6
7
|
export const initAgentTemplate = readCommand("init-agent.txt");
|
|
7
|
-
export const checkFrontendTemplate = readCommand("check-frontend.txt");
|
|
8
|
-
export const checkBackendTemplate = readCommand("check-backend.txt");
|
|
9
8
|
export const recordAgentFlowTemplate = readCommand("record-agent-flow.txt");
|
|
10
|
-
export const recordQuestionTemplate = readCommand("record-question.txt");
|
|
11
9
|
export const onboardDeveloperTemplate = readCommand("onboard-developer.txt");
|
|
12
|
-
|
|
13
|
-
export const
|
|
10
|
+
// Development check commands
|
|
11
|
+
export const checkFrontendTemplate = readCommand("check-frontend.txt");
|
|
12
|
+
export const checkBackendTemplate = readCommand("check-backend.txt");
|
|
13
|
+
export const checkCrossLayerTemplate = readCommand("check-cross-layer.txt");
|
|
14
|
+
// Pre-development commands
|
|
14
15
|
export const beforeFrontendDevTemplate = readCommand("before-frontend-dev.txt");
|
|
15
16
|
export const beforeBackendDevTemplate = readCommand("before-backend-dev.txt");
|
|
17
|
+
// Structure generation commands
|
|
18
|
+
export const generateFrontendStructureTemplate = readCommand("generate-frontend-structure.txt");
|
|
19
|
+
export const generateBackendStructureTemplate = readCommand("generate-backend-structure.txt");
|
|
16
20
|
export const updateFrontendStructureTemplate = readCommand("update-frontend-structure.txt");
|
|
17
21
|
export const updateBackendStructureTemplate = readCommand("update-backend-structure.txt");
|
|
22
|
+
// Work completion commands
|
|
23
|
+
export const finishWorkTemplate = readCommand("finish-work.txt");
|
|
24
|
+
export const breakLoopTemplate = readCommand("break-loop.txt");
|
|
25
|
+
// Utility commands
|
|
18
26
|
export const createCommandTemplate = readCommand("create-command.txt");
|
|
19
27
|
export const integrateSkillTemplate = readCommand("integrate-skill.txt");
|
|
20
28
|
export const extractLlmDocsTemplate = readCommand("extract-llm-docs.txt");
|
|
21
29
|
export const extractToRulesTemplate = readCommand("extract-to-rules.txt");
|
|
30
|
+
export const recordQuestionTemplate = readCommand("record-question.txt");
|
|
31
|
+
// Knowledge sync commands
|
|
32
|
+
export const syncFromRuntimeTemplate = readCommand("sync-from-runtime.txt");
|
|
22
33
|
//# sourceMappingURL=index.js.map
|