name: health-check description: Run a repository-wide maintenance pass before merge/release. Covers cleanup, formatting, tests, docs, security, and CI checks.
health-check Skill
Use this skill to run a repository-wide maintenance pass before merge/release.
Goal
Keep the repository clean, reproducible, and aligned across code, tests, CI, and documentation.
Scope
- Detect and remove unnecessary code/definitions/dependencies where safe.
- Ensure repository formatting is fully clean.
- Review dependency freshness and apply safe updates.
- Verify tests/build checks pass.
- Ensure markdown/docs reflect current behavior.
- Run security and release-readiness checks.
Required Procedure
- Baseline and inventory
- Check current git status and changed files.
- Identify generated/untracked artifacts that should not remain.
- Code and dependency cleanup
- Remove unused code/imports/definitions that are clearly dead.
- Review dependencies for obvious removals or outdated versions.
- Separate risky major upgrades from safe upgrades in reporting.
- Formatting and consistency
- Run repository formatting commands.
- Re-run format checks to confirm zero drift.
- Validation gates
- Run:
cargo run -p xtask -- fmt-checkcargo test -qcargo check --workspace
- Documentation sync
- Verify README/docs match current code behavior and defaults.
- Check command examples, config examples, option names, and stated limitations.
- Security pass
- Apply checklist from
skills/rust-security-checklist/SKILL.md:- input/resource limits
- trust boundary validation
- key/file handling
- command execution safety
- logging hygiene
- Compatibility and impact pass
- Confirm config compatibility implications are identified.
- Confirm
config.example.tomland docs are aligned with runtime behavior.
- CI reproducibility pass
- Ensure local validation commands match CI expectations.
- Flag workflow drift (missing checks, stale commands).
- Release readiness pass
- Detect blockers for release quality:
- leftover generated artifacts
- stale docs
- unresolved TODOs that affect users
- broken or outdated command examples
- Language consistency pass
- Check for unintended Japanese text in repository files.
- Keep user-facing and project policy docs consistent with the repository language policy.
- Report intentional exceptions explicitly if any exist.
- Skill-policy conformance pass
- Verify that current code and workflow still conform to repository skills
(
sptth-dev,rust-error-handling,rust-testing,rust-security-checklist). - Identify mismatches between implemented behavior and skill guidance.
- Propose concrete remediation when drift is detected.
Output Format
Provide:
- Changed files
- What was auto-fixed
- What needs maintainer decision
- Validation results (fmt/test/check)
- Residual risks or follow-ups
Guardrails
- Prefer minimal safe edits; avoid broad refactors unless requested.
- Do not silently introduce breaking dependency upgrades.
- Keep commit scope coherent if committing.
- Follow commit format in
docs/commit-message.mdand keep commit text in English.