Security hardening guidance for AI agent frameworks that process untrusted content, invoke tools, write workspace files, manage runtime identifiers, or handle credentials. Use when building or reviewing an agent runtime, autonomous worker, tool gateway, memory service, or multi-tenant agent deployment. Do not use for general web application security or offensive testing.
Security grade of this SKILL.md: SAFE · how we grade
How to install agent-security-hardening
npx skills add affaan-m/ECC --skill agent-security-hardening -a claude-code
The skills CLI copies this one skill into Claude Code (use -a for another agent). Or read its SKILL.md on GitHub.
What the SKILL.md says
Harden the boundaries where an agent turns untrusted data into filesystem, network, memory, or tool actions. Produce concrete controls and tests for the framework being reviewed; a checklist without enforcement evidence is incomplete. Treat model output, retrieved content, tool output, memory, and cross-agent messages as untrusted input. Default external integrations to read-only and grant each write capability separately. Validate at the action boundary even when an upstream prompt or schema already validated the value. Fail closed before a side effect when identity, destination, ownership, or containment cannot be proven. Before a delete, publish, credential rotation, or other irreversible action, the real tool entry point must authorize the authenticated principal for that exact operation and resource scope, then require explicit confirmation or a valid scoped pre-approval.
Other skills in affaan-m/ECC
accessibilityDesign, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels, accessibilit…
agent-architecture-auditFull-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discip…
agent-evalHead-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metr…
agent-harness-constructionDesign and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or…
agent-introspection-debuggingStructured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when…
agent-payment-x402Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwal…
agent-runtime-gateway-smoke-testVerify a local agent API, temporary gateway tunnel, and remote sandbox callback with a tool-free task, then restore the original app connec…
agent-self-evaluationUse after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conc…
agent-sortBuild an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY b…
agentic-engineeringOperate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engi…
agentic-osBuild persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based me…
ai-first-engineeringEngineering operating model for teams where AI agents generate a large share of implementation output. Use when setting team process, revie…
ai-regression-testingRegression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check work…
android-clean-architectureClean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and…
angular-developerGenerates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices…
api-connector-builderBuild a new API connector or provider by matching the target repo's existing integration pattern exactly. Use when adding one more integrat…
api-designREST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for…
architecture-decision-recordsCapture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an ind…
article-writingWrite articles, guides, blog posts, tutorials, newsletter issues, and other long-form content in a distinctive voice derived from supplied…
automation-audit-opsEvidence-first automation inventory and overlap audit workflow for ECC. Use when the user wants to know which jobs, hooks, connectors, MCP…