repo-hygiene
Skill by QwenLM
Scans a repository for small, certain docs, test and code hygiene issues and fixes them on one batched branch. It is built for the scheduled repo-hygiene workflow in GitHub Actions and for operator dry-runs.
Install repo-hygiene
Built from the published package, never by AI.
git clone --depth 1 https://github.com/QwenLM/qwen-code /tmp/qwen-code && mkdir -p ~/.claude/skills && cp -r /tmp/qwen-code/.qwen/skills/repo-hygiene ~/.claude/skills/repo-hygieneRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/QwenLM/qwen-code /tmp/qwen-code && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/qwen-code/.qwen/skills/repo-hygiene ~/.gemini/antigravity-cli/skills/repo-hygieneAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Repo Hygiene is an agent skill for the scheduled repo-hygiene workflow that runs from GitHub Actions, and for operator dry-runs. It scans the repository for small, certain docs, test and code hygiene issues and fixes them as one batched branch. The skill owns the model-driven scan and the code changes, while the workflow handles scheduling, credentials, checkout, pushes, pull requests and comments.
The run has two phases in separate CI jobs. The scan phase is read-only and produces findings. The fix phase reads those findings, edits code and runs verification after each fix, such as npm run build, typecheck, lint and focused Vitest runs. Each accepted fix gets its own Conventional Commit, and findings above the size threshold are reported only.
Written from the project's SKILL.md and checked against it.
What it can do
- Scan phaseReads the repository without edits and produces a findings.json audit trail.
- Fix phaseReads findings and edits code for small, single-root-cause fixes.
- Batched branchPuts every accepted fix on one branch, with one Conventional Commit per finding.
- Pre-commit verificationRuns build, typecheck, lint and focused Vitest after each individual fix.
- Report-only findingsWrites larger fixes to report-only.md instead of committing them.
- Settings schema regenerationRuns npm run generate:settings-schema when a settings source changes.
What you need
- GitHub Actions workflow
- Docker sandbox with tools.sandbox: docker enabled
- npm toolchain for npm ci and npm run build
Try asking
- Run the repo-hygiene scan phase on this checkout and list findings
- Apply the fix phase to the current findings and commit each fix
- Summarize the report-only findings for a consolidated issue
Good to know
- Has no GitHub credentials and cannot push, comment or open pull requests.
- Fixes spanning more than three production files or over 100 production lines are report-only.
- Deterministic scanning uses rg only, which is provided by the Docker sandbox image.
- Does not run the CLI, examples, release scripts or networked package commands.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .qwen/skills/repo-hygiene/SKILL.md, .qwen/skills/repo-hygiene/scripts/run-agent.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/fix.md4 KB -
references/scan.md11 KB -
scripts/run-agent.mjs7 KB
Alternatives to repo-hygiene
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
repo-hygiene: common questions
Does the repo-hygiene skill push changes to GitHub?
No. The skill has no GitHub credentials and the workflow handles all network writes, including pushes, comments and pull requests.
How are fixes organized in the branch?
One run produces one branch that batches every accepted fix, with one Conventional Commit per finding so each fix can be audited or reverted separately.
What happens if a fix is too large?
Any finding whose minimal fix spans more than three production files or more than one hundred production lines is report-only and filed as a consolidated issue.
How do I install repo-hygiene?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is repo-hygiene free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is repo-hygiene safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to repo-hygiene?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
