Skip to content
Back to skills

Security

ASecurity

Runs a security review of a change with crew-chief's read-only security-reviewer agent: finds the security-relevant files (risk map), picks the model and effort from what they touch, briefs the agent, and reports what it found. Use when the user asks for a security review (/crew-chief:security), when crew-chief's security gate holds back a commit, or before a pull request that touches authentication, crypto, secrets, payments, migrations, input reaching SQL/shell/path sinks, CI or dependencie...

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 21, 2026
ai-agentsrustgoshellsqlgitsecurity

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add aykyusuf/crew-chief --skill security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aykyusuf-security/badge)](https://www.skillsdirectory.com/skills/aykyusuf-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: security
description: "Runs a security review of a change with crew-chief's read-only security-reviewer agent: finds the security-relevant files (risk map), picks the model and effort from what they touch, briefs the agent, and reports what it found. Use when the user asks for a security review (/crew-chief:security), when crew-chief's security gate holds back a commit, or before a pull request that touches authentication, crypto, secrets, payments, migrations, input reaching SQL/shell/path sinks, CI or dependencies. Main session only. Not a general code review (use the reviewer agent)."
argument-hint: "[staged | branch | <path or commit range> | map]"
---

Security review of a change. Arguments: `$ARGUMENTS` (optional). Main session only: it launches an agent and may ask the user a question, which a subagent cannot do. If you are a subagent, stop and tell the caller to run it.

1. **Scope.** From the arguments: `staged` = the staged diff; `branch` = the commits ahead of the upstream (or the default) branch plus uncommitted changes; a path or a commit range = that; `map` = only build or refresh the risk map (step 2) and report it. With no argument: the staged diff if anything is staged, otherwise uncommitted changes, otherwise the branch. List the files in scope with one git command.

2. **Risk map.** If `.crew-chief/security-map.json` does not exist in the project (or it is older than 7 days, or the argument is `map`), build it: `"${CLAUDE_PLUGIN_ROOT}/scripts/security-map.sh" scan "<project root>"`. It is cheap (regexes, no model call) and keeps entries the user added by hand. Add `.crew-chief/` to the project's `.gitignore` only if the user wants the map kept out of git; do not decide that for them.

3. **Which files matter.** Run `"${CLAUDE_PLUGIN_ROOT}/scripts/security-map.sh" match "<project root>" <files in scope>`: each line is `category<TAB>file<TAB>reason`. No line means nothing security-relevant in scope: say so in one line and stop, unless the user asked for the review anyway (then review the whole scope).

4. **Is a review worth it, and at what setting** (never Fable unless the user asked for Fable). Most changes need none: mechanical or local edits (renames, formatting, comments, log or UI text, tests, a behaviour-keeping refactor) do not. Review when behaviour changes at a trust boundary: who may access or change what, how money, prices, balances or rates are calculated or moved, how outside input reaches SQL, a shell, a file path or HTML, secrets or crypto, a migration that changes or drops data. The user asked for this run, so review what they asked; pick the smallest setting that fits:
   - `model: "sonnet"`, `effort: "medium"`: one focused question on a small change;
   - `model: "opus"`, `effort: "medium"`: a real logic change in one area (the usual choice);
   - `model: "opus"`, `effort: "high"`: several risky files, a new endpoint or permission, money calculations, a data-moving migration;
   - `effort: "xhigh"`: only for a large change spanning auth, money and data right before it ships, or when the user asks (about 2.5 times the cost of high for a small gain).
   The saver may lower this (plain saver keeps high; ultra-saver asks the user before Opus): follow what it says.

5. **Brief the agent** (it does not see this conversation): the scope and the exact git command for the diff, the risky files with their categories and reasons from step 3, the project's stack in one line, any security rule the user gave in this conversation, and "read-only: report, do not fix". One agent, not several in parallel on the same diff.

6. **Report** to the user in their language: the tally, then each Critical/High finding with `path:line`, the attack in one sentence and the fix; Medium and Low as a short list. Then offer to fix (ask before changing code if the user has not already asked for fixes). After fixes, a second round reviews only the new diff.

7. **The commit gate.** If this ran because the security gate held back a commit: once the findings are fixed or the user accepted them, retry the identical commit command; the gate lets it through.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.