Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/ancoleman/ai-design-componentsnpx agentmods add skills/ancoleman/ai-design-components/security-hardeningWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ancoleman/ai-design-components/security-hardening)<a href="https://agentmods.dev/skills/ancoleman/ai-design-components/security-hardening"><img src="https://agentmods.dev/badge/skills/ancoleman/ai-design-components/security-hardening/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ancoleman/ai-design-components/security-hardening"><img src="https://agentmods.dev/badge/skills/ancoleman/ai-design-components/security-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.03243 |
| Opus 5.5 | $0.00019 | $0.01297 |
| Sonnet 5.5 | $0.00010 | $0.00649 |
| Haiku 4.5 | $0.00005 | $0.00324 |
Grade A, and why
security-hardening scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 466 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Hardening
Purpose
Proactive reduction of attack surface across infrastructure layers through systematic configuration hardening, least-privilege enforcement, and automated security controls. Applies industry-standard CIS Benchmarks and zero-trust principles to operating systems, containers, cloud configurations, networks, and databases.
When to Use This Skill
Invoke this skill when:
- Hardening production infrastructure before deployment
- Meeting compliance requirements (SOC 2, PCI-DSS, HIPAA, FedRAMP)
- Implementing zero-trust security architecture
- Reducing container or cloud misconfiguration risks
- Preparing for security audits or penetration tests
- Automating security baseline enforcement
- Responding to vulnerability scan findings
Hardening Layers
Security hardening applies across five infrastructure layers:
Layer 1: Operating System (Linux)
- Kernel parameter tuning (sysctl)
- SSH configuration hardening
- User and group management
- File system permissions and mount options
- Service minimization
- SELinux/AppArmor enforcement
Layer 2: Container
- Minimal base images (Chainguard, Distroless, Alpine)
- Non-root container execution
- Read-only root filesystems
- Seccomp and AppArmor profiles
- Resource limits and capabilities dropping
- Pod Security Standards enforcement
Layer 3: Cloud Configuration
- IAM least privilege and MFA enforcement
- Network security groups and NACL configuration
- Encryption at rest and in transit
- Public access blocking
- Logging and monitoring enablement
- CSPM (Cloud Security Posture Management) integration
Layer 4: Network
- Default-deny network policies
- Network segmentation and micro-segmentation
- TLS/mTLS enforcement
- Firewall rule minimization
- DNS security (DNSSEC, DNS filtering)
Layer 5: Database
- Authentication and authorization hardening
- Connection encryption (SSL/TLS)
- Audit logging enablement
- Network isolation and access control
- Role-based permissions with least privilege
What ships with it
13 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/kubernetes/network-policy-hardened.yaml 2.4 KB
- examples/kubernetes/pod-security-hardened.yaml 2.4 KB
- examples/linux/ssh-hardening.conf 1.9 KB
- examples/linux/sysctl-hardening.conf 2.1 KB
- outputs.yaml 8.9 KB
- references/cis-benchmark-mapping.md 14 KB
- references/cloud-hardening.md 20 KB
- references/container-hardening.md 18 KB
- references/database-hardening.md 12 KB
- references/linux-hardening.md 15 KB
- references/network-hardening.md 12 KB
- scripts/harden-linux.py 10 KB runs code
- scripts/scan-infrastructure.sh 4.3 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 466 lines · 48 tokens per session scan A 74537681e947
security-hardening is a skill published in the GitHub repository ancoleman/ai-design-components (534 stars, last pushed 11mo ago), licensed MIT. It adds 48 tokens to every session and 3,243 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
security-hardening compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| security-hardeningancoleman/ai-design-components | Skill | 534 | 11mo ago | MIT | A | 48 | Claude Code |
| agents-v2-pylingxling/awesome-skills-cn | Skill | 341 | 1mo ago | MIT | A | 39 | Claude Code |
| kubernetesMindrally/skills | Skill | 322 | 1mo ago | Apache-2.0 | A | 17 | Claude Code |
| coolify-vps-baselineKhaledSaeed18/dotclaude | Skill | 7 | 3d ago | MIT | A | 47 | Claude Code |
| coolify-image-appKhaledSaeed18/dotclaude | Skill | 7 | 3d ago | MIT | B | 51 | Claude Code |
| kubectl-basicschaterm/terminal-skills | Skill | 60 | 9mo ago | Apache-2.0 | A | 15 | Claude Code, Codex |
| apify-actor-developmentlingxling/awesome-skills-cn | Skill | 341 | 1mo ago | MIT | A | 71 | Claude Code |