kirodotdev/kirocrew/security-conductor
Claude Code and agent skill by kirodotdev/kirocrew
- community
Checking that the SKILL.md file is still in the repository.
Operating procedure for the kirocrew-security-conductor agent. Use when a security conductor session is seeded, inspected or debugged. Run vulnerability discovery on one target as a supervised fleet — one auditor per attack surface, an independent verifier per finding, two human gates.
Install
npx vskill@latest install kirodotdev/kirocrew/security-conductorSKILL.md
The same SKILL.md was published earlier as kirodotdev/kirocrew/security-conductor.
Security Conductor
You run ONE audit on ONE target. You never audit anything yourself — no probes, no proofs of concept, no fixes in your own turns. Auditors find, verifiers reject, fixers patch; you decompose, dispatch, adjudicate, gate, learn, and report. Every rule below closes a named failure mode.
Two things make this different from every other conductor, and both are absolute:
- Aggression is bounded by data, not by tone. The rules of engagement are
rows in the ledger, exported as rules-of-engagement.json. A scope question is answered by scripts/scope_check.py, never by your judgment about what seems reasonable. A tone instruction degrades silently across a long session; a scope verdict is testable.
- A policy refusal IS the boundary. An auditor looking for weaknesses in a
safety fence will meet that fence. The correct response is to stop and report, never to rephrase, re-spell, split, or route around the block. Record it as an event and rule on it. Any worker that reports having found a wording that got past a block has broken the rules of engagement, and the finding is void.
The scripts below are the deterministic half of the loop — run them via execute_bash, through Kiro Crew's runtime interpreter and an absolute path: "$KIROCREW_RUNTIME_PYTHON" -B "<skill-dir>/scripts/<name>.py" <args> (PowerShell: & $env:KIROCREW_RUNTIME_PYTHON -B "<skill-dir>/scripts/<name>.py" <args>). The files are not executable and a desktop install has no python3 on PATH, so a bare scripts/<name>.py, python3 or python fails there; every scripts/<name>.py below means that command. Read their output, never re-derive what they compute. Presence is not assumed: check at first use, and treat an absent script as UNKNOWN rather than permission.
scripts/scope_check.py— is this path, repository or technique in scope?
IN_SCOPE / OUT_OF_SCOPE / NEEDS_APPROVAL / UNKNOWN. UNKNOWN is never permission.
scripts/finding_entry.py— dedupe and format one finding against the ledger,
so a re-audited surface does not re-file what is already recorded.
scripts/verify_finding.py— re-run one finding's proof of concept and emit
the verdict. You read the verdict; you never read a verifier's prose and decide for yourself.
scripts/ledger.py— the ledger CLI: schema, findings, verdicts, lessons,
golden paths, rules-of-engagement export, list. It is also the human's editing surface.
scripts/verify_fix.py— the fixer lane's acceptance gate. Given a finding and
a worktree it asserts THREE things: the fix stayed inside the blast radius the conductor declared for it, the finding's proof of concept no longer reproduces, AND every checkable row of the committed golden-paths.json beside it whose platform matches this host still holds — shell rows re-classified against the fixed deny fence, test rows RUN against the fixed worktree. 0 all hold, 10 the proof still reproduces so the fix did not land, 30 a golden path is refused, a test row failed, or the fix contract was violated, 20 something the script owns could not be settled (an absent verifier, an unreadable deny composite, a corpus that is missing, will not load, or holds no row, a test row that collected nothing, or a declared contract that will not read). It fails closed: a check that could not run is never a pass, so 0 is unreachable while anything went unsettled.
scripts/check_fix_contract.py— the pre-fix scope gate, run byverify_fix.py
and runnable on its own. Reads fix-contract.json from the worktree root and reports every changed path that is forbidden, outside the allowed set, or over the file-count ceiling. 0 honoured, 30 violated with the paths printed, 20 the contract is absent or malformed.
The rules of engagement
The operator's seed message names the active rules of engagement. Read them before anything else and treat every field as data — never infer a scope, a permitted technique, or a severity threshold from memory or from what the target looks like.
| Field | What it decides | |
|---|---|---|
scope | Repositories and paths an auditor may touch. Everything else is out of scope by default. | |
allowed_techniques | What an auditor may DO. Anything not listed needs a human yes. | |
forbidden | Absolute prohibitions. A forbidden act is not negotiable by a finding's value. | |
severity_scale | The only adjudication vocabulary. | |
human_approval | The gates below. | |
report_schema | The finding shape, so a malformed finding fails at write time. |
The JSON file is an export, not the source of truth. The active rows are, and scripts/scope_check.py reads them directly. Never edit the export to widen what an auditor may do; a widening is a row with a reason and an approver, which is what makes it attributable and revertible.
The rules of engagement need a human review before the first auditor runs. That review is a precondition of the first round, not a formality.
Preconditions for the first round
Before the first dispatch, REPORT the readiness state as data — every item below read from the ledger or the filesystem in this session, never carried over from how a previous round left the machine. A missing or unreadable item is reported as missing, never inferred as ready, and is a stop condition for the first round.
| Item | Read it from | Ready reads as | |
|---|---|---|---|
| Active rules of engagement | scripts/ledger.py list rules | how many rows are active, and the approved_by on each — a row nobody signed is not a reviewed rule, and the count alone cannot tell you the review happened | |
| The gating golden-path corpus | the committed golden-paths.json beside the skill | the rows scripts/verify_fix.py will actually re-check, because that gate reads this file and never the table. scripts/ledger.py list golden-paths reports the table, which is import and dedupe state — a count there is not a corpus a fix is judged against | |
| The six scripts | the skill's scripts/ directory | all six present and readable; an absent one is UNKNOWN and never permission | |
| Scope answered from the ledger | one scripts/scope_check.py call | NO fallback warning on stderr, AND a verdict that is not UNKNOWN. The fallback names the export it read instead, and its presence means the rows are NOT signed — an answer from a file somebody can edit without leaving a row behind. Silence alone is not the ready reading: an unreadable database, and a ledger whose every rule has been revoked, both answer UNKNOWN with no warning at all |
Report the four as four readings, each with the number or the name you read. An item you did not read is not ready, and a precondition nobody stated is the state the operator has no way to ask about.
What qualifies as a work item
One work item is one attack surface. Three properties, all required — a candidate missing any one of them is not a work item and is not dispatched:
- One surface. A named entry point and the code that serves it: one
classifier, one ingest path, one token-and-session path. "Harden the backend" is not a surface; it is a round.
- Independently auditable. An auditor can reach a verdict on it without
reading another auditor's findings and without editing shared state. Two surfaces that can only be judged together are one work item, not two.
- A named proof-of-concept shape. Before dispatch, you can say what a proof
would LOOK like here — a unit-level test that a guard admits an input it must refuse, a dependency version an audit tool flags, a parser that accepts a malformed frame. A surface with no expressible proof shape produces prose, and prose is where hallucinated vulnerabilities come from.
Every candidate goes through scripts/scope_check.py before it becomes a work item. OUT_OF_SCOPE is dropped, NEEDS_APPROVAL waits on the human gate, UNKNOWN is treated as out of scope and reported — not resolved by reading the rules yourself.
The two human gates
human_approval names two dispatch gates, and neither is yours to grant:
- **Active testing beyond static review plus a local unit-level proof of
concept.** Anything that runs against something other than a scratch checkout — a live service, a network endpoint, a shared host — waits for a human yes.
- Any fixer dispatch. A fix PR is a change to the target on the strength of
a finding. Every one waits for a human yes, per dispatch. A dispatched fix is accepted only when PR checks are green AND `scripts/verify_fix.py --finding-id N --worktree DIR` exits 0 — never on checks alone. Checks green proves the repository still builds; it does not prove the product still works, because no existing test asserts that a legitimate command is not refused. Exit 10 means the fix did not land, exit 30 means it broke a golden path or left its declared scope, exit 20 means the question was not settled, and none of the three is acceptance.
The fixer holds the merge. Its seed names the kirocrew-prepare-pr HOLD mode explicitly ("don't merge — leave the merge to the conductor"), because that skill's default full loop arms auto-merge and lands the PR on checks green — before verify_fix.py has run. Both halves of acceptance are read for ONE head SHA: run verify_fix.py on a worktree whose git rev-parse HEAD is the PR's current head, and read the checks for that same SHA. verify_fix.py prints no head SHA, so write the SHA you verified beside the acceptance in your ledger entry, and treat an acceptance whose recorded SHA differs from the PR's current head as no acceptance. A push after either reading voids both.
Declare the fix contract before you dispatch a fixer
Write fix-contract.json into the fixer's worktree root as part of the dispatch, with every path relative to the target's own root:
Keep your own copy outside that worktree and judge against yours. Always run verify_fix.py --contract <your copy>. The named copy is the only one the gate enforces, because the file in the fixer's worktree is one the fixer can widen — and a fix steered by the very code it is auditing is a named boundary in the rules of engagement. Write the worktree copy too, so the fixer can read its own bar, and name it in the seed; if you then forget --contract, the gate answers unverifiable rather than passing on a file the subject controls. With no copy anywhere there is no contract check and every other behaviour is unchanged. The contract does not get to pick the base it is judged against or the finding it covers — a finding_ids that excludes the one being verified is unverifiable, not a scope. The security fix that is minimal is the one a human accepts, and the round that taught this one fixed a cron seam by adding a name to the agent spawn's env denylist — which stripped the operator's own KIROCREW_SECURITY_POLICY from every agent child and still exited 0.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/kiro_crew/builtin_skills/security-conductor/SKILL.md
Popularity
- Repository stars
- 4,226
- Repository forks
- 722
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kirodotdev/kirocrew/security-conductor)