agentleFS
juanitourquizajuanitourquiza/shipframe/skills/security-hardening/SKILL.md

security-hardening

Skill4 starsChanged 22 days agoMITView on GitHub

Apply practical security controls while designing or implementing software changes.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use coordinate, observability and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • swyxioSkill

    coordinate

    Coordinate focused Luna helpers for bounded work and Astra advisers for difficult design questions while doing the main work yourself.

    Also in 3 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 4 projects that use this

  • barisariburnuSkill

    performance-optimization

    Complete performance optimization guide for Next.js applications including frontend, backend, database, caching, and general optimization strategies. Use when improving performance, reducing bundle size, optimizing queries, or implementing caching.

    Also in 4 projects that use this

  • GitHubSkill

    accessibility-audit

    Audits actual components and routes against applicable WCAG 2.2 A/AA criteria using consumer-owned design-system evidence and repository tools. Use when asked for an accessibility audit, a11y check, keyboard or focus review, contrast check, or screen-reader verification.

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check dependency and external-integration boundaries for least privilege, safe defaults, timeouts, and failure handling.

    line 17
  2. Distinctive:

    Add or update focused tests for relevant security controls and negative cases.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security Hardening

Intent: security_hardening — EN: secure implementation, security hardening, secure coding. ES: endurecimiento de seguridad, programación segura, proteger una implementación.

Apply focused preventive controls to the requested design or implementation. Keep recommendations proportional to the change and its trust boundaries; do not turn this workflow into a full security audit.

Hardening checklist

  • Validate and normalize untrusted input at trust boundaries; use parameterized queries and context-appropriate output encoding.
  • Enforce authorization as well as authentication, including per-user or per-tenant isolation where applicable.
  • Protect sessions and cookies with appropriate scope, expiry, rotation, and secure attributes; avoid exposing secrets or sensitive data in logs, errors, URLs, or client storage.
  • Check dependency and external-integration boundaries for least privilege, safe defaults, timeouts, and failure handling.
  • Add or update focused tests for relevant security controls and negative cases.
  • Make changes only within the approved task scope. If only guidance is requested, return a concise checklist; do not edit files or start an implementation workflow yourself.

For a requested code change, provide a short, change-specific checklist to implement-task; continue its existing workflow without invoking it recursively. If the user requests a scoped security audit, scanner run, or evidence-based finding triage, hand off to security-review instead.

Host limits

Claude Code, Codex CLI, and OpenCode can inspect source and suggest local controls when permitted. Tool availability, shell behavior, and credentials vary by host; report unavailable capabilities instead of assuming them. Do not install tools, upload source/data, or test live systems without authorization.

Resumen (ES)

Aplica controles preventivos proporcionales al cambio: valida entradas en fronteras, parametriza consultas, codifica salidas según contexto, protege autenticación/autorización, sesiones, cookies, secretos y datos sensibles; revisa dependencias e integraciones y añade pruebas negativas. Respeta el alcance aprobado. Para implementar, entrega una lista breve a implement-task sin invocarlo recursivamente; deriva a security-review cuando se solicite una auditoría con evidencia.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.