supermind-claude 2.1.1 → 4.0.2
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/plugin.json +21 -0
- package/README.md +34 -46
- package/agents/code-reviewer.md +81 -0
- package/cli/commands/doctor.js +415 -79
- package/cli/commands/install.js +16 -17
- package/cli/commands/skill.js +164 -0
- package/cli/commands/uninstall.js +32 -3
- package/cli/commands/update.js +25 -4
- package/cli/index.js +16 -4
- package/cli/lib/agents.js +413 -0
- package/cli/lib/executor.js +365 -0
- package/cli/lib/hooks.js +8 -1
- package/cli/lib/logger.js +1 -1
- package/cli/lib/planning.js +502 -0
- package/cli/lib/platform.js +4 -0
- package/cli/lib/plugin.js +127 -0
- package/cli/lib/settings.js +2 -40
- package/cli/lib/skills.js +39 -2
- package/cli/lib/vendor-skills.js +594 -0
- package/hooks/bash-permissions.js +196 -176
- package/hooks/context-monitor.js +79 -0
- package/hooks/improvement-logger.js +94 -0
- package/hooks/pre-merge-checklist.js +102 -0
- package/hooks/session-start.js +109 -5
- package/hooks/statusline-command.js +115 -29
- package/package.json +4 -2
- package/skills/anti-rationalization/SKILL.md +38 -0
- package/skills/brainstorming/SKILL.md +165 -0
- package/skills/code-review/SKILL.md +144 -0
- package/skills/executing-plans/SKILL.md +138 -0
- package/skills/finishing-branches/SKILL.md +144 -0
- package/skills/project/SKILL.md +533 -0
- package/skills/quick/SKILL.md +178 -0
- package/skills/supermind/SKILL.md +58 -4
- package/skills/supermind-init/SKILL.md +48 -2
- package/skills/systematic-debugging/SKILL.md +129 -0
- package/skills/tdd/SKILL.md +179 -0
- package/skills/using-git-worktrees/SKILL.md +138 -0
- package/skills/verification-before-completion/SKILL.md +54 -0
- package/skills/writing-plans/SKILL.md +169 -0
- package/templates/CLAUDE.md +124 -62
- package/cli/lib/plugins.js +0 -23
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
<!-- Forked from obra/superpowers (MIT license) by Jesse Vincent and Prime Radiant. Adapted for Supermind orchestrator. -->
|
|
2
|
+
---
|
|
3
|
+
name: writing-plans
|
|
4
|
+
description: Creates atomic implementation plans with dependency graphs — used by orchestrator Plan phase
|
|
5
|
+
injects_into: [orchestrator-plan]
|
|
6
|
+
forked_from: obra/superpowers (MIT)
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Writing Plans
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
Create granular, atomic implementation plans with dependency graphs. Each task is a self-contained work unit completable by a fresh-context executor in 2-5 minutes.
|
|
14
|
+
|
|
15
|
+
Over-specify rather than under-specify. Executors get fresh context — they don't know what you know. Include exact file paths, function names, line numbers, and code snippets.
|
|
16
|
+
|
|
17
|
+
**Announce at start:** "Using writing-plans to create the implementation plan."
|
|
18
|
+
|
|
19
|
+
## Input
|
|
20
|
+
|
|
21
|
+
Read the design from `.planning/phases/phase-N/discussion.md` (output of brainstorming). If no discussion file exists, read the user's requirements directly.
|
|
22
|
+
|
|
23
|
+
## Scope Check
|
|
24
|
+
|
|
25
|
+
If the design covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
|
|
26
|
+
|
|
27
|
+
## File Structure
|
|
28
|
+
|
|
29
|
+
Before defining tasks, map out which files will be created or modified and what each one is responsible for.
|
|
30
|
+
|
|
31
|
+
- Design units with clear boundaries and well-defined interfaces. Each file should have one clear responsibility.
|
|
32
|
+
- Prefer smaller, focused files over large ones that do too much.
|
|
33
|
+
- Files that change together should live together. Split by responsibility, not by technical layer.
|
|
34
|
+
- In existing codebases, follow established patterns.
|
|
35
|
+
|
|
36
|
+
This structure informs the task decomposition.
|
|
37
|
+
|
|
38
|
+
## Task Spec Format
|
|
39
|
+
|
|
40
|
+
Each task in the plan uses this format:
|
|
41
|
+
|
|
42
|
+
```markdown
|
|
43
|
+
---
|
|
44
|
+
id: task-N
|
|
45
|
+
type: write-feature|fix-bug|refactor|write-test|research
|
|
46
|
+
dependsOn: [task-ids]
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Task: [descriptive name]
|
|
50
|
+
|
|
51
|
+
### What to do
|
|
52
|
+
[Clear, specific instructions — not vague directions]
|
|
53
|
+
|
|
54
|
+
### Files to read first
|
|
55
|
+
- `path/to/file.js` — reason why this file matters for context
|
|
56
|
+
|
|
57
|
+
### Files to modify/create
|
|
58
|
+
- `path/to/file.js` — what changes to make
|
|
59
|
+
|
|
60
|
+
### Acceptance criteria
|
|
61
|
+
- [ ] [specific, verifiable criterion]
|
|
62
|
+
- [ ] [another criterion]
|
|
63
|
+
|
|
64
|
+
### Verification
|
|
65
|
+
- [exact command to run to prove it works]
|
|
66
|
+
- [expected output]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Task Granularity
|
|
70
|
+
|
|
71
|
+
Each task should be:
|
|
72
|
+
- **Completable in 2-5 minutes** by an executor with fresh context
|
|
73
|
+
- **Self-contained** — the task spec has everything needed (files to read, what to change, acceptance criteria)
|
|
74
|
+
- **Independently testable** — each task has verification steps
|
|
75
|
+
- **Small enough** that an executor can hold the full context in one pass
|
|
76
|
+
|
|
77
|
+
**Example bite-sized steps within a task:**
|
|
78
|
+
- "Write the failing test" — one step
|
|
79
|
+
- "Implement the minimal code to make it pass" — one step
|
|
80
|
+
- "Run tests and verify" — one step
|
|
81
|
+
- "Commit" — one step
|
|
82
|
+
|
|
83
|
+
## No Placeholders
|
|
84
|
+
|
|
85
|
+
Every task must contain the actual content an executor needs. These are **plan failures** — never write them:
|
|
86
|
+
- "TBD", "TODO", "implement later", "fill in details"
|
|
87
|
+
- "Add appropriate error handling" / "add validation" / "handle edge cases"
|
|
88
|
+
- "Write tests for the above" (without actual test code)
|
|
89
|
+
- "Similar to Task N" (repeat the content — executors may read tasks out of order)
|
|
90
|
+
- Steps that describe what to do without showing how (code blocks required for code steps)
|
|
91
|
+
- References to types, functions, or methods not defined in any task
|
|
92
|
+
|
|
93
|
+
## Methodology Injection
|
|
94
|
+
|
|
95
|
+
Each task should specify which methodology skills apply based on its type:
|
|
96
|
+
- `write-feature` or `write-test` tasks: TDD (red-green-refactor)
|
|
97
|
+
- `fix-bug` tasks: systematic-debugging (REPRODUCE-ISOLATE-FIX-VERIFY)
|
|
98
|
+
- All tasks: verification-before-completion, anti-rationalization
|
|
99
|
+
|
|
100
|
+
## Planning Process
|
|
101
|
+
|
|
102
|
+
1. **Read the design** from `discussion.md` or user requirements
|
|
103
|
+
2. **Map file structure** — which files will be created or modified
|
|
104
|
+
3. **Decompose into atomic tasks** following the task spec format above
|
|
105
|
+
4. **Identify dependencies** between tasks (task B needs task A's output)
|
|
106
|
+
5. **Arrange into a dependency graph** — tasks with no dependencies form Wave 1, tasks depending on Wave 1 form Wave 2, etc.
|
|
107
|
+
6. **Plan-checker pass** (max 3 iterations):
|
|
108
|
+
- Does each task have clear acceptance criteria?
|
|
109
|
+
- Are dependencies correctly identified?
|
|
110
|
+
- Can each task be completed with only its task spec?
|
|
111
|
+
- Are there circular dependencies? (reject if so)
|
|
112
|
+
- Does the full set of tasks implement the complete design?
|
|
113
|
+
- Are there placeholder violations? (see No Placeholders above)
|
|
114
|
+
- Do types, method signatures, and names stay consistent across tasks?
|
|
115
|
+
7. **Save the plan** to `.planning/phases/phase-N/plans/plan.md`
|
|
116
|
+
8. **Save individual task specs** to `.planning/phases/phase-N/tasks/task-N.md` (one file per task)
|
|
117
|
+
|
|
118
|
+
## Plan Document Header
|
|
119
|
+
|
|
120
|
+
Every plan starts with:
|
|
121
|
+
|
|
122
|
+
```markdown
|
|
123
|
+
# [Feature Name] Implementation Plan
|
|
124
|
+
|
|
125
|
+
**Goal:** [One sentence describing what this builds]
|
|
126
|
+
|
|
127
|
+
**Architecture:** [2-3 sentences about approach]
|
|
128
|
+
|
|
129
|
+
**Files affected:** [List of files created/modified]
|
|
130
|
+
|
|
131
|
+
**Dependency graph:**
|
|
132
|
+
Wave 1: [task-1, task-2] <- independent, parallel
|
|
133
|
+
Wave 2: [task-3 (needs task-1)] <- sequential dependency
|
|
134
|
+
Wave 3: [task-4 (needs task-2, task-3)]
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Self-Review
|
|
140
|
+
|
|
141
|
+
After writing the complete plan, review with fresh eyes:
|
|
142
|
+
|
|
143
|
+
1. **Spec coverage:** Skim each requirement. Can you point to a task that implements it? List any gaps.
|
|
144
|
+
2. **Placeholder scan:** Search for red flags from the No Placeholders section. Fix them.
|
|
145
|
+
3. **Type consistency:** Do the types, method signatures, and property names used in later tasks match what was defined in earlier tasks?
|
|
146
|
+
4. **Dependency completeness:** Does every task that reads a file created by another task list that dependency?
|
|
147
|
+
5. **Test coverage:** Are tests distributed throughout the plan, not bunched at the end?
|
|
148
|
+
|
|
149
|
+
If you find issues, fix them inline. If you find a requirement with no task, add the task.
|
|
150
|
+
|
|
151
|
+
## Output
|
|
152
|
+
|
|
153
|
+
After saving the plan and task specs:
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
Plan complete:
|
|
157
|
+
- Plan: .planning/phases/phase-N/plans/plan.md
|
|
158
|
+
- Tasks: .planning/phases/phase-N/tasks/task-{1..N}.md
|
|
159
|
+
- Waves: [count] waves, [count] tasks total
|
|
160
|
+
- Ready for execution via executing-plans skill
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Key Principles
|
|
164
|
+
|
|
165
|
+
- **Over-specify.** Executors get fresh context. They don't know what you know.
|
|
166
|
+
- **Include exact file paths**, function names, line numbers where relevant.
|
|
167
|
+
- **Include code snippets** in the task spec if the approach is specific.
|
|
168
|
+
- **Plan for testing throughout** — don't leave all tests to the end.
|
|
169
|
+
- **DRY, YAGNI, TDD, frequent commits.**
|
package/templates/CLAUDE.md
CHANGED
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
## Commands
|
|
9
9
|
<!-- Fill in or run /supermind-init to auto-detect -->
|
|
10
10
|
```bash
|
|
11
|
-
# npm run dev
|
|
11
|
+
# npm run dev — start development server
|
|
12
|
+
# npm run build — production build
|
|
13
|
+
# npm test — run test suite
|
|
14
|
+
# npm run lint — lint source files
|
|
12
15
|
```
|
|
13
16
|
|
|
14
17
|
## Tech Stack
|
|
@@ -19,85 +22,144 @@
|
|
|
19
22
|
|
|
20
23
|
## Shell & Git Permissions
|
|
21
24
|
|
|
22
|
-
A PreToolUse hook (`bash-permissions.js`)
|
|
25
|
+
A PreToolUse hook (`bash-permissions.js`) classifies every Bash command automatically. It parses compound commands and splits on `&&`/`||`/`;` before classifying each segment individually. Most commands run without any prompt. Only the categories below are banned outright or require explicit approval.
|
|
23
26
|
|
|
24
|
-
**
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
27
|
+
**Banned — always requires approval:**
|
|
28
|
+
- `rm`, `rmdir`, `del` — destructive file removal
|
|
29
|
+
- Any command using `--force` or `--hard` flags (regardless of the base command)
|
|
30
|
+
- Destructive git operations: `push` (to remote), `pull`, `fetch`, `reset`, `revert`, `rebase`, `clean`, `checkout` (when used to discard changes), `restore`, `branch -D`
|
|
31
|
+
- Destructive stash operations: `stash drop`, `stash pop`, `stash clear`
|
|
32
|
+
- GitHub mutations: `gh pr merge`, `gh pr close`, `gh issue close`, `gh repo delete`, `gh release create`, `gh release delete`, any mutating `gh api` call (non-GET)
|
|
33
|
+
- `npm publish` — publishing to the registry always requires human confirmation
|
|
31
34
|
|
|
32
|
-
**Worktree-only** (auto-approved only when
|
|
33
|
-
- git merge
|
|
35
|
+
**Worktree-only** (auto-approved only when CWD is inside `.worktrees/`):
|
|
36
|
+
- `git merge` — merging back from a feature worktree
|
|
37
|
+
- `git worktree remove` — cleaning up a worktree directory
|
|
38
|
+
- `git worktree prune` — pruning stale worktree entries
|
|
39
|
+
- `git branch -d` — deleting a merged branch after cleanup
|
|
34
40
|
|
|
35
|
-
|
|
36
|
-
- push, pull, fetch, reset, revert, rebase, clean, checkout (discarding), restore, branch -D
|
|
37
|
-
- stash drop, stash pop, stash clear (destructive stash operations)
|
|
38
|
-
- Any command with --force or --hard
|
|
39
|
-
- rm, rmdir, del
|
|
41
|
+
In all other contexts, these four commands still require user approval.
|
|
40
42
|
|
|
41
|
-
**
|
|
43
|
+
**Everything else is auto-approved:**
|
|
44
|
+
- Read-only shell: `ls`, `cat`, `head`, `tail`, `find`, `grep`, `sed` (without `-i`), `awk`, `echo`, `pwd`, `jq`, `wc`, `sort`, `uniq`, etc.
|
|
45
|
+
- Safe writes: `mkdir`, `touch`, `cp`, `mv`
|
|
46
|
+
- Utilities: `base64`, `curl` (read), `node`, `npx`, `claude` CLI (config/mcp/plugin subcommands)
|
|
47
|
+
- Read-only git: `status`, `diff`, `log`, `show`, `blame`, `rev-parse`, `check-ignore`, branch listing, tag listing, `config --get`/`--list`
|
|
48
|
+
- Non-destructive git writes: `add`, `commit`, `stash push`/`save`/`list`/`show`, `worktree add`, `worktree list`, branch create, branch rename, `tag` (local)
|
|
49
|
+
- gh read-only: `pr list`/`view`/`diff`, `issue list`/`view`, `repo view`, `gh api` GET requests, `gh run view`
|
|
42
50
|
|
|
43
|
-
|
|
51
|
+
**User overrides**: `~/.claude/supermind-approved.json` contains commands permanently approved by the user. If asked to approve a command permanently, add the command string to that file. Manage via `supermind approve "command"`.
|
|
44
52
|
|
|
45
|
-
|
|
53
|
+
Compound commands with `&&`, `||`, `;`, and pipes are fully supported — no need to split into separate calls.
|
|
46
54
|
|
|
47
|
-
|
|
55
|
+
## Subagent Strategy
|
|
48
56
|
|
|
49
|
-
Always use **subagent-driven development** for implementation.
|
|
57
|
+
Always use **subagent-driven development** for implementation work. This means spawning multiple parallel subagents to execute independent tasks instead of running everything in a single thread.
|
|
50
58
|
|
|
51
|
-
|
|
59
|
+
**Task granularity:** Each subagent task should touch at most 3 files. Larger tasks must be decomposed into smaller, independent pieces before dispatch. Smaller tasks are easier to parallelize, easier to review, and produce cleaner commit history.
|
|
52
60
|
|
|
53
|
-
|
|
54
|
-
- Directory selection (`.worktrees/` preferred, already configured)
|
|
55
|
-
- `.gitignore` safety verification (adds entry + commits if missing)
|
|
56
|
-
- Dependency installation (auto-detects package.json, Cargo.toml, etc.)
|
|
57
|
-
- Baseline test verification (reports failures before work begins)
|
|
61
|
+
**Parallelism:** Prefer 10 parallel subagents over 3 sequential ones. Any tasks that share no state and have no ordering dependency must run in parallel. Never serialize work that can parallelize — the goal is minimum wall-clock time, not minimum subagent count. If you find yourself writing "then do X, then do Y, then do Z" for three unrelated changes, those should be three parallel subagents.
|
|
58
62
|
|
|
59
|
-
**
|
|
63
|
+
**Milestone decomposition:** If an implementation plan has more than 8 tasks, split into milestones before starting. Each milestone is a coherent, independently committable unit of work. Run all tasks within a milestone in parallel, then review, commit, and advance to the next milestone. Do not start milestone N+1 until milestone N is committed and clean.
|
|
60
64
|
|
|
61
|
-
|
|
65
|
+
**Autonomy:** Subagents execute without stopping to ask for permission. If a subagent hits a blocker that genuinely cannot be resolved by reading the codebase or making a reasonable judgment call, surface it — but most uncertainty should be resolved autonomously.
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
2. **Implement** all changes in the worktree directory using subagent-driven development
|
|
65
|
-
3. **Commit** all work in the worktree
|
|
66
|
-
4. **Review** — run the superpowers `code-reviewer` agent against the changes
|
|
67
|
-
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.
|
|
68
|
-
6. **Living docs check** — before merging, check if the changes affect anything documented in ARCHITECTURE.md (or DESIGN.md). For each changed file, verify that any claims the docs make about that file's behavior, constants, or patterns are still accurate. If updates are needed, make them and commit in the worktree branch.
|
|
69
|
-
7. **Finish** — invoke `/finishing-a-development-branch` to merge back and clean up. The skill handles:
|
|
70
|
-
- Merging the worktree branch into the originating branch
|
|
71
|
-
- Removing the worktree directory
|
|
72
|
-
- Deleting the temporary branch
|
|
67
|
+
**What counts as independent:** Two tasks are independent if neither reads a file the other writes, they do not share mutable in-memory state, and their commit order does not matter for correctness. When in doubt, run them in parallel — conflicts in parallel commits are far cheaper to resolve than the time lost to needless serialization.
|
|
73
68
|
|
|
74
|
-
|
|
69
|
+
## Development Lifecycle
|
|
75
70
|
|
|
76
|
-
|
|
77
|
-
- `git merge`, `git worktree remove`, `git worktree prune`, and `git branch -d` are auto-approved **only** within this worktree workflow. In all other contexts, these still require user approval.
|
|
78
|
-
- The code reviewer must find zero remaining issues before merging. If it finds problems, fix them and run the reviewer again. Repeat until clean.
|
|
79
|
-
- Never skip the review step. Never skip "minor" fixes. Every finding gets fixed.
|
|
80
|
-
- This entire process — create, implement, review, fix, merge, clean up — executes without stopping to ask for permission.
|
|
81
|
-
- **Branch safety:** If the current branch is `main` or `master` when a code change is requested, create a feature branch first (`feature/…`, `fix/…`, or `chore/…`) before making any changes. Never commit directly to `main` or `master`.
|
|
71
|
+
This entire lifecycle executes autonomously — no stopping to ask for permission at any step. The user receives one summary when the lifecycle is complete.
|
|
82
72
|
|
|
83
|
-
|
|
84
|
-
Use these naturally when relevant — don't wait to be asked.
|
|
73
|
+
**Branch safety:** If the current branch is `main` or `master` when a code change is requested, create a feature branch first (`feature/…`, `fix/…`, or `chore/…`) before making any changes. Never commit directly to `main` or `master`.
|
|
85
74
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
75
|
+
**Lifecycle overview:**
|
|
76
|
+
1. Setup — branch + worktree + deps + baseline
|
|
77
|
+
2. Design & Plan — read docs, spec or brainstorm, milestone plan
|
|
78
|
+
3. Implementation — parallel subagents, milestone commits
|
|
79
|
+
4. Test & Verify — tests + code review + fix everything + re-review
|
|
80
|
+
5. Pre-merge — update docs, version bump, changelog
|
|
81
|
+
6. Merge — merge to originating branch, clean up worktree
|
|
82
|
+
|
|
83
|
+
### Phase 1 — Setup
|
|
84
|
+
- Verify the current branch is not `main`/`master`; create a feature branch if it is
|
|
85
|
+
- Invoke `/using-git-worktrees` to create an isolated worktree in `.worktrees/`
|
|
86
|
+
- The skill verifies `.gitignore` safety and adds an entry if missing
|
|
87
|
+
- It installs dependencies automatically (detects package.json, Cargo.toml, pyproject.toml, etc.)
|
|
88
|
+
- It reports baseline test results before work begins
|
|
89
|
+
- Branch must be created from the current local `HEAD`, never from a remote ref
|
|
90
|
+
- Do not proceed if baseline tests are broken — surface failures first
|
|
91
|
+
|
|
92
|
+
### Phase 2 — Design & Plan
|
|
93
|
+
- Read `ARCHITECTURE.md` and `DESIGN.md` to understand existing patterns, conventions, and constraints before proposing any approach
|
|
94
|
+
- **Complex changes** — new subsystem, cross-cutting refactor, ambiguous requirements, or significant design tradeoffs: invoke `/brainstorming` to explore the design space, then write a milestone-based implementation plan; do not start implementation until the plan is reviewed
|
|
95
|
+
- **Simple changes** — clear, contained requirements with no meaningful design decisions open: invoke `/brainstorming` to quickly explore the approach, then write a milestone-based implementation plan
|
|
96
|
+
- If the plan exceeds 8 tasks, decompose into milestones now — not during implementation
|
|
97
|
+
|
|
98
|
+
### Phase 3 — Implementation
|
|
99
|
+
- Execute using the Subagent Strategy: spawn parallel subagents for all independent tasks within a milestone
|
|
100
|
+
- Commit at each milestone boundary with a descriptive commit message that explains why the change was made, not just what changed
|
|
101
|
+
- Do not advance to the next milestone before the current one is committed
|
|
102
|
+
- Do not implement beyond the written plan without flagging the addition
|
|
103
|
+
|
|
104
|
+
### Phase 4 — Test & Verify
|
|
105
|
+
- Run the full test suite; fix all failures before proceeding — do not leave failing tests as "known issues"
|
|
106
|
+
- Invoke the `code-reviewer` agent against all changes in the branch
|
|
107
|
+
- Fix **every** finding — critical, important, minor, style, naming, and suggestions. Do not ask which to fix. Fix everything.
|
|
108
|
+
- Re-run the reviewer after applying fixes. Repeat until the reviewer returns zero findings.
|
|
109
|
+
- Never skip the review step. Never defer "minor" fixes. Every finding is addressed before moving on.
|
|
110
|
+
|
|
111
|
+
### Phase 5 — Pre-merge
|
|
112
|
+
- Compare `ARCHITECTURE.md` and `DESIGN.md` against every changed file; update any stale claims about behavior, constants, file layout, APIs, data models, or environment variables
|
|
113
|
+
- Bump the version following semver: patch for bug fixes, minor for new features, major for breaking changes to public interfaces
|
|
114
|
+
- Update `CHANGELOG.md` with a concise summary of what changed and why
|
|
115
|
+
- Commit all pre-merge updates (docs, version, changelog) in the worktree branch
|
|
116
|
+
|
|
117
|
+
### Phase 6 — Merge
|
|
118
|
+
- Invoke `/finishing-a-development-branch` to merge back and clean up
|
|
119
|
+
- The skill merges the worktree branch into the **originating branch only** — the branch that was active in Phase 1. Never merge into a different branch.
|
|
120
|
+
- The skill removes the worktree directory and deletes the temporary branch
|
|
121
|
+
- Confirm the merge succeeded and the working tree is clean before reporting done
|
|
122
|
+
|
|
123
|
+
## Vendor Skills
|
|
124
|
+
|
|
125
|
+
Supermind skills extend Claude Code with reusable, versioned behaviors. Skills live in `~/.claude/skills/` and are invoked with `/skill-name` during a session. Install and manage them with the `supermind` CLI:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
supermind skill add <github-url> # Install a skill (project-local by default)
|
|
129
|
+
supermind skill add <github-url> --global # Install a skill globally
|
|
130
|
+
supermind skill update [name] # Update a specific skill
|
|
131
|
+
supermind skill update --all # Update all installed skills to latest versions
|
|
132
|
+
supermind skill list # List all installed skills and their current versions
|
|
133
|
+
supermind skill remove <name> # Uninstall a skill and remove it from skills-lock.json
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Installed skills and their pinned versions are recorded in `~/.claude/skills-lock.json`. Commit `skills-lock.json` to your repository to share the exact skill set with your team and ensure consistent behavior across all machines.
|
|
137
|
+
|
|
138
|
+
{{MCP_SECTION}}
|
|
94
139
|
|
|
95
140
|
## UI Changes
|
|
96
|
-
|
|
141
|
+
|
|
142
|
+
When making any UI/frontend changes, invoke the `/ui-ux-pro-max` skill for design guidance and quality checks before finalizing the implementation.
|
|
143
|
+
|
|
144
|
+
The skill provides:
|
|
145
|
+
- Design token and color palette validation
|
|
146
|
+
- Typography and spacing consistency checks
|
|
147
|
+
- Component accessibility review
|
|
148
|
+
- Responsive behavior assessment
|
|
149
|
+
- Recommendations aligned with the project's existing design language
|
|
150
|
+
|
|
151
|
+
Do not ship UI changes without running this skill. Design quality is a first-class concern, not a post-implementation polish step.
|
|
97
152
|
|
|
98
153
|
## Living Documentation
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
154
|
+
|
|
155
|
+
Living documentation means `ARCHITECTURE.md` and `DESIGN.md` stay accurate as the code evolves. They are not written once and forgotten — they are updated as part of every development lifecycle.
|
|
156
|
+
|
|
157
|
+
**Automatic loading:** The session-start hook reads `ARCHITECTURE.md` and `DESIGN.md` at the start of every conversation so Claude always has current context without being asked.
|
|
158
|
+
|
|
159
|
+
**When to update `ARCHITECTURE.md`:** After any code change that affects file layout, module responsibilities, public APIs, environment variables, configuration schema, external dependencies, or build/deploy steps.
|
|
160
|
+
|
|
161
|
+
**When to update `DESIGN.md`:** After any UI/design change that affects the color palette, typography, spacing scale, component library, layout patterns, or interaction conventions.
|
|
162
|
+
|
|
163
|
+
**Manual sync:** Run `/supermind-living-docs` at any time to audit both documents against recent changes and update anything stale.
|
|
164
|
+
|
|
165
|
+
**Bootstrap:** If `ARCHITECTURE.md` is missing, run `/supermind-init` to generate it from the current codebase. This also creates `DESIGN.md` if the project has a UI layer.
|
package/cli/lib/plugins.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function getPluginDefaults() {
|
|
4
|
-
return {
|
|
5
|
-
enabledPlugins: {
|
|
6
|
-
'superpowers@claude-plugins-official': true,
|
|
7
|
-
'claude-md-management@claude-plugins-official': true,
|
|
8
|
-
'frontend-design@claude-plugins-official': true,
|
|
9
|
-
'ui-ux-pro-max@ui-ux-pro-max-skill': true,
|
|
10
|
-
'pr-review-toolkit@claude-plugins-official': true,
|
|
11
|
-
'security-guidance@claude-plugins-official': true,
|
|
12
|
-
'elements-of-style@superpowers-marketplace': true,
|
|
13
|
-
},
|
|
14
|
-
extraKnownMarketplaces: {
|
|
15
|
-
'ui-ux-pro-max-skill': {
|
|
16
|
-
source: { source: 'github', repo: 'nextlevelbuilder/ui-ux-pro-max-skill' },
|
|
17
|
-
},
|
|
18
|
-
// superpowers-marketplace is a built-in Claude Code marketplace — no source config needed
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = { getPluginDefaults };
|