Security, skill collection

Everyday security checks

Six skills for API boundaries, CSRF, JWT handling, secrets detection, secure headers, and code review. Use them alongside the application’s explicit access and data-handling rules.

6 skillsMIT licensecommon-security

What to give your agent

A skill supplies a procedure. Give your agent the project evidence and constraints needed to apply it.

  • The endpoint or diff under review, its callers, and its authorization rules.
  • Test users with different roles or tenants, plus non-sensitive fixture records.
  • Dependency and deployment configuration relevant to the affected path.

Check a multi-tenant document endpoint

A signed-in user can fetch a document by identifier. Authentication is present, but the database lookup may not restrict the document to the user’s tenant.

  1. Trace the trust boundary

    Follow the document identifier from the request to the database query. Determine where the tenant identity comes from and whether the caller can supply or override it.

  2. Prove the access rule

    Create two fixture tenants. Request tenant B’s document as a user from tenant A and record the response. Repeat for list, export, and update paths that share the same lookup.

  3. Patch and retain the check

    Scope the lookup to the authorized tenant or enforce the equivalent policy in a shared boundary. Add regression coverage for both authorized and unauthorized access.

Example result structure
Finding: document lookup omits tenant scope
Evidence: tenant A can access a tenant B fixture
Fix location: shared authorized lookup
Regression: read, list, export, and update boundaries

How to check the result

  • Cross-tenant requests cannot reveal protected content.
  • Authorized users retain the intended access.
  • Findings include evidence and affected code locations.

A failure to watch for

The presence of an authentication middleware does not establish resource-level authorization. Check the rule at the actual data access boundary.

This is an illustrative exercise. Run the checks against your own project to establish the result.

Skills in this pack

Open a skill to see its activation guidance, source sections, and individual install command. These descriptions come from the linked source files.

6 of 6 skills

API Securityapi-security

Comprehensive API security for REST and GraphQL APIs. Use this skill when building or reviewing API endpoints, implementing authentication, or securing data transfer. Activate when: API security, REST security, GraphQL security, API authentication, API rate limiting, API versioning, secure endpoint, API design.

Use it when

  • Designing new API endpoints
  • Implementing API authentication
  • Setting up rate limiting
  • Reviewing API security
  • Building public APIs

Inside the source file

  • API Security Checklist
  • Authentication Patterns
  • Request Validation
  • Rate Limiting
  • Response Security
  • Error Handling
  • Best Practices
Read api-security/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill api-security
CSRF Protectioncsrf-protection

Cross-Site Request Forgery prevention techniques. Use this skill when implementing forms, state-changing operations, or reviewing CSRF protections. Activate when: CSRF, cross-site request forgery, form security, token validation, same-site cookie, state changing request, POST request security.

Use it when

  • Implementing forms that change state
  • Building APIs consumed by browsers
  • Setting up session cookies
  • Reviewing authentication flows
  • Any state-changing POST/PUT/DELETE requests

Inside the source file

  • How CSRF Works
  • Protection Methods
  • Framework-Specific Implementation
  • Common Mistakes
  • Testing CSRF Protection
  • Code Review Checklist
  • Best Practices
Read csrf-protection/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill csrf-protection
JWT Securityjwt-security

JSON Web Token security best practices. Use this skill when implementing JWT authentication, validating tokens, or reviewing JWT usage. Activate when: JWT, JSON Web Token, token authentication, bearer token, refresh token, token validation, JWT secret, token expiry.

Use it when

  • Implementing JWT authentication
  • Reviewing existing JWT code
  • Setting up refresh token rotation
  • Debugging JWT issues
  • Migrating to JWT-based auth

Inside the source file

  • JWT Vulnerabilities
  • Secure Implementation
  • Token Storage (Client-Side)
  • Common Mistakes
  • Security Checklist
  • Best Practices
Read jwt-security/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill jwt-security
Secrets Detectionsecrets-detection

Find and prevent leaked secrets, API keys, and credentials in code. Use this skill when reviewing code for exposed secrets, setting up pre-commit hooks, or auditing repositories. Activate when: leaked secret, API key exposed, credentials in code, hardcoded password, secret scanning, git secrets, pre-commit hook.

Use it when

  • Reviewing code for hardcoded secrets
  • Setting up CI/CD security checks
  • Auditing git history for leaks
  • Configuring pre-commit hooks
  • Responding to secret exposure incidents

Inside the source file

  • Common Secret Patterns
  • Detection Tools
  • Pre-Commit Hooks
  • CI/CD Integration
  • Safe Secrets Management
  • Incident Response: Secret Leaked
  • Code Review Checklist
  • Best Practices
Read secrets-detection/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill secrets-detection
Secure Code Reviewsecure-code-review

Systematic security code review methodology. Use this skill when reviewing pull requests for security issues, auditing critical code paths, or performing security assessments. Activate when: security review, code audit, secure code, review PR for security, find vulnerabilities, security assessment.

Use it when

  • Reviewing pull requests
  • Auditing security-critical code
  • Before production deployments
  • Compliance requirements
  • After security incidents

Inside the source file

  • Review Methodology
  • Vulnerability Patterns by Language
  • Review Comments Template
  • Automated Security Scanning
  • Security Review Report Template
  • Best Practices
Read secure-code-review/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill secure-code-review
Secure HTTP Headerssecure-headers

HTTP security headers configuration guide. Use this skill when hardening web applications, configuring CSP, or setting up security headers. Activate when: security headers, CSP, Content-Security-Policy, HSTS, X-Frame-Options, CORS headers, clickjacking prevention, helmet.

Use it when

  • Setting up a new web application
  • Hardening existing applications
  • Fixing security scanner findings
  • Implementing Content Security Policy
  • Preventing clickjacking

Inside the source file

  • Essential Security Headers
  • Implementation
  • Content Security Policy Deep Dive
  • Header Reference
  • Testing Security Headers
  • Common Issues & Fixes
  • Best Practices
Read secure-headers/SKILL.md on GitHub

Install this skill individually

npx skills add latestaiagents/agent-skills --skill secure-headers

Install the skills

With Node.js and npm available, run this in your project’s terminal. The CLI prompts for skills, agent, and installation scope.

npx skills add https://github.com/latestaiagents/agent-skills/tree/main/skills/security/common-security

Choose scope, then verify discovery

Choose project scope for instructions tied to this repository, or global scope when you want them available across projects. Check the selected agent’s installed skill list, then try a representative task from the example above.

For one skill, open its contents entry and use the individual command. Installation support and skill behavior vary by agent.

Skills CLI documentation and supported agents

Install commands follow the repository’s current branch. The inventory on this page is pinned to the source revision below, so a later install may differ.

Source and review status

This inventory is taken from commit a5e492b, committed November 4, 2026. Skill instructions and bundled integrations have not completed a technical review. The worked example is editorial guidance, separate from the source file contents.

Browse this pack’s source

Engineering notes

Choose a different scope