Skip to content

refactor(marketplace): rename hook plugins to the format verb family - #281

Merged
kyle-sexton merged 3 commits into
mainfrom
refactor/hook-plugin-format-family-renames
Jul 17, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
refactor/hook-plugin-format-family-renames

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Summary

Renames two hook plugins so the whole hook-plugin family follows the <tool>-format verb grammar (biome-format, ruff-format, powershell-format):

  • markdown-formatter → markdown-format (0.1.9 → 0.2.0) — agent-noun outlier brought into the verb family.
  • bash-lint → bash-format (0.1.6 → 0.2.0) — the hook formats via shfmt like every sibling; "lint" undersold the file mutation.

Executes step 4 of docs/topics/shadowed-skill-renames/PLAN.md.

Hard break — by design

No renames-map entries are added (the map's existing entries are untouched). Per the program contract, every rename while the marketplace is settling is a clean breaking change: consumers uninstall the old plugin name and /plugin install markdown-format@<marketplace> / /plugin install bash-format@<marketplace>. Each plugin gets a minor version bump and a new CHANGELOG documenting the break.

Carried along with the bash-format rename for grammar coherence (documented as breaking in its CHANGELOG):

  • hook script hooks/bash-lint.sh → hooks/bash-format.sh (+ hooks.json command)
  • telemetry hook value bash-lint → bash-format
  • kill switch HOOK_BASH_LINT_ENABLED → HOOK_BASH_FORMAT_ENABLED

Repo-wide sweep

  • .claude-plugin/marketplace.json entry name + source for both plugins
  • Root README plugin catalog regenerated via node scripts/generate-catalog.mjs
  • .github/workflows/ci.yml ShellCheck action paths + comment
  • docs/conventions/hook-telemetry/README.md implementer references
  • plugins/biome-format/hooks/biome-format.sh sibling-model comment
  • claude-ops observability synthetic fixtures + sample output doc
  • docs/topics/plugin-organization/PLAN.md D22 forward-looking category assignments

Deliberately unchanged: markdownlint/shellcheck/shfmt tool names; historical execution-evidence records in docs/topics/plugin-fleet-sync-skill/PLAN.md (empirical logs of commands run at the time — rewriting them would falsify evidence).

Verification

Related

No linked issue — executes the approved rename program in docs/topics/shadowed-skill-renames/PLAN.md (step 4 of its PR sequence).

🤖 Generated with Claude Code

https://claude.ai/code/session_01YVApnNGoKxYMJKNQx1QK8C

Rename markdown-formatter -> markdown-format and bash-lint -> bash-format
so every hook plugin follows the <tool>-format verb grammar (biome-format,
ruff-format, powershell-format). markdown-formatter was an agent-noun
outlier; bash-lint formats via shfmt like every sibling, so "lint"
undersold the file mutation.

Hard break by design: no marketplace renames-map entries while the
marketplace is settling (per docs/topics/shadowed-skill-renames/PLAN.md);
consumers uninstall the old name and install the new one. Both plugins
bump to 0.2.0 with a CHANGELOG marking the break.

Carried along with the bash-format rename for grammar coherence: the hook
script (hooks/bash-format.sh), its telemetry hook value, and the kill
switch (HOOK_BASH_LINT_ENABLED -> HOOK_BASH_FORMAT_ENABLED).

Historical execution records in docs/topics/plugin-fleet-sync-skill/PLAN.md
keep the old names deliberately - they are empirical evidence logs of
commands run at the time.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YVApnNGoKxYMJKNQx1QK8C
@claude

claude Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 38s —— View job


PR Review

Tasks

  • Gather context and understand the request
  • Read the PR diff
  • Review plugin manifests and CHANGELOGs
  • Review hook scripts and hooks.json
  • Review marketplace.json and CI changes
  • Check alignment with CLAUDE.md guidelines
  • Post comprehensive review feedback

Summary

A clean, thorough rename. All 22 changed files are internally consistent and the repo-wide sweep is complete. I have one minor finding and a couple of observations.


Findings

Minor — bash-format missing from the telemetry Implementers table

docs/conventions/hook-telemetry/README.md line 152

The Implementers table lists markdown-format but omits bash-format, even though bash-format.sh emits full telemetry envelopes via hook::emit_telemetry "bash-format" .... A sink querying the documented table for data-schema discovery would find no entry for this producer. This appears to be a pre-existing gap (bash-lint wasn't in the table either), but the rename is the natural moment to close it.

Missing row:

| `bash-format` plugin | `bash-format` | `data/bash-format.schema.json` |

There's also a corresponding gap: no data/bash-format.schema.json per-hook data schema file exists (parallel to data/markdown-format.schema.json). Both gaps can be addressed together in a follow-up — this doesn't block the rename itself.

Fix this →


What looks good

Completeness of the sweep. git grep -w bash-lint and git grep -w markdown-formatter outside the preserved paths returns only the CHANGELOG migration notes — exactly what you'd expect from a clean rename. No stale references in hook scripts, test files, marketplace entries, CI paths, or telemetry fixtures.

Kill switch rename is fully propagated. HOOK_BASH_LINT_ENABLED → HOOK_BASH_FORMAT_ENABLED is updated in the hook script, the test fixture's run_hook env invocations (lines 90, 162), and the CHANGELOG migration note. Consumers who had the kill switch set are correctly warned to re-set it under the new name.

CHANGELOGs are well-formed. Both 0.2.0 entries clearly state the break, name the old plugin, provide the migration command, and enumerate what moved with the rename (hook script, telemetry hook value, kill switch). A consumer upgrading can follow the steps without reading the PR.

CI path is correct. The ShellCheck action's paths: plugins/bash-format correctly replaces paths: plugins/bash-lint, so the action continues to gate on the right directory.

Version bumps are correct. Both plugins go to 0.2.0. Minor bump for a breaking rename is consistent with the project's stated convention for this settling period.

Plugin manifests are correct. Both plugin.json files have name and version aligned with the rename, use the SchemaStore $schema ref, and retain all prior keyword metadata.

hooks.json security. Both hooks.json files use "${CLAUDE_PLUGIN_ROOT}"/hooks/<name>.sh — correct plugin-root-anchored paths, no hardcoded filesystem references.

Observability fixtures updated. claude-observability.test.sh and output-format.md both update bash-lint → bash-format in synthetic events, assertions, and sample output, so the observability skill's test suite stays valid against the new name.

Intentionally preserved historical records. The PR description calls out docs/topics/plugin-fleet-sync-skill/PLAN.md explicitly — those empirical logs correctly retain the old names as evidence of commands actually run.

CLAUDE.md alignment. Repo-agnostic ✅, configurable without editing ✅, plugin-form-safe ✅, versioned ✅, no PII/secrets ✅.


Overall verdict

Approve with the telemetry Implementers table gap noted as a follow-up opportunity. The gap predates this PR and doesn't affect runtime behavior — it's purely a documentation completeness issue.

…ters table

Closes the pre-existing gap the rename surfaced: bash-format emits full
telemetry envelopes but had no implementers row or data schema.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YVApnNGoKxYMJKNQx1QK8C
@kyle-sexton

Copy link
Copy Markdown
Member Author

claude-review finding VALID — Implementers table omitted bash-format (pre-existing: bash-lint was never registered). Fixed in 18387bf: table row added and data/bash-format.schema.json authored to match the emitted {tool, file, findings} payload.

@kyle-sexton
kyle-sexton enabled auto-merge (squash) July 17, 2026 18:03
@claude

claude Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Claude Code is working…

I'll analyze this and get back to you.

View job run

@kyle-sexton
kyle-sexton merged commit ecf02fd into main Jul 17, 2026
1 check passed
@kyle-sexton
kyle-sexton deleted the refactor/hook-plugin-format-family-renames branch July 17, 2026 18:08
@claude

claude Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 15s —— View job


Review of fix commit (18387bf)

Tasks

  • Gather context
  • Read docs/conventions/hook-telemetry/README.md to verify Implementers table fix
  • Read docs/conventions/hook-telemetry/data/bash-format.schema.json to verify schema correctness
  • Post final verdict

Finding: Resolved ✓

The fix correctly addresses both gaps identified in the initial review.

Implementers table — row added at line 156 of docs/conventions/hook-telemetry/README.md:

| `bash-format` plugin | `bash-format` | `data/bash-format.schema.json` |

Placement is correct — bash-format follows markdown-format in the hook-plugin family grouping.

Schema file — data/bash-format.schema.json accurately reflects the hook's actual payload. Cross-checked against build_data_json in bash-format.sh (lines 77–84):

Schema field Schema type Emitted value
tool string $TOOL from jq -r '.tool_name // empty'
file string $FILE_REL — repo-relative path
findings array of strings ShellCheck GCC lines, or [] if clean

The "findings" description — "ShellCheck findings remaining for the file, one per line. Empty array = clean." — is precise: shfmt is a mutating formatter with no diagnostic output, so only ShellCheck produces findings in the telemetry sense.

"additionalProperties": true correctly marks the schema as additive-only extensible, consistent with the Forward Compatibility section of the telemetry convention and parallel to markdown-format.schema.json.

The schema structure mirrors markdown-format.schema.json exactly where appropriate and diverges only in field descriptions (tool-specific wording). No issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant