hardwood: Skill for Claude Code

.claude/skills/hardwood-pr-git/SKILL.md

hardwood-pr-git is a skill for Claude Code from hardwood-hq/hardwood. It costs 163 tokens per session (5,149 once invoked), scanned A, original, Apache-2.0.

A procedure for rewriting Git history on Hardwood pull requests. A pull request is a proposed code change, and Git history is the record of its commits.

In plain words
What is it for?
Use it to rebase a pull request onto the main branch, change commit messages, combine commits, and safely push the rewritten history.
Why use it?
It helps preserve contributor identities and required issue keys while rebasing, squashing, rewording, or force-pushing commits.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is hardwood-hq/hardwood's own configuration. It tells Claude Code how to work on hardwood itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything hardwood configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hardwood-hq/hardwood. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hardwood-hq/hardwood/main/.claude/skills/hardwood-pr-git/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hardwood-hq/hardwood

Made for: Claude Code.

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 hardwood-pr-git

README.md
[![agentmods](https://agentmods.dev/badge/skills/hardwood-hq/hardwood/hardwood-pr-git/github.svg)](https://agentmods.dev/skills/hardwood-hq/hardwood/hardwood-pr-git)
Your own site
<a href="https://agentmods.dev/skills/hardwood-hq/hardwood/hardwood-pr-git"><img src="https://agentmods.dev/badge/skills/hardwood-hq/hardwood/hardwood-pr-git/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 hardwood-pr-git

Your own site · 80×15
<a href="https://agentmods.dev/skills/hardwood-hq/hardwood/hardwood-pr-git"><img src="https://agentmods.dev/badge/skills/hardwood-hq/hardwood/hardwood-pr-git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,149 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 232
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 356
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 391
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 384
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00163 $0.05149
Opus 5 $0.00081 $0.02575
Sonnet 5 $0.00033 $0.01030
Haiku 4.5 $0.00016 $0.00515

Measured 12d ago against content hash bf2497aab49a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

hardwood-pr-git 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 12d 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.

.claude/skills/hardwood-pr-git/SKILL.md · 392 lines

How it starts

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

Hardwood PR git surgery

History rewriting on hardwood-hq/hardwood PRs. The mechanics are mechanical but unforgiving: a careless --amend silently replaces a contributor's committer identity with the maintainer's, and git's default comment character silently deletes the issue key every Hardwood commit subject starts with.

0. The # rule — read this before running any git command that commits

Every Hardwood commit subject starts with #, and # is git's comment character. Any git operation that runs a commit message through editor cleanup deletes every line beginning with # — which is the entire subject line.

What that does, in the two shapes it takes:

Message shape What git does What you see
#9 Subject + body Subject deleted, body's first paragraph is promoted to subject 01d5773 The write path's measurement stopped at the shape stage 17…
#9 Subject, no body Message becomes empty Aborting commit due to empty commit message.error: could not commit staged changes → the todo is rescheduled, and git rebase --continue loops forever without advancing

The second shape is the "the rebase aborts for no reason" symptom. A --continue loop that never terminates is not a stuck rebase — it is git refusing to write an empty commit, over and over.

The fix, applied once per clone. All worktrees of a clone share it:

git config core.commentChar ';'

This is one of two clone-local settings this repo needs; the other is in The phantom dirty tree. Both live in .git/config, which is not version-controlled — a fresh clone starts without them. Both are documented for contributors under Local git configuration in CONTRIBUTING.md; keep the two in sync.

Also pass it explicitly on every rewrite command, so the recipes still work in a fresh clone or a CI checkout where the config has not been set:

Read the full file on GitHub · 392 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. 12d ago First seen · 392 lines · 163 tokens per session scan A bf2497aab49a

Subscribe to this mod's changes

hardwood-pr-git is a skill published in the GitHub repository hardwood-hq/hardwood (372 stars, last pushed today), licensed Apache-2.0. It adds 163 tokens to every session and 5,149 once invoked, about $0.0008 per session on Opus 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-08-30.