hero-mmt-kit 1.1.3 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,104 +1,111 @@
1
- # Changelog
2
-
3
- Notable changes to `hero-mmt-kit` are documented here from `1.0.0` onward.
4
-
5
- Format follows [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/).
6
-
7
- ## [1.1.3] - 2026-07-16
8
-
9
- ### Added
10
-
11
- - `instrumented-debugging.md`, a hero-mmt-kit-original supporting technique added to the vendored `systematic-debugging` skill (alongside `root-cause-tracing.md`, `defense-in-depth.md`, and `condition-based-waiting.md`): for a logic/data bug reproducible from known input, trigger it via a temporary unit test built directly from that input, place tagged `console.log`/`print` checkpoints at breakpoint-equivalent locations, and read the collected trace instead of attaching a debugger. Mandatory cleanup removes the temporary test and all checkpoint lines before the session ends.
12
- - `systematic-debugging/SKILL.md` Phase 1 and its Supporting Techniques list now point to `instrumented-debugging.md`; `hero-coding/SKILL.md` step 4 surfaces it as an option when a mid-implementation bug is reproducible from a known API payload.
13
- - `templates/skills/NOTICE` documents this as a hero-mmt-kit design choice layered on top of the vendored skill, following the same precedent set for `subagent-driven-development`'s backported additions.
14
-
15
- ## [1.1.2] - 2026-07-14
16
-
17
- ### Changed
18
-
19
- - Extracted `hero-security`'s embedded reference knowledge (the 14-domain security control baseline, OWASP/AI-LLM review checklist, release-gate criteria, report template, and severity guide) out of `SKILL.md` into standalone docs — `docs/SECURITY_CONTROL_BASELINE.md`, `docs/SECURITY_REVIEW_CHECKLIST.md`, and `docs/SECURITY_REPORT_FORMAT.md` — referenced from the skill via `@docs/...`. `hero-security/SKILL.md` shrank from 427 to ~150 lines and now covers only process/behavioral guidance.
20
- - Consolidated all `hero-security` documentation into the project's single `docs/` folder alongside the existing `docs/SECURITY_STANDARDS.md`, instead of splitting it between the project's `docs/` and a skill-local `docs/` subfolder under `.claude/skills/hero-security/`. `SECURITY_STANDARDS.md` now cross-links the three new files.
21
-
22
- ## [1.1.1] - 2026-07-14
23
-
24
- ### Fixed
25
-
26
- - `hero-planning` no longer stalls in Plan Mode asking "should I implement now?" — after the plan is written and self-reviewed, it exits plan mode, reports the saved path, and stops without offering to implement or auto-invoking `hero-coding`.
27
- - Unified the plan artifact path to `docs/plans/YYYY-MM-DD-<slug>.md` everywhere. The vendored `writing-plans` skill previously defaulted to `docs/superpowers/plans/...`, which didn't match `hero-planning`'s own convention; `writing-plans` and the `requesting-code-review` example now use the same path.
28
-
29
- ## [1.1.0] - 2026-07-11
30
-
31
- ### Added
32
-
33
- - `hero-report`, an on-demand report writer for coding, reviewing, and unit-test phases when a durable report is explicitly wanted.
34
- - `active-state-bridge.cjs`, which injects `docs/ACTIVE_STATE.md` context at session start and makes that file the single durable workflow-state source.
35
- - 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.
36
- - 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.
37
-
38
- ### Changed
39
-
40
- - `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.
41
- - `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.
42
- - Reports for coding/review/test phases are on-demand via `hero-report`; chat summaries remain the default for those phases.
43
- - `docs/ACTIVE_STATE.md` replaces `.hero-mmt-kit/session.json` as the workflow state source used by init/update/doctor guidance.
44
- - `git-guard` behavior was tightened to avoid false positives such as branch names containing `main`, while keeping dangerous git commands guarded.
45
- - README, framework guidance, manifest metadata, and vendored skill documentation now describe the report-on-demand model and standalone security-report exception consistently.
46
-
47
- ### Removed
48
-
49
- - Bundled `security-review` skill; its OWASP + AI/LLM review content now lives in `hero-security`.
50
- - `session-bridge.cjs`, `.hero-mmt-kit/session.schema.json`, and session-pointer state logic.
51
- - `finishing-a-development-branch` from the bundled process-skill set.
52
- - Legacy presets and workflow-state tests tied to the removed session/profile model.
53
-
54
- ## [1.0.0] - 2026-07-10
55
-
56
- ### Added
57
-
58
- - Initial standalone `hero-mmt-kit` release.
59
- - Zero-dependency Node.js CLI published as `hero-mmt-kit`, with `init`, `update`, `discover`, `brownfield`, `doctor`, `version`, and `help` commands.
60
- - Claude Code-only workflow installation for new and brownfield repositories.
61
- - `using-hero` overview skill plus six operative workflow skills:
62
- - `hero-planning`
63
- - `hero-coding`
64
- - `hero-reviewing`
65
- - `hero-unit-test`
66
- - `hero-security`
67
- - `hero-strict`
68
- - Bundled core process skills installed into `.claude/skills/` for every project, with attribution in `templates/skills/NOTICE`.
69
- - Standalone framework-authored `hero-security` skill for OWASP + AI/LLM security reviews.
70
- - Lightweight session state in `.hero-mmt-kit/session.json` with `schemaVersion`, `currentSkill`, `lastCheckpoint`, `resumePath`, `nextAction`, and `updatedAt`.
71
- - Soft Claude Code hooks:
72
- - `git-guard.cjs` for dangerous git-command protection and commit reminders.
73
- - `session-bridge.cjs` for once-per-session state injection.
74
- - `stop-reminder.cjs` for end-of-session state reminders.
75
- - Brownfield discovery flow via `npx hero-mmt-kit discover` / `brownfield`, generating `docs/BROWNFIELD_DISCOVERY.md`.
76
- - Standards and template docs:
77
- - `docs/ACTIVE_STATE.md`
78
- - `docs/BROWNFIELD_DISCOVERY.md`
79
- - `docs/SECURITY_STANDARDS.md`
80
- - `docs/PERFORMANCE_STANDARDS.md`
81
- - `docs/DESIGN_STANDARDS.md`
82
- - `docs/INTERACTION_PATTERNS.md`
83
- - `docs/templates/PRD_AI_FEATURE.md`
84
- - `docs/templates/DESIGN_BRIEF.md`
85
- - Managed-region update model using `<!-- hero-mmt-kit:start/end -->` markers in generated guidance files.
86
- - Optional integration detection for taste/design skills, GitNexus, and Serena.
87
- - Presets for `enterprise`, `small-team`, and `solo` posture configuration.
88
- - Test coverage for hook behavior, documentation links, initialization, brownfield discovery, optional integration gating, and CLI smoke flows.
89
-
90
- ### Changed
91
-
92
- - Workflow posture is human-led and Claude Code-only: developers invoke skills directly instead of relying on automatic routing, profiles, IDE targeting, or phase enforcement.
93
- - Framework templates are English-only for consistency and token efficiency; assistants can still reply in the user's chat language.
94
- - Installed skills are no longer selected by profile, project surface, or verification level. Every install receives the full bundled workflow skill suite.
95
- - Optional taste/design skills are installed only when the user opts in with `--taste` or answers Yes during interactive `init`.
96
- - `doctor` validates the current framework surfaces: hooks, settings, session state, doc links, and optional tool presence.
97
-
98
- ### Removed
99
-
100
- - Hard workflow enforcement gates and blocking edit/commit checks.
101
- - Multi-IDE targeting and Cursor-specific installation surfaces.
102
- - Profile, surface, and verification-level selection flags.
103
- - Phase-handoff protocol artifacts and handoff validation logic.
104
- - Legacy migration or compatibility behavior from earlier products. `hero-mmt-kit` starts with a clean runtime directory, managed-region markers, CLI binary, and package name.
1
+ # Changelog
2
+
3
+ Notable changes to `hero-mmt-kit` are documented here from `1.0.0` onward.
4
+
5
+ Format follows [Keep a Changelog](https://keepachangelog.com/); versioning follows [SemVer](https://semver.org/).
6
+
7
+ ## [1.1.4] - 2026-07-20
8
+
9
+ ### Added
10
+
11
+ - `hero-mr-review`, a new standalone core skill for reviewing a teammate's merge request or commit before it merges. Given a git ref (commit SHA, tag, or branch) diffed against a base branch, it checks coding convention, purpose-fit against the commit messages/description, impact on related code (via GitNexus when connected), and potential bugs — then always writes a standalone report to `docs/mr-reviews/YYYY-MM-DD-<slug>.md` with a verdict (`Approve` / `Approve with suggestions` / `Request changes`). Like `hero-security`, it is independent of the `hero-planning`/`hero-coding`/`hero-reviewing`/`hero-unit-test` pipeline and is invoked directly, on demand — it reviews someone else's code, not the invoking developer's own work-in-progress.
12
+ - Added to `skills.manifest.json`, `CORE_SKILL_ORDER`, `using-hero`'s skill map, and the vendored skill test suite alongside the other `hero-*` skills.
13
+
14
+ ## [1.1.3] - 2026-07-16
15
+
16
+ ### Added
17
+
18
+ - `instrumented-debugging.md`, a hero-mmt-kit-original supporting technique added to the vendored `systematic-debugging` skill (alongside `root-cause-tracing.md`, `defense-in-depth.md`, and `condition-based-waiting.md`): for a logic/data bug reproducible from known input, trigger it via a temporary unit test built directly from that input, place tagged `console.log`/`print` checkpoints at breakpoint-equivalent locations, and read the collected trace instead of attaching a debugger. Mandatory cleanup removes the temporary test and all checkpoint lines before the session ends.
19
+ - `systematic-debugging/SKILL.md` Phase 1 and its Supporting Techniques list now point to `instrumented-debugging.md`; `hero-coding/SKILL.md` step 4 surfaces it as an option when a mid-implementation bug is reproducible from a known API payload.
20
+ - `templates/skills/NOTICE` documents this as a hero-mmt-kit design choice layered on top of the vendored skill, following the same precedent set for `subagent-driven-development`'s backported additions.
21
+
22
+ ## [1.1.2] - 2026-07-14
23
+
24
+ ### Changed
25
+
26
+ - Extracted `hero-security`'s embedded reference knowledge (the 14-domain security control baseline, OWASP/AI-LLM review checklist, release-gate criteria, report template, and severity guide) out of `SKILL.md` into standalone docs — `docs/SECURITY_CONTROL_BASELINE.md`, `docs/SECURITY_REVIEW_CHECKLIST.md`, and `docs/SECURITY_REPORT_FORMAT.md` — referenced from the skill via `@docs/...`. `hero-security/SKILL.md` shrank from 427 to ~150 lines and now covers only process/behavioral guidance.
27
+ - Consolidated all `hero-security` documentation into the project's single `docs/` folder alongside the existing `docs/SECURITY_STANDARDS.md`, instead of splitting it between the project's `docs/` and a skill-local `docs/` subfolder under `.claude/skills/hero-security/`. `SECURITY_STANDARDS.md` now cross-links the three new files.
28
+
29
+ ## [1.1.1] - 2026-07-14
30
+
31
+ ### Fixed
32
+
33
+ - `hero-planning` no longer stalls in Plan Mode asking "should I implement now?" — after the plan is written and self-reviewed, it exits plan mode, reports the saved path, and stops without offering to implement or auto-invoking `hero-coding`.
34
+ - Unified the plan artifact path to `docs/plans/YYYY-MM-DD-<slug>.md` everywhere. The vendored `writing-plans` skill previously defaulted to `docs/superpowers/plans/...`, which didn't match `hero-planning`'s own convention; `writing-plans` and the `requesting-code-review` example now use the same path.
35
+
36
+ ## [1.1.0] - 2026-07-11
37
+
38
+ ### Added
39
+
40
+ - `hero-report`, an on-demand report writer for coding, reviewing, and unit-test phases when a durable report is explicitly wanted.
41
+ - `active-state-bridge.cjs`, which injects `docs/ACTIVE_STATE.md` context at session start and makes that file the single durable workflow-state source.
42
+ - 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.
43
+ - 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.
44
+
45
+ ### Changed
46
+
47
+ - `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.
48
+ - `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.
49
+ - Reports for coding/review/test phases are on-demand via `hero-report`; chat summaries remain the default for those phases.
50
+ - `docs/ACTIVE_STATE.md` replaces `.hero-mmt-kit/session.json` as the workflow state source used by init/update/doctor guidance.
51
+ - `git-guard` behavior was tightened to avoid false positives such as branch names containing `main`, while keeping dangerous git commands guarded.
52
+ - README, framework guidance, manifest metadata, and vendored skill documentation now describe the report-on-demand model and standalone security-report exception consistently.
53
+
54
+ ### Removed
55
+
56
+ - Bundled `security-review` skill; its OWASP + AI/LLM review content now lives in `hero-security`.
57
+ - `session-bridge.cjs`, `.hero-mmt-kit/session.schema.json`, and session-pointer state logic.
58
+ - `finishing-a-development-branch` from the bundled process-skill set.
59
+ - Legacy presets and workflow-state tests tied to the removed session/profile model.
60
+
61
+ ## [1.0.0] - 2026-07-10
62
+
63
+ ### Added
64
+
65
+ - Initial standalone `hero-mmt-kit` release.
66
+ - Zero-dependency Node.js CLI published as `hero-mmt-kit`, with `init`, `update`, `discover`, `brownfield`, `doctor`, `version`, and `help` commands.
67
+ - Claude Code-only workflow installation for new and brownfield repositories.
68
+ - `using-hero` overview skill plus six operative workflow skills:
69
+ - `hero-planning`
70
+ - `hero-coding`
71
+ - `hero-reviewing`
72
+ - `hero-unit-test`
73
+ - `hero-security`
74
+ - `hero-strict`
75
+ - Bundled core process skills installed into `.claude/skills/` for every project, with attribution in `templates/skills/NOTICE`.
76
+ - Standalone framework-authored `hero-security` skill for OWASP + AI/LLM security reviews.
77
+ - Lightweight session state in `.hero-mmt-kit/session.json` with `schemaVersion`, `currentSkill`, `lastCheckpoint`, `resumePath`, `nextAction`, and `updatedAt`.
78
+ - Soft Claude Code hooks:
79
+ - `git-guard.cjs` for dangerous git-command protection and commit reminders.
80
+ - `session-bridge.cjs` for once-per-session state injection.
81
+ - `stop-reminder.cjs` for end-of-session state reminders.
82
+ - Brownfield discovery flow via `npx hero-mmt-kit discover` / `brownfield`, generating `docs/BROWNFIELD_DISCOVERY.md`.
83
+ - Standards and template docs:
84
+ - `docs/ACTIVE_STATE.md`
85
+ - `docs/BROWNFIELD_DISCOVERY.md`
86
+ - `docs/SECURITY_STANDARDS.md`
87
+ - `docs/PERFORMANCE_STANDARDS.md`
88
+ - `docs/DESIGN_STANDARDS.md`
89
+ - `docs/INTERACTION_PATTERNS.md`
90
+ - `docs/templates/PRD_AI_FEATURE.md`
91
+ - `docs/templates/DESIGN_BRIEF.md`
92
+ - Managed-region update model using `<!-- hero-mmt-kit:start/end -->` markers in generated guidance files.
93
+ - Optional integration detection for taste/design skills, GitNexus, and Serena.
94
+ - Presets for `enterprise`, `small-team`, and `solo` posture configuration.
95
+ - Test coverage for hook behavior, documentation links, initialization, brownfield discovery, optional integration gating, and CLI smoke flows.
96
+
97
+ ### Changed
98
+
99
+ - Workflow posture is human-led and Claude Code-only: developers invoke skills directly instead of relying on automatic routing, profiles, IDE targeting, or phase enforcement.
100
+ - Framework templates are English-only for consistency and token efficiency; assistants can still reply in the user's chat language.
101
+ - Installed skills are no longer selected by profile, project surface, or verification level. Every install receives the full bundled workflow skill suite.
102
+ - Optional taste/design skills are installed only when the user opts in with `--taste` or answers Yes during interactive `init`.
103
+ - `doctor` validates the current framework surfaces: hooks, settings, session state, doc links, and optional tool presence.
104
+
105
+ ### Removed
106
+
107
+ - Hard workflow enforcement gates and blocking edit/commit checks.
108
+ - Multi-IDE targeting and Cursor-specific installation surfaces.
109
+ - Profile, surface, and verification-level selection flags.
110
+ - Phase-handoff protocol artifacts and handoff validation logic.
111
+ - Legacy migration or compatibility behavior from earlier products. `hero-mmt-kit` starts with a clean runtime directory, managed-region markers, CLI binary, and package name.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # hero-mmt-kit
2
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.
3
+ > A focused, human-led coding workflow for **Claude Code** — seven direct-use skills (planning, coding, reviewing, unit testing, security, MR review, strict verification) plus an on-demand report writer, simple durable state, and soft safety hooks. Zero runtime dependencies.
4
4
 
5
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
6
 
@@ -8,7 +8,7 @@
8
8
 
9
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
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.
11
+ - **Seven operative skills** (`hero-planning`, `hero-coding`, `hero-reviewing`, `hero-unit-test`, `hero-security`, `hero-mr-review`, `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
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
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
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.
@@ -64,7 +64,7 @@ your-project/
64
64
 
65
65
  ## Workflow skills
66
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:
67
+ Invoke `using-hero` first for an overview — it explains which skill applies next and how workflow state carries across sessions. The seven operative skills:
68
68
 
69
69
  | Skill | Use when | Artifact / report |
70
70
  |---|---|---|
@@ -73,13 +73,14 @@ Invoke `using-hero` first for an overview — it explains which skill applies ne
73
73
  | `hero-reviewing` | Fresh-eyes check of an implementation against its plan, before merge. | `docs/reviews/YYYY-MM-DD-slug.md` |
74
74
  | `hero-unit-test` | Verifying implementation correctness — TDD-first or post-implementation. | `docs/test-reports/YYYY-MM-DD-slug.md` |
75
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-mr-review` | Reviewing a teammate's merge request or commit before it merges. | `docs/mr-reviews/YYYY-MM-DD-slug.md` — always written. |
76
77
  | `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
 
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
+ 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. `hero-mr-review` sits outside this flow entirely: it reviews a teammate's MR, not the invoking developer's own work, so it's invoked directly whenever needed rather than as a pipeline stage.
79
80
 
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
+ `hero-coding`, `hero-reviewing`, and `hero-unit-test` don't write a report file by default — they end with a concise chat summary. An eighth, 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` and `hero-mr-review` are the exceptions: both are independent flows that always write their own standalone report (`docs/security-reports/...` and `docs/mr-reviews/...` respectively).
81
82
 
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
+ 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` and `hero-mr-review` are standalone review skills rather than wrappers. 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
 
84
85
  ## Session state
85
86
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hero-mmt-kit",
3
- "version": "1.1.3",
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.",
3
+ "version": "1.1.5",
4
+ "description": "A focused Claude Code framework for human-led development — seven direct-use skills (planning, coding, reviewing, unit testing, security, MR review, 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",
@@ -34,6 +34,7 @@
34
34
  { "name": "hero-reviewing", "source": "hero-mmt-kit", "description": "Fresh-eyes check of an implementation against its plan, before merge." },
35
35
  { "name": "hero-unit-test", "source": "hero-mmt-kit", "description": "Verify implementation correctness — TDD-first or post-implementation." },
36
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-mr-review", "source": "hero-mmt-kit", "description": "Review a teammate's merge request by commit/tag/branch and write a standalone MR review report." },
37
38
  { "name": "hero-strict", "source": "hero-mmt-kit", "description": "Opt-in full verification pass before a \"done\" claim." },
38
39
  { "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
  ]
@@ -28,6 +28,7 @@ const SERENA_MEMOS = {
28
28
  'Human-led Claude Code workflow (hero-mmt-kit). Use the **using-hero** skill for the overview.\n\n' +
29
29
  'Core skills: hero-planning (plan before code), hero-coding (implement), hero-reviewing (fresh-eyes check), ' +
30
30
  'hero-unit-test (TDD-first or post-implementation tests), hero-security (standalone security review), ' +
31
+ 'hero-mr-review (standalone review of a teammate\'s MR by commit/tag/branch), ' +
31
32
  'hero-strict (opt-in full verification pass before a "done" claim).\n\n' +
32
33
  'Session state: docs/ACTIVE_STATE.md\'s Active Features table (the single source of durable workflow state).\n\n' +
33
34
  'Details (always read the source files, do not duplicate here): docs/ACTIVE_STATE.md, docs/SECURITY_STANDARDS.md, ' +
package/src/skills.cjs CHANGED
@@ -22,6 +22,7 @@ const CORE_SKILL_ORDER = [
22
22
  'hero-reviewing',
23
23
  'hero-unit-test',
24
24
  'hero-security',
25
+ 'hero-mr-review',
25
26
  'hero-strict',
26
27
  'hero-report',
27
28
  ];
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: hero-mr-review
3
+ description: Use when reviewing a teammate's merge request or commit before it merges — given a git ref (commit, tag, or branch), checks coding convention, the change's stated purpose, its impact on related code, and potential bugs, then writes a standalone review report
4
+ ---
5
+
6
+ # Hero MR Review
7
+
8
+ ## Overview
9
+
10
+ hero-mr-review is a standalone review skill for code someone else wrote. It is not part of the `hero-planning → hero-coding → hero-reviewing/hero-unit-test` pipeline, and it does not wrap `hero-reviewing` — that skill checks the *invoking developer's own* work against *their own* plan; this skill checks a *colleague's* merge request against the codebase's conventions, the change's own stated intent, and its blast radius. Invoke it directly, on demand, whenever a teammate's MR needs a second pair of eyes before merge.
11
+
12
+ **Core principle:** review the diff, not the description. Every finding needs file:line evidence from the actual change — not a restatement of the commit message or an assumption about what the code "probably" does.
13
+
14
+ ## When to Use
15
+
16
+ Use this skill when:
17
+ - A teammate has pushed commits and opened (or is about to open) a merge/pull request, and you need to review it before it merges.
18
+ - The user gives a commit SHA, tag, or branch name and asks for a review of "that MR" or "that commit."
19
+
20
+ Not for reviewing your own in-progress work — use `hero-reviewing` for that (it reads your plan and coding report as the source of truth; this skill has neither).
21
+
22
+ ## Inputs
23
+
24
+ 1. **The MR ref** — a commit SHA, tag, or branch name identifying the tip of the MR. Required; ask for it if not given.
25
+ 2. **The base ref** — what the MR merges into. Default to the repo's detected primary branch (`git symbolic-ref refs/remotes/origin/HEAD`, falling back to `main` or `master`) unless the user names a different base.
26
+ 3. Any MR/PR description or linked issue the user provides — useful for cross-checking stated intent against actual diff, but not required; the commit messages and diff are the primary source of truth if no description exists.
27
+ 4. Existing project conventions — naming, structure, and patterns already established in the files the MR touches.
28
+
29
+ ## Process
30
+
31
+ 1. **Resolve the diff.** Confirm both refs resolve (`git rev-parse`), then get the merge-base diff (`git diff <base>...<mr-ref>`) and the commit log (`git log <base>..<mr-ref>`) for the touched range. Do not review uncommitted/working-tree state — this skill reviews what was actually committed.
32
+ 2. **Establish the stated purpose.** Read the commit messages and any MR description given. Summarize in one or two sentences what the change claims to do.
33
+ 3. **Check coding convention.** Compare the diff against the existing patterns in the touched files and directories: naming, structure, error handling style, import/module conventions, formatting. Flag deviations with the file:line and what convention it breaks.
34
+ 4. **Check purpose-fit.** Does the diff actually do what the commit messages/description claim — no more, no less? Flag scope creep (unrelated changes bundled in) and silent gaps (claimed behavior the diff doesn't deliver).
35
+ 5. **Run impact analysis.** For each non-trivial changed symbol, if GitNexus MCP tools are connected, run `gitnexus_detect_changes` (or `gitnexus_impact` per symbol) to find callers, affected execution flows, and risk level; report HIGH/CRITICAL risk explicitly. If GitNexus isn't available, search for call sites/usages manually (grep/references) and note what was and wasn't checked.
36
+ 6. **Scan for potential bugs.** Read the actual diff hunks for logic errors, missed edge cases, unhandled error paths, off-by-one issues, resource leaks, race conditions, and anything that would only surface at runtime. This is a correctness pass, not a security audit — if the MR touches a sensitive surface (auth, secrets, external input, payments, AI/LLM behavior), say so and recommend a separate `hero-security` pass instead of trying to cover it here.
37
+ 7. **Compose findings.** Every finding gets: severity, file:line, what's wrong, the evidence (the actual line(s) from the diff), and a concrete suggested fix or improvement — not just "this looks off."
38
+ 8. **Assign a verdict:** `Approve`, `Approve with suggestions`, or `Request changes`. `Request changes` for any correctness bug, convention violation with real consequences, or unexplained purpose/diff mismatch; `Approve with suggestions` for optional improvements that don't block merge; `Approve` when nothing material was found.
39
+ 9. **Write the report** (see Output Artifact) and state the verdict and report path in chat.
40
+
41
+ ## Output Artifact
42
+
43
+ `docs/mr-reviews/YYYY-MM-DD-<slug>.md` — always written; this is the deliverable, not an on-request extra. Slug is the reviewed branch name (sanitized to kebab-case) if known, otherwise the short commit SHA of the MR ref.
44
+
45
+ ```markdown
46
+ # MR Review: <mr-ref> → <base-ref>
47
+
48
+ **Date:** YYYY-MM-DD
49
+ **Author:** <from git log, if available>
50
+ **Verdict:** Approve / Approve with suggestions / Request changes
51
+
52
+ ## Purpose
53
+ <one to two sentences: what the MR claims to do>
54
+
55
+ ## Findings
56
+
57
+ ### Coding Convention
58
+ - [Severity] file:line — issue. Evidence: `<diff line>`. Suggested fix: ...
59
+
60
+ ### Purpose Fit
61
+ - [Severity] file:line — issue. Evidence: `<diff line>`. Suggested fix: ...
62
+
63
+ ### Impact
64
+ - Affected callers/flows (via gitnexus_impact/gitnexus_detect_changes, or manual search if GitNexus unavailable). Risk level per changed symbol.
65
+
66
+ ### Potential Bugs
67
+ - [Severity] file:line — issue. Evidence: `<diff line>`. Suggested fix: ...
68
+
69
+ ## Recommendation
70
+ <verdict restated with the one or two things that would flip it, if not a clean Approve>
71
+ ```
72
+
73
+ If a section has no findings, say so explicitly ("no convention deviations found") rather than omitting the heading — an omitted section reads as "not reviewed."
74
+
75
+ Report style:
76
+ - Keep it concise and easy to scan: short bullets, not paragraphs.
77
+ - Every finding needs evidence — the actual code/diff line, not a paraphrase.
78
+ - Preserve exact file paths, line numbers, symbol names, commands, and error strings verbatim.
79
+ - Use full clarity (no compression) for anything that could break production or that you're recommending block the merge.
80
+
81
+ ## Definition of Done
82
+
83
+ - The diff was actually read — findings cite real file:line evidence, not the commit message or MR description alone.
84
+ - All four criteria (convention, purpose-fit, impact, potential bugs) were checked, or explicitly marked "not reviewed" with a reason (e.g., GitNexus unavailable and manual search was out of scope).
85
+ - Every finding has a suggested fix or improvement, not just a description of the problem.
86
+ - The verdict is stated with the reasoning that drives it.
87
+ - Report is saved at `docs/mr-reviews/YYYY-MM-DD-<slug>.md`, and the verdict + path are stated in chat.
88
+
89
+ ## ACTIVE_STATE.md Update
90
+
91
+ Only if the MR corresponds to a row already tracked in `docs/ACTIVE_STATE.md`'s Active Features table — link the review report there. Most MR reviews are for someone else's work and won't have a matching row; skip this step when there isn't one.
92
+
93
+ ## Related Skills
94
+
95
+ - Independent of the `hero-planning`/`hero-coding`/`hero-reviewing`/`hero-unit-test` pipeline — never invoked as part of it, and doesn't read their artifacts.
96
+ - Recommend a separate `hero-security` pass if the MR touches a sensitive surface (auth, secrets, external input, payments, AI/LLM behavior) instead of trying to cover security depth here.
97
+ - Recommend `hero-strict` if the MR is high-risk (architecture, shared/core modules, data model) and needs a fuller verification pass beyond this review.
@@ -18,11 +18,14 @@ hero-mmt-kit is a human-led workflow: the developer decides what to work on and
18
18
  | `hero-reviewing` | Fresh-eyes check of an implementation against its plan, before merge. | `docs/reviews/YYYY-MM-DD-slug.md` |
19
19
  | `hero-unit-test` | Verifying implementation correctness — TDD-first or post-implementation. | `docs/test-reports/YYYY-MM-DD-slug.md` |
20
20
  | `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. |
21
+ | `hero-mr-review` | Reviewing a teammate's merge request or commit before it merges — given a commit/tag/branch. | `docs/mr-reviews/YYYY-MM-DD-slug.md` — always written. |
21
22
  | `hero-strict` | Extra rigor is wanted before a "done" claim — a full verification pass. | Appends to the current report, if one exists/was requested. |
22
23
  | `hero-report` | A written report is actually wanted for a finished `hero-coding`/`hero-reviewing`/`hero-unit-test` phase. | Writes the report at the path the source skill defines. |
23
24
 
24
25
  A typical flow is `hero-planning` → `hero-coding` → `hero-unit-test` and/or `hero-reviewing` → done. Invoke `hero-security` separately when you want a dedicated security pass. Skip stages that don't fit the size of the change — a one-line typo fix doesn't need a plan artifact.
25
26
 
27
+ `hero-mr-review` is not part of this flow at all — it reviews a *teammate's* merge request, not the invoking developer's own work-in-progress. It has no plan or coding report to read; it reads the diff itself. Invoke it directly whenever a colleague's MR needs review, independent of whatever phase your own work is in.
28
+
26
29
  `hero-planning`, `hero-coding`, `hero-reviewing`, and `hero-unit-test` are done per-phase, not gated into an automatic full pipeline — finishing one doesn't trigger the next; the developer decides what to invoke next.
27
30
 
28
31
  ## Report writing