hero-mmt-kit 1.0.0 → 1.1.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 (35) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +143 -158
  3. package/bin/hero-mmt-kit.js +0 -1
  4. package/package.json +2 -3
  5. package/skills.manifest.json +72 -72
  6. package/src/doctor.cjs +22 -27
  7. package/src/init.cjs +3 -25
  8. package/src/integrations.cjs +1 -1
  9. package/src/skills.cjs +1 -1
  10. package/src/update.cjs +1 -9
  11. package/templates/common/.claude/hooks/active-state-bridge.cjs +58 -0
  12. package/templates/common/.claude/hooks/git-guard.cjs +60 -20
  13. package/templates/common/.claude/hooks/stop-reminder.cjs +3 -11
  14. package/templates/common/.claude/settings.json +2 -3
  15. package/templates/docs/ACTIVE_STATE.md +6 -8
  16. package/templates/docs/SECURITY_STANDARDS.md +1 -1
  17. package/templates/skills/NOTICE +6 -3
  18. package/templates/skills/executing-plans/SKILL.md +4 -5
  19. package/templates/skills/hero-coding/SKILL.md +7 -7
  20. package/templates/skills/hero-planning/SKILL.md +2 -7
  21. package/templates/skills/hero-report/SKILL.md +46 -0
  22. package/templates/skills/hero-reviewing/SKILL.md +9 -6
  23. package/templates/skills/hero-security/SKILL.md +427 -425
  24. package/templates/skills/hero-strict/SKILL.md +5 -5
  25. package/templates/skills/hero-unit-test/SKILL.md +9 -10
  26. package/templates/skills/subagent-driven-development/SKILL.md +0 -1
  27. package/templates/skills/using-git-worktrees/SKILL.md +0 -2
  28. package/templates/skills/using-hero/SKILL.md +16 -10
  29. package/presets/enterprise.json +0 -3
  30. package/presets/small-team.json +0 -3
  31. package/presets/solo.json +0 -3
  32. package/src/workflow-state.cjs +0 -65
  33. package/templates/.hero-mmt-kit/session.schema.json +0 -15
  34. package/templates/common/.claude/hooks/session-bridge.cjs +0 -43
  35. package/templates/skills/finishing-a-development-branch/SKILL.md +0 -253
package/CHANGELOG.md CHANGED
@@ -4,6 +4,31 @@ Notable changes to `hero-mmt-kit` are documented here from `1.0.0` onward.
4
4
 
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/).
6
6
 
7
+ ## [1.1.0] - 2026-07-11
8
+
9
+ ### Added
10
+
11
+ - `hero-report`, an on-demand report writer for coding, reviewing, and unit-test phases when a durable report is explicitly wanted.
12
+ - `active-state-bridge.cjs`, which injects `docs/ACTIVE_STATE.md` context at session start and makes that file the single durable workflow-state source.
13
+ - Expanded `hero-security` into a standalone OWASP + AI/LLM security engineering workflow with a 14-domain control baseline, release gates, verification requirements, and residual-risk reporting.
14
+ - Regression coverage to ensure `security-review` stays merged into `hero-security` and `hero-security` retains a standalone `docs/security-reports/YYYY-MM-DD-<slug>.md` artifact convention.
15
+
16
+ ### Changed
17
+
18
+ - `hero-security` is now an independent security-review flow that always writes its own report under `docs/security-reports/...`; security findings are not appended into coding/review/test reports as a substitute.
19
+ - `hero-coding`, `hero-reviewing`, `hero-unit-test`, and `hero-strict` now recommend or link related independent phases instead of embedding security or report-writing work.
20
+ - Reports for coding/review/test phases are on-demand via `hero-report`; chat summaries remain the default for those phases.
21
+ - `docs/ACTIVE_STATE.md` replaces `.hero-mmt-kit/session.json` as the workflow state source used by init/update/doctor guidance.
22
+ - `git-guard` behavior was tightened to avoid false positives such as branch names containing `main`, while keeping dangerous git commands guarded.
23
+ - README, framework guidance, manifest metadata, and vendored skill documentation now describe the report-on-demand model and standalone security-report exception consistently.
24
+
25
+ ### Removed
26
+
27
+ - Bundled `security-review` skill; its OWASP + AI/LLM review content now lives in `hero-security`.
28
+ - `session-bridge.cjs`, `.hero-mmt-kit/session.schema.json`, and session-pointer state logic.
29
+ - `finishing-a-development-branch` from the bundled process-skill set.
30
+ - Legacy presets and workflow-state tests tied to the removed session/profile model.
31
+
7
32
  ## [1.0.0] - 2026-07-10
8
33
 
9
34
  ### Added
package/README.md CHANGED
@@ -1,158 +1,143 @@
1
- # hero-mmt-kit
2
-
3
- > A focused, human-led coding workflow for **Claude Code** — six operative skills, one overview skill, simple session state, and soft safety hooks. Zero runtime dependencies.
4
-
5
- `hero-mmt-kit` installs a lightweight Claude Code workflow into new or existing repositories. It is designed for developers who stay in control: you choose the task, invoke the relevant skill, and keep the final judgment on plans, code, tests, reviews, and security checks.
6
-
7
- ## What it is
8
-
9
- `hero-mmt-kit` is **documentation + direct-use skills + soft hooks + a zero-dependency CLI**. It does not route work automatically, enforce phases, or block normal development flow.
10
-
11
- - **Seven installed workflow skills** — `using-hero` for orientation, plus six operative skills: `hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, and `hero-strict`.
12
- - **Human-led by default** — the developer decides what to work on and which skill to run next.
13
- - **No router, no hard gates** — `using-hero` is a map, not a controller. There is no task-classification engine and no hard PreToolUse workflow enforcement.
14
- - **Soft hooks only** — `git-guard` blocks a small set of genuinely dangerous git commands and reminds on ordinary commits; `stop-reminder` nudges you to update state when stopping with uncommitted changes; `session-bridge` injects session state once per Claude Code session.
15
- - **Lightweight session state** — `.hero-mmt-kit/session.json` is a small resume pointer (`currentSkill`, `lastCheckpoint`, `resumePath`, `nextAction`), not a workflow engine.
16
- - **Full skill suite, every install** — bundled process skills install unconditionally; there is no profile or surface logic deciding which core skills you get.
17
- - **English-only framework templates** — installed framework docs and templates are in English for consistency and token efficiency. Claude can still respond in the user's chat language.
18
-
19
- Optional third-party tools such as taste/design skills, GitNexus, and Serena are referenced or installed from their own sources when available; they are not required for the core workflow.
20
-
21
- ## Quick start
22
-
23
- ```bash
24
- # In your project root (new or existing):
25
- npx hero-mmt-kit init
26
-
27
- # For existing codebases, create the first discovery map:
28
- npx hero-mmt-kit discover
29
-
30
- # Restart Claude Code (or run /hooks) to activate hooks, then validate:
31
- npx hero-mmt-kit doctor
32
- ```
33
-
34
- Non-interactive / CI examples:
35
-
36
- ```bash
37
- npx hero-mmt-kit init --dir <tmp> --yes --skip-integrations
38
-
39
- # Opt into the optional taste/design skill non-interactively:
40
- npx hero-mmt-kit init --dir <tmp> --yes --taste
41
- ```
42
-
43
- ## What `init` installs
44
-
45
- ```text
46
- your-project/
47
- CLAUDE.md # hero-mmt-kit managed block; existing content preserved
48
- AGENTS.md # cross-agent entry pointer
49
- docs/ # ACTIVE_STATE, BROWNFIELD_DISCOVERY, SECURITY_STANDARDS,
50
- # PERFORMANCE_STANDARDS, DESIGN_STANDARDS, INTERACTION_PATTERNS,
51
- # templates/PRD_AI_FEATURE, templates/DESIGN_BRIEF
52
- .claude/
53
- settings.json # hooks merged into existing settings, not clobbered
54
- hooks/ # git-guard.cjs, stop-reminder.cjs, session-bridge.cjs
55
- skills/ # full bundled skill suite
56
- .hero-mmt-kit/
57
- config.json # installTasteSkill, enforceLevel, version, brownfield, integrations
58
- session.json # resume pointer: currentSkill/lastCheckpoint/resumePath/nextAction
59
- ```
60
-
61
- - **New project:** scaffolds the workflow from scratch.
62
- - **Brownfield project:** preserves existing `CLAUDE.md`, `AGENTS.md`, and `.claude/settings.json`; inserts managed blocks (`<!-- hero-mmt-kit:start/end -->`) and deep-merges hooks. `docs/ACTIVE_STATE.md` is never overwritten.
63
- - **Idempotent updates:** re-running `init` or `update` refreshes framework-managed regions and backs up touched files to `*.bak` when needed.
64
- - **One interactive question:** `init` asks whether to install the optional taste/design skill (default No). `--yes` accepts the default; `--taste` opts in without prompting.
65
-
66
- ## Workflow skills
67
-
68
- Start with `using-hero` when you want the map. It explains the available skills, when each one fits, and how session state carries across Claude Code sessions.
69
-
70
- | Skill | Use when | Output artifact |
71
- |---|---|---|
72
- | `using-hero` | You need the workflow map or are unsure which skill to invoke next. | No required artifact. |
73
- | `hero-planning` | Starting a feature, bugfix, or refactor that needs a plan before code changes. | `docs/plans/YYYY-MM-DD-slug.md` |
74
- | `hero-coding` | Implementing an approved plan or a small change that does not need a plan. | `docs/coding-reports/YYYY-MM-DD-slug.md` |
75
- | `hero-reviewing` | Performing a fresh-eyes check of an implementation against its plan before merge. | `docs/reviews/YYYY-MM-DD-slug.md` |
76
- | `hero-unit-test` | Verifying implementation correctness, either TDD-first or after implementation. | `docs/test-reports/YYYY-MM-DD-slug.md` |
77
- | `hero-security` | You want an independent OWASP + AI/LLM security review of auth, data, secrets, external input, AI/LLM behavior, or another sensitive surface. | `docs/security-reports/YYYY-MM-DD-slug.md` |
78
- | `hero-strict` | You want extra rigor before claiming the work is done. | Appends to the current report. |
79
-
80
- A typical flow is:
81
-
82
- ```text
83
- hero-planning → hero-coding → hero-unit-test and/or hero-reviewing → done
84
-
85
- hero-security when you want a separate security pass → hero-strict if extra rigor is wanted
86
- ```
87
-
88
- Skip stages that do not fit the size or risk of the change. A one-line typo fix does not need a plan artifact.
89
-
90
- The operative skills wrap proven technique skills instead of duplicating their content: `brainstorming`, `writing-plans`, `executing-plans`, `test-driven-development`, `systematic-debugging`, `verification-before-completion`, `requesting-code-review`, `receiving-code-review`, `dispatching-parallel-agents`, `subagent-driven-development`, `using-git-worktrees`, and `finishing-a-development-branch`. `hero-security` is the standalone framework-authored security review skill. These are bundled under `templates/skills/` and installed unconditionally into `.claude/skills/`, with attribution in `templates/skills/NOTICE`.
91
-
92
- ## Session state
93
-
94
- `.hero-mmt-kit/session.json` is a compact resume pointer. Each hero-* skill's Definition of Done includes updating it and `docs/ACTIVE_STATE.md` when there is meaningful state to carry forward.
95
-
96
- Resuming work in a fresh session:
97
-
98
- 1. Read `.hero-mmt-kit/session.json` for `currentSkill`, `resumePath`, and `nextAction`.
99
- 2. Read the artifact at `resumePath` for concrete next steps.
100
- 3. If `session.json` is blank or stale, read `docs/ACTIVE_STATE.md`'s Active Features table.
101
-
102
- ## Commands
103
-
104
- | Command | Purpose |
105
- |---|---|
106
- | `init` | Install the workflow into the current project. |
107
- | `update` | Re-render managed regions while preserving user edits and working files. |
108
- | `discover` | Scan a brownfield codebase and create `docs/BROWNFIELD_DISCOVERY.md`. |
109
- | `brownfield` | Alias for `discover`. |
110
- | `doctor` | Validate hooks, settings, session state, doc links, and tool presence. Use `--strict` for CI. |
111
- | `version` | Print the package version. |
112
- | `help` | Show usage. |
113
-
114
- Flags:
115
-
116
- ```text
117
- --dir <path> Target project dir (default: current dir)
118
- --taste Install the optional taste/design skill (default: off)
119
- --preset <name> Load a bundled preset (enterprise | small-team | solo) — sets enforceLevel only
120
- --yes Non-interactive; accept defaults
121
- --skip-integrations Skip design-skill / GitNexus / Serena integration steps
122
- --strict (doctor only) treat compliance warnings as failures — for CI use
123
- ```
124
-
125
- ## Optional integrations
126
-
127
- Integrations are auto-detected. Core workflow installation works without them.
128
-
129
- | Tool | What it is | What `init` does |
130
- |---|---|---|
131
- | Taste/design skills | UI/design skills from `Leonxlnx/taste-skill` | Installed from source via the `skills` CLI only if you opt in (`--taste` or interactive Yes) |
132
- | GitNexus | Code-intelligence CLI/MCP | Auto-runs `npx gitnexus analyze` only if the repo already has a `.gitnexus/` index; otherwise skipped |
133
- | Serena | Semantic code-intelligence MCP | Auto-seeds pointer notes only if `.serena/` already exists; otherwise skipped |
134
-
135
- Required: Node.js 18+ and Claude Code. Everything else is optional.
136
-
137
- ## Update and customize
138
-
139
- - Edit anything outside `<!-- hero-mmt-kit:start/end -->` markers freely; `update` will not touch it.
140
- - Fill `<TBD>` placeholders in Security, Performance, and Design docs once the stack is known.
141
- - Run `npx hero-mmt-kit update` to refresh framework-managed docs/hooks to the latest version.
142
- - Never hand-edit inside managed regions; change the source template or run `update` from a newer package version.
143
-
144
- ## Uninstall
145
-
146
- Review files before deleting them, especially skill directories that may contain user-added content. To remove the framework, delete or clean up:
147
-
148
- - framework docs under `docs/`,
149
- - `.claude/hooks/*` and the hook block in `.claude/settings.json`,
150
- - managed blocks in `CLAUDE.md` and `AGENTS.md`,
151
- - `.hero-mmt-kit/`,
152
- - bundled skills under `.claude/skills/` that you no longer want.
153
-
154
- ## License and attribution
155
-
156
- MIT (see `LICENSE`). `hero-mmt-kit` vendors a curated, lightly trimmed copy of core process skills from [`obra/superpowers`](https://github.com/obra/superpowers) under `templates/skills/` with attribution in `templates/skills/NOTICE`.
157
-
158
- Design/UI skills from [`Leonxlnx/taste-skill`](https://github.com/Leonxlnx/taste-skill) are **not** redistributed; they are installed from source via the `skills` CLI under their own license only when the user opts into the taste/design skill.
1
+ # hero-mmt-kit
2
+
3
+ > A focused, human-led coding workflow for **Claude Code** — six direct-use skills (planning, coding, reviewing, unit testing, security, strict verification) plus an on-demand report writer, simple durable state, and soft safety hooks. Zero runtime dependencies.
4
+
5
+ `hero-mmt-kit` installs a lightweight Claude Code workflow into new or existing repositories. It is designed for developers who stay in control: you choose the task, invoke the relevant skill, and keep the final judgment on plans, code, tests, reviews, and security checks.
6
+
7
+ ## What it is
8
+
9
+ `hero-mmt-kit` is **documentation + direct-use skills + soft hooks + a zero-dependency CLI**. It does not route work automatically, enforce phases, or block normal development flow.
10
+
11
+ - **Six operative skills** (`hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-strict`) covering the lifecycle of a change, each wrapping proven vendored technique skills instead of duplicating them. Each phase is done on its own — finishing one never auto-triggers the next.
12
+ - **Report writing is on-demand** — `hero-coding`/`hero-reviewing`/`hero-unit-test` end with a concise chat summary; a written report is only produced when asked, via the separate `hero-report` skill.
13
+ - **No router, no gates** — there is no task-classification doc and no hard PreToolUse enforcement. `using-hero` is a map, not a controller.
14
+ - **Soft hooks only** — `git-guard` blocks a small set of genuinely dangerous git commands and reminds (never blocks) on ordinary commits; `stop-reminder` nudges you to update state when you stop with uncommitted changes; `active-state-bridge` injects `docs/ACTIVE_STATE.md` into context once per session start.
15
+ - **Durable state lives in one place** — `docs/ACTIVE_STATE.md`'s Active Features table, not a separate session pointer file.
16
+ - **Full skill suite, every install** — the bundled process skills install unconditionally; there's no profile/surface logic deciding what you get.
17
+ - **Standards docs** for security, performance, design, and interaction patterns, plus PRD/design-brief templates.
18
+
19
+ Optional third-party tools such as taste/design skills, GitNexus, and Serena are referenced or installed from their own sources when available; they are not required for the core workflow.
20
+
21
+ ## Quick start
22
+
23
+ ```bash
24
+ # In your project root (new or existing):
25
+ npx hero-mmt-kit init
26
+
27
+ # For existing codebases, create the first discovery map:
28
+ npx hero-mmt-kit discover
29
+
30
+ # Restart Claude Code (or run /hooks) to activate hooks, then validate:
31
+ npx hero-mmt-kit doctor
32
+ ```
33
+
34
+ Non-interactive / CI examples:
35
+
36
+ ```bash
37
+ npx hero-mmt-kit init --dir <tmp> --yes --skip-integrations
38
+
39
+ # Opt into the optional taste/design skill non-interactively:
40
+ npx hero-mmt-kit init --dir <tmp> --yes --taste
41
+ ```
42
+
43
+ ## What `init` installs
44
+
45
+ ```text
46
+ your-project/
47
+ CLAUDE.md # hero-mmt-kit managed block; existing content preserved
48
+ AGENTS.md # cross-agent entry pointer
49
+ docs/ # ACTIVE_STATE, BROWNFIELD_DISCOVERY, SECURITY_STANDARDS,
50
+ # PERFORMANCE_STANDARDS, DESIGN_STANDARDS, INTERACTION_PATTERNS,
51
+ # templates/PRD_AI_FEATURE, templates/DESIGN_BRIEF
52
+ .claude/
53
+ settings.json # hooks merged into existing settings, not clobbered
54
+ hooks/ # git-guard.cjs, stop-reminder.cjs, active-state-bridge.cjs
55
+ skills/ # full bundled skill suite (see below)
56
+ .hero-mmt-kit/
57
+ config.json # { installTasteSkill, version, brownfield, integrations }
58
+ ```
59
+
60
+ - **New project:** scaffolds the workflow from scratch.
61
+ - **Brownfield project:** preserves existing `CLAUDE.md`, `AGENTS.md`, and `.claude/settings.json`; inserts managed blocks (`<!-- hero-mmt-kit:start/end -->`) and deep-merges hooks. `docs/ACTIVE_STATE.md` is never overwritten.
62
+ - **Idempotent updates:** re-running `init` or `update` refreshes framework-managed regions and backs up touched files to `*.bak` when needed.
63
+ - **One interactive question:** `init` asks whether to install the optional taste/design skill (default No). `--yes` accepts the default; `--taste` opts in without prompting.
64
+
65
+ ## Workflow skills
66
+
67
+ Invoke `using-hero` first for an overview — it explains which skill applies next and how workflow state carries across sessions. The six operative skills:
68
+
69
+ | Skill | Use when | Artifact / report |
70
+ |---|---|---|
71
+ | `hero-planning` | Starting new work — a feature, bugfix, or refactor that needs a plan before code changes. | `docs/plans/YYYY-MM-DD-slug.md` — always written; it's the deliverable, not a report |
72
+ | `hero-coding` | Implementing an approved plan (or a small change that doesn't need one). | `docs/coding-reports/YYYY-MM-DD-slug.md` |
73
+ | `hero-reviewing` | Fresh-eyes check of an implementation against its plan, before merge. | `docs/reviews/YYYY-MM-DD-slug.md` |
74
+ | `hero-unit-test` | Verifying implementation correctness — TDD-first or post-implementation. | `docs/test-reports/YYYY-MM-DD-slug.md` |
75
+ | `hero-security` | You want an independent OWASP + AI/LLM security review of a sensitive surface. | `docs/security-reports/YYYY-MM-DD-slug.md` — always written for the security pass. |
76
+ | `hero-strict` | Extra rigor wanted before a "done" claim — a full verification pass. | Appends to the current report, if one exists/was requested. |
77
+
78
+ A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → (`hero-security` if a sensitive surface was touched) → done. Skip stages that don't fit the size of the change — a one-line typo fix doesn't need a plan artifact. Each phase is "done" on its own terms — there's no automatic full-pipeline run; the developer chooses what to invoke next.
79
+
80
+ `hero-coding`, `hero-reviewing`, and `hero-unit-test` don't write a report file by default — they end with a concise chat summary. A seventh, on-demand skill, `hero-report`, writes those report files when the user actually wants one, at the path convention the source skill defines. `hero-security` is the exception: it is an independent security flow and always writes its own `docs/security-reports/...` artifact.
81
+
82
+ These skills wrap general-purpose vendored technique skills rather than duplicating them: `brainstorming`, `writing-plans`, `executing-plans`, `test-driven-development`, `systematic-debugging`, `verification-before-completion`, `requesting-code-review`, `receiving-code-review`, `dispatching-parallel-agents`, `subagent-driven-development`, `using-git-worktrees`. `hero-security` is a standalone security review skill rather than a wrapper. All are bundled under `templates/skills/` and installed unconditionally into `.claude/skills/` — every install gets the full suite, with attribution in `templates/skills/NOTICE`.
83
+
84
+ ## Session state
85
+
86
+ `docs/ACTIVE_STATE.md`'s Active Features table is the single source of durable workflow state — there is no separate session pointer file. Each hero-* skill's Definition of Done includes updating it. The `active-state-bridge` hook injects it into context automatically at the start of a session, so resuming usually needs no extra reading — otherwise, read `docs/ACTIVE_STATE.md` directly.
87
+
88
+ ## Commands
89
+
90
+ | Command | Purpose |
91
+ |---|---|
92
+ | `init` | Install the workflow into the current project. |
93
+ | `update` | Re-render managed regions while preserving user edits and working files. |
94
+ | `discover` | Scan a brownfield codebase and create `docs/BROWNFIELD_DISCOVERY.md`. |
95
+ | `brownfield` | Alias for `discover`. |
96
+ | `doctor` | Validate hooks, settings, workflow state, doc links, and tool presence. `--strict` for CI. |
97
+ | `version` | Print the package version. |
98
+ | `help` | Show usage. |
99
+
100
+ Flags:
101
+
102
+ ```text
103
+ --dir <path> Target project dir (default: current dir)
104
+ --taste Install the taste/design skill (default: off)
105
+ --yes Non-interactive; accept defaults
106
+ --skip-integrations Skip design-skill / GitNexus / Serena integration steps
107
+ --strict (doctor only) treat compliance warnings as failures — for CI use
108
+ ```
109
+
110
+ ## Optional integrations
111
+
112
+ Integrations are auto-detected. Core workflow installation works without them.
113
+
114
+ | Tool | What it is | What `init` does |
115
+ |---|---|---|
116
+ | Taste/design skills | UI/design skills from `Leonxlnx/taste-skill` | Installed from source via the `skills` CLI only if you opt in (`--taste` or interactive Yes) |
117
+ | GitNexus | Code-intelligence CLI/MCP | Auto-runs `npx gitnexus analyze` only if the repo already has a `.gitnexus/` index; otherwise skipped |
118
+ | Serena | Semantic code-intelligence MCP | Auto-seeds pointer notes only if `.serena/` already exists; otherwise skipped |
119
+
120
+ Required: Node.js 18+ and Claude Code. Everything else is optional.
121
+
122
+ ## Update and customize
123
+
124
+ - Edit anything outside `<!-- hero-mmt-kit:start/end -->` markers freely; `update` will not touch it.
125
+ - Fill `<TBD>` placeholders in Security, Performance, and Design docs once the stack is known.
126
+ - Run `npx hero-mmt-kit update` to refresh framework-managed docs/hooks to the latest version.
127
+ - Never hand-edit inside managed regions; change the source template or run `update` from a newer package version.
128
+
129
+ ## Uninstall
130
+
131
+ Review files before deleting them, especially skill directories that may contain user-added content. To remove the framework, delete or clean up:
132
+
133
+ - framework docs under `docs/`,
134
+ - `.claude/hooks/*` and the hook block in `.claude/settings.json`,
135
+ - managed blocks in `CLAUDE.md` and `AGENTS.md`,
136
+ - `.hero-mmt-kit/`,
137
+ - bundled skills under `.claude/skills/` that you no longer want.
138
+
139
+ ## License and attribution
140
+
141
+ MIT (see `LICENSE`). `hero-mmt-kit` vendors a curated, lightly trimmed copy of core process skills from [`obra/superpowers`](https://github.com/obra/superpowers) under `templates/skills/` with attribution in `templates/skills/NOTICE`.
142
+
143
+ Design/UI skills from [`Leonxlnx/taste-skill`](https://github.com/Leonxlnx/taste-skill) are **not** redistributed; they are installed from source via the `skills` CLI under their own license only when the user opts into the taste/design skill.
@@ -37,7 +37,6 @@ Commands:
37
37
  Flags:
38
38
  --dir <path> Target project dir (default: current dir)
39
39
  --taste Install the taste/design skill (default: off)
40
- --preset <name> Load a bundled preset (enterprise | small-team | solo)
41
40
  --yes Non-interactive; accept defaults
42
41
  --skip-integrations Skip skills / gitnexus / serena prompts
43
42
  --strict (doctor only) treat warnings as failures — for CI use`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hero-mmt-kit",
3
- "version": "1.0.0",
4
- "description": "A focused Claude Code framework for human-led development — seven direct-use skills (planning, coding, reviewing, unit testing, security, strict mode) with simple state tracking. Works for new and existing (brownfield) projects.",
3
+ "version": "1.1.0",
4
+ "description": "A focused Claude Code framework for human-led development — six direct-use skills (planning, coding, reviewing, unit testing, security, strict mode) plus an on-demand report writer, with simple state tracking. Works for new and existing (brownfield) projects.",
5
5
  "keywords": [
6
6
  "claude-code",
7
7
  "ai-workflow",
@@ -19,7 +19,6 @@
19
19
  "bin",
20
20
  "src",
21
21
  "templates",
22
- "presets",
23
22
  "skills.manifest.json",
24
23
  "README.md",
25
24
  "LICENSE",
@@ -1,72 +1,72 @@
1
- {
2
- "$comment": "Skills the hero-mmt-kit workflow references. The `process` core skills are bundled under templates/skills/ and installed by init/update into .claude/skills/. Concise reporting principles are integrated directly into the hero-* workflow skills rather than shipped as a standalone optional skill. Most vendored technique skills are a curated, lightly trimmed MIT-licensed copy from obra/superpowers; the hero-* skills plus using-hero are authored by hero-mmt-kit (attribution: templates/skills/NOTICE). Design/taste skills are NOT bundled — they are referenced here and installed via the `skills` CLI from their ORIGINAL sources when the user opts into the taste/design skill.",
3
- "schema": 1,
4
- "installer": "skills",
5
- "groups": {
6
- "process": {
7
- "tier": "vendored",
8
- "bundled": true,
9
- "source": "mixed",
10
- "license": "MIT for obra/superpowers skills; hero-mmt-kit authored for the hero-* skills and using-hero",
11
- "description": "Core process skills the workflow invokes by name. Bundled under templates/skills/ and installed into .claude/skills/ by init/update. The hero-* skills are the primary developer-facing interface; they wrap the vendored obra/superpowers technique skills rather than duplicating them, except hero-security which is a standalone security review skill (attribution in templates/skills/NOTICE).",
12
- "selection": {
13
- "mode": "all",
14
- "deriveFrom": [],
15
- "installPolicy": "install the full bundled process suite unconditionally — every install gets all core skills",
16
- "updatePolicy": "refresh all framework-managed bundled process skills; preserve user-added skill directories"
17
- },
18
- "skills": [
19
- { "name": "using-superpowers", "source": "obra/superpowers" },
20
- { "name": "using-hero", "source": "hero-mmt-kit", "description": "Overview and router for the hero-* skills — explains which skill to invoke next and how session state carries across sessions." },
21
- { "name": "brainstorming", "source": "obra/superpowers" },
22
- { "name": "writing-plans", "source": "obra/superpowers" },
23
- { "name": "executing-plans", "source": "obra/superpowers" },
24
- { "name": "test-driven-development", "source": "obra/superpowers" },
25
- { "name": "systematic-debugging", "source": "obra/superpowers" },
26
- { "name": "verification-before-completion", "source": "obra/superpowers" },
27
- { "name": "requesting-code-review", "source": "obra/superpowers" },
28
- { "name": "receiving-code-review", "source": "obra/superpowers" },
29
- { "name": "dispatching-parallel-agents", "source": "obra/superpowers" },
30
- { "name": "subagent-driven-development", "source": "obra/superpowers" },
31
- { "name": "using-git-worktrees", "source": "obra/superpowers" },
32
- { "name": "finishing-a-development-branch", "source": "obra/superpowers" },
33
- { "name": "hero-planning", "source": "hero-mmt-kit", "description": "Turn a request into an agreed, written plan before code changes." },
34
- { "name": "hero-coding", "source": "hero-mmt-kit", "description": "Implement an approved plan, or a small change that doesn't need one." },
35
- { "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "Fresh-eyes check of an implementation against its plan, before merge." },
36
- { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Verify implementation correctness — TDD-first or post-implementation." },
37
- { "name": "hero-security", "source": "hero-mmt-kit", "description": "Run an independent OWASP + AI/LLM security review and write a standalone security report." },
38
- { "name": "hero-strict", "source": "hero-mmt-kit", "description": "Opt-in full verification pass before a \"done\" claim." }
39
- ]
40
- },
41
- "brand": {
42
- "tier": "optional",
43
- "description": "Brand/identity skill. Use once per product/brand.",
44
- "skills": [
45
- { "name": "brandkit", "source": "Leonxlnx/taste-skill" }
46
- ]
47
- },
48
- "design-direction": {
49
- "tier": "optional",
50
- "description": "Visual-direction taste systems. Pick EXACTLY ONE per project (DESIGN_STANDARDS §3).",
51
- "pickOne": true,
52
- "skills": [
53
- { "name": "design-taste-frontend", "source": "Leonxlnx/taste-skill" },
54
- { "name": "minimalist-ui", "source": "Leonxlnx/taste-skill" },
55
- { "name": "industrial-brutalist-ui", "source": "Leonxlnx/taste-skill" },
56
- { "name": "high-end-visual-design", "source": "Leonxlnx/taste-skill" },
57
- { "name": "gpt-taste", "source": "<TBD>" }
58
- ]
59
- },
60
- "design-tools": {
61
- "tier": "optional",
62
- "description": "Complementary design tools — install as needed (not mutually exclusive).",
63
- "pickOne": false,
64
- "skills": [
65
- { "name": "imagegen-frontend-web", "source": "<TBD>" },
66
- { "name": "imagegen-frontend-mobile", "source": "<TBD>" },
67
- { "name": "image-to-code", "source": "<TBD>" },
68
- { "name": "redesign-existing-projects", "source": "<TBD>" }
69
- ]
70
- }
71
- }
72
- }
1
+ {
2
+ "$comment": "Skills the hero-mmt-kit workflow references. The `process` core skills are bundled under templates/skills/ and installed by init/update into .claude/skills/. Concise reporting principles are integrated directly into the hero-* workflow skills rather than shipped as a standalone optional skill. Most vendored technique skills are a curated, lightly trimmed MIT-licensed copy from obra/superpowers; the hero-* skills plus using-hero are authored by hero-mmt-kit (attribution: templates/skills/NOTICE). Design/taste skills are NOT bundled — they are referenced here and installed via the `skills` CLI from their ORIGINAL sources when the user opts into the taste/design skill.",
3
+ "schema": 1,
4
+ "installer": "skills",
5
+ "groups": {
6
+ "process": {
7
+ "tier": "vendored",
8
+ "bundled": true,
9
+ "source": "mixed",
10
+ "license": "MIT for obra/superpowers skills; hero-mmt-kit authored for the hero-* skills and using-hero",
11
+ "description": "Core process skills the workflow invokes by name. Bundled under templates/skills/ and installed into .claude/skills/ by init/update. The hero-* skills are the primary developer-facing interface; they wrap the vendored obra/superpowers technique skills rather than duplicating them, except hero-security which is a standalone security review skill (attribution in templates/skills/NOTICE).",
12
+ "selection": {
13
+ "mode": "all",
14
+ "deriveFrom": [],
15
+ "installPolicy": "install the full bundled process suite unconditionally — every install gets all core skills",
16
+ "updatePolicy": "refresh all framework-managed bundled process skills; preserve user-added skill directories"
17
+ },
18
+ "skills": [
19
+ { "name": "using-superpowers", "source": "obra/superpowers" },
20
+ { "name": "using-hero", "source": "hero-mmt-kit", "description": "Overview and router for the hero-* skills — explains which skill to invoke next and how workflow state carries across sessions." },
21
+ { "name": "brainstorming", "source": "obra/superpowers" },
22
+ { "name": "writing-plans", "source": "obra/superpowers" },
23
+ { "name": "executing-plans", "source": "obra/superpowers" },
24
+ { "name": "test-driven-development", "source": "obra/superpowers" },
25
+ { "name": "systematic-debugging", "source": "obra/superpowers" },
26
+ { "name": "verification-before-completion", "source": "obra/superpowers" },
27
+ { "name": "requesting-code-review", "source": "obra/superpowers" },
28
+ { "name": "receiving-code-review", "source": "obra/superpowers" },
29
+ { "name": "dispatching-parallel-agents", "source": "obra/superpowers" },
30
+ { "name": "subagent-driven-development", "source": "obra/superpowers" },
31
+ { "name": "using-git-worktrees", "source": "obra/superpowers" },
32
+ { "name": "hero-planning", "source": "hero-mmt-kit", "description": "Turn a request into an agreed, written plan before code changes." },
33
+ { "name": "hero-coding", "source": "hero-mmt-kit", "description": "Implement an approved plan, or a small change that doesn't need one." },
34
+ { "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "Fresh-eyes check of an implementation against its plan, before merge." },
35
+ { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Verify implementation correctness — TDD-first or post-implementation." },
36
+ { "name": "hero-security", "source": "hero-mmt-kit", "description": "Run an independent OWASP + AI/LLM security review and write a standalone security report." },
37
+ { "name": "hero-strict", "source": "hero-mmt-kit", "description": "Opt-in full verification pass before a \"done\" claim." },
38
+ { "name": "hero-report", "source": "hero-mmt-kit", "description": "On-demand report writer — writes the coding/review/test report at the source skill's conventional path, only when requested." }
39
+ ]
40
+ },
41
+ "brand": {
42
+ "tier": "optional",
43
+ "description": "Brand/identity skill. Use once per product/brand.",
44
+ "skills": [
45
+ { "name": "brandkit", "source": "Leonxlnx/taste-skill" }
46
+ ]
47
+ },
48
+ "design-direction": {
49
+ "tier": "optional",
50
+ "description": "Visual-direction taste systems. Pick EXACTLY ONE per project (DESIGN_STANDARDS §3).",
51
+ "pickOne": true,
52
+ "skills": [
53
+ { "name": "design-taste-frontend", "source": "Leonxlnx/taste-skill" },
54
+ { "name": "minimalist-ui", "source": "Leonxlnx/taste-skill" },
55
+ { "name": "industrial-brutalist-ui", "source": "Leonxlnx/taste-skill" },
56
+ { "name": "high-end-visual-design", "source": "Leonxlnx/taste-skill" },
57
+ { "name": "gpt-taste", "source": "<TBD>" }
58
+ ]
59
+ },
60
+ "design-tools": {
61
+ "tier": "optional",
62
+ "description": "Complementary design tools — install as needed (not mutually exclusive).",
63
+ "pickOne": false,
64
+ "skills": [
65
+ { "name": "imagegen-frontend-web", "source": "<TBD>" },
66
+ { "name": "imagegen-frontend-mobile", "source": "<TBD>" },
67
+ { "name": "image-to-code", "source": "<TBD>" },
68
+ { "name": "redesign-existing-projects", "source": "<TBD>" }
69
+ ]
70
+ }
71
+ }
72
+ }
package/src/doctor.cjs CHANGED
@@ -4,7 +4,6 @@ const fs = require('fs');
4
4
  const { spawnSync } = require('child_process');
5
5
  const { log, exists, readJSON } = require('./util.cjs');
6
6
  const { checkLinks } = require('./links.cjs');
7
- const { readSession, validateSession } = require('./workflow-state.cjs');
8
7
 
9
8
  const ACTIVE_STATE_BLOAT_LINES = 150;
10
9
 
@@ -70,38 +69,34 @@ async function doctor(opts) {
70
69
  r.code === 0 ? ok('Claude stop-reminder self-test: ok') : er('Claude stop-reminder self-test failed');
71
70
  } else er('.claude/hooks/stop-reminder.cjs missing');
72
71
 
72
+ const asb = path.join(target, '.claude', 'hooks', 'active-state-bridge.cjs');
73
+ if (exists(asb)) {
74
+ const r = hookCheck(asb, { hook_event_name: 'SessionStart', cwd: target });
75
+ r.code === 0 ? ok('Claude active-state-bridge self-test: ok') : er('Claude active-state-bridge self-test failed');
76
+ } else er('.claude/hooks/active-state-bridge.cjs missing');
77
+
73
78
  // --- Workflow compliance ---
74
79
  log.title('Workflow compliance');
75
80
 
76
- const session = readSession(target);
77
- if (!session) {
78
- sw('session.json missing (.hero-mmt-kit/session.json) — run `hero-mmt-kit update`');
79
- } else {
80
- const { ok: sessionOk, errors: sessionErrors } = validateSession(session);
81
- if (sessionOk) {
82
- ok('session.json: valid (schemaVersion 1)');
81
+ // ACTIVE_STATE.md bloat check
82
+ const activePath = path.join(target, 'docs', 'ACTIVE_STATE.md');
83
+ if (exists(activePath)) {
84
+ const lines = fs.readFileSync(activePath, 'utf8').split('\n').length;
85
+ if (lines > ACTIVE_STATE_BLOAT_LINES) {
86
+ sw(`ACTIVE_STATE.md has ${lines} lines (>${ACTIVE_STATE_BLOAT_LINES}) — archive completed items to docs/reports/ to keep it a short index`);
83
87
  } else {
84
- er('session.json invalid: ' + sessionErrors.join('; '));
85
- }
86
-
87
- // ACTIVE_STATE.md bloat check
88
- const activePath = path.join(target, 'docs', 'ACTIVE_STATE.md');
89
- if (exists(activePath)) {
90
- const lines = fs.readFileSync(activePath, 'utf8').split('\n').length;
91
- if (lines > ACTIVE_STATE_BLOAT_LINES) {
92
- sw(`ACTIVE_STATE.md has ${lines} lines (>${ACTIVE_STATE_BLOAT_LINES}) — archive completed items to docs/reports/ to keep it a short index`);
93
- } else {
94
- ok(`ACTIVE_STATE.md: ${lines} lines (under ${ACTIVE_STATE_BLOAT_LINES} threshold)`);
95
- }
88
+ ok(`ACTIVE_STATE.md: ${lines} lines (under ${ACTIVE_STATE_BLOAT_LINES} threshold)`);
96
89
  }
90
+ } else {
91
+ sw('docs/ACTIVE_STATE.md missing — run `hero-mmt-kit update`');
92
+ }
97
93
 
98
- // Dirty git + ACTIVE_STATE not touched
99
- const dirtyFiles = getGitDirtyFiles(target);
100
- if (dirtyFiles !== null && dirtyFiles.length > 0) {
101
- const activeStateChanged = dirtyFiles.some((f) => f === 'docs/ACTIVE_STATE.md' || f === path.join('docs', 'ACTIVE_STATE.md'));
102
- if (!activeStateChanged && !dirtyFiles.some((f) => f === '.hero-mmt-kit/session.json')) {
103
- wn('git working tree is dirty but neither ACTIVE_STATE.md nor session.json is in the changes — consider updating workflow state');
104
- }
94
+ // Dirty git + ACTIVE_STATE not touched
95
+ const dirtyFiles = getGitDirtyFiles(target);
96
+ if (dirtyFiles !== null && dirtyFiles.length > 0) {
97
+ const activeStateChanged = dirtyFiles.some((f) => f === 'docs/ACTIVE_STATE.md' || f === path.join('docs', 'ACTIVE_STATE.md'));
98
+ if (!activeStateChanged) {
99
+ wn('git working tree is dirty but docs/ACTIVE_STATE.md is not in the changes — consider updating workflow state');
105
100
  }
106
101
  }
107
102