@hopla/claude-setup 1.10.2 → 1.11.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.
- package/.claude-plugin/marketplace.json +20 -0
- package/.claude-plugin/plugin.json +23 -0
- package/README.md +137 -30
- package/agents/code-reviewer.md +62 -0
- package/agents/codebase-researcher.md +41 -0
- package/agents/system-reviewer.md +64 -0
- package/cli.js +45 -14
- package/commands/guides/ai-optimized-codebase.md +70 -0
- package/commands/guides/hooks-reference.md +82 -0
- package/commands/guides/mcp-integration.md +32 -0
- package/commands/guides/remote-coding.md +70 -0
- package/commands/guides/scaling-beyond-engineering.md +54 -0
- package/commands/guides/write-skill.md +78 -0
- package/{files/commands → commands}/hopla-code-review-fix.md +8 -0
- package/commands/hopla-end-to-end.md +67 -0
- package/{files/commands → commands}/hopla-execute.md +2 -0
- package/commands/hopla-guide.md +61 -0
- package/{files/commands → commands}/hopla-plan-feature.md +2 -0
- package/commands/hopla-rca.md +64 -0
- package/{files/commands → commands}/hopla-validate.md +5 -0
- package/{files/CLAUDE.md → global-rules.md} +45 -0
- package/hooks/hooks.json +40 -0
- package/{files/hooks → hooks}/session-prime.js +13 -0
- package/package.json +7 -2
- package/skills/hopla-brainstorm/SKILL.md +89 -0
- package/{files/skills → skills}/hopla-code-review/SKILL.md +2 -1
- package/skills/hopla-debug/SKILL.md +73 -0
- package/{files/skills → skills}/hopla-execution-report/SKILL.md +3 -1
- package/{files/skills → skills}/hopla-git/SKILL.md +1 -1
- package/skills/hopla-parallel-dispatch/SKILL.md +69 -0
- package/{files/skills → skills}/hopla-prime/SKILL.md +3 -1
- package/skills/hopla-subagent-execution/SKILL.md +70 -0
- package/skills/hopla-tdd/SKILL.md +73 -0
- package/skills/hopla-verify/SKILL.md +64 -0
- package/skills/hopla-worktree/SKILL.md +73 -0
- /package/{files/commands → commands}/guides/data-audit.md +0 -0
- /package/{files/commands → commands}/guides/review-checklist.md +0 -0
- /package/{files/commands → commands}/hopla-create-prd.md +0 -0
- /package/{files/commands → commands}/hopla-git-commit.md +0 -0
- /package/{files/commands → commands}/hopla-git-pr.md +0 -0
- /package/{files/commands → commands}/hopla-init-project.md +0 -0
- /package/{files/commands → commands}/hopla-review-plan.md +0 -0
- /package/{files/commands → commands}/hopla-system-review.md +0 -0
- /package/{files/hooks → hooks}/env-protect.js +0 -0
- /package/{files/hooks → hooks}/tsc-check.js +0 -0
- /package/{files/skills → skills}/hopla-git/commit.md +0 -0
- /package/{files/skills → skills}/hopla-git/pr.md +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hopla-marketplace",
|
|
3
|
+
"description": "Hopla Tools plugin marketplace for Claude Code",
|
|
4
|
+
"owner": {
|
|
5
|
+
"name": "Hopla Tools",
|
|
6
|
+
"email": "julio@hopla.tools"
|
|
7
|
+
},
|
|
8
|
+
"plugins": [
|
|
9
|
+
{
|
|
10
|
+
"name": "hopla",
|
|
11
|
+
"description": "Agentic coding system: PIV loop, TDD, debugging, brainstorming, subagent execution, and team workflows",
|
|
12
|
+
"version": "1.11.0",
|
|
13
|
+
"source": "./",
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Hopla Tools",
|
|
16
|
+
"email": "julio@hopla.tools"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hopla",
|
|
3
|
+
"description": "Agentic coding system for Claude Code: PIV loop (Plan → Implement → Validate), TDD, debugging, brainstorming, subagent execution, and team workflows",
|
|
4
|
+
"version": "1.11.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Hopla Tools",
|
|
7
|
+
"email": "julio@hopla.tools"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/hopla-tools/claude-setup",
|
|
10
|
+
"repository": "https://github.com/hopla-tools/claude-setup",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"claude",
|
|
14
|
+
"agentic-coding",
|
|
15
|
+
"piv-loop",
|
|
16
|
+
"tdd",
|
|
17
|
+
"debugging",
|
|
18
|
+
"brainstorming",
|
|
19
|
+
"code-review",
|
|
20
|
+
"workflows",
|
|
21
|
+
"skills"
|
|
22
|
+
]
|
|
23
|
+
}
|
package/README.md
CHANGED
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
# @hopla/claude-setup
|
|
2
2
|
|
|
3
|
-
Hopla team agentic coding system for Claude Code. Installs
|
|
3
|
+
Hopla team agentic coding system for Claude Code. Installs commands, skills, agents, hooks, and reference guides — available as a **Claude Code plugin** or via **npm CLI**.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Option A: Claude Code Plugin (recommended)
|
|
8
|
+
|
|
9
|
+
First, register the HOPLA marketplace (only needed once):
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/plugin marketplace add hopla-marketplace https://github.com/HOPLAtools/claude-setup.git
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then install the plugin:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
/plugin install hopla@hopla-marketplace
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This installs all commands, skills, agents, and hooks automatically. Updates are detected when the plugin version changes — update manually with `/plugin update hopla@hopla-marketplace`.
|
|
22
|
+
|
|
23
|
+
To also install the global rules template (`~/.claude/CLAUDE.md`), run the CLI:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
npm install -g @hopla/claude-setup
|
|
27
|
+
claude-setup --force
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
> **Note:** The global rules (`~/.claude/CLAUDE.md`) can only be installed via the CLI because the plugin system doesn't have access to write machine-level files.
|
|
31
|
+
|
|
32
|
+
### Option B: npm CLI only
|
|
8
33
|
|
|
9
34
|
```bash
|
|
10
35
|
npm install -g @hopla/claude-setup
|
|
11
36
|
claude-setup
|
|
12
37
|
```
|
|
13
38
|
|
|
14
|
-
Installs
|
|
39
|
+
Installs everything including `~/.claude/CLAUDE.md`. Use this if you don't want the plugin channel or need the `--planning` mode.
|
|
15
40
|
|
|
16
41
|
### Planning-only install — for the planner/non-technical role (Robert)
|
|
17
42
|
|
|
@@ -20,7 +45,7 @@ npm install -g @hopla/claude-setup
|
|
|
20
45
|
claude-setup --planning
|
|
21
46
|
```
|
|
22
47
|
|
|
23
|
-
Installs only planning commands: `init-project`, `
|
|
48
|
+
Installs only planning commands: `init-project`, `create-prd`, `plan-feature`, `review-plan`, `guide`, `git-commit`, `git-pr`. Also installs planning skills (`hopla-prime`, `hopla-brainstorm`). No execution or review commands. No bash permission prompts during planning.
|
|
24
49
|
|
|
25
50
|
To overwrite existing files without prompting:
|
|
26
51
|
|
|
@@ -31,33 +56,50 @@ claude-setup --planning --force
|
|
|
31
56
|
|
|
32
57
|
## Update
|
|
33
58
|
|
|
59
|
+
**Plugin channel:** updates automatically when the plugin version changes, or manually:
|
|
60
|
+
```
|
|
61
|
+
/plugin update hopla@hopla-marketplace
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**CLI channel (for global rules):**
|
|
34
65
|
```bash
|
|
35
66
|
npm install -g @hopla/claude-setup@latest --prefer-online && claude-setup --force
|
|
36
67
|
```
|
|
37
68
|
|
|
38
69
|
## Uninstall
|
|
39
70
|
|
|
71
|
+
**Plugin:**
|
|
72
|
+
```
|
|
73
|
+
/plugin uninstall hopla@hopla-marketplace
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**CLI:**
|
|
40
77
|
```bash
|
|
41
78
|
claude-setup --uninstall
|
|
42
79
|
```
|
|
43
80
|
|
|
44
81
|
---
|
|
45
82
|
|
|
46
|
-
## How It Works —
|
|
83
|
+
## How It Works — Layered Context
|
|
47
84
|
|
|
48
|
-
The system
|
|
85
|
+
The system uses three levels of CLAUDE.md, each scoped differently:
|
|
49
86
|
|
|
50
87
|
```
|
|
51
|
-
~/.claude/CLAUDE.md ←
|
|
52
|
-
└── applies to ALL projects
|
|
88
|
+
~/.claude/CLAUDE.md ← Machine-level (installed by claude-setup)
|
|
89
|
+
└── applies to ALL projects on this machine
|
|
53
90
|
|
|
54
|
-
CLAUDE.md (project root) ← Project-
|
|
91
|
+
CLAUDE.md (project root) ← Project-level (created with /hopla-init-project)
|
|
55
92
|
└── applies to THIS project only
|
|
93
|
+
|
|
94
|
+
.claude/CLAUDE.local.md ← Local overrides (personal, gitignored)
|
|
95
|
+
└── your personal tweaks, not shared with team
|
|
56
96
|
```
|
|
57
97
|
|
|
58
|
-
**
|
|
98
|
+
**Machine-level rules** cover: language preferences, tech defaults, Git Flow, Conventional Commits, autonomy behavior, context management, and available commands/skills reference.
|
|
99
|
+
|
|
100
|
+
**Project-level rules** cover: specific stack versions, architecture patterns, naming conventions, logging, testing, dev commands, and task-specific reference guides.
|
|
59
101
|
|
|
60
|
-
**
|
|
102
|
+
**Local overrides** cover: personal preferences that differ from the team (e.g., verbose logging, different editor settings).
|
|
61
103
|
|
|
62
104
|
---
|
|
63
105
|
|
|
@@ -73,6 +115,7 @@ This system is built on two core concepts from the Agentic Coding Course:
|
|
|
73
115
|
| **On-Demand Context** | Task-specific guides loaded when needed (e.g. "how to add an API endpoint") | `.agents/guides/*.md` |
|
|
74
116
|
| **Commands** | Reusable processes that tell the agent *how* to work | `~/.claude/commands/hopla-*.md` |
|
|
75
117
|
| **Skills** | Auto-activate by semantic matching — no slash command needed | `~/.claude/skills/hopla-*/SKILL.md` |
|
|
118
|
+
| **Agents** | Specialized subagents for delegation (code review, research, system analysis) | `~/.claude/agents/*.md` |
|
|
76
119
|
| **Hooks** | Run automatically before/after tool use for type checking and protection | `~/.claude/hooks/*.js` |
|
|
77
120
|
|
|
78
121
|
The key insight: **commands inject on-demand context deterministically** — when you run `/hopla-plan-feature`, it automatically reads the relevant guide from `.agents/guides/` before planning.
|
|
@@ -102,18 +145,21 @@ After each PIV loop, run `/hopla-execution-report` + `/hopla-system-review` to f
|
|
|
102
145
|
| Command | Description |
|
|
103
146
|
|---|---|
|
|
104
147
|
| `/hopla-init-project` | Read PRD, recommend stack, create CLAUDE.md and .agents/ structure |
|
|
105
|
-
| `/hopla-prime` | Load project context at the start of a session |
|
|
106
148
|
| `/hopla-create-prd` | Create a Product Requirements Document through guided questions |
|
|
107
149
|
| `/hopla-plan-feature` | Research codebase and create a structured implementation plan |
|
|
108
150
|
| `/hopla-review-plan` | Review a plan before execution — get a concise summary and approve |
|
|
109
151
|
| `/hopla-execute` | Execute a structured plan from start to finish with validation |
|
|
152
|
+
| `/hopla-validate` | Run the validation pyramid: lint → types → tests → integration |
|
|
153
|
+
| `/hopla-end-to-end` | Full PIV loop in one command: prime → brainstorm → plan → execute → validate → commit |
|
|
110
154
|
| `/hopla-git-commit` | Create a Conventional Commit with Git Flow awareness |
|
|
111
155
|
| `/hopla-git-pr` | Create a GitHub Pull Request with a structured description |
|
|
112
|
-
| `/hopla-code-review` | Technical code review on recently changed files |
|
|
113
156
|
| `/hopla-code-review-fix` | Fix issues found in a code review report |
|
|
114
|
-
| `/hopla-
|
|
157
|
+
| `/hopla-rca` | Root Cause Analysis — investigate a bug systematically and generate an RCA doc |
|
|
158
|
+
| `/hopla-guide` | 4D Framework guide for non-technical users (Description, Discernment, Delegation, Diligence) |
|
|
115
159
|
| `/hopla-system-review` | Analyze implementation against plan to find process improvements |
|
|
116
160
|
|
|
161
|
+
> **Note:** `hopla-prime`, `hopla-code-review`, and `hopla-execution-report` are **skills only** (no slash command needed) — they auto-activate when you describe the task in natural language.
|
|
162
|
+
|
|
117
163
|
**`~/.claude/skills/`** — Auto-activate by semantic matching, no slash command needed:
|
|
118
164
|
|
|
119
165
|
| Skill | Auto-activates when you say... |
|
|
@@ -122,6 +168,13 @@ After each PIV loop, run `/hopla-execution-report` + `/hopla-system-review` to f
|
|
|
122
168
|
| `hopla-prime` | "orient yourself", "ponte al día", "what is this project" |
|
|
123
169
|
| `hopla-code-review` | "review the code", "code review", "analiza los cambios" |
|
|
124
170
|
| `hopla-execution-report` | "generate the report", "genera el reporte", "document what was done" |
|
|
171
|
+
| `hopla-verify` | "verify it works", "make sure it's correct", "check before finishing" |
|
|
172
|
+
| `hopla-brainstorm` | "let's brainstorm", "explore approaches", "design this before coding" |
|
|
173
|
+
| `hopla-debug` | "debug this", "find the bug", "why is this failing" |
|
|
174
|
+
| `hopla-tdd` | "write tests first", "TDD", "red-green-refactor" |
|
|
175
|
+
| `hopla-subagent-execution` | "use subagents", "execute with agents", plans with 5+ tasks |
|
|
176
|
+
| `hopla-parallel-dispatch` | "run in parallel", "parallelize this", independent tasks |
|
|
177
|
+
| `hopla-worktree` | "use a worktree", "isolated branch", "parallel feature work" |
|
|
125
178
|
|
|
126
179
|
**`~/.claude/hooks/`** — Run automatically before/after tool use (configured in `~/.claude/settings.json`):
|
|
127
180
|
|
|
@@ -131,18 +184,51 @@ After each PIV loop, run `/hopla-execution-report` + `/hopla-system-review` to f
|
|
|
131
184
|
| `env-protect.js` | PreToolUse | Blocks reads/greps targeting `.env` files |
|
|
132
185
|
| `session-prime.js` | SessionStart (opt-in) | Loads git context + CLAUDE.md summary at session start |
|
|
133
186
|
|
|
187
|
+
**`~/.claude/agents/`** — Specialized subagents for delegation:
|
|
188
|
+
|
|
189
|
+
| Agent | What it does |
|
|
190
|
+
|---|---|
|
|
191
|
+
| `code-reviewer` | Senior code reviewer (model: sonnet, read-only). Reviews plan alignment, code quality, architecture, logic, security, performance |
|
|
192
|
+
| `codebase-researcher` | Fast codebase explorer (model: haiku, read-only). Systematic search and structured findings |
|
|
193
|
+
| `system-reviewer` | System review analyst (model: sonnet, read-only). Analyzes execution vs plan, classifies divergences |
|
|
194
|
+
|
|
195
|
+
**`~/.claude/commands/guides/`** — Reference guides loaded on-demand:
|
|
196
|
+
|
|
197
|
+
| Guide | What it covers |
|
|
198
|
+
|---|---|
|
|
199
|
+
| `mcp-integration.md` | How to integrate MCP servers into the PIV loop |
|
|
200
|
+
| `ai-optimized-codebase.md` | Vertical slice architecture, LLM-friendly docstrings, strict types |
|
|
201
|
+
| `hooks-reference.md` | All hook types, configuration, input JSON, exit codes, debugging |
|
|
202
|
+
| `write-skill.md` | How to create new skills with CSO, testing, progressive disclosure |
|
|
203
|
+
| `remote-coding.md` | GitHub-based remote agentic coding with autonomy levels |
|
|
204
|
+
| `scaling-beyond-engineering.md` | Expanding HOPLA to non-technical teams with 4D Framework |
|
|
205
|
+
| `data-audit.md` | Data pipeline audit checklist |
|
|
206
|
+
| `review-checklist.md` | Code review checklist reference |
|
|
207
|
+
|
|
134
208
|
**Installed layout:**
|
|
135
209
|
|
|
136
210
|
```
|
|
137
211
|
~/.claude/
|
|
138
212
|
├── CLAUDE.md ← Global rules
|
|
139
213
|
├── commands/
|
|
140
|
-
│
|
|
214
|
+
│ ├── hopla-*.md ← Slash commands (/hopla-prime, /hopla-execute, etc.)
|
|
215
|
+
│ └── guides/ ← Reference guides (loaded on-demand by commands/skills)
|
|
141
216
|
├── skills/
|
|
142
217
|
│ ├── hopla-git/ ← Auto-activates for commit/PR requests
|
|
143
218
|
│ ├── hopla-prime/ ← Auto-activates for orientation requests
|
|
144
219
|
│ ├── hopla-code-review/ ← Auto-activates for review requests
|
|
145
|
-
│
|
|
220
|
+
│ ├── hopla-execution-report/ ← Auto-activates for report requests
|
|
221
|
+
│ ├── hopla-verify/ ← Auto-activates for verification before completion
|
|
222
|
+
│ ├── hopla-brainstorm/ ← Auto-activates for design exploration
|
|
223
|
+
│ ├── hopla-debug/ ← Auto-activates for systematic debugging
|
|
224
|
+
│ ├── hopla-tdd/ ← Auto-activates for test-driven development
|
|
225
|
+
│ ├── hopla-subagent-execution/ ← Auto-activates for multi-task plans
|
|
226
|
+
│ ├── hopla-parallel-dispatch/ ← Auto-activates for parallel work
|
|
227
|
+
│ └── hopla-worktree/ ← Auto-activates for isolated branch work
|
|
228
|
+
├── agents/
|
|
229
|
+
│ ├── code-reviewer.md ← Senior code review subagent
|
|
230
|
+
│ ├── codebase-researcher.md ← Fast codebase exploration subagent
|
|
231
|
+
│ └── system-reviewer.md ← Execution vs plan analysis subagent
|
|
146
232
|
├── hooks/
|
|
147
233
|
│ ├── tsc-check.js ← TypeScript type checking after edits
|
|
148
234
|
│ ├── env-protect.js ← .env file protection
|
|
@@ -163,23 +249,35 @@ After each PIV loop, run `/hopla-execution-report` + `/hopla-system-review` to f
|
|
|
163
249
|
|
|
164
250
|
### Feature development (PIV loop)
|
|
165
251
|
```
|
|
166
|
-
|
|
252
|
+
"ponte al día" → hopla-prime skill auto-loads project context
|
|
167
253
|
/hopla-plan-feature → research codebase and create plan
|
|
168
254
|
/hopla-review-plan → review plan summary and approve
|
|
169
255
|
/hopla-execute → implement the plan with validation
|
|
170
|
-
/hopla-
|
|
256
|
+
/hopla-validate → run lint → types → tests → integration
|
|
257
|
+
"review the code" → hopla-code-review skill runs automatically
|
|
171
258
|
/hopla-code-review-fix → fix issues found
|
|
172
|
-
/hopla-
|
|
259
|
+
/hopla-rca → root cause analysis if a bug is found
|
|
260
|
+
"genera el reporte" → hopla-execution-report skill documents what was built
|
|
173
261
|
/hopla-git-commit → save to git
|
|
174
262
|
/hopla-git-pr → open pull request on GitHub
|
|
175
263
|
```
|
|
176
264
|
|
|
265
|
+
### Full automation (one command)
|
|
266
|
+
```
|
|
267
|
+
/hopla-end-to-end → runs the entire PIV loop: prime → brainstorm → plan → execute → validate → commit
|
|
268
|
+
```
|
|
269
|
+
|
|
177
270
|
### After implementation
|
|
178
271
|
```
|
|
179
272
|
/hopla-system-review → analyze plan vs. actual for process improvements
|
|
180
273
|
```
|
|
181
274
|
|
|
182
|
-
|
|
275
|
+
### For non-technical users
|
|
276
|
+
```
|
|
277
|
+
/hopla-guide → 4D Framework walkthrough (Description, Discernment, Delegation, Diligence)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
> **Tip:** Many commands also exist as skills — they auto-activate when you describe what you want in natural language. For example, saying "debug this" triggers `hopla-debug`, and "let's brainstorm" triggers `hopla-brainstorm`, without typing any slash command.
|
|
183
281
|
|
|
184
282
|
---
|
|
185
283
|
|
|
@@ -192,7 +290,9 @@ Commands are modular — the output of one becomes the input of the next. Some c
|
|
|
192
290
|
| Command | Argument | Example |
|
|
193
291
|
|---|---|---|
|
|
194
292
|
| `/hopla-execute` | Path to plan file | `/hopla-execute .agents/plans/auth-feature.md` |
|
|
293
|
+
| `/hopla-end-to-end` | Feature description | `/hopla-end-to-end add user authentication` |
|
|
195
294
|
| `/hopla-code-review-fix` | Path to review report or description | `/hopla-code-review-fix .agents/code-reviews/auth-review.md` |
|
|
295
|
+
| `/hopla-rca` | Bug description or error message | `/hopla-rca "login fails with 403 after token refresh"` |
|
|
196
296
|
| `/hopla-system-review` | Plan file + execution report | `/hopla-system-review .agents/plans/auth-feature.md .agents/execution-reports/auth-feature.md` |
|
|
197
297
|
|
|
198
298
|
### Full PIV loop example
|
|
@@ -209,36 +309,41 @@ Commands are modular — the output of one becomes the input of the next. Some c
|
|
|
209
309
|
/hopla-execute .agents/plans/add-user-authentication.md
|
|
210
310
|
→ implements the plan, runs validation
|
|
211
311
|
|
|
212
|
-
# 4.
|
|
213
|
-
/hopla-
|
|
312
|
+
# 4. Validate
|
|
313
|
+
/hopla-validate
|
|
314
|
+
→ runs lint → types → tests → integration
|
|
315
|
+
|
|
316
|
+
# 5. Code review (auto-triggered skill — just say "review the code")
|
|
214
317
|
→ saves: .agents/code-reviews/add-user-authentication.md
|
|
215
318
|
|
|
216
|
-
#
|
|
319
|
+
# 6. Fix issues
|
|
217
320
|
/hopla-code-review-fix .agents/code-reviews/add-user-authentication.md
|
|
218
321
|
|
|
219
|
-
#
|
|
220
|
-
/hopla-execution-report
|
|
322
|
+
# 7. Document (auto-triggered skill — just say "genera el reporte")
|
|
221
323
|
→ saves: .agents/execution-reports/add-user-authentication.md
|
|
222
324
|
|
|
223
|
-
#
|
|
325
|
+
# 8. Commit
|
|
224
326
|
/hopla-git-commit
|
|
225
327
|
|
|
226
|
-
#
|
|
328
|
+
# 9. Pull request
|
|
227
329
|
/hopla-git-pr
|
|
228
330
|
|
|
229
|
-
#
|
|
331
|
+
# 10. Process improvement (after PR merge)
|
|
230
332
|
/hopla-system-review .agents/plans/add-user-authentication.md .agents/execution-reports/add-user-authentication.md
|
|
231
333
|
```
|
|
232
334
|
|
|
335
|
+
> **Or do it all in one command:** `/hopla-end-to-end add user authentication`
|
|
336
|
+
|
|
233
337
|
---
|
|
234
338
|
|
|
235
339
|
## Roadmap
|
|
236
340
|
|
|
237
341
|
Features under consideration for future versions:
|
|
238
342
|
|
|
239
|
-
- **
|
|
343
|
+
- **Domain-specific agents** — Project-level custom agents beyond the 3 built-in ones (e.g. frontend agent, backend agent, database agent)
|
|
240
344
|
- **Hook templates** — Installable hook patterns beyond tsc-check and env-protect (e.g. query deduplication, notification hooks)
|
|
241
|
-
- **GitHub Actions integration** — Automated PR reviews and `@claude` mentions via GitHub App
|
|
345
|
+
- **GitHub Actions integration** — Automated PR reviews and `@claude` mentions via GitHub App (see `guides/remote-coding.md`)
|
|
346
|
+
- **Team dashboards** — Aggregate execution reports and system reviews across team members
|
|
242
347
|
|
|
243
348
|
---
|
|
244
349
|
|
|
@@ -250,7 +355,9 @@ project/
|
|
|
250
355
|
├── CLAUDE.md ← Project rules and stack (from /hopla-init-project)
|
|
251
356
|
├── .agents/
|
|
252
357
|
│ ├── plans/ ← Implementation plans (commit these)
|
|
358
|
+
│ ├── specs/ ← Design specs from brainstorming (commit these)
|
|
253
359
|
│ ├── guides/ ← On-demand reference guides (commit these)
|
|
360
|
+
│ ├── rca/ ← Root cause analysis docs (commit these)
|
|
254
361
|
│ ├── execution-reports/ ← Post-implementation reports (don't commit)
|
|
255
362
|
│ ├── code-reviews/ ← Code review reports (don't commit)
|
|
256
363
|
│ └── system-reviews/ ← Process improvement reports (don't commit)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-reviewer
|
|
3
|
+
description: "Senior code reviewer agent for thorough code quality analysis. Use this agent to review completed code changes with fresh context, catching issues the implementer might miss."
|
|
4
|
+
model: sonnet
|
|
5
|
+
allowed-tools: Read, Grep, Glob, Bash
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a Senior Code Reviewer. Your job is to review code changes thoroughly and provide actionable feedback.
|
|
9
|
+
|
|
10
|
+
## Your Review Process
|
|
11
|
+
|
|
12
|
+
1. **Plan Alignment**: Does the code match what was planned? Are there unexplained deviations?
|
|
13
|
+
2. **Code Quality**: Is the code clean, readable, and following project conventions?
|
|
14
|
+
3. **Architecture & Design**: Do the patterns fit? Is the abstraction level appropriate?
|
|
15
|
+
4. **Logic & Correctness**: Are there bugs, edge cases, or race conditions?
|
|
16
|
+
5. **Security**: Any secrets, injection vectors, missing validation, or XSS risks?
|
|
17
|
+
6. **Performance**: Any obvious N+1 queries, unnecessary re-renders, or memory leaks?
|
|
18
|
+
|
|
19
|
+
## Issue Categories
|
|
20
|
+
|
|
21
|
+
Classify every issue as:
|
|
22
|
+
- **Critical**: Must fix before merge. Bugs, security issues, data loss risks
|
|
23
|
+
- **Important**: Should fix before merge. Logic errors, missing validation, poor patterns
|
|
24
|
+
- **Suggestion**: Nice to have. Style improvements, minor optimizations
|
|
25
|
+
|
|
26
|
+
## Communication Rules
|
|
27
|
+
|
|
28
|
+
- **Start with what's good** — Always acknowledge well-done work before listing issues
|
|
29
|
+
- **Be specific** — Include file path, line number, and exact suggestion
|
|
30
|
+
- **Explain WHY** — Don't just say "this is wrong", explain the impact
|
|
31
|
+
- **Suggest fixes** — Don't just complain, propose a solution
|
|
32
|
+
- **Stay objective** — Review the code, not the coder
|
|
33
|
+
|
|
34
|
+
## Output Format
|
|
35
|
+
|
|
36
|
+
Save your review to `.agents/code-reviews/[feature-name].md` with:
|
|
37
|
+
```
|
|
38
|
+
# Code Review: [Feature Name]
|
|
39
|
+
|
|
40
|
+
## Summary
|
|
41
|
+
[1-2 sentences: overall assessment]
|
|
42
|
+
|
|
43
|
+
## What's Done Well
|
|
44
|
+
- [positive observations]
|
|
45
|
+
|
|
46
|
+
## Issues Found
|
|
47
|
+
|
|
48
|
+
### Critical
|
|
49
|
+
| File | Line | Issue | Suggestion |
|
|
50
|
+
|------|------|-------|------------|
|
|
51
|
+
|
|
52
|
+
### Important
|
|
53
|
+
| File | Line | Issue | Suggestion |
|
|
54
|
+
|------|------|-------|------------|
|
|
55
|
+
|
|
56
|
+
### Suggestions
|
|
57
|
+
| File | Line | Issue | Suggestion |
|
|
58
|
+
|------|------|-------|------------|
|
|
59
|
+
|
|
60
|
+
## Verdict
|
|
61
|
+
[APPROVE / REQUEST CHANGES / NEEDS DISCUSSION]
|
|
62
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codebase-researcher
|
|
3
|
+
description: "Fast codebase exploration agent for research tasks. Use this agent to investigate code, find patterns, map dependencies, or gather context without polluting the main conversation."
|
|
4
|
+
model: haiku
|
|
5
|
+
allowed-tools: Read, Grep, Glob, Bash
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a Codebase Researcher. Your job is to quickly explore a codebase and report findings.
|
|
9
|
+
|
|
10
|
+
## Your Process
|
|
11
|
+
|
|
12
|
+
1. Understand the research question
|
|
13
|
+
2. Search the codebase systematically (Glob for files, Grep for patterns, Read for content)
|
|
14
|
+
3. Organize findings clearly
|
|
15
|
+
4. Report back with specific file paths, line numbers, and code examples
|
|
16
|
+
|
|
17
|
+
## Output Format
|
|
18
|
+
|
|
19
|
+
Always structure your findings as:
|
|
20
|
+
```
|
|
21
|
+
# Research: [Topic]
|
|
22
|
+
|
|
23
|
+
## Files Found
|
|
24
|
+
- path/to/file.ts — [what it contains and why it's relevant]
|
|
25
|
+
|
|
26
|
+
## Patterns Observed
|
|
27
|
+
- [pattern 1 with code example]
|
|
28
|
+
- [pattern 2 with code example]
|
|
29
|
+
|
|
30
|
+
## Key Findings
|
|
31
|
+
[Most important discoveries, ordered by relevance]
|
|
32
|
+
|
|
33
|
+
## Recommendations
|
|
34
|
+
[How this information should be used]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Rules
|
|
38
|
+
- Be thorough but fast — check all relevant directories
|
|
39
|
+
- Include specific line numbers when referencing code
|
|
40
|
+
- Report what you DON'T find too — negative results are valuable
|
|
41
|
+
- Don't modify any files — you are read-only
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: system-reviewer
|
|
3
|
+
description: "System review agent that analyzes execution reports against plans to identify process improvements. Use after feature completion to find patterns and improve the development system."
|
|
4
|
+
model: sonnet
|
|
5
|
+
allowed-tools: Read, Grep, Glob, Bash
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a System Reviewer. Your job is to analyze how well the implementation matched the plan and suggest process improvements.
|
|
9
|
+
|
|
10
|
+
## Your Process
|
|
11
|
+
|
|
12
|
+
1. **Read the plan** — Understand what was intended
|
|
13
|
+
2. **Read the execution report** — Understand what actually happened
|
|
14
|
+
3. **Identify divergences** — Where did reality differ from the plan?
|
|
15
|
+
4. **Classify divergences**:
|
|
16
|
+
- **Good divergence**: Found a better approach, justified deviation
|
|
17
|
+
- **Bad divergence**: Missed requirements, ignored constraints, skipped steps
|
|
18
|
+
5. **Trace root causes** — Why did each divergence happen?
|
|
19
|
+
6. **Suggest improvements** — What should change to prevent bad divergences?
|
|
20
|
+
|
|
21
|
+
## Improvement Decision Matrix
|
|
22
|
+
|
|
23
|
+
| Pattern | Action |
|
|
24
|
+
|---------|--------|
|
|
25
|
+
| Issue appears in ALL features | Update CLAUDE.md |
|
|
26
|
+
| Issue appears in one CLASS of features | Update the specific command |
|
|
27
|
+
| Same manual step repeated 3+ times | Create a new command |
|
|
28
|
+
| Plan ambiguous at same point twice | Update planning command |
|
|
29
|
+
| First occurrence | Document, don't over-engineer |
|
|
30
|
+
|
|
31
|
+
## Output Format
|
|
32
|
+
|
|
33
|
+
Save to `.agents/system-reviews/[feature-name].md`:
|
|
34
|
+
```
|
|
35
|
+
# System Review: [Feature Name]
|
|
36
|
+
|
|
37
|
+
## Alignment Score: [X/10]
|
|
38
|
+
|
|
39
|
+
## Good Divergences
|
|
40
|
+
- [What changed and why it was better]
|
|
41
|
+
|
|
42
|
+
## Bad Divergences
|
|
43
|
+
- [What was missed and why]
|
|
44
|
+
|
|
45
|
+
## Root Causes
|
|
46
|
+
- [Why each bad divergence happened]
|
|
47
|
+
|
|
48
|
+
## Recommended Improvements
|
|
49
|
+
|
|
50
|
+
### CLAUDE.md Updates
|
|
51
|
+
- [Specific changes to project rules]
|
|
52
|
+
|
|
53
|
+
### Command Updates
|
|
54
|
+
- [Specific changes to commands]
|
|
55
|
+
|
|
56
|
+
### New Commands/Skills Needed
|
|
57
|
+
- [Gaps in the current system]
|
|
58
|
+
|
|
59
|
+
### Process Changes
|
|
60
|
+
- [Workflow improvements]
|
|
61
|
+
|
|
62
|
+
## Key Learnings
|
|
63
|
+
- [Insights worth remembering]
|
|
64
|
+
```
|