@hopla/claude-setup 1.12.0 → 1.14.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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "hopla",
11
11
  "description": "Agentic coding system: PIV loop, TDD, debugging, brainstorming, subagent execution, and team workflows",
12
- "version": "1.12.0",
12
+ "version": "1.14.0",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "Hopla Tools",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hopla",
3
3
  "description": "Agentic coding system for Claude Code: PIV loop (Plan → Implement → Validate), TDD, debugging, brainstorming, subagent execution, and team workflows",
4
- "version": "1.12.0",
4
+ "version": "1.14.0",
5
5
  "author": {
6
6
  "name": "Hopla Tools",
7
7
  "email": "julio@hopla.tools"
package/README.md CHANGED
@@ -1,83 +1,119 @@
1
1
  # @hopla/claude-setup
2
2
 
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**.
3
+ Hopla team agentic coding system for Claude Code. Delivers commands, skills, agents, hooks, and reference guides via a **Claude Code plugin** (primary channel), with an optional **npm CLI** for the machine-level global rules template.
4
4
 
5
- ## Install
5
+ ---
6
6
 
7
- ### Option A: Claude Code Plugin (recommended)
7
+ ## Prerequisites
8
8
 
9
- First, register the HOPLA marketplace (only needed once):
9
+ - **Claude Code CLI** install from https://claude.com/claude-code
10
+ - **Node.js ≥18** — required for the npm CLI (`node --version`)
11
+ - **git** — plugin installs clone this repo
10
12
 
11
- ```
12
- /plugin marketplace add hopla-marketplace HOPLAtools/claude-setup
13
- ```
13
+ ---
14
+
15
+ ## Quick Start
14
16
 
15
- Then install the plugin:
17
+ The full setup is **plugin + CLI** — they deliver different layers:
18
+
19
+ | Layer | Channel | What it provides |
20
+ |---|---|---|
21
+ | Per-project behavior | Plugin | Commands, skills, agents, hooks |
22
+ | Machine-wide defaults | CLI | `~/.claude/CLAUDE.md` global rules + bash permissions |
23
+
24
+ **Step 1 — Register the marketplace and install the plugin** (inside Claude Code):
16
25
 
17
26
  ```
27
+ /plugin marketplace add hopla-marketplace HOPLAtools/claude-setup
18
28
  /plugin install hopla@hopla-marketplace
19
29
  ```
20
30
 
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:
31
+ **Step 2 Install the global rules template** (one-time, terminal):
24
32
 
25
33
  ```bash
26
34
  npm install -g @hopla/claude-setup
27
35
  claude-setup --force
28
36
  ```
29
37
 
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.
38
+ That's it. Commands show as `/hopla:<name>`, skills auto-trigger when relevant.
31
39
 
32
- ### Option B: npm CLI only
40
+ ### Plugin only (skip global rules)
33
41
 
34
- ```bash
35
- npm install -g @hopla/claude-setup
36
- claude-setup
37
- ```
42
+ If you don't want the machine-wide `~/.claude/CLAUDE.md`, just do Step 1. The plugin works on its own.
38
43
 
39
- Installs everything including `~/.claude/CLAUDE.md`. Use this if you don't want the plugin channel or need the `--planning` mode.
44
+ ### CLI only (no plugin)
40
45
 
41
- ### Planning-only install for the planner/non-technical role (Robert)
46
+ If you only want the global rules and not the plugin's commands/skills, just do Step 2. You won't have `/hopla:*` commands.
42
47
 
43
- ```bash
44
- npm install -g @hopla/claude-setup
45
- claude-setup --planning
46
- ```
48
+ ---
47
49
 
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.
50
+ ## Update
49
51
 
50
- To overwrite existing files without prompting:
52
+ ### Plugin channel
53
+
54
+ Claude Code caches the marketplace repo locally. To pick up new versions:
51
55
 
52
56
  ```bash
53
- claude-setup --force
54
- claude-setup --planning --force
57
+ cd ~/.claude/plugins/marketplaces/hopla-marketplace && git pull
55
58
  ```
56
59
 
57
- ## Update
60
+ Then inside Claude Code:
58
61
 
59
- **Plugin channel:** updates automatically when the plugin version changes, or manually:
60
62
  ```
61
- /plugin update hopla@hopla-marketplace
63
+ /plugin uninstall hopla@hopla-marketplace
64
+ /plugin install hopla@hopla-marketplace
65
+ /reload-plugins
62
66
  ```
63
67
 
64
- **CLI channel (for global rules):**
68
+ > **Known issue:** Claude Code does not automatically `git pull` the marketplace when reinstalling a plugin. The manual `git pull` above is required.
69
+
70
+ If the `cd` path does not exist, you never installed the marketplace — do Step 1 of Quick Start instead.
71
+
72
+ ### CLI channel (global rules)
73
+
65
74
  ```bash
66
75
  npm install -g @hopla/claude-setup@latest --prefer-online && claude-setup --force
67
76
  ```
68
77
 
78
+ ---
79
+
69
80
  ## Uninstall
70
81
 
71
82
  **Plugin:**
83
+
72
84
  ```
73
85
  /plugin uninstall hopla@hopla-marketplace
74
86
  ```
75
87
 
76
88
  **CLI:**
89
+
77
90
  ```bash
78
91
  claude-setup --uninstall
79
92
  ```
80
93
 
94
+ Removes `~/.claude/CLAUDE.md` plus legacy `hopla-*` files from older installs.
95
+
96
+ ### CLI flags reference
97
+
98
+ | Flag | Purpose |
99
+ |---|---|
100
+ | `claude-setup` | Interactive install of global rules + permissions |
101
+ | `claude-setup --force` | Install without prompts |
102
+ | `claude-setup --migrate` | Remove legacy CLI-installed duplicates only |
103
+ | `claude-setup --uninstall` | Remove global rules + legacy files |
104
+ | `claude-setup --version` | Print package version |
105
+
106
+ ---
107
+
108
+ ## Naming Convention
109
+
110
+ Skills and commands use short names in source (e.g., `prime`, `execute`, `git`). The plugin namespaces them automatically:
111
+
112
+ | Type | Example |
113
+ |---|---|
114
+ | **Skills** | `hopla:prime`, `hopla:git`, `hopla:debug` |
115
+ | **Commands** | `/hopla:execute`, `/hopla:plan-feature` |
116
+
81
117
  ---
82
118
 
83
119
  ## How It Works — Layered Context
@@ -85,19 +121,19 @@ claude-setup --uninstall
85
121
  The system uses three levels of CLAUDE.md, each scoped differently:
86
122
 
87
123
  ```
88
- ~/.claude/CLAUDE.md ← Machine-level (installed by claude-setup)
124
+ ~/.claude/CLAUDE.md ← Machine-level (installed by CLI)
89
125
  └── applies to ALL projects on this machine
90
126
 
91
- CLAUDE.md (project root) ← Project-level (created with /hopla-init-project)
127
+ CLAUDE.md (project root) ← Project-level (created with /hopla:init-project)
92
128
  └── applies to THIS project only
93
129
 
94
130
  .claude/CLAUDE.local.md ← Local overrides (personal, gitignored)
95
131
  └── your personal tweaks, not shared with team
96
132
  ```
97
133
 
98
- **Machine-level rules** cover: language preferences, tech defaults, Git Flow, Conventional Commits, autonomy behavior, context management, and available commands/skills reference.
134
+ **Machine-level rules** cover: language preferences, tech defaults, autonomy behavior, context management tips.
99
135
 
100
- **Project-level rules** cover: specific stack versions, architecture patterns, naming conventions, logging, testing, dev commands, and task-specific reference guides.
136
+ **Project-level rules** cover: specific stack versions, architecture patterns, naming conventions, logging, testing, dev commands, task-specific reference guides.
101
137
 
102
138
  **Local overrides** cover: personal preferences that differ from the team (e.g., verbose logging, different editor settings).
103
139
 
@@ -105,20 +141,20 @@ CLAUDE.md (project root) ← Project-level (created with /hopla-init-project)
105
141
 
106
142
  ## The Agentic Coding Framework
107
143
 
108
- This system is built on two core concepts from the Agentic Coding Course:
144
+ Built on two core concepts from the Agentic Coding Course:
109
145
 
110
146
  ### AI Layer — What guides the agent
111
147
 
112
- | Pillar | What it is | Where it lives |
113
- |--------|-----------|----------------|
114
- | **Global Rules** | Always-loaded context: language, git flow, tech defaults, autonomy rules | `~/.claude/CLAUDE.md` |
115
- | **On-Demand Context** | Task-specific guides loaded when needed (e.g. "how to add an API endpoint") | `.agents/guides/*.md` |
116
- | **Commands** | Reusable processes that tell the agent *how* to work | `~/.claude/commands/hopla-*.md` |
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` |
119
- | **Hooks** | Run automatically before/after tool use for type checking and protection | `~/.claude/hooks/*.js` |
148
+ | Pillar | What it is | Delivered by |
149
+ |---|---|---|
150
+ | **Global Rules** | Always-loaded context: language, git flow, tech defaults, autonomy | CLI → `~/.claude/CLAUDE.md` |
151
+ | **On-Demand Context** | Task-specific guides loaded when needed | Project `.agents/guides/*.md` |
152
+ | **Commands** | Reusable processes that tell the agent *how* to work | Plugin |
153
+ | **Skills** | Auto-activate by semantic matching — no slash command needed | Plugin |
154
+ | **Agents** | Specialized subagents for delegation (code review, research, system analysis) | Plugin |
155
+ | **Hooks** | Run automatically before/after tool use for type checking and protection | Plugin |
120
156
 
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.
157
+ 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.
122
158
 
123
159
  ### PIV Loop — How you work
124
160
 
@@ -126,241 +162,264 @@ The key insight: **commands inject on-demand context deterministically** — whe
126
162
  Plan → Implement → Validate → (repeat)
127
163
  ```
128
164
 
129
- - **Plan** (`/hopla-plan-feature`) — Research the codebase, design the approach, create a structured plan
130
- - **Implement** (`/hopla-execute`) — Delegate coding to the AI, trust but verify at each task
165
+ - **Plan** (`/hopla:plan-feature`) — Research codebase, design approach, create a structured plan
166
+ - **Implement** (`/hopla:execute`) — Delegate coding to the AI, trust but verify at each task
131
167
  - **Validate** — AI runs lint → types → tests → integration; human reviews the result
132
168
 
133
169
  ### System Evolution
134
170
 
135
- After each PIV loop, run `/hopla-execution-report` + `/hopla-system-review` to find process improvements. Don't just fix bugs — fix the system that allowed them.
171
+ After each PIV loop, run `/hopla:execution-report` + `/hopla:system-review` to find process improvements. Don't just fix bugs — fix the system that allowed them.
136
172
 
137
173
  ---
138
174
 
139
175
  ## What Gets Installed
140
176
 
141
- **`~/.claude/CLAUDE.md`** Global rules applied to every Claude Code session.
177
+ ### From the CLI (machine-level, one-time)
142
178
 
143
- **`~/.claude/commands/`**Reusable commands available in any project:
179
+ - **`~/.claude/CLAUDE.md`**Global rules applied to every Claude Code session
180
+ - **`~/.claude/settings.json`** — Bash permissions configured for common dev commands
181
+
182
+ ### From the Plugin (per Claude Code session)
183
+
184
+ **Commands** — Reusable commands available in any project:
144
185
 
145
186
  | Command | Description |
146
187
  |---|---|
147
- | `/hopla-init-project` | Read PRD, recommend stack, create CLAUDE.md and .agents/ structure |
148
- | `/hopla-create-prd` | Create a Product Requirements Document through guided questions |
149
- | `/hopla-plan-feature` | Research codebase and create a structured implementation plan |
150
- | `/hopla-review-plan` | Review a plan before execution — get a concise summary and approve |
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 |
154
- | `/hopla-git-commit` | Create a Conventional Commit with Git Flow awareness |
155
- | `/hopla-git-pr` | Create a GitHub Pull Request with a structured description |
156
- | `/hopla-code-review-fix` | Fix issues found in a code review report |
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) |
159
- | `/hopla-system-review` | Analyze implementation against plan to find process improvements |
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
-
163
- **`~/.claude/skills/`** — Auto-activate by semantic matching, no slash command needed:
164
-
165
- | Skill | Auto-activates when you say... |
188
+ | `init-project` | Read PRD, recommend stack, create CLAUDE.md and .agents/ structure |
189
+ | `create-prd` | Create a Product Requirements Document through guided questions |
190
+ | `plan-feature` | Research codebase and create a structured implementation plan |
191
+ | `review-plan` | Review a plan before execution — get a summary and approve |
192
+ | `execute` | Execute a structured plan from start to finish with validation |
193
+ | `validate` | Run the validation pyramid: lint → types → tests → integration |
194
+ | `code-review-fix` | Fix issues found in a code review report |
195
+ | `rca` | Root Cause Analysis — investigate a bug and generate an RCA doc |
196
+ | `guide` | 4D Framework walkthrough for non-technical users |
197
+ | `system-review` | Analyze implementation against plan to find process improvements |
198
+
199
+ > `prime`, `code-review`, and `execution-report` are **skills only** (no slash command needed).
200
+
201
+ **Skills** — Auto-activate by semantic matching:
202
+
203
+ | Skill | Auto-activates when you say… |
166
204
  |---|---|
167
- | `hopla-git` | "commit this", "create a PR", "save the changes" |
168
- | `hopla-prime` | "orient yourself", "catch me up", "what is this project" |
169
- | `hopla-code-review` | "review the code", "code review", "check these changes" |
170
- | `hopla-execution-report` | "generate the report", "document what was done", "summarize the work" |
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" |
178
-
179
- **`~/.claude/hooks/`** — Run automatically before/after tool use (configured in `~/.claude/settings.json`):
205
+ | `git` | "commit this", "create a PR", "push changes" |
206
+ | `worktree` | "use a worktree", "isolated branch", "parallel feature work" |
207
+ | `prime` | "orient yourself", "catch me up", "what is this project" |
208
+ | `code-review` | "review the code", "code review", "check these changes" |
209
+ | `execution-report` | "generate the report", "document what was done" |
210
+ | `verify` | "verify it works", "make sure it's correct" |
211
+ | `brainstorm` | "let's brainstorm", "explore approaches" |
212
+ | `debug` | "debug this", "find the bug", "why is this failing" |
213
+ | `tdd` | "write tests first", "TDD", "red-green-refactor" |
214
+ | `subagent-execution` | "use subagents", plans with 5+ tasks |
215
+ | `parallel-dispatch` | "run in parallel", "parallelize this", independent tasks |
216
+
217
+ **Hooks** — Run automatically:
180
218
 
181
219
  | Hook | Type | What it does |
182
220
  |---|---|---|
183
221
  | `tsc-check.js` | PostToolUse | Runs `tsc --noEmit` after file edits; feeds errors back to Claude |
184
222
  | `env-protect.js` | PreToolUse | Blocks reads/greps targeting `.env` files |
185
- | `session-prime.js` | SessionStart (opt-in) | Loads git context + CLAUDE.md summary at session start |
223
+ | `session-prime.js` | SessionStart | Loads git context + CLAUDE.md summary + skills list |
186
224
 
187
- **`~/.claude/agents/`** — Specialized subagents for delegation:
225
+ **Agents** — Specialized subagents for delegation:
188
226
 
189
227
  | Agent | What it does |
190
228
  |---|---|
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 |
229
+ | `code-reviewer` | Senior code reviewer (read-only). Plan alignment, quality, architecture, security |
230
+ | `codebase-researcher` | Fast codebase explorer (read-only). Systematic search, structured findings |
231
+ | `system-reviewer` | System review analyst (read-only). Execution vs plan, classifies divergences |
194
232
 
195
- **`~/.claude/commands/guides/`**Reference guides loaded on-demand:
233
+ **Reference guides**Loaded on-demand by commands:
196
234
 
197
235
  | Guide | What it covers |
198
236
  |---|---|
199
- | `mcp-integration.md` | How to integrate MCP servers into the PIV loop |
237
+ | `mcp-integration.md` | Integrating MCP servers into the PIV loop |
200
238
  | `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 |
239
+ | `hooks-reference.md` | All hook types, configuration, input JSON, exit codes |
240
+ | `write-skill.md` | Creating new skills with CSO, testing, progressive disclosure |
203
241
  | `remote-coding.md` | GitHub-based remote agentic coding with autonomy levels |
204
242
  | `scaling-beyond-engineering.md` | Expanding HOPLA to non-technical teams with 4D Framework |
205
243
  | `data-audit.md` | Data pipeline audit checklist |
206
244
  | `review-checklist.md` | Code review checklist reference |
207
245
 
208
- **Installed layout:**
209
-
210
- ```
211
- ~/.claude/
212
- ├── CLAUDE.md ← Global rules
213
- ├── commands/
214
- │ ├── hopla-*.md ← Slash commands (/hopla-prime, /hopla-execute, etc.)
215
- │ └── guides/ ← Reference guides (loaded on-demand by commands/skills)
216
- ├── skills/
217
- │ ├── hopla-git/ ← Auto-activates for commit/PR requests
218
- │ ├── hopla-prime/ ← Auto-activates for orientation requests
219
- │ ├── hopla-code-review/ ← Auto-activates for review requests
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
232
- ├── hooks/
233
- │ ├── tsc-check.js ← TypeScript type checking after edits
234
- │ ├── env-protect.js ← .env file protection
235
- │ └── session-prime.js ← Session context loader (opt-in)
236
- └── settings.json ← Permissions + hooks config (auto-updated)
237
- ```
238
-
239
246
  ---
240
247
 
241
248
  ## Recommended Workflow
242
249
 
243
250
  ### Starting a new project
251
+
244
252
  ```
245
- /hopla-create-prd → define what you're building (PRD.md)
246
- /hopla-init-project → reads PRD, recommends stack, creates CLAUDE.md + .agents/
247
- /hopla-git-commit saves Layer 1 foundation to git
253
+ /hopla:create-prd → define what you're building (PRD.md)
254
+ /hopla:init-project → reads PRD, recommends stack, creates CLAUDE.md + .agents/
255
+ "commit this" git skill saves foundation
248
256
  ```
249
257
 
250
258
  ### Feature development (PIV loop)
251
- ```
252
- "catch me up" → hopla-prime skill auto-loads project context
253
- /hopla-plan-feature → research codebase and create plan
254
- /hopla-review-plan → review plan summary and approve
255
- /hopla-execute → implement the plan with validation
256
- /hopla-validate → run lint → types → tests → integration
257
- "review the code" → hopla-code-review skill runs automatically
258
- /hopla-code-review-fix → fix issues found
259
- /hopla-rca → root cause analysis if a bug is found
260
- "generate the report" → hopla-execution-report skill documents what was built
261
- /hopla-git-commit → save to git
262
- /hopla-git-pr → open pull request on GitHub
263
- ```
264
259
 
265
- ### Full automation (one command)
266
260
  ```
267
- /hopla-end-to-end → runs the entire PIV loop: prime brainstorm plan → execute → validate → commit
261
+ "catch me up" → prime skill loads project context
262
+ "use a worktree" → worktree skill (optional — for isolation or parallel work)
263
+ /hopla:plan-feature → research codebase and create plan
264
+ /hopla:review-plan → review summary and approve
265
+ /hopla:execute → implement plan with validation
266
+ /hopla:validate → lint → types → tests → integration
267
+ "review the code" → code-review skill runs automatically
268
+ /hopla:code-review-fix → fix issues found
269
+ "generate the report" → execution-report skill documents what was built
270
+ "commit this" → git skill handles commits and PRs
271
+ (cleanup including worktree removal happens post-merge)
268
272
  ```
269
273
 
274
+ **When to reach for `worktree`:** risky refactors, parallel feature work, or when you need a clean baseline while keeping the current branch untouched. The skill auto-resolves the correct base branch (`feature/*` from `develop`, `hotfix/*` from `main`, etc.).
275
+
270
276
  ### After implementation
277
+
271
278
  ```
272
- /hopla-system-review → analyze plan vs. actual for process improvements
279
+ /hopla:system-review → analyze plan vs. actual for process improvements
273
280
  ```
274
281
 
275
282
  ### For non-technical users
283
+
276
284
  ```
277
- /hopla-guide → 4D Framework walkthrough (Description, Discernment, Delegation, Diligence)
285
+ /hopla:guide → 4D Framework walkthrough (Description, Discernment, Delegation, Diligence)
278
286
  ```
279
287
 
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.
288
+ > **Tip:** Many commands also exist as skills — they auto-activate when you describe what you want in natural language. Say "debug this" to trigger the `debug` skill, "let's brainstorm" for `brainstorm`, without typing any slash command.
281
289
 
282
290
  ---
283
291
 
284
292
  ## Command Chaining
285
293
 
286
- Commands are modular — the output of one becomes the input of the next. Some commands accept arguments (`$1`, `$2`) to receive files generated by previous commands.
294
+ Commands are modular — the output of one becomes the input of the next. Some accept arguments (`$1`, `$2`) to receive files generated by previous commands.
287
295
 
288
296
  ### Commands that accept arguments
289
297
 
290
298
  | Command | Argument | Example |
291
299
  |---|---|---|
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` |
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"` |
296
- | `/hopla-system-review` | Plan file + execution report | `/hopla-system-review .agents/plans/auth-feature.md .agents/execution-reports/auth-feature.md` |
300
+ | `/hopla:execute` | Plan file path | `/hopla:execute .agents/plans/auth-feature.md` |
301
+ | `/hopla:code-review-fix` | Review report path | `/hopla:code-review-fix .agents/code-reviews/auth-review.md` |
302
+ | `/hopla:rca` | Bug description | `/hopla:rca "login fails with 403 after token refresh"` |
303
+ | `/hopla:system-review` | Plan + report | `/hopla:system-review .agents/plans/auth.md .agents/execution-reports/auth.md` |
297
304
 
298
305
  ### Full PIV loop example
299
306
 
300
307
  ```
301
308
  # 1. Plan
302
- /hopla-plan-feature add user authentication
309
+ /hopla:plan-feature add user authentication
303
310
  → saves: .agents/plans/add-user-authentication.md
304
311
 
305
- # 2. Review plan
306
- /hopla-review-plan .agents/plans/add-user-authentication.md
312
+ # 2. Review
313
+ /hopla:review-plan .agents/plans/add-user-authentication.md
307
314
 
308
315
  # 3. Execute
309
- /hopla-execute .agents/plans/add-user-authentication.md
310
- → implements the plan, runs validation
316
+ /hopla:execute .agents/plans/add-user-authentication.md
311
317
 
312
318
  # 4. Validate
313
- /hopla-validate
314
- → runs lint → types → tests → integration
319
+ /hopla:validate
315
320
 
316
- # 5. Code review (auto-triggered skill — just say "review the code")
321
+ # 5. Code review (skill — just say "review the code")
317
322
  → saves: .agents/code-reviews/add-user-authentication.md
318
323
 
319
324
  # 6. Fix issues
320
- /hopla-code-review-fix .agents/code-reviews/add-user-authentication.md
325
+ /hopla:code-review-fix .agents/code-reviews/add-user-authentication.md
321
326
 
322
- # 7. Document (auto-triggered skill — just say "generate the report")
327
+ # 7. Document (skill — just say "generate the report")
323
328
  → saves: .agents/execution-reports/add-user-authentication.md
324
329
 
325
- # 8. Commit
326
- /hopla-git-commit
330
+ # 8. Commit and PR (skill — "commit this", then "create a PR")
331
+
332
+ # 9. Process improvement
333
+ /hopla:system-review .agents/plans/add-user-authentication.md .agents/execution-reports/add-user-authentication.md
334
+ ```
335
+
336
+ ---
337
+
338
+ ## Troubleshooting
339
+
340
+ ### `/plugin marketplace add` fails with "repo not found"
341
+
342
+ - Confirm the repo URL: `HOPLAtools/claude-setup` (case-sensitive)
343
+ - Check your network — `/plugin marketplace add` does a `git clone` under the hood
344
+ - If you were added to `HOPLAtools` recently, re-authenticate: `gh auth login`
345
+
346
+ ### `/plugin install` doesn't show the `hopla` plugin
347
+
348
+ - Run `/plugin marketplace list` — confirm `hopla-marketplace` is registered
349
+ - If missing, re-run `/plugin marketplace add hopla-marketplace HOPLAtools/claude-setup`
350
+ - Restart Claude Code after registering a new marketplace
327
351
 
328
- # 9. Pull request
329
- /hopla-git-pr
352
+ ### Commands appear as both `hopla-*` and `hopla:*`
330
353
 
331
- # 10. Process improvement (after PR merge)
332
- /hopla-system-review .agents/plans/add-user-authentication.md .agents/execution-reports/add-user-authentication.md
354
+ You have legacy CLI-installed files from before the plugin refactor. Clean up:
355
+
356
+ ```bash
357
+ claude-setup --migrate
333
358
  ```
334
359
 
335
- > **Or do it all in one command:** `/hopla-end-to-end add user authentication`
360
+ This removes `hopla-*` duplicates from `~/.claude/commands/` and `~/.claude/skills/` without touching your global rules.
361
+
362
+ ### Update command fails: "no such file or directory"
363
+
364
+ ```bash
365
+ cd ~/.claude/plugins/marketplaces/hopla-marketplace && git pull
366
+ # → cd: no such file or directory
367
+ ```
368
+
369
+ You never registered the marketplace. Run Quick Start Step 1 first.
370
+
371
+ ### `claude-setup: command not found`
372
+
373
+ The npm global bin is not on your PATH. Check with:
374
+
375
+ ```bash
376
+ npm config get prefix
377
+ # Add $(npm config get prefix)/bin to your PATH
378
+ ```
379
+
380
+ Alternatively, run via npx: `npx @hopla/claude-setup --force`.
381
+
382
+ ### Changes to skills/commands don't take effect
383
+
384
+ Claude Code caches plugin content. After a plugin update:
385
+
386
+ ```
387
+ /plugin uninstall hopla@hopla-marketplace
388
+ /plugin install hopla@hopla-marketplace
389
+ /reload-plugins
390
+ ```
336
391
 
337
392
  ---
338
393
 
339
394
  ## Roadmap
340
395
 
341
- Features under consideration for future versions:
396
+ Features under consideration:
342
397
 
343
- - **Domain-specific agents** — Project-level custom agents beyond the 3 built-in ones (e.g. frontend agent, backend agent, database agent)
344
- - **Hook templates** — Installable hook patterns beyond tsc-check and env-protect (e.g. query deduplication, notification hooks)
345
- - **GitHub Actions integration** — Automated PR reviews and `@claude` mentions via GitHub App (see `guides/remote-coding.md`)
398
+ - **Domain-specific agents** — Project-level custom agents beyond the 3 built-in ones (frontend, backend, database)
399
+ - **Hook templates** — Installable hook patterns beyond `tsc-check` and `env-protect`
400
+ - **GitHub Actions integration** — Automated PR reviews and `@claude` mentions via GitHub App
346
401
  - **Team dashboards** — Aggregate execution reports and system reviews across team members
347
402
 
403
+ Issues and contributions welcome: https://github.com/HOPLAtools/claude-setup/issues
404
+
348
405
  ---
349
406
 
350
- ## Project Structure (after /hopla-create-prd + /hopla-init-project)
407
+ ## Project Structure (after `/hopla:create-prd` + `/hopla:init-project`)
351
408
 
352
409
  ```
353
410
  project/
354
- ├── PRD.md ← Product scope (from /hopla-create-prd)
355
- ├── CLAUDE.md ← Project rules and stack (from /hopla-init-project)
411
+ ├── PRD.md ← Product scope (from /hopla:create-prd)
412
+ ├── CLAUDE.md ← Project rules and stack (from /hopla:init-project)
356
413
  ├── .agents/
357
- │ ├── plans/ ← Implementation plans (commit these)
358
- │ ├── specs/ Design specs from brainstorming (commit these)
359
- ├── guides/ On-demand reference guides (commit these)
360
- │ ├── rca/ Root cause analysis docs (commit these)
361
- │ ├── execution-reports/ Post-implementation reports (don't commit)
362
- │ ├── code-reviews/ Code review reports (don't commit)
363
- └── system-reviews/ Process improvement reports (don't commit)
414
+ │ ├── plans/ ← Implementation plans (commit)
415
+ ├── done/ Archived plans after system-review (commit)
416
+ │ └── backlog/ Deferred ideas from Scope Guard (commit)
417
+ │ ├── specs/ Design specs from brainstorming (commit)
418
+ │ ├── guides/ On-demand reference guides (commit)
419
+ │ ├── rca/ Root cause analysis docs (commit)
420
+ ├── execution-reports/ Post-implementation reports (commit)
421
+ │ ├── system-reviews/ ← Process improvement reports (commit)
422
+ │ └── code-reviews/ ← Code review reports (don't commit — ephemeral)
364
423
  └── .claude/
365
424
  └── commands/ ← Project-specific commands (optional)
366
425
  ```