@hopla/claude-setup 1.10.1 → 1.11.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 (47) hide show
  1. package/.claude-plugin/marketplace.json +20 -0
  2. package/.claude-plugin/plugin.json +23 -0
  3. package/README.md +127 -30
  4. package/agents/code-reviewer.md +62 -0
  5. package/agents/codebase-researcher.md +41 -0
  6. package/agents/system-reviewer.md +64 -0
  7. package/cli.js +45 -14
  8. package/commands/guides/ai-optimized-codebase.md +70 -0
  9. package/commands/guides/hooks-reference.md +82 -0
  10. package/commands/guides/mcp-integration.md +32 -0
  11. package/commands/guides/remote-coding.md +70 -0
  12. package/commands/guides/scaling-beyond-engineering.md +54 -0
  13. package/commands/guides/write-skill.md +78 -0
  14. package/{files/commands → commands}/hopla-code-review-fix.md +8 -0
  15. package/commands/hopla-end-to-end.md +67 -0
  16. package/{files/commands → commands}/hopla-execute.md +2 -0
  17. package/commands/hopla-guide.md +61 -0
  18. package/{files/commands → commands}/hopla-plan-feature.md +4 -0
  19. package/commands/hopla-rca.md +64 -0
  20. package/{files/commands → commands}/hopla-validate.md +5 -0
  21. package/{files/CLAUDE.md → global-rules.md} +45 -0
  22. package/hooks/hooks.json +40 -0
  23. package/{files/hooks → hooks}/session-prime.js +13 -0
  24. package/package.json +7 -2
  25. package/skills/hopla-brainstorm/SKILL.md +89 -0
  26. package/{files/skills → skills}/hopla-code-review/SKILL.md +2 -1
  27. package/skills/hopla-debug/SKILL.md +73 -0
  28. package/{files/skills → skills}/hopla-execution-report/SKILL.md +3 -1
  29. package/{files/skills → skills}/hopla-git/SKILL.md +1 -1
  30. package/skills/hopla-parallel-dispatch/SKILL.md +69 -0
  31. package/{files/skills → skills}/hopla-prime/SKILL.md +3 -1
  32. package/skills/hopla-subagent-execution/SKILL.md +70 -0
  33. package/skills/hopla-tdd/SKILL.md +73 -0
  34. package/skills/hopla-verify/SKILL.md +64 -0
  35. package/skills/hopla-worktree/SKILL.md +73 -0
  36. /package/{files/commands → commands}/guides/data-audit.md +0 -0
  37. /package/{files/commands → commands}/guides/review-checklist.md +0 -0
  38. /package/{files/commands → commands}/hopla-create-prd.md +0 -0
  39. /package/{files/commands → commands}/hopla-git-commit.md +0 -0
  40. /package/{files/commands → commands}/hopla-git-pr.md +0 -0
  41. /package/{files/commands → commands}/hopla-init-project.md +0 -0
  42. /package/{files/commands → commands}/hopla-review-plan.md +0 -0
  43. /package/{files/commands → commands}/hopla-system-review.md +0 -0
  44. /package/{files/hooks → hooks}/env-protect.js +0 -0
  45. /package/{files/hooks → hooks}/tsc-check.js +0 -0
  46. /package/{files/skills → skills}/hopla-git/commit.md +0 -0
  47. /package/{files/skills → skills}/hopla-git/pr.md +0 -0
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: hopla-worktree
3
+ description: "Git worktree management for isolated feature development. Use when starting a new feature that benefits from isolation, when the user says 'worktree', 'isolated branch', 'parallel development', or when implementing multiple features simultaneously. Do NOT use for quick fixes or single-file changes."
4
+ ---
5
+
6
+ # Git Worktrees for Isolated Development
7
+
8
+ ## What Are Worktrees?
9
+ Git worktrees create separate working directories for different branches, sharing the same git history. Each worktree is an independent workspace.
10
+
11
+ ## When to Use
12
+ - Starting a feature that should be isolated from other work
13
+ - Developing multiple features in parallel
14
+ - Needing a clean baseline to test against
15
+ - Working on a risky change that might need to be abandoned
16
+
17
+ ## Setup Process
18
+
19
+ ### Step 1: Choose Worktree Directory
20
+ Check in order:
21
+ 1. Existing `.worktrees/` or `worktrees/` directory
22
+ 2. CLAUDE.md preference (if configured)
23
+ 3. Ask the user
24
+
25
+ ### Step 2: Ensure Directory is Gitignored
26
+ ```bash
27
+ # Verify the worktree directory is in .gitignore
28
+ grep -q "worktrees" .gitignore || echo "worktrees/" >> .gitignore
29
+ ```
30
+
31
+ ### Step 3: Create Worktree
32
+ ```bash
33
+ # Create worktree with a new feature branch
34
+ git worktree add worktrees/feature-name -b feature/feature-name
35
+ ```
36
+
37
+ ### Step 4: Setup Project in Worktree
38
+ Auto-detect and run setup:
39
+ - **Node.js**: `npm install` or `yarn install`
40
+ - **Python**: `pip install -r requirements.txt` or `poetry install`
41
+ - **Rust**: `cargo build`
42
+ - **Go**: `go mod download`
43
+
44
+ ### Step 5: Verify Clean Baseline
45
+ ```bash
46
+ cd worktrees/feature-name
47
+ # Run tests to ensure baseline is green
48
+ npm test # or equivalent
49
+ ```
50
+
51
+ If tests fail before any changes, STOP and report — the baseline is broken.
52
+
53
+ ### Step 6: Work in the Worktree
54
+ All work for this feature happens in `worktrees/feature-name/`.
55
+
56
+ ## Cleanup
57
+
58
+ ### After Merge
59
+ ```bash
60
+ git worktree remove worktrees/feature-name
61
+ git branch -d feature/feature-name
62
+ ```
63
+
64
+ ### If Abandoned
65
+ ```bash
66
+ git worktree remove --force worktrees/feature-name
67
+ git branch -D feature/feature-name
68
+ ```
69
+
70
+ ## Integration
71
+ - Use with `/hopla-execute` for isolated feature implementation
72
+ - Use with `/hopla-git-pr` for creating PRs from the worktree branch
73
+ - Combine with parallel dispatch for multiple features simultaneously
File without changes
File without changes
File without changes
File without changes
File without changes