
Repo Hygiene Scanner
Scans a repo for small docs, test and code hygiene issues and batches safe fixes onto one branch
- Repository
- QwenLM/qwen-code
- Stars
- 28,880
- Licence
- Apache-2.0
- Files
- 4 files
What it does
When installed, this skill tells an AI coding agent how to run a two-phase automated cleanup inside the Qwen Code project's scheduled GitHub Actions workflow. In the first phase the agent searches the repository read-only for small, certain hygiene problems such as stale docs or simple test and code issues. In the second phase it makes minimal fixes, commits each one separately, runs the project's build, typecheck, lint and tests after each change, and leaves a single branch for human review. It is built for maintainers of that repository rather than general users.
Great for
- Maintainers of the QwenLM/qwen-code repository who run or review the scheduled hygiene workflow
- Developers studying how to split an automated agent job into a scan phase and a fix phase with verification gates
Skip it if
- Ordinary users wanting a general cleanup tool for their own projects: it is written around this repo's workflow, sandbox, scripts and commands, and it assumes no GitHub credentials for the agent
- Running unattended on important branches without review: it commits model-generated changes and depends on the workflow's safeguards for pushes and PRs
Try asking
- “Run the scan phase to find small documentation or test inconsistencies in the repository and write findings.json”
- “Run the fix phase on existing findings to commit one Conventional Commit per accepted fix to a named branch”
- “Review report-only findings that exceed the size threshold and were filed as a consolidated issue”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 4 original files, the Apache-2.0 licence and an attribution note.
repo-hygiene.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip repo-hygiene.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip repo-hygiene.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Read the workflow file and the scripts before enabling this in a fork, since the skill depends on specific CI steps and a Docker sandbox
- Review each commit on the generated branch individually, as each fix is designed to be auditable or revertible
- Treat the report-only issue as a backlog of changes the agent judged too large to commit automatically
What's inside
- references/fix.md
- references/scan.md
- scripts/run-agent.mjs
- SKILL.md
Redistributed unmodified from QwenLM/qwen-code under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.