cg-devplan
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Harden an indie-scale production app against common attacks — rate limiting, CORS, security headers, input validation, secrets management, authentication, and dependency scanning. Use when the user mentions security, hardening, rate limit, CORS, CSRF, XSS, injection, auth, JWT,
How it fires
How this command gets triggered: by you, by Claude, or both.
/cg-security-hardeningContext preview
What this command does when you run it.
Harden an indie-scale production app against common attacks — rate limiting, CORS, security headers, input validation, secrets management, authentication, and dependency scanning. Use when the user mentions security, hardening, rate limit, CORS, CSRF, XSS, injection, auth, JWT,
name: cg-security-hardening description: Harden an indie-scale production app against common attacks — rate limiting, CORS, security headers, input validation, secrets management, authentication, and dependency scanning. Use when the user mentions security, hardening, rate limit, CORS, CSRF, XSS, injection, auth, JWT, secrets, environment variables, dependency vulnerabilities, OWASP, "is my app secure", "how do I prevent", or is about to ship to production. Aligned with OWASP Top 10 2025. NOT for penetration testing, red team exercises, compliance audits (SOC2/HIPAA/PCI), or enterprise WAF configuration.
Close the most common attack surfaces on an indie-scale production web app. Targets solo devs and small teams who do not have a dedicated security engineer, aligned with OWASP Top 10 2025 priorities. The goal is to raise the cost of attack from "trivial" to "not worth the effort" — not to achieve enterprise-grade security posture.
**This skill covers:**
**This skill does NOT cover:**
If the user needs any of the excluded items, recommend specialized tools or services instead of attempting them with this skill.
MUST have answers to these before producing code or config. Ask the user directly if unclear.
1. **What language/framework is the app?** — affects library choices:
2. **What does the app expose?**
3. **What authentication model?**
4. **Is there user-generated content?**
5. **Is the app already in production, or pre-launch?**
6. **What's the threat model?** (ask explicitly if unclear)
Ordered by impact-to-effort ratio. Start from pillar 1. Do not skip to pillar 7 before pillars 1-3 are done.
**Why first**: Credential stuffing, brute force, enumeration, and scraping all rely on high request volume. Rate limiting stops 90% of opportunistic attacks with a single middleware.
**Rules**:
**Baseline limits** (adjust per app): | Endpoint type | Limit | |---|---| | Login / signup | 5 per minute per IP, 10 per hour per IP | | Password reset request | 3 per hour per email | | General API (authenticated) | 100 per minute per user | | General API (anonymous) | 30 per minute per IP | | Expensive
A minimal rule system for Claude Code. Gives Claude the structural discipline it lacks by default — phase tracking, decision logging, honest pushback, debug discipline, language-specific best practices, and reusable skills.
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Deploy an application to a single VPS with reverse proxy, automatic TLS, systemd process supervision, firewall, and basic health…
Set up production observability for indie-scale apps — structured logging, uptime monitoring, error tracking, and basic metrics.…
Build, sign, notarize, and publish a macOS app as a GitHub release with a professional DMG
Set up an open source repository for healthy long-term maintenance — branch protection, commit signing, tag immutability, issue…
Perform deep, findings-first senior engineering code reviews of any change in any language or stack. Use when reviewing a phase,…