@dtt_siye/atool 1.2.1 → 1.3.1

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.
Files changed (97) hide show
  1. package/VERSION +1 -1
  2. package/hooks/session-start +9 -12
  3. package/lib/export-analysis.sh +100 -0
  4. package/lib/install-kiro.sh +11 -6
  5. package/lib/install-skills.sh +16 -0
  6. package/lib/knowledge-graph.sh +490 -83
  7. package/lib/pre-scan.sh +70 -5
  8. package/package.json +1 -1
  9. package/skills/doc-standards-enforcer/SKILL.md +200 -220
  10. package/skills/doc-standards-enforcer/examples/valid-document-example.md +5 -5
  11. package/skills/doc-standards-enforcer/references/101-standards-summary.md +17 -17
  12. package/skills/project-analyze/SKILL.md +157 -124
  13. package/skills/project-analyze/phases/{phase0-discovery.md → archive/phase0-discovery.md} +6 -2
  14. package/skills/project-analyze/phases/{phase1-inventory.md → archive/phase1-inventory.md} +10 -0
  15. package/skills/project-analyze/phases/{phase2-deep-analysis.md → archive/phase2-deep-analysis.md} +20 -0
  16. package/skills/project-analyze/phases/{phase3-knowledge-graph.md → archive/phase3-knowledge-graph.md} +31 -0
  17. package/skills/project-analyze/phases/{phase3a-multi-dimensional.md → archive/phase3a-multi-dimensional.md} +13 -0
  18. package/skills/project-analyze/phases/{phase5-synthesis.md → archive/phase5-synthesis.md} +20 -0
  19. package/skills/project-analyze/phases/phase1-setup.md +182 -0
  20. package/skills/project-analyze/phases/phase2-understand.md +114 -0
  21. package/skills/project-analyze/phases/phase2.5-refine.md +284 -0
  22. package/skills/project-analyze/phases/phase3-graph.md +77 -0
  23. package/skills/project-analyze/phases/phase4-synthesize.md +241 -0
  24. package/skills/project-analyze/phases/phase5-export.md +207 -0
  25. package/skills/project-analyze/prompts/{deep-analysis-agent.md → archive/deep-analysis-agent.md} +14 -1
  26. package/skills/project-analyze/prompts/understand-agent.md +424 -0
  27. package/skills/project-analyze/rules/android.md +61 -260
  28. package/skills/project-analyze/rules/devops.md +61 -421
  29. package/skills/project-analyze/rules/generic.md +53 -221
  30. package/skills/project-analyze/rules/go.md +60 -275
  31. package/skills/project-analyze/rules/harmony.md +64 -237
  32. package/skills/project-analyze/rules/java.md +47 -485
  33. package/skills/project-analyze/rules/mobile-flutter.md +57 -292
  34. package/skills/project-analyze/rules/mobile-react-native.md +65 -262
  35. package/skills/project-analyze/rules/mobile-swift.md +58 -303
  36. package/skills/project-analyze/rules/python.md +50 -296
  37. package/skills/project-analyze/rules/rust-tauri.md +51 -217
  38. package/skills/project-analyze/rules/rust.md +50 -274
  39. package/skills/project-analyze/rules/web-nextjs.md +61 -335
  40. package/skills/project-analyze/rules/web-react.md +50 -272
  41. package/skills/project-analyze/rules/web-vue.md +58 -352
  42. package/skills/project-analyze/rules/web.md +55 -347
  43. package/skills/requirements-writer/README.md +1 -1
  44. package/skills/requirements-writer/SKILL.md +423 -282
  45. package/skills/requirements-writer/examples/prd-outline-example.md +5 -5
  46. package/skills/requirements-writer/templates/module-prd-template.md +15 -15
  47. package/skills/requirements-writer/templates/prd-outline-template.md +3 -3
  48. package/skills/requirements-writer/templates/user-story-template.md +23 -23
  49. package/skills/software-architecture/SKILL.md +318 -17
  50. package/templates/CLAUDE.md.android +17 -0
  51. package/templates/CLAUDE.md.devops +17 -0
  52. package/templates/CLAUDE.md.generic +17 -0
  53. package/templates/CLAUDE.md.go +17 -0
  54. package/templates/CLAUDE.md.harmony +17 -0
  55. package/templates/CLAUDE.md.java +17 -0
  56. package/templates/CLAUDE.md.mobile-flutter +17 -0
  57. package/templates/CLAUDE.md.mobile-react-native +17 -0
  58. package/templates/CLAUDE.md.mobile-swift +17 -0
  59. package/templates/CLAUDE.md.python +17 -0
  60. package/templates/CLAUDE.md.rust +17 -0
  61. package/templates/CLAUDE.md.rust-tauri +17 -0
  62. package/templates/CLAUDE.md.web +17 -0
  63. package/templates/cursor-rules.android.mdc +17 -0
  64. package/templates/cursor-rules.devops.mdc +17 -0
  65. package/templates/cursor-rules.generic.mdc +17 -0
  66. package/templates/cursor-rules.go.mdc +17 -0
  67. package/templates/cursor-rules.harmony.mdc +17 -0
  68. package/templates/cursor-rules.java.mdc +17 -0
  69. package/templates/cursor-rules.mobile-flutter.mdc +17 -0
  70. package/templates/cursor-rules.mobile-react-native.mdc +17 -0
  71. package/templates/cursor-rules.mobile-swift.mdc +17 -0
  72. package/templates/cursor-rules.python.mdc +17 -0
  73. package/templates/cursor-rules.rust-tauri.mdc +17 -0
  74. package/templates/cursor-rules.rust.mdc +17 -0
  75. package/templates/cursor-rules.web.mdc +17 -0
  76. package/templates/kiro-steering.android.md +6 -0
  77. package/templates/kiro-steering.devops.md +6 -0
  78. package/templates/kiro-steering.generic.md +6 -0
  79. package/templates/kiro-steering.go.md +6 -0
  80. package/templates/kiro-steering.harmony.md +6 -0
  81. package/templates/kiro-steering.java.md +6 -0
  82. package/templates/kiro-steering.mobile-flutter.md +6 -0
  83. package/templates/kiro-steering.mobile-react-native.md +6 -0
  84. package/templates/kiro-steering.mobile-swift.md +6 -0
  85. package/templates/kiro-steering.python.md +6 -0
  86. package/templates/kiro-steering.rust-tauri.md +6 -0
  87. package/templates/kiro-steering.rust.md +6 -0
  88. package/templates/kiro-steering.web.md +6 -0
  89. package/templates/shared/hard-rules.md +21 -0
  90. /package/skills/project-analyze/phases/{phase0.5-prescan.md → archive/phase0.5-prescan.md} +0 -0
  91. /package/skills/project-analyze/phases/{phase2a-l4-analysis.md → archive/phase2a-l4-analysis.md} +0 -0
  92. /package/skills/project-analyze/phases/{phase2b-l5-analysis.md → archive/phase2b-l5-analysis.md} +0 -0
  93. /package/skills/project-analyze/phases/{phase4-code-quality.md → archive/phase4-code-quality.md} +0 -0
  94. /package/skills/project-analyze/phases/{phase6-validation.md → archive/phase6-validation.md} +0 -0
  95. /package/skills/project-analyze/prompts/{code-review-agent.md → archive/code-review-agent.md} +0 -0
  96. /package/skills/project-analyze/prompts/{inventory-agent.md → archive/inventory-agent.md} +0 -0
  97. /package/skills/project-analyze/prompts/{l4-analysis-agent.md → archive/l4-analysis-agent.md} +0 -0
@@ -32,3 +32,20 @@ Generic project (no specific technology stack detected)
32
32
  - Run `./install.sh --project .` again after setting up your project
33
33
  - aTool can auto-detect your stack once you add config files (package.json, Cargo.toml, etc.)
34
34
  - Use `/atool-init` to re-run initialization after project setup
35
+
36
+
37
+ ## aTool Hard Rules (Non-bypassable)
38
+
39
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
40
+
41
+ ### 1. Documentation Sync Gate
42
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
43
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
44
+
45
+ ### 2. Verification Gate
46
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
47
+ If any check fails, the task is NOT done. No exceptions.
48
+
49
+ ### 3. Root Cause Before Fix
50
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
51
+ See /systematic-debugging for full methodology.
@@ -65,3 +65,20 @@ gofmt -w .
65
65
  # Tidy dependencies
66
66
  go mod tidy
67
67
  ```
68
+
69
+
70
+ ## aTool Hard Rules (Non-bypassable)
71
+
72
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
73
+
74
+ ### 1. Documentation Sync Gate
75
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
76
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
77
+
78
+ ### 2. Verification Gate
79
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
80
+ If any check fails, the task is NOT done. No exceptions.
81
+
82
+ ### 3. Root Cause Before Fix
83
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
84
+ See /systematic-debugging for full methodology.
@@ -52,3 +52,20 @@ hvigorw clean
52
52
  # Run tests
53
53
  hvigorw test
54
54
  ```
55
+
56
+
57
+ ## aTool Hard Rules (Non-bypassable)
58
+
59
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
60
+
61
+ ### 1. Documentation Sync Gate
62
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
63
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
64
+
65
+ ### 2. Verification Gate
66
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
67
+ If any check fails, the task is NOT done. No exceptions.
68
+
69
+ ### 3. Root Cause Before Fix
70
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
71
+ See /systematic-debugging for full methodology.
@@ -54,3 +54,20 @@ Java / Spring Boot project
54
54
  # Check for dependency updates
55
55
  ./mvnw versions:display-dependency-updates
56
56
  ```
57
+
58
+
59
+ ## aTool Hard Rules (Non-bypassable)
60
+
61
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
62
+
63
+ ### 1. Documentation Sync Gate
64
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
65
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
66
+
67
+ ### 2. Verification Gate
68
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
69
+ If any check fails, the task is NOT done. No exceptions.
70
+
71
+ ### 3. Root Cause Before Fix
72
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
73
+ See /systematic-debugging for full methodology.
@@ -36,3 +36,20 @@ Follow Flutter and Dart best practices.
36
36
  - Widget tests with `flutter_test`
37
37
  - Integration tests with `integration_test`
38
38
  - Mocktail for mocking
39
+
40
+
41
+ ## aTool Hard Rules (Non-bypassable)
42
+
43
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
44
+
45
+ ### 1. Documentation Sync Gate
46
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
47
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
48
+
49
+ ### 2. Verification Gate
50
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
51
+ If any check fails, the task is NOT done. No exceptions.
52
+
53
+ ### 3. Root Cause Before Fix
54
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
55
+ See /systematic-debugging for full methodology.
@@ -35,3 +35,20 @@ Follow React Native and TypeScript best practices.
35
35
  - Jest + React Native Testing Library
36
36
  - Detox for E2E tests
37
37
  - Mock native modules
38
+
39
+
40
+ ## aTool Hard Rules (Non-bypassable)
41
+
42
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
43
+
44
+ ### 1. Documentation Sync Gate
45
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
46
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
47
+
48
+ ### 2. Verification Gate
49
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
50
+ If any check fails, the task is NOT done. No exceptions.
51
+
52
+ ### 3. Root Cause Before Fix
53
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
54
+ See /systematic-debugging for full methodology.
@@ -38,3 +38,20 @@ Follow Swift and iOS development best practices.
38
38
  - Swift Testing framework (new)
39
39
  - Mock with protocols
40
40
  - Preview-based development
41
+
42
+
43
+ ## aTool Hard Rules (Non-bypassable)
44
+
45
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
46
+
47
+ ### 1. Documentation Sync Gate
48
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
49
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
50
+
51
+ ### 2. Verification Gate
52
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
53
+ If any check fails, the task is NOT done. No exceptions.
54
+
55
+ ### 3. Root Cause Before Fix
56
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
57
+ See /systematic-debugging for full methodology.
@@ -63,3 +63,20 @@ ruff format .
63
63
  # Type check
64
64
  mypy .
65
65
  ```
66
+
67
+
68
+ ## aTool Hard Rules (Non-bypassable)
69
+
70
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
71
+
72
+ ### 1. Documentation Sync Gate
73
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
74
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
75
+
76
+ ### 2. Verification Gate
77
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
78
+ If any check fails, the task is NOT done. No exceptions.
79
+
80
+ ### 3. Root Cause Before Fix
81
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
82
+ See /systematic-debugging for full methodology.
@@ -66,3 +66,20 @@ cargo fmt
66
66
  # Run with release optimizations
67
67
  cargo run --release
68
68
  ```
69
+
70
+
71
+ ## aTool Hard Rules (Non-bypassable)
72
+
73
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
74
+
75
+ ### 1. Documentation Sync Gate
76
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
77
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
78
+
79
+ ### 2. Verification Gate
80
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
81
+ If any check fails, the task is NOT done. No exceptions.
82
+
83
+ ### 3. Root Cause Before Fix
84
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
85
+ See /systematic-debugging for full methodology.
@@ -118,3 +118,20 @@ cd src-tauri && cargo test # 运行测试
118
118
  2. `COMPONENT.md` — 组件/命令 API 和使用示例
119
119
  3. `UI_STYLE.md` — 涉及的样式变更
120
120
  4. `docs/` — 对应的模块文档
121
+
122
+
123
+ ## aTool Hard Rules (Non-bypassable)
124
+
125
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
126
+
127
+ ### 1. Documentation Sync Gate
128
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
129
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
130
+
131
+ ### 2. Verification Gate
132
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
133
+ If any check fails, the task is NOT done. No exceptions.
134
+
135
+ ### 3. Root Cause Before Fix
136
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
137
+ See /systematic-debugging for full methodology.
@@ -61,3 +61,20 @@ npm test
61
61
  # Build for production
62
62
  npm run build
63
63
  ```
64
+
65
+
66
+ ## aTool Hard Rules (Non-bypassable)
67
+
68
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
69
+
70
+ ### 1. Documentation Sync Gate
71
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
72
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
73
+
74
+ ### 2. Verification Gate
75
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
76
+ If any check fails, the task is NOT done. No exceptions.
77
+
78
+ ### 3. Root Cause Before Fix
79
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
80
+ See /systematic-debugging for full methodology.
@@ -31,3 +31,20 @@ Follow Android and Kotlin best practices.
31
31
  - JUnit 5 + MockK for unit tests
32
32
  - Compose Test Rule for UI tests
33
33
  - Turbine for Flow testing
34
+
35
+
36
+ ## aTool Hard Rules (Non-bypassable)
37
+
38
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
39
+
40
+ ### 1. Documentation Sync Gate
41
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
42
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
43
+
44
+ ### 2. Verification Gate
45
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
46
+ If any check fails, the task is NOT done. No exceptions.
47
+
48
+ ### 3. Root Cause Before Fix
49
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
50
+ See /systematic-debugging for full methodology.
@@ -30,3 +30,20 @@ Follow infrastructure best practices.
30
30
  - Test before deploy
31
31
  - Immutable artifacts
32
32
  - Rollback strategy
33
+
34
+
35
+ ## aTool Hard Rules (Non-bypassable)
36
+
37
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
38
+
39
+ ### 1. Documentation Sync Gate
40
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
41
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
42
+
43
+ ### 2. Verification Gate
44
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
45
+ If any check fails, the task is NOT done. No exceptions.
46
+
47
+ ### 3. Root Cause Before Fix
48
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
49
+ See /systematic-debugging for full methodology.
@@ -23,3 +23,20 @@ Follow general software development best practices.
23
23
  - Write tests for critical functionality
24
24
  - Use standard testing frameworks
25
25
  - Mock external dependencies
26
+
27
+
28
+ ## aTool Hard Rules (Non-bypassable)
29
+
30
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
31
+
32
+ ### 1. Documentation Sync Gate
33
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
34
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
35
+
36
+ ### 2. Verification Gate
37
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
38
+ If any check fails, the task is NOT done. No exceptions.
39
+
40
+ ### 3. Root Cause Before Fix
41
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
42
+ See /systematic-debugging for full methodology.
@@ -32,3 +32,20 @@ Follow Go best practices and idioms.
32
32
  - testing package + testify/assert
33
33
  - mockgen for interface mocking
34
34
  - go test -race for race detection
35
+
36
+
37
+ ## aTool Hard Rules (Non-bypassable)
38
+
39
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
40
+
41
+ ### 1. Documentation Sync Gate
42
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
43
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
44
+
45
+ ### 2. Verification Gate
46
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
47
+ If any check fails, the task is NOT done. No exceptions.
48
+
49
+ ### 3. Root Cause Before Fix
50
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
51
+ See /systematic-debugging for full methodology.
@@ -28,3 +28,20 @@ Follow HarmonyOS and ArkTS best practices.
28
28
  - Navigation component for routing
29
29
  - Define routes in main_pages.json
30
30
  - NavPathStack for programmatic navigation
31
+
32
+
33
+ ## aTool Hard Rules (Non-bypassable)
34
+
35
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
36
+
37
+ ### 1. Documentation Sync Gate
38
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
39
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
40
+
41
+ ### 2. Verification Gate
42
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
43
+ If any check fails, the task is NOT done. No exceptions.
44
+
45
+ ### 3. Root Cause Before Fix
46
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
47
+ See /systematic-debugging for full methodology.
@@ -28,3 +28,20 @@ Follow standard Java conventions and Spring Boot best practices.
28
28
  - RESTful conventions
29
29
  - Proper HTTP status codes
30
30
  - Version with `/api/v1/` prefix
31
+
32
+
33
+ ## aTool Hard Rules (Non-bypassable)
34
+
35
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
36
+
37
+ ### 1. Documentation Sync Gate
38
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
39
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
40
+
41
+ ### 2. Verification Gate
42
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
43
+ If any check fails, the task is NOT done. No exceptions.
44
+
45
+ ### 3. Root Cause Before Fix
46
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
47
+ See /systematic-debugging for full methodology.
@@ -40,3 +40,20 @@ instructions: |
40
40
  - Build iOS: flutter build ios
41
41
  - Test: flutter test
42
42
  - Analyze: flutter analyze
43
+
44
+
45
+ ## aTool Hard Rules (Non-bypassable)
46
+
47
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
48
+
49
+ ### 1. Documentation Sync Gate
50
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
51
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
52
+
53
+ ### 2. Verification Gate
54
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
55
+ If any check fails, the task is NOT done. No exceptions.
56
+
57
+ ### 3. Root Cause Before Fix
58
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
59
+ See /systematic-debugging for full methodology.
@@ -41,3 +41,20 @@ instructions: |
41
41
  - Run iOS: npm run ios
42
42
  - Test: npm test
43
43
  - Start Metro: npm start
44
+
45
+
46
+ ## aTool Hard Rules (Non-bypassable)
47
+
48
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
49
+
50
+ ### 1. Documentation Sync Gate
51
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
52
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
53
+
54
+ ### 2. Verification Gate
55
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
56
+ If any check fails, the task is NOT done. No exceptions.
57
+
58
+ ### 3. Root Cause Before Fix
59
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
60
+ See /systematic-debugging for full methodology.
@@ -40,3 +40,20 @@ instructions: |
40
40
  - Build: xcodebuild build -scheme MyApp
41
41
  - Test: xcodebuild test -scheme MyApp
42
42
  - Run: open in Xcode and run
43
+
44
+
45
+ ## aTool Hard Rules (Non-bypassable)
46
+
47
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
48
+
49
+ ### 1. Documentation Sync Gate
50
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
51
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
52
+
53
+ ### 2. Verification Gate
54
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
55
+ If any check fails, the task is NOT done. No exceptions.
56
+
57
+ ### 3. Root Cause Before Fix
58
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
59
+ See /systematic-debugging for full methodology.
@@ -31,3 +31,20 @@ Follow Python best practices.
31
31
  - Ruff for linting and formatting
32
32
  - mypy for type checking
33
33
  - pytest for testing
34
+
35
+
36
+ ## aTool Hard Rules (Non-bypassable)
37
+
38
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
39
+
40
+ ### 1. Documentation Sync Gate
41
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
42
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
43
+
44
+ ### 2. Verification Gate
45
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
46
+ If any check fails, the task is NOT done. No exceptions.
47
+
48
+ ### 3. Root Cause Before Fix
49
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
50
+ See /systematic-debugging for full methodology.
@@ -65,3 +65,20 @@ const result = await invoke<string>('my_command', { arg: 'value' });
65
65
  - Build: `pnpm tauri build`
66
66
  - Rust check: `cd src-tauri && cargo check`
67
67
  - Rust lint: `cd src-tauri && cargo clippy`
68
+
69
+
70
+ ## aTool Hard Rules (Non-bypassable)
71
+
72
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
73
+
74
+ ### 1. Documentation Sync Gate
75
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
76
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
77
+
78
+ ### 2. Verification Gate
79
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
80
+ If any check fails, the task is NOT done. No exceptions.
81
+
82
+ ### 3. Root Cause Before Fix
83
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
84
+ See /systematic-debugging for full methodology.
@@ -28,3 +28,20 @@ Follow Rust best practices and idioms.
28
28
  - Integration tests in tests/
29
29
  - proptest for property-based testing
30
30
  - mockall for mocking
31
+
32
+
33
+ ## aTool Hard Rules (Non-bypassable)
34
+
35
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
36
+
37
+ ### 1. Documentation Sync Gate
38
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
39
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
40
+
41
+ ### 2. Verification Gate
42
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
43
+ If any check fails, the task is NOT done. No exceptions.
44
+
45
+ ### 3. Root Cause Before Fix
46
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
47
+ See /systematic-debugging for full methodology.
@@ -28,3 +28,20 @@ Follow modern web development best practices.
28
28
  - Testing Library for component tests
29
29
  - Unit tests for utilities and hooks
30
30
  - E2E tests for critical flows
31
+
32
+
33
+ ## aTool Hard Rules (Non-bypassable)
34
+
35
+ These rules apply regardless of which skills are invoked or which mode the IDE is in (Plan Mode, normal mode, etc.).
36
+
37
+ ### 1. Documentation Sync Gate
38
+ After modifying any source file, update affected documentation (README.md, COMPONENT.md, UI_STYLE.md, docs/) BEFORE claiming the task done.
39
+ Gate: if docs are stale, the task is NOT done. Invoke /verification-before-completion before completion.
40
+
41
+ ### 2. Verification Gate
42
+ Before claiming any work complete: (a) run tests and verify they pass, (b) check doc freshness, (c) confirm no critical code quality issues.
43
+ If any check fails, the task is NOT done. No exceptions.
44
+
45
+ ### 3. Root Cause Before Fix
46
+ When fixing bugs: investigate and identify root cause BEFORE writing any fix code. Never guess-fix or try multiple changes simultaneously.
47
+ See /systematic-debugging for full methodology.
@@ -37,3 +37,9 @@ You are working on an Android/Kotlin project. Follow these conventions:
37
37
  - Test: ./gradlew test
38
38
  - Run: ./gradlew installDebug
39
39
 
40
+
41
+
42
+ ## aTool Hard Rules
43
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
44
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
45
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -30,3 +30,9 @@ You are working on a DevOps/Infrastructure project. Follow these conventions:
30
30
  - Immutable artifacts
31
31
  - Rollback strategy
32
32
 
33
+
34
+
35
+ ## aTool Hard Rules
36
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
37
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
38
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -26,3 +26,9 @@ You are working on a generic project. Follow these conventions:
26
26
  - aTool can auto-detect your stack once you add config files
27
27
  - Run /atool-init to re-run initialization after project setup
28
28
 
29
+
30
+
31
+ ## aTool Hard Rules
32
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
33
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
34
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -39,3 +39,9 @@ You are working on a Go project. Follow these conventions:
39
39
  - Format: gofmt -w .
40
40
  - Tidy: go mod tidy
41
41
 
42
+
43
+
44
+ ## aTool Hard Rules
45
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
46
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
47
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -34,3 +34,9 @@ You are working on a HarmonyOS/ArkTS project. Follow these conventions:
34
34
  - Clean: hvigorw clean
35
35
  - Test: hvigorw test
36
36
 
37
+
38
+
39
+ ## aTool Hard Rules
40
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
41
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
42
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -35,3 +35,9 @@ You are working on a Java/Spring Boot project. Follow these conventions:
35
35
  - Test: ./mvnw test or ./gradlew test
36
36
  - Run: ./mvnw spring-boot:run or ./gradlew bootRun
37
37
 
38
+
39
+
40
+ ## aTool Hard Rules
41
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
42
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
43
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -71,3 +71,9 @@ flutter build ios
71
71
  flutter clean
72
72
  ```
73
73
 
74
+
75
+
76
+ ## aTool Hard Rules
77
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
78
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
79
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -69,3 +69,9 @@ npm test
69
69
  npx tsc --noEmit
70
70
  ```
71
71
 
72
+
73
+
74
+ ## aTool Hard Rules
75
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
76
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
77
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -60,3 +60,9 @@ xcodebuild clean
60
60
  swiftlint lint
61
61
  ```
62
62
 
63
+
64
+
65
+ ## aTool Hard Rules
66
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
67
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
68
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -32,3 +32,9 @@ You are working on a Python project. Follow these conventions:
32
32
  - Format: ruff format .
33
33
  - Type check: mypy .
34
34
 
35
+
36
+
37
+ ## aTool Hard Rules
38
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
39
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
40
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.
@@ -48,3 +48,9 @@ You are working on a Tauri 2 desktop application (Rust backend + Web frontend).
48
48
  - Rust check: cd src-tauri && cargo check
49
49
  - Rust lint: cd src-tauri && cargo clippy
50
50
 
51
+
52
+
53
+ ## aTool Hard Rules
54
+ 1. **Doc Sync**: Source files changed -> update docs (README/COMPONENT/UI_STYLE/docs/) before done. Stale docs = task NOT done.
55
+ 2. **Verification**: Before claiming done: tests pass + docs fresh + no critical issues. Invoke /verification-before-completion.
56
+ 3. **Root Cause**: Debug -> find root cause BEFORE fix. Never guess. See /systematic-debugging.