ai-repository-hygiene

ai-repository-hygiene is a skill for Codex from vasilistsavalias/conductor_for_codex. It costs 109 tokens per session (1,233 once invoked), scanned A, original, Apache-2.0.

A set of rules for keeping private AI-development material out of shared Git repositories. Git is a system for tracking code changes and collaborating on projects.

In plain words
What is it for?
Auditing repositories, classifying files, checking tracked paths, and preparing safe hygiene changes without deleting or moving tracked files automatically.
Why use it?
It helps prevent prompts, transcripts, logs, screenshots, caches, credentials, and personal workspace files from being shared accidentally. It preserves existing changes and avoids rewriting project history.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; mentions Gemini CLI.

Good fit Auditing repositories, classifying files, checking tracked paths, and preparing safe hygiene changes without deleting or moving tracked files automatically.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vasilistsavalias/conductor_for_codex --skill ai-repository-hygiene
Clone the repo
git clone --depth 1 https://github.com/vasilistsavalias/conductor_for_codex

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-repository-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene/github.svg)](https://agentmods.dev/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene)
Your own site
<a href="https://agentmods.dev/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene"><img src="https://agentmods.dev/badge/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-repository-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene"><img src="https://agentmods.dev/badge/skills/vasilistsavalias/conductor_for_codex/ai-repository-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,233 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01233
Opus 5 $0.00055 $0.00616
Sonnet 5 $0.00022 $0.00247
Haiku 4.5 $0.00011 $0.00123

Measured 12d ago against content hash 994b2b67cfa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ai-repository-hygiene scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/sidecar_hygiene.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ai-repository-hygiene/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Repository Hygiene

Keep shared repositories professional while preserving private development material in an external sidecar. Treat this as company compliance, not as a history-concealment mechanism.

Non-negotiable boundaries

  • Never rewrite Git history, force-push, delete branches, or remove worktrees as part of hygiene.
  • Never move or delete a tracked path automatically, even when its name contains agent, prompt, Gemini, Claude, or Codex.
  • Never treat product-owned runtime prompts, model code, RAG logic, evaluations, or AI documentation as private workspace debris.
  • Never move .env, credentials, keys, dependencies, databases, indexes, build outputs required in place, or configuration with a fixed runtime path.
  • Never discard dirty worktree changes.
  • Never commit or push unless the user explicitly requests it.
  • Never print secret contents. Report paths only.
  • Compare paths case-insensitively against the complete Git index before moving. Windows can expose gemini.md and tracked GEMINI.md as the same file.

Read references/policy.md when classification is ambiguous or when producing a compliance report.

Modes

Audit

Use audit by default. Make no changes.

python "$env:USERPROFILE\.codex\skills\ai-repository-hygiene\scripts\sidecar_hygiene.py" --repo .

The audit identifies safe sidecar candidates, tracked blockers, public ignore-file findings, protected paths, the inferred sidecar, and current Git status.

Apply

Use apply only when the user authorizes migration.

python "$env:USERPROFILE\.codex\skills\ai-repository-hygiene\scripts\sidecar_hygiene.py" --repo . --apply

Pass --sidecar-root <path> when the repository is not under a conventional github_repos/ directory. Apply mode moves only preflighted untracked root candidates and creates <repo>.code-workspace plus migration-report.json in the sidecar. It does not edit ignore files.

Workflow

  1. Record the repository root, branch, git status --short, worktrees, and remotes.
  2. Run the audit script. Do not infer safety from .gitignore or .git/info/exclude; ignored files can still be tracked or runtime-critical.
  3. Inspect candidates using the policy classification:
    • move private human/agent workspace artifacts;
    • retain product-owned and runtime-required files;
    • leave tracked policy violations in place and report them for an ordinary reviewed repository change;
    • route secrets to approved secret storage, not the sidecar.
  4. Apply migration only after the candidate list is safe.
  5. Inspect remaining ignored/untracked files, including nested artifacts the root-candidate script intentionally does not move automatically.
  6. Clean ignore files narrowly:
    • keep .gitignore limited to shared project outputs, environments, runtime data, and standard OS/editor files;
    • keep .dockerignore limited to files that must not enter the build context;
    • minimize .git/info/exclude after sidecar migration, retaining only genuine machine-local runtime paths.
  7. Before removing a Docker exclusion, inspect Dockerfiles and Compose build contexts. Git exclusions do not affect Docker.
  8. Verify behavior and repository integrity.
  9. Report current-tree compliance separately from historical findings. Do not imply that ordinary deletion removes old Git objects.

Read the full file on GitHub · 109 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 109 lines · 109 tokens per session scan A 994b2b67cfa0

Subscribe to this mod's changes

ai-repository-hygiene is a skill published in the GitHub repository vasilistsavalias/conductor_for_codex (20 stars, last pushed 23d ago), licensed Apache-2.0. It adds 109 tokens to every session and 1,233 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.