agentleFS
jinhuang712jinhuang712/claude-code-broom/skills/scan/SKILL.md

scan

Skill0 starsChanged 4 days agoMITView on GitHub

Scan code with broom and list what it finds, fixing nothing - lint findings, type errors and code smells in a scope the user gives in their own words (the whole repo, a module, some files, the files changed lately, what's staged, a commit or this branch). Use for /broom:scan, or when asked to scan, check, lint or look over the quality of code without changing it.

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use coverage, metrics and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    Also in 4 projects that use this

  • GoogleSkill

    metrics

    Expertise in analyzing time-series repository health metrics, investigating root causes, and proposing proactive workflow improvements.

    Also in 3 projects that use this

  • MicrosoftSkill

    report

    Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.

    Also in 6 projects that use this

  • MicrosoftSkill

    discover

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 4 projects that use this

  • LangChainSkill

    migrate

    Bring a person's local coding-agent setup into Robin — past Claude Code and Codex conversations become Robin threads, their standing preferences become personal Robin instructions, and their skills become personal Robin skills. Read this whenever someone asks to import, migrate or move over their sessions, conversations, history, memories, CLAUDE.md, AGENTS.md or skills.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Always pass --check: without it broom sweep formats the files.

    line 33
  2. Very specific:

    What wasn't measured: every tool broom names as missing, since counts without it read as cleaner than the code is.

    line 50
  3. Very specific:

    When a list is cut short, say how many more there are.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The user ran this command to see what is wrong, not to have it fixed. Change no file: no edit, no format, no broom known --accept. Get every finding from broom, and write no script. Run the commands from the repo root.

1. Pick the scope

Turn the request ($ARGUMENTS, or the conversation) into one of two kinds of scan. With no scope given, scan the whole repo.

An area scan lists everything that is there:

The user saysCommands
nothing, "the whole repo", "everything"broom sweep --all --check, then broom diagnose
"src/api", "this module", "these files"broom sweep --all --check <paths>, then broom diagnose <paths>

A change scan lists what a change made worse, and the old smells in the code it touched:

The user saysCommand
"my changes", "what I changed lately"broom sweep --check
"what I staged", "what's about to be committed"broom sweep --check --staged
"the last commit", "the last 3 commits"broom sweep --check --base HEAD~1, broom sweep --check --base HEAD~3
"commit abc123", "since <commit or tag>"broom sweep --check --base abc123~1, broom sweep --check --base <rev>
"this branch", "my PR"broom sweep --check --base "$(git merge-base HEAD <default branch>)"
any of these "in src/api"add the paths
  • Always pass --check: without it broom sweep formats the files.
  • A scan from one commit covers every change since it, later commits and uncommitted work included. Say so when the user named one commit.
  • The default branch is usually main; check with git symbolic-ref refs/remotes/origin/HEAD when unsure.
  • broom diagnose measures with no time cut. On a repo of thousands of files say that it takes a while before you start it.
  • Issues accepted earlier are collapsed: they count in the totals, the output says how many, and no list shows them. Add --include-known when the user asks to see them.

2. Report

Answer in a short reply, not in the commands' output.

  1. What was scanned: the scope, the kind of scan and how many files.
  2. What was found, most severe first: type and compile errors, lint findings, smells past the hard limit, hints, nits. Give each group its count and its worst places as file:line. For an area scan add the hotspot files and any check-up counter that stands out.
  3. What wasn't measured: every tool broom names as missing, since counts without it read as cleaner than the code is. Offer /broom:setup for them.

When a list is cut short, say how many more there are. broom diagnose --out <file> writes the whole report to a file: offer it, and write it only when the user says so.

Fix nothing, even a finding that would take one line. End by saying that you can fix what they pick, worst first, and wait for their answer.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.