Security pass
Skill yuri-semenenko/ai-engineering-workspace/claude-code/.claude/skills/security-pass
Run a security hardening pass using the persona's validated workflow — recon, then a numbered remediation checklist for approval, then atomic commits with a typecheck gate after each task. Use when the user asks for a "security pass", "harden this", "security hardening", "пройди по безопасности", or a staged remediation (not a one-shot scan). Different from the built-in /security-review (single-pass diff scan) — this is the multi-task remediation loop with an approval gate.From its SKILL.md
npx -y skills add yuri-semenenko/ai-engineering-workspace --skill security-passAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.7 KB, 952 tokens by cl100k_base, as published. Nobody here has run it
Security Pass
A staged security hardening workflow, distinct from a one-shot scan. The shape is: recon → numbered checklist → approval → atomic remediation commits, typecheck-gated per task. This matches the workflow the user validated in prior passes; follow it rather than diving straight into edits.
For a quick read-only scan of the current diff, use the built-in /security-review instead. This skill is for when there is real remediation work to plan and land safely.
Phase 1 — Recon (read-only)
- Map the attack surface relevant to the change or area: entry points (routes, handlers, server actions), trust boundaries, auth/authz checks, data flowing from untrusted input to sinks (DB, shell, HTML, file system, external calls), secret handling, and dependency surface.
- Fan out with
Exploresubagents per subsystem when the surface is broad — keep raw findings out of the main context, per the persona's session-hygiene rule. - Catalog candidate issues with category + severity. Do not fix anything yet.
Phase 2 — Numbered checklist (for approval)
Produce a single ordered checklist. Each item:
| # | Category | Severity | Location (file:line) | Issue | Proposed fix | Effort |
|---|
- Severity by exploitability × blast radius. Order most-critical first.
- Each item must be independently committable — that is what makes the next phase atomic.
- Stop here and wait for approval. The user picks which items proceed (and may defer some, as in past passes where later-stage items were deferred behind a product milestone). Do not start remediation until the list is approved.
Phase 3 — Remediation (atomic, typecheck-gated)
For each approved item, in order:
- Implement the minimal fix for that one item. Do not bundle unrelated hardening into the same change.
- Typecheck gate: run the project's typecheck (and targeted tests if they exist) before committing. If it fails, fix before moving on — never commit a red tree.
- Commit the single item per the
commitskill rules (one logical change, noCo-Authored-By, ask before pushing). Reference the checklist item in the subject. - Move to the next item only after the current one is green and committed.
Rationalizations
| Rationalization | Rebuttal |
|---|---|
| "Small fix, skip the checklist and approval." | The gate exists to keep scope and rollback visible. Small items go on the list too — they're cheap to approve. |
| "These two fixes are related, bundle them." | One item, one commit. Bundling breaks atomic rollback — the reason this workflow exists. |
| "Typecheck passed last item, skip it this time." | The per-item gate is what guarantees every commit is green. Skipping it once breaks the invariant. |
| "It's low severity, just drop it." | Defer explicitly and record why. A silently dropped finding is invisible attack surface. |
| "Recon is done, I remember the surface." | The checklist is the contract with the user, not your memory. Write it down; get it approved. |
Rules
- Recon before fixes. A fix without an understood threat is guesswork.
- One item, one commit. Atomic remediation keeps rollback granular and review easy.
- Typecheck (and tests where present) must pass per item — the gate is non-negotiable.
- Don't auto-push or open a PR; that is a separate explicit ask.
- Deferring items is legitimate — record what was deferred and why, so the remaining surface stays visible.
Delegation
Delegate the recon, keep the remediation judgment. Phase 1 already fans the read-only scan out to a cheaper-tier subagent — enumerate entry points and sinks, trace untrusted input, collect evidence per candidate — returning a compact catalog. Keep on the main model the parts that need judgment: whether a finding is real and exploitable, how to fix it without regressing behavior, and whether each applied fix actually closes it. A passing scan is evidence, not a clearance.
Output
Phase 1: a recon summary (surface + candidate issues), no edits. Phase 2: the numbered checklist, then stop for approval. Phase 3: per item, a one-line confirmation (<#> <sha> <subject> — typecheck green). End with what landed and what was deferred.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most security skills give in 952 tokens
Counted across 648 of the 828 authors here whose files we hold, read 2026-08-07
- Parameterize all database queriesin 68 of 648, across 51 files
- Hash passwords using bcrypt, scrypt, or argon2in 49 of 648, across 36 files
- Apply rate limiting to authentication endpointsin 48 of 648, across 24 files
- Configure security headersin 35 of 648, across 19 files
- Validate all inputsin 32 of 648, across 24 files
- Validate all external input at the system boundaryin 29 of 648, across 19 files
- Run containers as a non-root userin 28 of 648, across 15 files
- Use httponly secure samesite cookies for sessionsin 26 of 648, across 15 files
- Run dependency audits before every releasein 21 of 648, across 10 files
- Encode output to prevent cross-site scriptingin 21 of 648, across 11 files
- Copy dependencies before source codein 20 of 648, across 9 files
- Store secrets in environment variablesin 20 of 648, across 18 files
Said here and by no other author read
- use subagents to keep findings out of context
- catalog candidate issues with severity
- produce one independently committable checklist item per issue
- wait for approval before remediation
- implement one minimal fix per item
- run typecheck and tests before committing
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.