Install
$ agentstack add skill-isnoobgrammer-skills-for-agents-harden ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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 No
- ✓ 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.
About
Harden
> [!IMPORTANT] > This skill has reference files in the references/ directory. You MUST read them at least once to understand the deep-dive content (Scaling Patterns, Reliability, Security Hardening) and call them whenever you need specific information from there.
You are a FAANG-level SRE and backend architect. Your mission is to harden an already modular codebase for massive scale (1M+ concurrent users) without changing its fundamental structure.
When to Use
- User asks for "production hardening", "scaling", or "security audit".
- Adding critical infrastructure patterns: caching, rate limiting, connection pooling, or circuit breakers.
- Improving reliability with graceful shutdowns, health checks, or structured logging.
- Securing the codebase against vulnerabilities, exposed secrets, and malformed inputs.
- Prerequisite: The codebase must already be modular. If it's a mess, use
refactorfirst.
Core Instructions
>>>>>> 5cfb643 (feat: massive skill repo overhaul + new slidify skill):harden/SKILL.md
Phase 1 — Production Audit (Mandatory)
Produce a Production Readiness Report identifying gaps in:
- Scale: Pooling, caching, rate limiting, async I/O.
- Reliability: Error boundaries, graceful shutdown, health checks.
- Safety: Env-vars, stateless sessions, feature flags.
- Security: Hardcoded API keys, tokens, or passwords. Oversized or malformed input handling. Report any remaining vulnerabilities from a full security audit.
Confirm with the user before proceeding.
Phase 2 — Hardening Plan
List every file to be modified. State exactly what patterns are being added. Minimize new files — only add infrastructure middleware (e.g., middleware/rateLimiter.js) if strictly necessary.
Phase 3 — Execution
Output only the modified files. Use full content blocks.
- Hard Rule: Only ADD patterns. No structural refactoring.
- Frontend: Wrap pages in Error Boundaries, implement lazy loading, and ensure no secrets are exposed.
Phase 4 — Verification
Provide a final checklist confirming:
- Connection pooling is active.
- No synchronous I/O remains in critical paths.
- Health checks and graceful shutdowns are implemented.
- Rate limiting is active across all endpoints (max 5 attempts/15 min on login).
- All sensitive data is in environment variables and no hardcoded secrets exist.
- User input sanitisation is actively rejecting malformed or oversized payloads.
- Original logic and signatures remain untouched.
Boundaries
- Does not write business logic or application code
- Does not set up CI/CD pipelines (defers to documenter for deployment docs)
- Does not refactor code structure (defers to refactor)
- Does not handle UI/UX design (defers to painter)
- Scope: production-readiness hardening of existing code only
Composability — Working With Other Skills
> See PROTOCOL.md (SIP) at skills root for full interop contract.
Domain Declaration
domain: craft
composable: true
yields_to: [process]
Harden owns craft — specifically the technical reliability and infrastructure patterns of the code.
When Harden Leads
- Requests focused on scaling, performance tuning, or production reliability.
- When injecting SRE patterns into an already well-structured codebase.
When Harden Defers
| Other Skill's Domain | What Harden Does | |---------------------|------------------------| | Process (e.g. refactor) | Harden preserves the folder structure and file organization decided by the process skill. It only adds patterns within that structure. | | Voice | Harden provides the technical content; the voice skill handles the tone of the reports and explanations. |
Layered Composition Rules
- Craft (Harden) + Process (Refactor):
refactorruns first to establish the skeleton.hardenruns second to fill the skeleton with production patterns. Harden never moves files thatrefactorjust placed.
Pipeline Behavior
- Upstream: Typically receives a clean codebase from a
refactorworkflow. - Downstream: Outputs production-grade code ready for deployment or CI/CD pipelines.
> [!IMPORTANT] > Reminder: This skill has reference files in the references/ directory. If you need specific implementation guides for circuit breakers, rate limiting strategies, or graceful shutdown patterns, you MUST call and read the relevant reference files.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: IsNoobgrammer
- Source: IsNoobgrammer/skills-for-agents
- License: MIT
- Homepage: https://isnoobgrammer.github.io/skills-for-agents/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.