一键导入
sh-security-panel
Multi-expert security review — threat modeling, secrets handling, LLM/prompt injection, data classification, incident response
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Multi-expert security review — threat modeling, secrets handling, LLM/prompt injection, data classification, incident response
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Multi-expert AI/ML specification review with scoring gate — model architecture, evaluation rigor, safety/alignment, and production readiness for AI systems and LLM apps
Multi-expert architecture review — boundaries, integration patterns, failure modes, evolvability
Multi-expert business analysis with advisory recommendations (no scoring gate)
Multi-expert intelligence pipeline review — discovery quality, ingestion resilience, scoring validity, platform compliance, taxonomy coherence, cost efficiency
Multi-expert mobile/native app specification review with scoring gate — Android, iOS, Swift, SwiftUI
Multi-expert personal-development review with scoring gate — learnability, adoption, human-centeredness, and capability impact for talent/learning/AI-augmentation designs
基于 SOC 职业分类
| name | sh-security-panel |
| description | Multi-expert security review — threat modeling, secrets handling, LLM/prompt injection, data classification, incident response |
/sh:security-panel [content|@file] [--mode discussion|critique|socratic|debate] [--focus threat-model|secrets|llm-security|data-handling|resilience] [--experts "name1,name2"] [--iterations N] [--verbose]
--verbose): Full expert deliberations, cross-expert dialogue, reasoning traces, and detailed per-expert analysis before scores and findings.Silent mode still performs full internal analysis — quality is preserved, only the output is compressed.
/Users/jcords-macmini/projects/20_agentflow/experts/PANEL_PROTOCOL.md and apply its Grounding and Refute Stage sections. This is load-bearing — findings that are not grounded per the protocol, or that do not survive the refute stage, MUST NOT be reported./Users/jcords-macmini/projects/20_agentflow/experts/panels/security-panel.yaml for panel definition, focus areas, auto-select rules, and scoring config (absolute path — relative paths fail when CWD is outside agentflow)./Users/jcords-macmini/projects/20_agentflow/experts/individuals/ for each selected expert.auto-select keywords — add matching experts up to max-experts: 6 cap.key=, token=, password=, Authorization:, AKIA* (AWS), ghp_* (GitHub), sk-* (OpenAI), xoxb-* (Slack), inlined .env content. Any match is a CRITICAL finding flagged before any expert speaks. Rationale: a leaked secret is a fact, not an opinion — no need for expert deliberation to confirm.--focus area or use default-experts from panel YAML. --experts override replaces defaults entirely.Experts are defined as individual markdown files in /Users/jcords-macmini/projects/20_agentflow/experts/individuals/. Each file contains structured frontmatter with:
The panel YAML (/Users/jcords-macmini/projects/20_agentflow/experts/panels/security-panel.yaml) defines:
--mode discussion)Collaborative threat-model refinement. Experts build on each other's observations — Valsorda's trust-zone mapping surfaces Willison's prompt-injection concerns, which surface Nygard's blast-radius questions.
--mode critique)Systematic review with severity-classified findings (CRITICAL / MAJOR / MINOR). Each finding includes expert attribution, the threat it exploits, the asset at risk, and a concrete mitigation. Critical findings name the adversary explicitly — "an attacker controlling the scraped page can..." rather than "this is unsafe".
--mode socratic)Foundational questioning — "who is the adversary?", "what is the asset?", "where is the trust boundary?", "what does compromise look like, and how would we detect it?". No direct answers; forces the author to defend the threat model.
--mode debate)Two-camp adversarial format around a contested security trade-off (e.g. usability vs hardening, hard-enforced vs documented isolation). Three rounds, then a synthesized trade-off statement.
4 dimensions, each scored 0-10:
| Dimension | Description |
|---|---|
| Threat-model coverage | Are adversaries named, assets classified, attack surface enumerated; or is 'security' deferred to a future phase |
| Secrets discipline | Are secrets stored, transported, rotated, and scoped correctly; is the blast radius of a leaked credential bounded |
| Trust-boundary enforcement | Are trust zones explicit and validated at ingress; or is 'we control both sides' used as justification for skipping isolation |
| Failure and detection | Are detection paths and incident-response procedures specified; can a compromise be observed and contained, not just postulated |
Pass threshold: overall score >= 7.0
Security review document containing:
AUTO-FIX, NOT SYNTHESIS-ONLY — this panel produces the analysis AND then applies fixes for every finding (high, medium, and low) automatically, per 00_Governance/CLAUDE.md §8 Panel Auto-Fix Policy. It never asks which findings to apply and never presents a menu: it fixes everything, then reports what changed. A below-gate score means fix the findings and re-run, not stop and ask.
Fix ALL findings automatically — high, medium, and low severity. Do not ask which findings to fix. Do not present a menu or an a/b/c choice. Fix everything, then report what was changed. This overrides any softer "synthesis only" framing. Per 00_Governance/CLAUDE.md §8. (Real-world execution beyond editing the reviewed artifact — e.g. force-push for history rewrite — stays gated per the note below.)
Note on secret findings: If the pre-scoring check finds a literal secret in the diff, the recommended remediation is rotation FIRST, then commit history rewrite (per ~/.claude/CLAUDE.md — force-push is still gated and requires explicit authorization).
The quality gate (quality_gate.run_stage3_panel) consumes this panel via
claude -p and reads the score from stdout, not the exit code. Therefore
the final line of your output MUST be exactly one of:
PANEL-VERDICT: <overall_score>
PANEL-VERDICT: FAIL: <machine_reason>
<overall_score> is the numeric overall score (0–10, one decimal — e.g. 8.3).
The gate applies the pass threshold (default 7.0); do NOT pre-apply it — just
report the score you computed.FAIL: <machine_reason> form only when no score could be produced
(structural failure) — snake_case naming the first blocker (e.g.
no_content, panel_config_missing, experts_unavailable).panel_no_verdict (inconclusive).