# Public Repo Hygiene

> Public Repo Hygiene

- Skill: `sahit-sai/public-repo-hygiene` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add sahit-sai/public-repo-hygiene`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sahit-sai/public-repo-hygiene/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: sahit-sai (https://skillmd.com/u/sahit-sai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/sahit-sai/public-repo-hygiene

---

# Public Repo Hygiene

Use this skill when working in a public repository or preparing changes for public history.

## Instructions

- Inspect staged and unstaged changes before committing.
- Do not commit private planning notes, local vault exports, credentials, tokens, or machine-specific paths.
- Keep project design records outside the public repository when the user requests it.
- Add narrow `.gitignore` entries for generated local artifacts.
- If sensitive content has already been committed, stop normal work and plan a history rewrite before pushing more commits.
- Verify the final commit only contains intended public artifacts.

## Checks

```bash
git status --short
git diff --cached --stat
git diff --cached
git log --oneline -5
```

Search for obvious private material when risk is high:

```bash
rg -n "token|secret|password|PRIVATE|/Users/|Cassian Note|docs/" .
```

