codecruise 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/bin/codecruise.js +68 -0
  4. package/config/CLAUDE.md +107 -0
  5. package/config/agents/analyst.md +48 -0
  6. package/config/agents/architect-reviewer.md +161 -0
  7. package/config/agents/architect.md +119 -0
  8. package/config/agents/critic.md +63 -0
  9. package/config/agents/developer.md +96 -0
  10. package/config/agents/devops.md +81 -0
  11. package/config/agents/orchestrator.md +91 -0
  12. package/config/agents/planner.md +139 -0
  13. package/config/agents/retro.md +52 -0
  14. package/config/agents/reviewer.md +101 -0
  15. package/config/agents/security-reviewer.md +57 -0
  16. package/config/agents/stack/expo/AGENT.md +473 -0
  17. package/config/agents/stack/expo/rules/critical.md +427 -0
  18. package/config/agents/stack/expo/rules/native.md +455 -0
  19. package/config/agents/stack/expo/rules/navigation.md +445 -0
  20. package/config/agents/stack/expo/rules/performance.md +415 -0
  21. package/config/agents/stack/fastify/AGENT.md +397 -0
  22. package/config/agents/stack/fastify/rules/api-design.md +283 -0
  23. package/config/agents/stack/fastify/rules/critical.md +232 -0
  24. package/config/agents/stack/fastify/rules/queues.md +303 -0
  25. package/config/agents/stack/fastify/rules/security.md +384 -0
  26. package/config/agents/stack/index.yaml +48 -0
  27. package/config/agents/stack/nextjs/AGENT.md +421 -0
  28. package/config/agents/stack/nextjs/rules/components.md +413 -0
  29. package/config/agents/stack/nextjs/rules/critical.md +391 -0
  30. package/config/agents/stack/nextjs/rules/performance.md +403 -0
  31. package/config/agents/stack/nextjs/rules/styling.md +334 -0
  32. package/config/agents/stack/shared-ts/AGENT.md +384 -0
  33. package/config/agents/stack/shared-ts/rules/critical.md +315 -0
  34. package/config/agents/stack/shared-ts/rules/patterns.md +384 -0
  35. package/config/agents/stack/shared-ts/rules/zod.md +427 -0
  36. package/config/agents/tester.md +79 -0
  37. package/config/commands/architect-discuss.md +366 -0
  38. package/config/commands/architect-list.md +160 -0
  39. package/config/commands/architect-review.md +111 -0
  40. package/config/commands/architect.md +118 -0
  41. package/config/commands/compact.md +118 -0
  42. package/config/commands/companion.md +279 -0
  43. package/config/commands/dashboard.md +152 -0
  44. package/config/commands/doctor.md +227 -0
  45. package/config/commands/dogfood-report.md +101 -0
  46. package/config/commands/flags/run-autonomous.md +110 -0
  47. package/config/commands/flags/run-pause.md +80 -0
  48. package/config/commands/ingest.md +173 -0
  49. package/config/commands/init.md +128 -0
  50. package/config/commands/metrics.md +87 -0
  51. package/config/commands/parallel.md +320 -0
  52. package/config/commands/pause.md +55 -0
  53. package/config/commands/plan-review.md +130 -0
  54. package/config/commands/plan.md +216 -0
  55. package/config/commands/production-check.md +308 -0
  56. package/config/commands/refine.md +323 -0
  57. package/config/commands/resume.md +72 -0
  58. package/config/commands/retro.md +121 -0
  59. package/config/commands/retry.md +75 -0
  60. package/config/commands/role.md +310 -0
  61. package/config/commands/run.md +417 -0
  62. package/config/commands/scope.md +85 -0
  63. package/config/commands/setup-permissions.md +104 -0
  64. package/config/commands/skip.md +75 -0
  65. package/config/commands/spec-forge.md +213 -0
  66. package/config/commands/spec-help.md +194 -0
  67. package/config/commands/spec-patch.md +342 -0
  68. package/config/commands/spec-resolve.md +110 -0
  69. package/config/commands/spec-review.md +153 -0
  70. package/config/commands/status.md +114 -0
  71. package/config/commands/sync.md +131 -0
  72. package/config/commands/task.md +138 -0
  73. package/config/commands/verify.md +124 -0
  74. package/config/hooks/README.md +632 -0
  75. package/config/hooks/activity-log.sh +187 -0
  76. package/config/hooks/anti-rationalize.sh +52 -0
  77. package/config/hooks/capture-verification.sh +112 -0
  78. package/config/hooks/collect-metrics.sh +135 -0
  79. package/config/hooks/enforce-file-scope.sh +75 -0
  80. package/config/hooks/enforce-state-machine.sh +161 -0
  81. package/config/hooks/enforce-tdd.sh +180 -0
  82. package/config/hooks/format.sh +40 -0
  83. package/config/hooks/lib/activity-helpers.sh +162 -0
  84. package/config/hooks/lib/read-settings.sh +71 -0
  85. package/config/hooks/load-context-skills.sh +95 -0
  86. package/config/hooks/notify.sh +81 -0
  87. package/config/hooks/pre-commit.sample +35 -0
  88. package/config/hooks/protect-files.sh +63 -0
  89. package/config/hooks/track-agents.sh +41 -0
  90. package/config/hooks/track-commands.sh +37 -0
  91. package/config/hooks/track-enforcement.sh +44 -0
  92. package/config/hooks/track-ooda.sh +77 -0
  93. package/config/hooks/validate-commit-msg.sh +35 -0
  94. package/config/hooks/validate-plan.sh +213 -0
  95. package/config/hooks/verify-criteria.sh +46 -0
  96. package/config/hooks/verify-todo-completion.sh +140 -0
  97. package/config/rules/comments.md +25 -0
  98. package/config/rules/decision-rules.md +308 -0
  99. package/config/rules/hygiene.md +247 -0
  100. package/config/rules/pattern-detection.md +372 -0
  101. package/config/rules/profiles.md +193 -0
  102. package/config/rules/recovery.md +83 -0
  103. package/config/rules/scope-detection.md +213 -0
  104. package/config/rules/standards.md +127 -0
  105. package/config/rules/workflow.md +121 -0
  106. package/config/schemas.md +767 -0
  107. package/config/settings.json +195 -0
  108. package/config/skills/backend/SKILL.md +734 -0
  109. package/config/skills/database/SKILL.md +426 -0
  110. package/config/skills/frontend/SKILL.md +434 -0
  111. package/config/skills/git/SKILL.md +396 -0
  112. package/config/skills/index.yaml +36 -0
  113. package/config/skills/observability/SKILL.md +430 -0
  114. package/config/skills/package-dev/SKILL.md +498 -0
  115. package/config/skills/performance/SKILL.md +378 -0
  116. package/config/skills/resilience/SKILL.md +573 -0
  117. package/config/skills/testing/SKILL.md +398 -0
  118. package/config/skills/testing-patterns/SKILL.md +276 -0
  119. package/config/skills/typescript/SKILL.md +152 -0
  120. package/config/templates/CLAUDE.md +70 -0
  121. package/config/templates/README.md +117 -0
  122. package/config/templates/steering/adr-template.md +102 -0
  123. package/config/templates/steering/product.md +60 -0
  124. package/config/templates/steering/rfc-template.md +159 -0
  125. package/config/templates/steering/structure.md +146 -0
  126. package/config/templates/steering/tech.md +85 -0
  127. package/package.json +40 -0
  128. package/src/install.js +163 -0
  129. package/src/report.js +310 -0
@@ -0,0 +1,195 @@
1
+ {
2
+ "codecruise": {
3
+ "version": "0.1.0",
4
+ "enforce": "strict",
5
+ "enforce_tdd": "strict",
6
+ "enforce_quality": "strict",
7
+ "enforce_criteria": "strict",
8
+ "enforce_state": "strict",
9
+ "metrics_enabled": true,
10
+ "context_skills_enabled": true
11
+ },
12
+ "permissions": {
13
+ "allow": [
14
+ "Read",
15
+ "Write",
16
+ "Edit",
17
+ "Bash(npm:*)",
18
+ "Bash(npx:*)",
19
+ "Bash(pnpm:*)",
20
+ "Bash(bun:*)",
21
+ "Bash(git:*)",
22
+ "Bash(docker:*)",
23
+ "Bash(node:*)",
24
+ "Bash(cat:*)",
25
+ "Bash(ls:*)",
26
+ "Bash(mkdir:*)",
27
+ "Bash(grep:*)",
28
+ "Bash(find:*)",
29
+ "Bash(head:*)",
30
+ "Bash(tail:*)",
31
+ "Bash(wc:*)"
32
+ ],
33
+ "deny": [
34
+ "Read(~/.ssh/**)",
35
+ "Read(~/.aws/**)",
36
+ "Read(~/.gnupg/**)",
37
+ "Read(~/.npmrc)",
38
+ "Read(~/.pypirc)",
39
+ "Read(./.env)",
40
+ "Read(./.env.production)",
41
+ "Read(./secrets/**)",
42
+ "Read(**/*.pem)",
43
+ "Write(~/.claude/*)",
44
+ "Edit(~/.claude/*)",
45
+ "Edit(~/.zshrc)",
46
+ "Edit(~/.bashrc)",
47
+ "Bash(rm -rf:*)",
48
+ "Bash(sudo:*)",
49
+ "Bash(curl * | bash)",
50
+ "Bash(wget * | bash)"
51
+ ]
52
+ },
53
+ "hooks": {
54
+ "PreToolUse": [
55
+ {
56
+ "matcher": "Edit|Write",
57
+ "hooks": [
58
+ {
59
+ "type": "command",
60
+ "command": "~/.claude/hooks/protect-files.sh",
61
+ "timeout": 5
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "matcher": "Edit|Write",
67
+ "hooks": [
68
+ {
69
+ "type": "command",
70
+ "command": "~/.claude/hooks/enforce-tdd.sh",
71
+ "timeout": 5
72
+ }
73
+ ]
74
+ },
75
+ {
76
+ "matcher": "Edit|Write",
77
+ "hooks": [
78
+ {
79
+ "type": "command",
80
+ "command": "~/.claude/hooks/enforce-state-machine.sh",
81
+ "timeout": 5
82
+ }
83
+ ]
84
+ }
85
+ ],
86
+ "PostToolUse": [
87
+ {
88
+ "matcher": "Task",
89
+ "hooks": [
90
+ {
91
+ "type": "command",
92
+ "command": "~/.claude/hooks/track-agents.sh",
93
+ "timeout": 5
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "matcher": "Skill",
99
+ "hooks": [
100
+ {
101
+ "type": "command",
102
+ "command": "~/.claude/hooks/track-commands.sh",
103
+ "timeout": 5
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "matcher": "Bash",
109
+ "hooks": [
110
+ {
111
+ "type": "command",
112
+ "command": "~/.claude/hooks/track-ooda.sh",
113
+ "timeout": 5
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "matcher": "Bash",
119
+ "hooks": [
120
+ {
121
+ "type": "command",
122
+ "command": "~/.claude/hooks/capture-verification.sh",
123
+ "timeout": 120
124
+ }
125
+ ]
126
+ },
127
+ {
128
+ "matcher": "Edit|Write",
129
+ "hooks": [
130
+ {
131
+ "type": "command",
132
+ "command": "~/.claude/hooks/format.sh",
133
+ "timeout": 30
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "matcher": "Bash|Edit|Write",
139
+ "hooks": [
140
+ {
141
+ "type": "command",
142
+ "command": "~/.claude/hooks/collect-metrics.sh",
143
+ "timeout": 5
144
+ }
145
+ ]
146
+ },
147
+ {
148
+ "matcher": "Bash",
149
+ "hooks": [
150
+ {
151
+ "type": "command",
152
+ "command": "~/.claude/hooks/activity-log.sh",
153
+ "timeout": 5
154
+ }
155
+ ]
156
+ }
157
+ ],
158
+ "Stop": [
159
+ {
160
+ "hooks": [
161
+ {
162
+ "type": "command",
163
+ "command": "~/.claude/hooks/anti-rationalize.sh",
164
+ "timeout": 5
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "hooks": [
170
+ {
171
+ "type": "command",
172
+ "command": "~/.claude/hooks/verify-todo-completion.sh",
173
+ "timeout": 30
174
+ }
175
+ ]
176
+ }
177
+ ],
178
+ "Notification": [
179
+ {
180
+ "matcher": "",
181
+ "hooks": [
182
+ {
183
+ "type": "command",
184
+ "command": "~/.claude/hooks/notify.sh",
185
+ "timeout": 10
186
+ }
187
+ ]
188
+ }
189
+ ]
190
+ },
191
+ "statusLine": {
192
+ "type": "command",
193
+ "command": "echo \"[$(basename $PWD)] $(git branch --show-current 2>/dev/null)\""
194
+ }
195
+ }