# Repo Hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator...

- Repository: https://github.com/QwenLM/qwen-code (28858 stars)
- Category: Testing
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add QwenLM/qwen-code --skill repo-hygiene -g -a claude-code -y`
Codex: `npx skills add QwenLM/qwen-code --skill repo-hygiene -g -a codex -y`
Cursor: `npx skills add QwenLM/qwen-code --skill repo-hygiene -g -a cursor -y`
Gemini CLI: `npx skills add QwenLM/qwen-code --skill repo-hygiene -g -a gemini-cli -y`

## Description

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Repo Hygiene

The workflow owns scheduling, GitHub context, credentials, checkout, sandbox
setup, dedup checks, pushes, PR creation, comments, and final independent
verification. This skill owns the model-driven scan, the code changes, and
pre-commit verification.

The run is split into two phases executed as separate CI jobs: the scan phase
(read-only, produces findings) and the fix phase (reads findings, edits code).

## Workflow

Your invocation names the phase you are in. Read ONLY that phase's document
before doing anything else, then follow its steps:

- Scan phase → read `references/scan.md`
- Fix phase → read `references/fix.md`

One full run produces ONE branch (named by `--branch`) that batches every
accepted fix, with one Conventional Commit per finding so reviewers can audit
or revert each fix independently. Quality beats quantity: a run that finds
nothing worth fixing is a valid, silent outcome.

## Shared Rules

The rest: https://github.com/QwenLM/qwen-code/blob/HEAD/.qwen/skills/repo-hygiene/SKILL.md
