@radenadri/skills-alena 1.0.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 (143) hide show
  1. package/CLAUDE.md +233 -0
  2. package/GEMINI.md +419 -0
  3. package/LICENSE +21 -0
  4. package/README.md +864 -0
  5. package/agents/debugger.md +245 -0
  6. package/agents/executor.md +387 -0
  7. package/agents/fixer.md +209 -0
  8. package/agents/investigator.md +228 -0
  9. package/agents/mapper.md +201 -0
  10. package/agents/planner.md +252 -0
  11. package/agents/researcher.md +174 -0
  12. package/agents/reviewer.md +165 -0
  13. package/agents/verifier.md +344 -0
  14. package/commands/audit.md +45 -0
  15. package/commands/checkpoint.md +175 -0
  16. package/commands/commit.md +51 -0
  17. package/commands/context.md +37 -0
  18. package/commands/debug.md +42 -0
  19. package/commands/deep-audit.md +163 -0
  20. package/commands/deploy-check.md +58 -0
  21. package/commands/discuss.md +258 -0
  22. package/commands/doc.md +62 -0
  23. package/commands/execute.md +172 -0
  24. package/commands/explain.md +47 -0
  25. package/commands/fix-issue.md +47 -0
  26. package/commands/health-check.md +121 -0
  27. package/commands/init-project.md +238 -0
  28. package/commands/integrate.md +92 -0
  29. package/commands/learn.md +138 -0
  30. package/commands/loop.md +166 -0
  31. package/commands/memory.md +163 -0
  32. package/commands/migrate.md +141 -0
  33. package/commands/orchestrate.md +195 -0
  34. package/commands/performance.md +126 -0
  35. package/commands/plan.md +185 -0
  36. package/commands/progress.md +90 -0
  37. package/commands/quality-gate.md +210 -0
  38. package/commands/quick.md +105 -0
  39. package/commands/redesign.md +35 -0
  40. package/commands/refactor.md +45 -0
  41. package/commands/research.md +112 -0
  42. package/commands/review.md +49 -0
  43. package/commands/security-scan.md +142 -0
  44. package/commands/settings.md +104 -0
  45. package/commands/team.md +190 -0
  46. package/commands/test.md +55 -0
  47. package/commands/verify.md +188 -0
  48. package/cursor-rules/anti-hallucination.mdc +55 -0
  49. package/cursor-rules/code-review.mdc +50 -0
  50. package/cursor-rules/core-development.mdc +55 -0
  51. package/cursor-rules/database.mdc +41 -0
  52. package/cursor-rules/debugging-protocol.mdc +43 -0
  53. package/cursor-rules/memory-protocol.mdc +90 -0
  54. package/cursor-rules/planning-workflow.mdc +49 -0
  55. package/cursor-rules/security.mdc +39 -0
  56. package/cursor-rules/team-protocol.mdc +165 -0
  57. package/cursor-rules/testing.mdc +46 -0
  58. package/dist/cli.js +1947 -0
  59. package/dist/cli.js.map +1 -0
  60. package/hooks/context-monitor.cjs +146 -0
  61. package/hooks/cost-tracker.cjs +181 -0
  62. package/hooks/hook-profiles.cjs +73 -0
  63. package/hooks/memory-capture.md +80 -0
  64. package/hooks/security-gate.cjs +178 -0
  65. package/hooks/statusline.cjs +120 -0
  66. package/hooks/suggest-compact.cjs +169 -0
  67. package/hooks/update-check.cjs +166 -0
  68. package/package.json +85 -0
  69. package/rules/anti-hallucination.md +170 -0
  70. package/rules/core-principles.md +217 -0
  71. package/rules/memory-protocol.md +94 -0
  72. package/rules/severity-framework.md +130 -0
  73. package/rules/team-protocol.md +162 -0
  74. package/skills/_rules/SKILL.md +347 -0
  75. package/skills/accessibility-audit/SKILL.md +287 -0
  76. package/skills/agent-team-coordination/SKILL.md +368 -0
  77. package/skills/api-design-audit/SKILL.md +287 -0
  78. package/skills/architecture-audit/SKILL.md +257 -0
  79. package/skills/brainstorming/SKILL.md +252 -0
  80. package/skills/brutal-exhaustive-audit/SKILL.md +332 -0
  81. package/skills/ci-cd-audit/SKILL.md +262 -0
  82. package/skills/code-review/SKILL.md +223 -0
  83. package/skills/codebase-conformity/SKILL.md +338 -0
  84. package/skills/codebase-mapping/SKILL.md +253 -0
  85. package/skills/database-audit/SKILL.md +506 -0
  86. package/skills/dependency-audit/SKILL.md +283 -0
  87. package/skills/executing-plans/SKILL.md +394 -0
  88. package/skills/frontend-audit/SKILL.md +345 -0
  89. package/skills/full-stack-api-integration/SKILL.md +296 -0
  90. package/skills/git-workflow/SKILL.md +220 -0
  91. package/skills/incident-response/SKILL.md +259 -0
  92. package/skills/nextjs-to-nuxt-migration/SKILL.md +2111 -0
  93. package/skills/observability-audit/SKILL.md +349 -0
  94. package/skills/performance-audit/SKILL.md +258 -0
  95. package/skills/persistent-memory/SKILL.md +637 -0
  96. package/skills/product-completeness-audit/SKILL.md +327 -0
  97. package/skills/refactoring-safely/SKILL.md +265 -0
  98. package/skills/security-audit/SKILL.md +277 -0
  99. package/skills/systematic-debugging/SKILL.md +227 -0
  100. package/skills/test-driven-development/SKILL.md +222 -0
  101. package/skills/ui-ux-redesign/SKILL.md +479 -0
  102. package/skills/using-skills/SKILL.md +167 -0
  103. package/skills/verification-before-completion/SKILL.md +167 -0
  104. package/skills/writing-documentation/SKILL.md +353 -0
  105. package/skills/writing-plans/SKILL.md +306 -0
  106. package/skills/writing-skills/SKILL.md +561 -0
  107. package/workflows/audit.md +37 -0
  108. package/workflows/checkpoint.md +211 -0
  109. package/workflows/codebase-map.md +42 -0
  110. package/workflows/commit.md +146 -0
  111. package/workflows/debug.md +66 -0
  112. package/workflows/deep-audit.md +88 -0
  113. package/workflows/deploy-check.md +55 -0
  114. package/workflows/deps-update.md +50 -0
  115. package/workflows/discuss.md +84 -0
  116. package/workflows/doc.md +45 -0
  117. package/workflows/execute.md +304 -0
  118. package/workflows/explain.md +39 -0
  119. package/workflows/fix-issue.md +44 -0
  120. package/workflows/gap-closure.md +102 -0
  121. package/workflows/incident-response.md +52 -0
  122. package/workflows/init-project.md +355 -0
  123. package/workflows/integrate-api.md +70 -0
  124. package/workflows/learn.md +163 -0
  125. package/workflows/loop.md +248 -0
  126. package/workflows/memory-sync.md +134 -0
  127. package/workflows/migrate.md +49 -0
  128. package/workflows/orchestrate.md +263 -0
  129. package/workflows/performance.md +39 -0
  130. package/workflows/plan-feature.md +262 -0
  131. package/workflows/product-health-check.md +71 -0
  132. package/workflows/progress.md +36 -0
  133. package/workflows/quality-gate.md +220 -0
  134. package/workflows/quick.md +159 -0
  135. package/workflows/redesign.md +56 -0
  136. package/workflows/refactor.md +43 -0
  137. package/workflows/release.md +48 -0
  138. package/workflows/research.md +62 -0
  139. package/workflows/review.md +52 -0
  140. package/workflows/security-scan.md +43 -0
  141. package/workflows/team-session.md +366 -0
  142. package/workflows/test.md +41 -0
  143. package/workflows/verify.md +252 -0
package/CLAUDE.md ADDED
@@ -0,0 +1,233 @@
1
+ # ALENA
2
+
3
+ > v1.0.0 — A personal toolkit for autonomous, networked AI agents.
4
+
5
+ ## How It Works
6
+
7
+ You have a library of composable skills. Before any task, check if a relevant skill exists. Skills are not suggestions — they are mandatory workflows when their activation conditions are met.
8
+
9
+ **Check skills before:**
10
+ - Writing any code
11
+ - Debugging any issue
12
+ - Reviewing any PR
13
+ - Auditing any system
14
+ - Planning any feature
15
+ - Refactoring any module
16
+
17
+ ## Core Principles
18
+
19
+ Read and internalize `rules/core-principles.md` before any work.
20
+
21
+ **The four non-negotiables:**
22
+ 1. **Evidence before claims** — Never say "done" without verification
23
+ 2. **Root cause before fixes** — Never patch symptoms
24
+ 3. **Plan before code** — Never start coding without understanding what you're building
25
+ 4. **Context before degradation** — Quality drops as context fills. Plan for it.
26
+
27
+ ## Skill Activation
28
+
29
+ Skills activate automatically when their conditions are met. You MUST use the relevant skill — skipping is not an option.
30
+
31
+ | Situation | Required Skill |
32
+ |-----------|---------------|
33
+ | New feature request | `brainstorming` → `/discuss` → `writing-plans` → `executing-plans` |
34
+ | Bug report | `systematic-debugging` |
35
+ | "Audit this codebase" | `codebase-mapping` → `architecture-audit` |
36
+ | "Is this secure?" | `security-audit` |
37
+ | "Why is this slow?" | `performance-audit` |
38
+ | "Review this code" | `code-review` |
39
+ | Writing tests | `test-driven-development` |
40
+ | About to say "done" | `verification-before-completion` |
41
+ | Changing existing code | `refactoring-safely` |
42
+ | Database questions | `database-audit` |
43
+ | Frontend issues | `frontend-audit` |
44
+ | API design | `api-design-audit` |
45
+ | Deployment concerns | `ci-cd-audit` |
46
+ | Accessibility | `accessibility-audit` |
47
+ | Logging/monitoring | `observability-audit` |
48
+ | Dependency updates | `dependency-audit` |
49
+ | Production incident | `incident-response` |
50
+ | Writing docs | `writing-documentation` |
51
+ | Git operations | `git-workflow` |
52
+ | API integration | `full-stack-api-integration` |
53
+ | Completeness check | `product-completeness-audit` |
54
+ | Deep audit | `brutal-exhaustive-audit` |
55
+ | Cross-session memory | `persistent-memory` |
56
+ | Complex multi-step task / LLM Council | `agent-team-coordination` |
57
+ | Multi-agent team task | `agent-team-coordination` (uses real subagent spawning) |
58
+ | Multi-step task with agents | `/orchestrate` with appropriate chain |
59
+ | Session wrap-up | `/learn` to capture patterns |
60
+ | Before commit/PR | `/quality-gate pre-commit` or `/quality-gate pre-pr` |
61
+ | Adding code to existing codebase | `codebase-conformity` |
62
+ | Creating new skills | `writing-skills` |
63
+ | Discovering skills | `using-skills` |
64
+ | Pre-planning decisions | `/discuss` command |
65
+ | Configuration management | `/settings` command |
66
+ | Verification gaps found | `/gap-closure` workflow |
67
+
68
+ ## Anti-Hallucination Protocol
69
+
70
+ Read `rules/anti-hallucination.md`. Summary:
71
+
72
+ 1. **Never fabricate** — If you don't know, say so
73
+ 2. **Never assume** — Verify file existence, function signatures, variable names
74
+ 3. **Never extrapolate** — Read the actual code, don't guess from names
75
+ 4. **Never claim completion without evidence** — Run the command, read the output
76
+
77
+ ## Severity Framework
78
+
79
+ All findings use the standard severity framework from `rules/severity-framework.md`:
80
+
81
+ | Level | Label | Meaning |
82
+ |-------|-------|---------|
83
+ | 🔴 | Critical | Production risk, security vulnerability, data loss potential |
84
+ | 🟠 | High | Must fix before next deploy |
85
+ | 🟡 | Medium | Technical debt, fix within sprint |
86
+ | 🟢 | Low | Improvement opportunity, backlog |
87
+ | ⚪ | Info | Observation, no action needed |
88
+
89
+ ## Commands
90
+
91
+ Slash commands are available in `commands/`. Key commands:
92
+
93
+ | Command | Purpose |
94
+ |---------|---------|
95
+ | `/audit` | Run security, performance, architecture, or database audit |
96
+ | `/debug` | Systematic debugging with root cause analysis |
97
+ | `/deep-audit` | Brutal 5-pass exhaustive audit |
98
+ | `/discuss` | Lock user preferences BEFORE planning — prevents rework |
99
+ | `/plan` | Create executable prompt plans with task anatomy |
100
+ | `/execute` | Execute plans with deviation protocol and checkpoints |
101
+ | `/settings` | View/modify project config (mode, depth, preferences) |
102
+ | `/verify` | Validate implementations against plans |
103
+ | `/quick` | Execute small tasks without full planning |
104
+ | `/commit` | Create conventional commits |
105
+ | `/team [objective] --preset [type]` | Multi-agent council with real subagent spawning |
106
+ | `/team resume` | Resume an existing council session |
107
+ | `/team board` | Show current task board |
108
+ | `/team status` | Show council state |
109
+ | `/memory` | Persistent memory management |
110
+ | `/progress` | Project progress dashboard |
111
+ | `/init-project` | Bootstrap `.planning/` directory |
112
+ | `/learn` | Extract patterns from current session into `.planning/LEARNINGS.md` |
113
+ | `/quality-gate` | Run build/lint/test/security pipeline (modes: quick, full, pre-commit, pre-pr) |
114
+ | `/checkpoint` | Create or verify named progress checkpoints |
115
+ | `/loop` | Repeat a task across targets with safety bounds |
116
+ | `/orchestrate` | Chain agents: feature, bugfix, refactor, security, or custom |
117
+ | `/context` | Switch mode: dev (code-first), research (read-widely), review (quality-first) |
118
+
119
+ ## Agents
120
+
121
+ Specialist agents are available in `agents/` for subagent spawning:
122
+
123
+ | Agent | Role |
124
+ |-------|------|
125
+ | `researcher` | Evidence-based code research |
126
+ | `planner` | Task decomposition and wave planning |
127
+ | `executor` | Plan implementation with verification |
128
+ | `reviewer` | Code review and quality assessment |
129
+ | `mapper` | Codebase structural mapping |
130
+ | `debugger` | Scientific hypothesis-driven debugging |
131
+ | `verifier` | Implementation verification and gap analysis |
132
+ | `investigator` | Deep-dive analysis and root cause investigation |
133
+ | `fixer` | Targeted issue resolution and patch application |
134
+
135
+ ## File Structure
136
+
137
+ ```
138
+ alena/
139
+ ├── CLAUDE.md ← You are here
140
+ ├── GEMINI.md ← Gemini/Antigravity entry point
141
+ ├── rules/ ← Non-negotiable principles
142
+ │ ├── core-principles.md
143
+ │ ├── anti-hallucination.md
144
+ │ ├── severity-framework.md
145
+ │ ├── memory-protocol.md
146
+ │ └── team-protocol.md
147
+ ├── scripts/
148
+ │ ├── planning-tools.cjs ← 90+ CLI commands
149
+ │ └── lib/ ← 13 modules
150
+ ├── hooks/ ← 5 production hooks (security, statusline, context, update, memory)
151
+ ├── templates/ ← 11 structured templates
152
+ ├── references/ ← Questioning framework, deviation rules
153
+ ├── commands/ ← Slash commands
154
+ │ ├── audit.md
155
+ │ ├── debug.md
156
+ │ ├── deep-audit.md
157
+ │ ├── execute.md
158
+ │ ├── verify.md
159
+ │ └── ... (28 more)
160
+ ├── agents/ ← Specialist subagents (9 agents)
161
+ │ ├── researcher.md
162
+ │ ├── planner.md
163
+ │ ├── executor.md
164
+ │ ├── reviewer.md
165
+ │ ├── mapper.md
166
+ │ ├── debugger.md
167
+ │ ├── verifier.md
168
+ │ ├── investigator.md
169
+ │ └── fixer.md
170
+ ├── cursor-rules/ ← Cursor IDE rules (10 rules)
171
+ └── skills/ ← Composable skill library (30 skills)
172
+ ├── brainstorming/
173
+ ├── writing-plans/
174
+ ├── executing-plans/
175
+ ├── test-driven-development/
176
+ ├── systematic-debugging/
177
+ ├── code-review/
178
+ ├── verification-before-completion/
179
+ ├── git-workflow/
180
+ ├── architecture-audit/
181
+ ├── security-audit/
182
+ ├── performance-audit/
183
+ ├── database-audit/
184
+ ├── frontend-audit/
185
+ ├── api-design-audit/
186
+ ├── dependency-audit/
187
+ ├── observability-audit/
188
+ ├── accessibility-audit/
189
+ ├── ci-cd-audit/
190
+ ├── refactoring-safely/
191
+ ├── writing-documentation/
192
+ ├── codebase-mapping/
193
+ ├── incident-response/
194
+ ├── full-stack-api-integration/
195
+ ├── product-completeness-audit/
196
+ ├── brutal-exhaustive-audit/
197
+ ├── persistent-memory/
198
+ ├── agent-team-coordination/
199
+ ├── codebase-conformity/
200
+ ├── writing-skills/
201
+ └── using-skills/
202
+ ```
203
+
204
+ ## Council Commands (Multi-Agent Teams)
205
+
206
+ The `/team` command runs a multi-agent council with real subagent spawning via `Task()`. Each agent gets fresh 200k context. State is managed deterministically by the CLI — no LLM-driven file creation.
207
+
208
+ All commands: `node planning-tools.cjs council <subcommand>`
209
+
210
+ | Command | Purpose |
211
+ |---------|---------|
212
+ | `council init <objective> --preset <type>` | Initialize council state machine |
213
+ | `council advance` | Move to next agent (with gate validation) |
214
+ | `council advance --force` | Move to next agent (skip gate check) |
215
+ | `council message <from> <to> <type>` | Create numbered handoff message |
216
+ | `council handoff <agent>` | Record agent completion with handoff doc |
217
+ | `council gate-check` | Validate transition quality gate |
218
+ | `council board` | Regenerate task board (BOARD.md) |
219
+ | `council status` | Show current council state as JSON |
220
+ | `council task-add <desc>` | Add task (`--assignee`, `--depends-on`) |
221
+ | `council task-update <id> --status <s>` | Update task (`pending\|in-progress\|done\|blocked`) |
222
+ | `council summary` | Generate council summary report |
223
+ | `council close` | Close council with final report |
224
+ | `council resume` | Resume a previously archived council |
225
+ | `council reset` | Archive current council and start fresh |
226
+
227
+ **Presets:** `full` (5 agents), `rapid` (3), `debug` (3), `architecture` (3), `refactoring` (4), `audit` (3)
228
+
229
+ **Quality gates** are code-enforced. Each transition requires specific handoff content (e.g., `researcher->architect` requires a `findings` section). Gates block advancement until criteria are met.
230
+
231
+ **State** lives in `.planning/council/council.json`. Handoffs in `handoffs/`, messages in `messages/`, tasks in `tasks/`.
232
+
233
+ See `docs/AGENT-TEAMS-AND-MEMORY.md` for the full architecture guide.
package/GEMINI.md ADDED
@@ -0,0 +1,419 @@
1
+ # ALENA
2
+
3
+ > v1.0.0 — A personal toolkit for autonomous, networked AI agents.
4
+
5
+ ## How It Works
6
+
7
+ You have a library of composable skills installed in `.agent/skills/`. Before any task, check if a relevant skill exists. Skills are not suggestions — they are mandatory workflows when their activation conditions are met.
8
+
9
+ **Check skills before:**
10
+ - Writing any code
11
+ - Debugging any issue
12
+ - Reviewing any PR
13
+ - Auditing any system
14
+ - Planning any feature
15
+ - Refactoring any module
16
+
17
+ ## Core Principles
18
+
19
+ Read and internalize `rules/core-principles.md` before any work.
20
+
21
+ **The four non-negotiables:**
22
+ 1. **Evidence before claims** — Never say "done" without verification
23
+ 2. **Root cause before fixes** — Never patch symptoms
24
+ 3. **Plan before code** — Never start coding without understanding what you're building
25
+ 4. **Context before degradation** — Quality drops as context fills. Plan for it.
26
+
27
+ ## Skill Activation
28
+
29
+ Skills activate automatically when their conditions are met. You MUST use the relevant skill — skipping is not an option.
30
+
31
+ | Situation | Required Skill |
32
+ |-----------|---------------|
33
+ | New feature request | `brainstorming` → `/discuss` → `writing-plans` → `executing-plans` |
34
+ | Bug report | `systematic-debugging` |
35
+ | "Audit this codebase" | `codebase-mapping` → `architecture-audit` |
36
+ | "Is this secure?" | `security-audit` |
37
+ | "Why is this slow?" | `performance-audit` |
38
+ | "Review this code" | `code-review` |
39
+ | Writing tests | `test-driven-development` |
40
+ | About to say "done" | `verification-before-completion` |
41
+ | Changing existing code | `refactoring-safely` |
42
+ | Database questions | `database-audit` |
43
+ | Frontend issues | `frontend-audit` |
44
+ | API design | `api-design-audit` |
45
+ | Deployment concerns | `ci-cd-audit` |
46
+ | Accessibility | `accessibility-audit` |
47
+ | Logging/monitoring | `observability-audit` |
48
+ | Dependency updates | `dependency-audit` |
49
+ | Production incident | `incident-response` |
50
+ | Writing docs | `writing-documentation` |
51
+ | Git operations | `git-workflow` |
52
+ | API integration | `full-stack-api-integration` |
53
+ | Completeness check | `product-completeness-audit` |
54
+ | Deep audit | `brutal-exhaustive-audit` |
55
+ | Cross-session memory | `persistent-memory` |
56
+ | Complex multi-step task / LLM Council | `agent-team-coordination` |
57
+ | Multi-agent team task | `agent-team-coordination` (uses real subagent spawning) |
58
+ | Adding code to existing codebase | `codebase-conformity` |
59
+ | Creating new skills | `writing-skills` |
60
+ | Discovering skills | `using-skills` |
61
+ | Pre-planning decisions | `/discuss` command |
62
+ | Configuration management | `/settings` command |
63
+ | Verification gaps found | `/gap-closure` workflow |
64
+
65
+ ## Anti-Hallucination Protocol
66
+
67
+ Read `rules/anti-hallucination.md`. Summary:
68
+
69
+ 1. **Never fabricate** — If you don't know, say so
70
+ 2. **Never assume** — Verify file existence, function signatures, variable names
71
+ 3. **Never extrapolate** — Read the actual code, don't guess from names
72
+ 4. **Never claim completion without evidence** — Run the command, read the output
73
+
74
+ ## Severity Framework
75
+
76
+ All findings use the standard severity framework:
77
+
78
+ | Level | Label | Meaning |
79
+ |-------|-------|---------|
80
+ | 🔴 | Critical | Production risk, security vulnerability, data loss potential |
81
+ | 🟠 | High | Must fix before next deploy |
82
+ | 🟡 | Medium | Technical debt, fix within sprint |
83
+ | 🟢 | Low | Improvement opportunity, backlog |
84
+ | ⚪ | Info | Observation, no action needed |
85
+
86
+ ## Commands
87
+
88
+ Slash commands are available in `commands/`. Key commands:
89
+
90
+ | Command | Purpose |
91
+ |---------|---------|
92
+ | `/audit` | Run security, performance, architecture, or database audit |
93
+ | `/debug` | Systematic debugging with root cause analysis |
94
+ | `/deep-audit` | Brutal 5-pass exhaustive audit |
95
+ | `/discuss` | Lock user preferences BEFORE planning — prevents rework |
96
+ | `/plan` | Create executable prompt plans with task anatomy |
97
+ | `/execute` | Execute plans with deviation protocol and checkpoints |
98
+ | `/settings` | View/modify project config (mode, depth, preferences) |
99
+ | `/verify` | Validate implementations against plans |
100
+ | `/quick` | Execute small tasks without full planning |
101
+ | `/commit` | Create conventional commits |
102
+ | `/team [objective] --preset [type]` | Multi-agent council with real subagent spawning |
103
+ | `/team resume` | Resume an existing council session |
104
+ | `/team board` | Show current task board |
105
+ | `/team status` | Show council state |
106
+ | `/memory` | Persistent memory management |
107
+ | `/progress` | Project progress dashboard |
108
+ | `/init-project` | Bootstrap `.planning/` directory |
109
+
110
+ ## Agents
111
+
112
+ Specialist agents are available in `agents/` for subagent spawning:
113
+
114
+ | Agent | Role |
115
+ |-------|------|
116
+ | `researcher` | Evidence-based code research |
117
+ | `planner` | Task decomposition and wave planning |
118
+ | `executor` | Plan implementation with verification |
119
+ | `reviewer` | Code review and quality assessment |
120
+ | `mapper` | Codebase structural mapping |
121
+ | `debugger` | Scientific hypothesis-driven debugging |
122
+ | `verifier` | Implementation verification and gap analysis |
123
+ | `investigator` | Deep-dive analysis and root cause investigation |
124
+ | `fixer` | Targeted issue resolution and patch application |
125
+
126
+ ## File Structure
127
+
128
+ ```
129
+ alena/
130
+ ├── CLAUDE.md ← Claude Code entry point
131
+ ├── GEMINI.md ← You are here
132
+ ├── rules/ ← Non-negotiable principles
133
+ │ ├── core-principles.md
134
+ │ ├── anti-hallucination.md
135
+ │ ├── severity-framework.md
136
+ │ ├── memory-protocol.md
137
+ │ └── team-protocol.md
138
+ ├── scripts/
139
+ │ ├── planning-tools.cjs ← 90+ CLI commands
140
+ │ └── lib/ ← 13 modules
141
+ ├── hooks/ ← 5 production hooks (security, statusline, context, update, memory)
142
+ ├── templates/ ← 11 structured templates
143
+ ├── references/ ← Questioning framework, deviation rules
144
+ ├── commands/ ← Slash commands
145
+ │ ├── audit.md
146
+ │ ├── debug.md
147
+ │ ├── deep-audit.md
148
+ │ ├── execute.md
149
+ │ ├── verify.md
150
+ │ └── ... (20 more)
151
+ ├── agents/ ← Specialist subagents (9 agents)
152
+ │ ├── researcher.md
153
+ │ ├── planner.md
154
+ │ ├── executor.md
155
+ │ ├── reviewer.md
156
+ │ ├── mapper.md
157
+ │ ├── debugger.md
158
+ │ ├── verifier.md
159
+ │ ├── investigator.md
160
+ │ └── fixer.md
161
+ ├── cursor-rules/ ← Cursor IDE rules (10 rules)
162
+ └── skills/ ← Composable skill library (30 skills)
163
+ ├── brainstorming/
164
+ ├── writing-plans/
165
+ ├── executing-plans/
166
+ ├── test-driven-development/
167
+ ├── systematic-debugging/
168
+ ├── code-review/
169
+ ├── verification-before-completion/
170
+ ├── git-workflow/
171
+ ├── architecture-audit/
172
+ ├── security-audit/
173
+ ├── performance-audit/
174
+ ├── database-audit/
175
+ ├── frontend-audit/
176
+ ├── api-design-audit/
177
+ ├── dependency-audit/
178
+ ├── observability-audit/
179
+ ├── accessibility-audit/
180
+ ├── ci-cd-audit/
181
+ ├── refactoring-safely/
182
+ ├── writing-documentation/
183
+ ├── codebase-mapping/
184
+ ├── incident-response/
185
+ ├── full-stack-api-integration/
186
+ ├── product-completeness-audit/
187
+ ├── brutal-exhaustive-audit/
188
+ ├── persistent-memory/
189
+ ├── agent-team-coordination/
190
+ ├── codebase-conformity/
191
+ ├── writing-skills/
192
+ └── using-skills/
193
+ ```
194
+
195
+ ## Workflows
196
+
197
+ Workflows are installed in `.agent/workflows/`. Use `/workflow-name` to execute them. Workflows with `// turbo` annotations auto-run safe steps.
198
+
199
+ ## Persistent Memory
200
+
201
+ If `.planning/MEMORY.md` exists, read it at session start and update it at session end. This provides cross-session context. Use `node planning-tools.cjs` for deterministic state updates.
202
+
203
+ ## State Management
204
+
205
+ `scripts/planning-tools.cjs` handles structured operations that LLMs can't do reliably:
206
+ ```bash
207
+ node planning-tools.cjs init # Bootstrap .planning/ structure
208
+ node planning-tools.cjs state load # Load current position
209
+ node planning-tools.cjs state advance-task # Advance task counter
210
+ node planning-tools.cjs state add-decision # Record a decision
211
+ node planning-tools.cjs config get <key> # Read config
212
+ node planning-tools.cjs config set <key> <value> # Write config
213
+ node planning-tools.cjs progress # Show dashboard
214
+ ```
215
+
216
+ ## Council Commands (Multi-Agent Teams)
217
+
218
+ The `/team` command runs a multi-agent council with real subagent spawning via `Task()`. Each agent gets fresh 200k context. State is managed deterministically by the CLI — no LLM-driven file creation.
219
+
220
+ All commands: `node planning-tools.cjs council <subcommand>`
221
+
222
+ | Command | Purpose |
223
+ |---------|---------|
224
+ | `council init <objective> --preset <type>` | Initialize council state machine |
225
+ | `council advance` | Move to next agent (with gate validation) |
226
+ | `council advance --force` | Move to next agent (skip gate check) |
227
+ | `council message <from> <to> <type>` | Create numbered handoff message |
228
+ | `council handoff <agent>` | Record agent completion with handoff doc |
229
+ | `council gate-check` | Validate transition quality gate |
230
+ | `council board` | Regenerate task board (BOARD.md) |
231
+ | `council status` | Show current council state as JSON |
232
+ | `council task-add <desc>` | Add task (`--assignee`, `--depends-on`) |
233
+ | `council task-update <id> --status <s>` | Update task (`pending\|in-progress\|done\|blocked`) |
234
+ | `council summary` | Generate council summary report |
235
+ | `council close` | Close council with final report |
236
+ | `council resume` | Resume a previously archived council |
237
+ | `council reset` | Archive current council and start fresh |
238
+
239
+ **Presets:** `full` (5 agents), `rapid` (3), `debug` (3), `architecture` (3), `refactoring` (4), `audit` (3)
240
+
241
+ **Quality gates** are code-enforced. Each transition requires specific handoff content (e.g., `researcher->architect` requires a `findings` section). Gates block advancement until criteria are met.
242
+
243
+ **State** lives in `.planning/council/council.json`. Handoffs in `handoffs/`, messages in `messages/`, tasks in `tasks/`.
244
+
245
+ See `docs/AGENT-TEAMS-AND-MEMORY.md` for the full architecture guide.
246
+
247
+ ---
248
+
249
+ ## � Release Process (Publishing to npm)
250
+
251
+ **Versioning is NOT automatic.** You must manually run a command to publish.
252
+
253
+ ### When to Release
254
+
255
+ Release when you've made meaningful changes worth publishing:
256
+ - **Patch** (4.0.0 → 4.0.1): Bug fixes, typo corrections
257
+ - **Minor** (4.0.0 → 4.1.0): New features, new skills, new commands
258
+ - **Major** (4.0.0 → 5.0.0): Breaking changes
259
+
260
+ ### Release Commands
261
+
262
+ ```powershell
263
+ # Bug fix release (1.0.0 → 1.0.1)
264
+ npm run release:patch
265
+
266
+ # New feature release (1.0.0 → 1.1.0)
267
+ npm run release:minor
268
+
269
+ # Breaking change release (1.0.0 → 2.0.0)
270
+ npm run release:major
271
+ ```
272
+
273
+ ### What These Commands Do
274
+
275
+ Each release command automatically:
276
+ 1. Bumps version in `package.json`
277
+ 2. Creates a git tag (e.g., `v1.0.1`)
278
+ 3. Runs `npm run build`
279
+ 4. Publishes to npm registry
280
+ 5. Pushes the tag to GitHub
281
+
282
+ ### Before Releasing
283
+
284
+ 1. Ensure all changes are committed and pushed
285
+ 2. Ensure CI pipeline passes
286
+ 3. Update CHANGELOG.md with release notes
287
+ 4. Verify git status is clean: `git status --short`
288
+
289
+ ### After Releasing
290
+
291
+ Verify on npm: `npm view skills-alena version`
292
+
293
+ ---
294
+
295
+ ## �🚨 Pre-Commit Checklist (CRITICAL)
296
+
297
+ **Before ending any session that modifies the repository:**
298
+
299
+ ### 1. Check for Uncommitted Changes
300
+ ```powershell
301
+ git status --short
302
+ ```
303
+ If files are modified/untracked, they MUST be committed.
304
+
305
+ ### 2. 🚨 CRITICAL: Version Management (READ THIS)
306
+
307
+ **THE PROBLEM:**
308
+ Version is scattered across multiple files. If you bump version without syncing, npm, docs, and website will be out of sync.
309
+
310
+ **THE SOLUTION:**
311
+ `package.json` is the SINGLE source of truth. All other files are auto-synced.
312
+
313
+ **NEVER MANUALLY EDIT VERSION IN:**
314
+ - ❌ `package.json` (only via `npm version`)
315
+ - ❌ `docs/index.html` (auto-synced)
316
+ - ⚠️ `CHANGELOG.md` (you MUST add entry manually BEFORE bumping version)
317
+
318
+ **CORRECT WORKFLOW:**
319
+
320
+ ```powershell
321
+ # 1. Update CHANGELOG.md FIRST
322
+ # Add new version section manually: ## [X.Y.Z] — YYYY-MM-DD
323
+
324
+ # 2. Commit your changes (NOT the version bump yet)
325
+ git add -A
326
+ git commit -m "feat: your changes"
327
+ git push
328
+
329
+ # 3. Bump version — this auto-syncs everything
330
+ npm run release:minor # or release:patch, release:major
331
+
332
+ # What happens automatically:
333
+ # - package.json version bumped
334
+ # - docs/index.html updated with new version
335
+ # - Git tag created (vX.Y.Z)
336
+ # - Published to npm
337
+ # - Pushed to GitHub with tag
338
+ ```
339
+
340
+ **IF YOU MESS UP:**
341
+ ```powershell
342
+ # If you already bumped locally but didn't push:
343
+ git tag -d vX.Y.Z # Delete the tag
344
+ git reset --hard HEAD~1 # Undo the version commit
345
+
346
+ # Then follow the correct workflow above
347
+ ```
348
+
349
+ ### 3. Verify Asset Counts Match
350
+ When adding/removing skills, commands, workflows, agents, hooks, modules, templates, or rules:
351
+ ```powershell
352
+ $skills = (Get-ChildItem -Path skills -Recurse -Filter "SKILL.md").Count
353
+ $commands = (Get-ChildItem -Path commands -Filter "*.md").Count
354
+ $workflows = (Get-ChildItem -Path workflows -Filter "*.md").Count
355
+ $agents = (Get-ChildItem -Path agents -Filter "*.md").Count
356
+ $rules = (Get-ChildItem -Path cursor-rules -Filter "*.md").Count
357
+ $hooks = (Get-ChildItem -Path hooks -Filter "*.md","*.js","*.cjs" -ErrorAction SilentlyContinue).Count
358
+ $modules = (Get-ChildItem -Path scripts/lib -Filter "*.cjs" -ErrorAction SilentlyContinue).Count
359
+ $templates = (Get-ChildItem -Path templates -Filter "*.md" -ErrorAction SilentlyContinue).Count
360
+ $references = (Get-ChildItem -Path references -Filter "*.md" -ErrorAction SilentlyContinue).Count
361
+
362
+ Write-Host "Skills: $skills | Commands: $commands | Workflows: $workflows | Agents: $agents | Rules: $rules | Hooks: $hooks | Modules: $modules | Templates: $templates | References: $references"
363
+ ```
364
+
365
+ **v1.0.0 expected counts:** 31 skills, 28 commands, 32 workflows, 9 agents + 5 hooks, 13 modules, 11 templates, 2 references
366
+
367
+ Update these files if counts changed:
368
+ - `package.json` (description field)
369
+ - `README.md` (metrics table)
370
+ - `docs/index.html` (meta description)
371
+ - `CHANGELOG.md` (for new skills)
372
+
373
+ ### 📝 README Version Highlights Rule
374
+
375
+ **The `README.md` has a "🏆 Recent Releases" section that shows the last 3 minor versions.**
376
+
377
+ **On every MINOR release (e.g. 3.4.0):**
378
+ 1. Add the new version at the top of "Recent Releases"
379
+ 2. Remove the oldest version (keep only 3)
380
+ 3. Each version entry should have 3-4 bullet points summarizing key changes
381
+
382
+ **On PATCH releases (e.g. 3.3.1):** No README update needed — patches are too small.
383
+
384
+ **Format:**
385
+ ```markdown
386
+ ### 🏆 Recent Releases
387
+
388
+ #### vX.Y.0 — Title 🎨
389
+ - 🆕 Key new feature
390
+ - 🧠 Key enhancement
391
+ - 📊 Asset counts
392
+
393
+ #### vX.Y-1.0 — Title 📚
394
+ - ...
395
+
396
+ #### vX.Y-2.0 — Title 🔧
397
+ - ...
398
+ ```
399
+
400
+ ### 3. Commit ALL Modified Files
401
+ ```powershell
402
+ git add -A
403
+ git status # Verify everything is staged
404
+ ```
405
+
406
+ ### 4. Use Temp File for Commit Message
407
+ ```powershell
408
+ # Create commit message file
409
+ Set-Content -Path ".commit-msg.txt" -Value "your message"
410
+ git commit -F .commit-msg.txt
411
+ Remove-Item .commit-msg.txt
412
+ ```
413
+
414
+ ### 5. Push Immediately
415
+ ```powershell
416
+ git push
417
+ ```
418
+
419
+ **⚠️ NEVER end a session with uncommitted changes!**
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Adriana Eka Prayudha
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.