Conan Mods — Git skill for Claude Code
Claude Code plugin: guards for git, .env, secrets and rm, plus caveman mode, sounds and a status line.
How to install Conan Mods
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open C0nanT/conan-mods and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Conan Mods does
Claude Code plugin: guards for git, .env, secrets and rm, plus caveman mode, sounds and a status line.
Alternatives in Git
- 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
- Git Status — Read the Files and run the Commands and summarize the current state of the git repository 3.4k ★
- Get Commit Details — git show --name-status [COMMIT_ID] git diff [COMMIT_ID]^ [COMMIT_ID] 1.3k ★
README
`conan-mods`
A Claude Code plugin (a mod: TypeScript hooks that run inside Claude Code) with eight functions:
| Function | What it does |
|---|---|
caveman |
Adds ~/.claude/skills/caveman/SKILL.md to the session instructions. If the skill is missing, warns once per session with npx skills@latest add C0nanT/skills. |
git-guard |
Blocks destructive git commands (push, reset --hard, clean -f, branch -D, checkout ., restore ., rm), even with global options before the subcommand. Only a lone . counts for checkout/restore (restore .env.example passes), and rm --cached, reset --soft, rebase, switch, worktree and branch -d pass. |
dotenv-guard |
Blocks reading or editing .env / .env.* through Read, Edit, Write, MultiEdit and Bash, and Grep by its path (never its pattern). In Bash it blocks only words that are .env paths (cat ../.env, --env-file=.env, < .env, .env*), so text that only mentions .env ("import.meta.env", "\.env", a description) passes, and so do existence checks (test -e .env, [ -f .env ], ls .env*; redirects on them are still checked). .env.example, .env.sample, .env.dist and .env.template stay allowed. |
secret-guard |
Blocks reading or editing credential files through Read, Edit, Write, MultiEdit and Bash: ~/.ssh/* (except known_hosts, config and *.pub), id_rsa/id_dsa/id_ecdsa/id_ed25519, ~/.aws/credentials, ~/.config/gcloud/, ~/.azure/, *.pem, *.key, *.p12, *.pfx, .npmrc, .pypirc, .netrc, .git-credentials, ~/.docker/config.json and ~/.config/gh/hosts.yml. When HOME is missing or unreadable, the home-anchored rules cannot be checked, so paths starting with ~ or $HOME (and absolute paths under those directories) are blocked. In Bash the extension rules block only a file that exists, so code such as row.key passes; if the check fails, the command is blocked. |
rm-guard |
Blocks destructive shell commands: rm -rf (a |
Related Skills
Claude Code Statusline Ps
PowerShell 7 status line for Claude Code on Windows: context meter, cost, rate limits, git branch, mode badges
Commit Message Writer
Writes a Conventional Commits message from a git diff — tight subject line plus a why-focused body.
Git Dupe
A second Git repo inside .git for the files that are yours, not the project's (.env.local, notes, your own CLA
Glint
A liquid-glass status line for the Claude Code CLI: glass-gradient pill, context tracking, effort colors, git-
Stack List
Show the current stack — the chain of branches from the current branch up to main, plus any descendants below
Claudenews
Fill Claude Code's agent wait time with dev news — Hacker News, GitHub Trending & per-language sources in your
Related Agents
Mod Builder
Creates and changes Claude Code mods — plugins of function hooks behind a pane, band, status line, slash comma
Opensource Forker
Fork any project for open-sourcing. Copies files, strips secrets and credentials (20+ patterns), replaces inte
Caveman Compress
Compression engine wrapper — runs the caveman-compress CLI on a body artifact in scratch, returns the compress