AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Dev Rules

skill-sagargupta16-claude-skills-dev-rules · by Sagargupta16

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.

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-sagargupta16-claude-skills-dev-rules

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-sagargupta16-claude-skills-dev-rules)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Dev Rules? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Development Rules and Guardrails

Git Safety

| 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 |

Security

Secrets and Credentials

  • Never commit .env files, API keys, tokens, passwords, or connection strings
  • Always use .env.example with placeholder values, never real credentials
  • If real credentials are found in git history, flag immediately - they must be rotated
  • Add secret config files to .gitignore (e.g., config/secrets.yml)

Code Security

  • Validate all user input at system boundaries (API endpoints, form submissions)
  • Use parameterized queries - never string concatenation for database queries
  • Sanitize data before rendering in templates (prevent XSS)
  • Use bcrypt or argon2 for password hashing, never MD5 or SHA for passwords
  • Set CORS origins from environment variables, never wildcard in production

Dependency Security

  • Check for known vulnerabilities before adding new packages
  • Prefer well-maintained packages with active security response
  • Pin dependency versions in lock files

PR Workflow

When working with pull requests:

  1. Always read comments first before making changes
  • gh api repos/{owner}/{repo}/issues/{num}/comments
  • gh api repos/{owner}/{repo}/pulls/{num}/comments
  1. Check merge readiness before acting
  • gh api repos/{owner}/{repo}/pulls/{num} --jq '{mergeable, mergeable_state, draft}'
  1. Check how far behind the base branch
  • gh api repos/{owner}/{repo}/compare/{base}...{head} --jq '{behind_by, ahead_by}'
  1. After fixing/rebasing your own repo's PR - comment a summary of what was done. On upstream or fork PRs, never comment without the user's or maintainer's explicit go-ahead
  2. Before deleting a fork - verify zero open PRs from that fork
  3. When rebasing - squash into clean commits, match project's commit style
  4. Never force-push to someone else's branch - only to your own fork branches

CLAUDE.md Authoring Rules

When writing or reviewing CLAUDE.md files:

Rule Statement

State each rule once, plainly, with the reason when it isn't obvious. Current Claude models follow brief plain instructions reliably; repetition, ALL-CAPS, and emphasis markup cause overtriggering rather than better compliance.

For rules that must never slip (secrets, force-push, destructive commands), enforce them mechanically with PreToolUse hooks instead of prompt emphasis -- a hook cannot be ignored in a long context.

Length and Structure

  • Keep each CLAUDE.md under 200 lines -- rules get ignored beyond this
  • Split detailed rules into .claude/rules/*.md files
  • Structure: Overview > Commands > Conventions > Architecture > Critical Rules
  • Loading: ancestors load at startup, descendants lazily, siblings never

Context Optimization

Progressive Disclosure

  • Load metadata first (names, descriptions) before full content
  • Only read files when actually needed - don't preemptively read everything
  • For long files, read specific sections rather than the entire file

Context Health

  • Manual /compact at ~50% context usage -- don't wait for auto-compaction
  • Use /rewind when an approach fails -- don't leave failures in context
  • Spawn sub-agents for research tasks to keep main context clean
  • New task = new session (avoid context pollution)

Scripts as Black Boxes

  • Run helper scripts with --help first to understand their interface
  • Only read script source code if --help is insufficient or if debugging
  • Prefer calling tools over reading their implementation

Efficient Patterns

  • Present quick-reference tables upfront when multiple approaches exist
  • Route to specific patterns based on the task at hand
  • Don't load all reference material - load what's relevant

Anti-Patterns

  • Don't read every file in a directory when a targeted search suffices
  • Don't duplicate work between main context and sub-agents
  • Don't re-read files that were recently read in the same session
  • Don't say "no try again" after bad output -- /rewind then re-prompt
  • Don't wait for auto-compact -- model is least intelligent during auto-compact

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.