supermind-claude 2.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.
@@ -0,0 +1,100 @@
1
+ # Claude Code Instructions
2
+
3
+ ## Quick Reference
4
+ <!-- Update these as documentation files are created -->
5
+ - **Architecture details**: See `ARCHITECTURE.md`
6
+ - **Design system**: See `DESIGN.md`
7
+
8
+ ## Commands
9
+ <!-- Fill in or run /supermind-init to auto-detect -->
10
+ ```bash
11
+ # npm run dev / start / build / test etc.
12
+ ```
13
+
14
+ ## Tech Stack
15
+ <!-- Fill in or run /supermind-init to auto-detect -->
16
+
17
+ ## Project Structure
18
+ <!-- Fill in or run /supermind-init to auto-detect -->
19
+
20
+ ## Shell & Git Permissions
21
+
22
+ A PreToolUse hook (`bash-permissions.js`) handles all Bash permission classification automatically. It parses compound commands, splits on `&&`/`||`/`;`, and classifies each segment. You do not need to worry about permission prompts for safe commands — the hook handles it.
23
+
24
+ **Auto-approved** (standalone or in any compound):
25
+ - **Read-only shell**: ls, cat, head, tail, find, sed (without -i), grep, echo, pwd, jq, etc.
26
+ - **Safe writes**: mkdir, touch, cp, mv
27
+ - **Read-only git**: status, diff, log, show, blame, rev-parse, check-ignore, branch listing, tag listing, config
28
+ - **Non-destructive git writes**: add, commit, stash (push/save/list/show), worktree add, worktree list, branch create
29
+ - **gh CLI**: read-only gh commands (pr list/view/diff, issue list/view, repo view, etc. — not merge, close, delete)
30
+
31
+ **Worktree-only** (auto-approved only when `cd` targets a `.worktrees/` path or CWD is inside one):
32
+ - git merge, git worktree remove, git branch -d
33
+
34
+ **Always requires approval**:
35
+ - push, pull, fetch, reset, revert, rebase, clean, checkout (discarding), restore, branch -D
36
+ - stash drop, stash pop, stash clear (destructive stash operations)
37
+ - Any command with --force or --hard
38
+ - rm, rmdir, del
39
+
40
+ **User-approved commands**: The file `~/.claude/supermind-approved.json` contains commands the user has permanently approved. If asked to approve a command permanently, edit this file to add the command string. Manage via `npx supermind-claude approve "command"`.
41
+
42
+ Compound commands with `&&`, `||`, `;` and pipes are fully supported — no need to split into separate calls.
43
+
44
+ ## Worktree Development Workflow
45
+
46
+ When implementing changes beyond a trivial edit, use a worktree. The bar is low — if it touches more than 2-3 files, involves logic changes, or follows an implementation plan, it goes through a worktree.
47
+
48
+ Always use **subagent-driven development** for implementation.
49
+
50
+ ### Setup
51
+
52
+ Use the superpowers `/using-git-worktrees` skill for worktree creation. It handles:
53
+ - Directory selection (`.worktrees/` preferred, already configured)
54
+ - `.gitignore` safety verification (adds entry + commits if missing)
55
+ - Dependency installation (auto-detects package.json, Cargo.toml, etc.)
56
+ - Baseline test verification (reports failures before work begins)
57
+
58
+ **Constraint:** The skill must branch from `HEAD` (the current local branch), never from a remote ref.
59
+
60
+ ### Process (runs fully autonomously — no approval needed at any step)
61
+
62
+ 1. **Create worktree** — invoke `/using-git-worktrees` as described above
63
+ 2. **Implement** all changes in the worktree directory using subagent-driven development
64
+ 3. **Commit** all work in the worktree
65
+ 4. **Review** — run the superpowers `code-reviewer` agent against the changes
66
+ 5. **Fix everything** — address ALL issues found by the reviewer (critical, minor, style, naming — everything). Do not ask what to fix. Fix all of them. Then re-review until the reviewer passes clean.
67
+ 6. **Finish** — invoke `/finishing-a-development-branch` to merge back and clean up. The skill handles:
68
+ - Merging the worktree branch into the originating branch
69
+ - Removing the worktree directory
70
+ - Deleting the temporary branch
71
+
72
+ ### Rules
73
+
74
+ - The worktree branch must always be created from and merged back into the **same branch** — the one you are currently on locally. Never merge into a different branch.
75
+ - `git merge`, `git worktree remove`, and `git branch -d` are auto-approved **only** within this worktree workflow. In all other contexts, these still require user approval.
76
+ - The code reviewer must find zero remaining issues before merging. If it finds problems, fix them and run the reviewer again. Repeat until clean.
77
+ - Never skip the review step. Never skip "minor" fixes. Every finding gets fixed.
78
+ - This entire process — create, implement, review, fix, merge, clean up — executes without stopping to ask for permission.
79
+
80
+ ## MCP Servers
81
+ Use these naturally when relevant — don't wait to be asked.
82
+
83
+ - **Magic MCP** — `component_builder`, `component_inspiration`, `component_refiner`, `logo_search` — use when building/refining UI components
84
+ - **Airis Gateway** (Docker, localhost:9400) — cold-start sub-servers:
85
+ - **context7** — Library docs lookup
86
+ - **playwright** — Browser automation/testing
87
+ - **serena** — Symbolic code navigation (run `activate_project` on first use)
88
+ - **tavily** — Web search/research
89
+ - **chrome-devtools** — Chrome debugging
90
+ - **shadcn** — shadcn/ui component search
91
+
92
+ ## UI Changes
93
+ - When making any UI/frontend changes, invoke the `/ui-ux-pro-max` skill for design guidance and quality checks.
94
+
95
+ ## Living Documentation
96
+ - The session-start hook automatically reads `ARCHITECTURE.md` and `DESIGN.md` (if it exists) at the beginning of every conversation.
97
+ - After code changes, update `ARCHITECTURE.md` if files, APIs, dependencies, or environment variables changed.
98
+ - After design/UI changes, update `DESIGN.md` if colors, fonts, spacing, or components changed.
99
+ - Run `/supermind-living-docs` to manually sync documentation with recent changes.
100
+ - If `ARCHITECTURE.md` is missing, run `/supermind-init` to create one.