harden

harden is a command for Claude Code from juanmhidalgo/claude-plugins. It costs 119 tokens per session (1,159 once invoked), scanned A, original, MIT.

A review-and-fix command for completed code changes. It reviews the selected work for defects, requirements being missed, and technical debt, then can fix approved findings and review the resulting changes again.

In plain words
What is it for?
It is for reviewing a branch or uncommitted implementation after development, including work produced with test-driven development (TDD), where tests are written around the intended behaviour.
Why use it?
It provides a second review after implementation, when the original coding context may have overlooked problems. It also separates reviewed changes from the fixes made afterward.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the feature-dev plugin — 2 skills, 8 commands, 13 agents shipped together

Good fit It is for reviewing a branch or uncommitted implementation after development, including work produced with test-driven development (TDD), where tests are written around the intended behaviour.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add juanmhidalgo/claude-plugins
Claude Code
/plugin install feature-dev

Made for: Claude Code.

Or install feature-dev, the plugin that ships this one along with the rest of its 2 skills, 8 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for harden

README.md
[![agentmods](https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/harden/github.svg)](https://agentmods.dev/commands/juanmhidalgo/claude-plugins/harden)
Your own site
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/harden"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/harden/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for harden

Your own site · 80×15
<a href="https://agentmods.dev/commands/juanmhidalgo/claude-plugins/harden"><img src="https://agentmods.dev/badge/commands/juanmhidalgo/claude-plugins/harden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.01159
Opus 5.5 $0.00048 $0.00464
Sonnet 5.5 $0.00024 $0.00232
Haiku 4.5 $0.00012 $0.00116

Measured 26d ago against content hash 05aa3149960e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

harden scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

feature-dev/commands/harden.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

  • Current branch: !git branch --show-current
  • Working tree: !git status --short
  • Arguments: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/args.sh" '$ARGUMENTS'

This command resolves what to review, then runs the review loop: code-review's code-review:review workflow, an approval gate, fixes and a delta review. The reviewers never see this conversation; the session that wrote the code holds every reason it looks right.

1. Resolve the scope

Read the Arguments JSON from Context first. spec is the --spec <value> (null when absent) and effort is the level (high when null). Two flags the parser does not know stay in positional: --base followed by its branch (remove both), and a bare --effort left in front of its level (drop it). What remains of positional, joined with spaces, is the feature, possibly empty.

  • --base <branch> → the work is committed. Scope: branch <current> vs base <branch>. The working tree must be clean: fixes are told apart from the reviewed code by git diff, so edits already there would be taken for fixes. If it is dirty, stop and ask the user to commit or stash.
  • Otherwise the work is the uncommitted tree (/feature-dev:tdd leaves it there). If the working tree is clean, stop: there is nothing to review. Run git add -u for modified tracked files. If there are untracked files (not ignored), list them and ask once with AskUserQuestion which to stage: All of them (Recommended) / None, or the paths through Other. A new module is usually part of the feature; a scratch file or a stray .env is not, and only the user can tell them apart. Scope: staged changes (git diff --cached).

The index becomes the reviewed state. Fixes land in the working tree on top of it, so git diff is exactly what the fixes changed, and that is what the delta review reads.

Spec sources. The spec axis needs spec-file <path> or issue <N> closes lines:

  1. spec set: a path → spec-file <path>; #N → issue <N> closes.
  2. Else the feature: a slug or SPEC-*.md path in the arguments, or else the single entry of ${CLAUDE_PLUGIN_ROOT}/scripts/features.py list --json --root <repo root> whose status is implemented or running (several → AskUserQuestion; none → no feature). From its folder .feature-dev/features/<slug>/, add spec-file for its SPEC-*.md and, if feature.json has an issue, issue <N> closes.
  3. Else none: the spec axis is skipped, and the report says so.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago Changed · -36 lines · +14 tokens per session 05aa3149960e
  2. 28d ago Changed · +1 lines 468ccd10ad9f
  3. 29d ago Changed · +38 lines · -14 tokens per session f7fd10da3b92
  4. 1mo ago First seen · 102 lines · 119 tokens per session scan A 2f23a24a5321

Subscribe to this mod's changes

harden is a command published in the GitHub repository juanmhidalgo/claude-plugins (8 stars, last pushed 18d ago), licensed MIT. It adds 119 tokens to every session and 1,159 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-29.

Related

harden compared with commands from other repositories

harden next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hardenjuanmhidalgo/claude-pluginsCommand818d agoMITA119Claude Code
improveSuperClaude-Org/SuperClaude_FrameworkCommand24k4d agoMITA15Claude Code
spec-reviewfengshao1227/ccg-workflowCommand6.0k12d agoMITA16Claude Code
impl-reviewgmickel/flow-nextCommand735yesterdayMITA23Claude Code
resolve-prgmickel/flow-nextCommand735yesterdayMITA26Claude Code
reviewgmickel/flow-nextCommand735yesterdayMITA8Claude Code
prgmickel/flow-nextCommand735yesterdayMITA6Claude Code