1---2name: public-repo-hygiene3description: Public Repo Hygiene4---5# Public Repo Hygiene67Use this skill when working in a public repository or preparing changes for public history.89## Instructions1011- Inspect staged and unstaged changes before committing.12- Do not commit private planning notes, local vault exports, credentials, tokens, or machine-specific paths.13- Keep project design records outside the public repository when the user requests it.14- Add narrow `.gitignore` entries for generated local artifacts.15- If sensitive content has already been committed, stop normal work and plan a history rewrite before pushing more commits.16- Verify the final commit only contains intended public artifacts.1718## Checks1920```bash21git status --short22git diff --cached --stat23git diff --cached24git log --oneline -525```2627Search for obvious private material when risk is high:2829```bash30rg -n "token|secret|password|PRIVATE|/Users/|Cassian Note|docs/" .31```
Run npx skillmds@latest add sahit-sai/public-repo-hygiene in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Public Repo Hygiene It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
sahit-sai (@sahit-sai) published this skill. Their other Agent Skills are listed on their SkillMD profile.