plugins/dev-rules/skills/dev-rules/SKILL.md
Use when writing code, making git operations, handling secrets, reviewing PRs, or working with dependencies. Enforces git safety, security best practices, PR workflow discipline, and context-efficient development patterns. Auto-activates as guardrails.
npx skillsauth add sagargupta16/claude-skills dev-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Rule | Why |
|------|-----|
| Never force push to main/master | Destroys team history, breaks CI |
| Never git reset --hard without confirmation | Irreversible data loss |
| Never amend published commits | Creates divergent history for collaborators |
| Never skip pre-commit hooks (--no-verify) | Hooks catch real issues |
| Stage specific files by name | git add . risks committing secrets or binaries |
| Never commit .env, credentials, API keys | Secrets in git history are permanent |
| Verify current branch before pushing | Avoid pushing to wrong branch |
.env files, API keys, tokens, passwords, or connection strings.env.example with placeholder values, never real credentials.gitignore (e.g., config/secrets.yml)When working with pull requests:
gh api repos/{owner}/{repo}/issues/{num}/commentsgh api repos/{owner}/{repo}/pulls/{num}/commentsgh api repos/{owner}/{repo}/pulls/{num} --jq '{mergeable, mergeable_state, draft}'gh api repos/{owner}/{repo}/compare/{base}...{head} --jq '{behind_by, ahead_by}'When writing or reviewing CLAUDE.md files:
<important> TagsWrap must-follow rules in <important> tags so they survive long contexts:
<important>
- Never commit .env files or API keys
- Always run tests before pushing
- Never force push to main/master
</important>
Use <important if="..."> for conditional rules:
<important if="making git commits or pushing code">
- Never add Co-Authored-By trailers
- Use conventional commit format
</important>
.claude/rules/*.md files/compact at ~50% context usage -- don't wait for auto-compaction/rewind when an approach fails -- don't leave failures in context--help first to understand their interface--help is insufficient or if debuggingtesting
Use when the user asks to audit a session for uncaptured learnings. Activates on "audit this session", "session audit", "what did we miss", "end of session check", or "/starter-session-audit". Scans the conversation for corrections, preferences, decisions, and new context, then proposes where to save each.
testing
Use when setting up new repositories, auditing existing ones, or preparing repos for public visibility. Generates .gitignore, .env.example, README, and LICENSE files. Detects committed secrets and flags security issues.
tools
Use when triaging open Renovate PRs across your own repos into merge / close / defer. Activates on "renovate triage", "review dep PRs", "monthly deps", or on the 1st of a month if deps are grouped monthly.
development
Use when restructuring code without changing behavior -- extracting functions, renaming, moving files, reducing duplication, migrating between patterns (JS to TS, CJS to ESM), or addressing code smells. Covers safe refactoring workflows for any language.