/flagrare:staleness-auditfrom Flagrare
Pre-commit audit that diffs staged changes against repo canaries (README, decision log, roadmap, public API, doc comments, release notes, test discipline) and automatically fixes mechanical drifts while flagging judgement calls.
Ships in Flagrare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run this before every commit. The goal is simple: a commit should leave the docs, types, and roadmap in a state consistent with the code it ships. Drift between code and its surrounding narrative is how projects rot.
Don't be lazy, actually run the checks. Each one is a grep or a diff. The whole audit should take under 30 seconds.
You (the model) invoke this skill yourself, before staging the final commit. The rule: every commit goes through this checklist. If you're amending or splitting commits, run it per commit.
git diff --staged --stat, what's about to be committedgit diff --staged, the actual hunks (only read the ones you need)git status, what's unstaged or untracked that might also be driftWork through the checks in order. For each finding, either fix it now (if the fix is mechanical and in scope) or note it explicitly in the commit body / the response to the user (if it's a judgement call).
The README.md is the project's storefront. After every commit, ask:
## Status (or the equivalent line) still match reality? Words like "pre-alpha", "bootstrapping", "WIP", "coming soon", "not yet implemented" need to age out as features ship. If this commit moves the needle, update the status text.- [ ] X for things that just shipped in this commit (or earlier ones not yet ticked) should become - [x] X. Conversely, anything ticked that's been ripped out needs to be re-opened or removed.If the project has a decision log (ADRs in docs/decisions/, RFCs, or equivalent), check:
Status: says "Accepted" but is actually superseded by a later one, update status on both.If the project has no decision log, skip this check.
If the project has a single public entry point, verify exports are in sync after every commit touching source files. The entry point varies by language:
src/index.ts (or the barrel specified in package.json#exports)<package>/__init__.pysrc/lib.rs (pub use re-exports)For every export newly added in non-entry source files, is it re-exported from the entry point? For every removed export, is the entry point cleaned up?
If the project has no single entry point (e.g. a CLI tool, not a library), skip or adapt this check.
For the project's documentation format, spot-check staged source files:
export class / function / interface / type / const without a leading /** … */?pub fn / pub struct / pub trait without /// doc comments?Flag any new public symbol without documentation. Flag existing doc comments that still say TODO or @todo.
If the commit touches source files, ask: is this user-observable?
.changeset/*.md file (run pnpm changeset or npx changeset to draft)changelog.d/ fragmentCHANGELOG.mdIf the project has a CONTRIBUTING.md (or equivalent), after any commit that adds or removes tooling:
package.json, Cargo.toml, pyproject.toml, go.mod, etc.).Test names should describe behaviour, not method names. Grep newly added/changed test files for:
it("works"), test("test 1"), it("should work correctly"), it("returns the value"), vague or method-centric. Flag.it("rejects an out-of-range index with a RangeError carrying the attempted value").This applies regardless of framework (Jest, Vitest, pytest, RSpec, Go test, etc.).
Grep the staged diff for tokens that shouldn't ship:
TODO, FIXME, XXX, HACK, @todo, fine if they reference an issue (TODO(#42)); not fine if naked.console.log, debugger, .only, .skip in test files.If external research was conducted during this session (WebFetch, WebSearch, or Explore-agent fetches of URLs outside the repo) and the findings informed this commit:
/flagrare:research-catalog invoked before the synthesis was returned? If not, run it now before committing.If no external research was conducted this session, skip this check.
If the project uses a ~/.claude/projects/<path>/memory/ directory with [[name]] crosslinks, and this commit touches docs or memory files, check:
[[some-name]] resolves to a file some-name.md in the memory directory for this project.MEMORY.md index has an entry for every .md file (other than itself).To find the memory path: derive it from pwd, the project memory dir is ~/.claude/projects/<pwd-with-slashes-replaced-by-dashes>/memory/. If the directory doesn't exist, skip this check.
Before invoking git commit, verify the message matches the project's commit convention. Check the recent git log to identify what convention is in use, then verify the new message follows it. Common conventions:
✨ feat(scope): subjectfeat(scope): descriptionRegardless of convention: subject should be ≤ 72 chars; body explains why when the change is non-obvious.
If this commit touches CI/CD config or dependency management config, verify that any automated committers (Renovate, Dependabot, release bots, merge bots) produce messages that match the project's commit convention.
Check the relevant config files for the project's CI platform:
.github/workflows/, .github/renovate.json, .github/dependabot.yml.gitlab-ci.yml, .gitlab/The rule of thumb: if a tool can push a commit, its message template must satisfy the project's commitlint rules, or the merge strategy must ensure a manually-written squash message.
Whenever this commit touches CI config files:
When you're done, give the user a concise audit line for each check, ✓ if clean, → fixed: … if you applied a mechanical fix, ⚠ needs decision: … if it's a judgement call. Don't pad with checks that found nothing.
If any check found a real issue, fix it before committing unless the user explicitly opted out of fixing this round.
/flagrare:write-docs for documentation driftIf any of checks 1, 2, 4, 5, or 6 surfaced drift (README staleness, decision log issues, missing doc comments, missing release notes, contributor guide hygiene), invoke /flagrare:write-docs to rewrite the affected sections. Pass it the specific files and the nature of the drift so it can apply craft-level prose rather than mechanical patching.
Skip this step when:
docs/style-guide.md, WRITING.md), or user instructions in CLAUDE.md / memory that specify how that file should be written. When project-specific or user-specific writing rules exist, follow those directly instead of delegating to /flagrare:write-docs.If neither exception applies and the fix requires rewriting prose, descriptions, or explanations, /flagrare:write-docs owns the quality of that output.
/flagrare:release-checkOnce the commit lands, invoke /flagrare:release-check immediately. That skill answers the post-commit question "is a release due?" and drafts a value-focused CHANGELOG entry when one is. Cheap when nothing's pending.
Project rot starts when README says "pre-alpha" three months after v1.0, when the decision log shows choices nobody remembers the reasons for, when the roadmap shows boxes already ticked elsewhere. Catching drift at commit time costs ~30 seconds. Catching it at "why is our README lying" time costs hours and credibility.
What SKILL.md sets; muted values are Claude Code's defaults
43 skills in this plugin
/atdd-planProduce an ATDD-first implementation plan in Claude Code's native plan mode, with named design patterns called out where they earn their keep. The skill enters plan mode automatically (via the EnterPlanMode tool), runs /flagrare:codebase-explore to ground the plan in the actual codebase, then produces a plan-mode plan that MUST include both: (1) 3-5 acceptance tests in plain English defining 'done' before any implementation, written behavior-first against the public API only; and (2) any non-trivial structural decisions named as design patterns with a one-line rationale. Plan mode's native approve/edit/reject button UI is the close, ExitPlanMode is how the skill ends. Use whenever the user wants to plan a feature, fix, or refactor, 'how should we implement X', 'plan this', 'let's design X', 'where do we start on Y'. Tests follow Kent Dodds Testing Trophy: behavior over implementation, integration-heavy, public-API-only, refactor-proof. The skill stops at the plan; it does not write implementation code./brag-docGenerate a comprehensive, impact-framed brag-doc entry for a chosen time window (day, week, biweek, month, or custom). Pulls authored PRs, reviews given, commits, deploys, and linked tickets across GitHub, local git, and configured MCPs, then synthesises a themed narrative, leading with outcomes, quantifying impact, owning the work in first-person past tense, separating IC contributions from amplification, and naming the judgment exercised. Output is designed to drop straight into a developer journal, a personal bragging sheet, or a performance-review packet. Accepts a mode argument, `/flagrare:brag-doc resumancer` renders the output as ready-to-paste Resumancer CLI commands (`resumancer impact "..." --branch ...`) instead of markdown. Use whenever the user says "brag doc", "brag sheet", "what did I do this week", "weekly recap", "monthly recap", "performance review prep", "what should I tell my manager", "summarise my impact", "career log entry", "give me my wins", "biweekly recap", or any variant about looking back over a longer window than a single day's standup. Also trigger near review season ("self-review", "perf packet", "evaluation prep"), and on phrases like "log my wins to resumancer" or "make resumancer entries for this week" (which should pass the `resumancer` mode). For windows longer than about a month, a tenure retrospective, a departure record, or "everything I did at this company", hand off to `/flagrare:impact-timeline` instead; this skill's window tops out at a month./bug-bashProgrammatic bug bashing, ingest a prescribed test plan (Notion, markdown, pasted spec), drive a real running system (browser via Chrome DevTools / Playwright MCP, backend via API tools when relevant), run every prescribed case with evidence, then do exploratory passes (viewports, edge inputs, multi-actor flows, codebase-driven concerns, additional context like meeting transcripts, emails and links checked in the real inbox with a control case, other languages, failures and races) without ever claiming a bug it didn't itself reproduce. Fills free-text fields with tagged, playful test data that also probes something (unicode, HTML, template syntax, length). Lands results in a local MD file by default, optionally writes back to the source (Notion bug DB, test case Eng QA columns, etc.) in the user's voice. Use whenever the user says 'bug bash', 'QA this feature', 'run the test cases', 'go through this test plan', 'verify these scenarios', 'do a bash on X', when they hand over a Notion test case page, or any time programmatic end-to-end verification of a feature against a checklist is needed. Also use it when a smoke test passed but the user wants more cases tested, or asks 'what else should we test' and then 'test it yourself'. Make sure to use this skill even when the user just says 'test this Notion page' or 'check these scenarios', anything that smells like running someone else's prescribed test plan against a live system./careerRun the career skills that are due, in one pass, and return one short combined digest plus an updated board. It reads timestamps and flags to decide: the promotion map's first run when there is none (after asking), a refresh of map sections that are older than 90 days or flagged by a scan, an opportunity scan when the last one is a month old, and an impact scan every time. The digest leads with the initiative the user owns and its next step, then up to 5 threads worth weighing in on, one line on the promotion map (open rubric rows, people who haven't seen the work, when to talk to the manager, the packet deadline), anything that needs the user, and an "all answering, nothing owned" warning when the user keeps replying but owns nothing. A scheduled run (from /loop or a schedule) never asks questions and never posts; it lists what needs the user as pending. Use when the user says "career", "career check", "career digest", "run my career skills", "what should I do for my promotion this week", "daily career scan", or sets up a recurring career run. Also trigger for a scheduled career run./codebase-exploreExplore the codebase to map conventions, reusable utilities, analogous features, and data flows relevant to a planned change. Returns raw findings (file paths, patterns, code snippets), does NOT produce a plan. Used by /flagrare:atdd-plan as its codebase understanding step./communication-setupSet up, change or remove how Claude talks to you: a custom output style with your reply rules, a reminder of those rules on every message, and a Stop hook that quietly nudges Claude when a reply runs a little long and blocks one that runs far past your limit. Use when the user says Claude's replies are too long, exhausting, hard to skim, full of process narration or caveats, 'you make me work for the information', 'talk to me shorter', 'communication setup', 'set up how you talk to me'; when the length check or reply-length hook blocked a reply it shouldn't have, or the user wants a different limit or style; or asks to remove or undo it ('remove communication setup', 'go back to normal replies').npx claudepluginhub flagrare/agent-skills --plugin flagrareOther plugins' skills for the same job