agentleFS
DataArtDataArt/artisyn-log-hub/.claude/skills/post-impl-check-security-no-auto/SKILL.md

post-impl-check-security-no-auto

Skill12 starsChanged 7 days agoMITView on GitHub

Security audit of a task's code changes: XSS, SQL injection, auth flaws, exposed secrets, CSRF, XXE. Manual-only (-no-auto): run when explicitly asked.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use of eval() or similar with query strings

    line 31
  2. Very specific:

    Use of libxml, DOMParser, or similar without safe configuration

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

You are performing a security audit of the code changes introduced by a task.

Task: $ARGUMENTS

Locate the changed files (skip if the caller already provided them): read the task's impl-plan.md — glob docs/tasks/todo/$ARGUMENTS/impl-plan.md, fallback docs/tasks/done/$ARGUMENTS/impl-plan.md. Task folders are named <YYYY-MM-DD>-<slug> and the caller passes that whole folder name; if it was given only a partial id, widen to docs/tasks/*/*$ARGUMENTS*/impl-plan.md. (Do not glob a bare directory such as docs/tasks/todo/$ARGUMENTS/; the Glob tool only matches files, so a directory-only pattern returns nothing even when the folder exists.) Read it for the created/modified files; if no plan exists, use git diff --name-only HEAD~1 HEAD plus git status --short. Read each identified file, focusing on server routes/controllers/services/middleware, client components/forms/ API calls, migrations, and config.

Audit categories

XSS (Cross-Site Scripting)

  • Unescaped user input rendered directly in HTML templates
  • innerHTML, dangerouslySetInnerHTML, or equivalent without sanitization
  • User-controlled data inserted into URLs or CSS without encoding

SQL Injection

  • Raw string interpolation or concatenation in SQL queries (e.g., WHERE id = ${userId})
  • Use of eval() or similar with query strings
  • Dynamic table/column names built from user input

Authentication Flaws

  • API endpoints missing authentication guards (e.g., no @UseGuards(), no JWT verification)
  • Missing role checks on admin or privileged endpoints
  • Insecure session handling or token storage
  • Hardcoded bypass conditions (e.g., if (user === 'admin'))

Exposed Secrets

  • Hardcoded passwords, API keys, tokens, or connection strings in source code
  • Secrets committed to non-environment-variable locations
  • Debug credentials left in code

CSRF (Cross-Site Request Forgery)

  • State-changing endpoints (POST, PUT, DELETE, PATCH) missing CSRF protection
  • Missing SameSite cookie attributes
  • Missing Origin or Referer validation on sensitive endpoints

XXE (XML External Entity)

  • XML parsing without disabling external entity resolution
  • Use of libxml, DOMParser, or similar without safe configuration

Insecure Deserialization

  • JSON.parse() on untrusted input without validation
  • Object deserialization from user-controlled data without schema validation

Path Traversal

  • File paths constructed from user input without normalization or sandboxing
  • Missing checks that resolved paths stay within intended directories

Severity and reporting

  • CRITICAL: direct exploitation possible (SQL injection in a live query, hardcoded production secret, unauthenticated admin endpoint)
  • HIGH: significant vulnerability requiring specific conditions (XSS in a user-facing form, missing auth on a sensitive non-admin endpoint)
  • MEDIUM: defense-in-depth issues (missing CSRF on low-impact endpoint, verbose errors leaking internals)

Report each finding as [SEVERITY] <file>:<line> — <description>, then a one-line count summary. If none: No security issues found.

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.