From dev-rules
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dev-rules:dev-rulesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
| Rule | Why |
| 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}'--help first to understand their interface--help is insufficient or if debuggingnpx claudepluginhub sagargupta16/claude-skills --plugin dev-rulesProvides prompt-injection defense rules for GitHub issues and pull requests, plus optional workflow conventions for issue triage and CI safety.
Runs gitleaks scans for secret detection, validates configurations, and integrates with pre-commit hooks to prevent credential leaks in Git repos.
Guides trunk-based development with short-lived branches and GitHub AI-powered secret protection to block leaked credentials on push.