Skip to content
Back to skills

Using Repo Hygiene

ASecurity

Use when starting any conversation in a repo — establishes the repo-hygiene skill set and the moments each sub-skill applies

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmenttestingapi

Works with

  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add gg-mo/repo-hygiene --skill using-repo-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Using Repo Hygiene?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Using Repo Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gg-mo-using-repo-hygiene/badge)](https://www.skillsdirectory.com/skills/gg-mo-using-repo-hygiene)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: using-repo-hygiene
description: Use when starting any conversation in a repo — establishes the repo-hygiene skill set and the moments each sub-skill applies
---

<SUBAGENT-STOP>
If you were dispatched as a subagent to execute a specific task, skip this skill.
</SUBAGENT-STOP>

# Using Repo Hygiene

This plugin keeps a codebase healthy as you work in it. Each sub-skill triggers on a specific moment — invoke it then via the `Skill` tool.

**Important override:** This skill set INVERTS the usual "no comments unless WHY is non-obvious" default. In a repo using this plugin, docstrings on functions and file headers ARE expected. Quality matters (see `repo-hygiene:writing-docstrings`); silence does not.

## Trigger Table

| When this happens | Invoke |
|---|---|
| Starting substantive work in a repo you don't already understand | `repo-hygiene:orienting-to-repo` |
| Writing or modifying a function, class, or source file | `repo-hygiene:writing-docstrings` |
| About to add lines to a file >400 lines, or your edit pushes one past that | `repo-hygiene:keeping-files-small` |
| Changing a public API (renamed export, new flag, new route, changed signature) | `repo-hygiene:keeping-docs-fresh` |
| Adding business logic, branching code, or fixing a bug | `repo-hygiene:testing-new-code` |
| Drafting any commit message | `repo-hygiene:writing-commit-messages` |
| User asks to commit, merge, or push | `repo-hygiene:gating-commits` |
| User asks to "clean up" or apply repo-hygiene to an existing codebase | `repo-hygiene:cleaning-existing-codebase` |

## Priority

1. **User instructions win.** If the user says "skip the orientation," skip it.
2. **Coordinate with peer skill sets.** If `superpowers:test-driven-development` is already in play, `testing-new-code` is satisfied by that workflow.
3. **Otherwise apply** at the triggers above.

## Bypass

A user can bypass a hygiene skill for one turn with `#hygiene-skip <reason>` in their message. Acknowledge the bypass and proceed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.