sentinel
Skill14 starsChanged 2 months agoMITView on GitHub
Security scan — OWASP Top 10, credential/secret detection, injection surfaces, dependency audit, git-history secret scan, auth spot-check. Never modifies code; produces a severity-ranked report. Use to audit a codebase for vulnerabilities.
- Reads credentials
12 other projects use a version of this.
Adopted by
Most recently taken up by
- simota/agent-skillstheir own version, first seen Sep 17, 2026
- DROOdotFOO/agent-skillstheir own version, first seen Sep 1, 2026
- soulemike/microsoft-skillstheir own version, first seen Aug 18, 2026
- mqmalagris/agent-skillstheir own version, first seen Aug 7, 2026
- guihai24/openskillstheir own version, first seen Jul 24, 2026
- xiaomo-agi/xiaomo-skillstheir own version, first seen Jul 3, 2026
Used with
Projects with it also use scout and architect.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
srpadronoSkillscout
Writes UI tests for untested steps in the journey map using framework-correct selectors, waits, and patterns. Use when writing tests to fill coverage gaps or generating E2E tests for untested journey steps.
Also in 3 projects that use this
jdonohooSkillarchitect
Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.
Also in 4 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- vinayaklatthe/microsoft-security-skills★ 175same name
- Rune-kit/rune★ 88same name
- simota/agent-skills★ 87same name
- GadaaLabs/claude-code-on-steroids★ 67same name
- xiaomo-agi/xiaomo-skills★ 28same name
- copyleftdev/palimpsest★ 2same name
- guihai24/openskills★ 2same name
- soulemike/microsoft-skills★ 2same name
- supportersimulator/3-surgeons★ 2same name
- DROOdotFOO/agent-skills★ 1same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- accelerateSkill
- almanacSkill
- autopsySkill
- blueprintSkill
- certifySkill
- chronicleSkill
- confluenceSkill
- conjureSkill
- deploySkill
- divineSkill
- inscribeSkill
- jiraSkill
- knowledge-graphSkill
- magicSkill
- manifestSkill
- orchestrateSkill
- portalSkill
- scrutinizeSkill
- sealSkill
- statuslineSkill
- transmuteSkill
- unravelSkill
- wardSkill
- weaveSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Run a comprehensive security scan of the codebase.
- Very specific: line 23
Notice the switch: If a fallback notice appears mid-scan, say so in the report rather than presenting mixed-tier findings as one uniform …
- Distinctive: line 44
Run for detected stack:
- Very specific: line 62
Prefer lockfile integrity in CI (npm ci, not npm install) and pinned versions.
- Distinctive: line 65
Check for secrets in git history:
- Distinctive: line 123
When invoked interactively by a human, surface the same obstacle in prose instead.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/sentinel — Security Scan
Bundled command: if
magician-scanis not found, run it as${CLAUDE_PLUGIN_ROOT}/tools/magician-scan. If that is missing too (Claude chat ships no plugin tools), skip the static-analysis step, say so in the report, and run the rest.
Run a comprehensive security scan of the codebase. Available as CLI: magician-scan (plugin-provided; on PATH when the plugin is enabled).
For very large repos, raise /effort so the analysis stays thorough across the codebase (your model's deepest level — xhigh, or max where unsupported). See lore/models.md.
The scan can change models under you
Opus 5 and Fable 5 run cybersecurity classifiers, and Claude Code responds to a flag by re-running the request on a fallback model and continuing the session there (Fable 5 → Opus 4.8; Opus 5 → Opus 4.8). A long sweep can therefore finish on a different tier than it started on, with only a transcript notice to say so. Three things follow:
- Frame the work defensively and concretely. "Audit this code for injection surfaces and report them" reads as the defensive review it is. Asking for working exploits, attack tooling, or evasion techniques is what trips the classifier — and it is outside this skill's scope anyway: sentinel is read-only and reports findings with remediation.
- Notice the switch. If a fallback notice appears mid-scan, say so in the report rather than presenting mixed-tier findings as one uniform pass, and offer
/modelto return. - When it fires on nothing. A flag on the first request usually comes from workspace context —
CLAUDE.md, skills, directory names, git status — not from what was asked.claude --safe-moderuns without customizations and isolates that. To be asked instead of switched, setswitchModelsOnFlag: false.
See lore/models.md.
Destructive-command hard gate (always on, not part of a scan)
Independent of any scan, magician ships a PreToolUse(Bash|PowerShell) hook, scripts/destructive-guard.sh (self-contained plain bash — no other interpreter), that unconditionally blocks catastrophic commands: recursive deletes of system or home roots, raw writes to disk devices, fork bombs, piping a network download straight into a shell or interpreter, decoding base64 straight into a shell, evaluating a downloaded command substitution, and a Bash command that could expose the secrets saved in magician's plugin options (one that names any of those options or the session environment file, reads another process's environment through the proc filesystem, or prints the whole environment with env, set or one of the other listing commands the guard checks). It exits 2, so the block lands before permission rules are evaluated — it overrides allow rules and fires in every mode (default/acceptEdits/auto/bypass), with no escape hatch. Common command wrappers (sudo, timeout, nohup, command, ...), ( )/{ } grouping and inline sh -c payloads (other shell options before the -c included) are unwrapped before the check. If a Bash or PowerShell call is refused with a magician destructive-guard: refused message, do not retry, rephrase, or obfuscate — the human must run it themselves outside the agent. Honest limit (CWE-78): a denylist can't catch every obfuscation, so this is a deterministic net layered under OS sandboxing + auto-mode's classifier + model judgment, not a complete sandbox.
Process
1. Static Analysis (via magician-scan)
magician-scan .magician-scan is plugin-provided (on PATH when the plugin is enabled) and makes no network calls. If magician-scan can't be run, note that in the report, skip this step, and continue with the remaining checks.
Reports: hardcoded credentials, private keys, eval() calls, SQL injection via % formatting, innerHTML XSS, dangerouslySetInnerHTML, os.system calls, shell=True subprocess.
2. Dependency Audit
Run for detected stack:
- Node.js:
npm audit - Python:
pip-audit(if installed) orsafety check - Go:
govulncheck ./...(if installed) - Rust:
cargo audit - Java: OWASP dependency-check (if configured)
These audit tools reach the network: npm audit sends the dependency list to the npm registry; pip-audit sends package names and versions to PyPI (or OSV, if you choose it); safety check downloads Safety's vulnerability database and, when you use a Safety API key, sends the package list to Safety's servers; govulncheck asks the Go vulnerability database at vuln.go.dev about the modules you use, and the go command downloads any module missing from its cache from your module proxy (proxy.golang.org by default); and cargo audit downloads the RustSec advisory database from GitHub and, to spot yanked versions, fetches the crates.io index entry of each crate in Cargo.lock. Skip any the user doesn't want run.
2.5 Dependency Supply-Chain Check
Known-CVE audits miss supply-chain attacks — the vector behind recent registry compromises where installing a package was enough to steal SSH keys, cloud credentials, and other secrets. Check the install-time surface:
- Install-time scripts — flag lifecycle hooks that run arbitrary code on install:
(Python equivalent: customgrep -rEn '"(preinstall|install|postinstall)"\s*:' package.json 2>/dev/nullsetup.py/pyproject.tomlbuild hooks.) - Newly added / unfamiliar deps — review new lockfile entries and dependencies that are typosquats of popular packages.
- Exfiltration shape — a dependency that reads credentials (
~/.ssh,~/.aws, env vars, wallets) and reaches the network is high-risk; escalate as Critical. - Prefer lockfile integrity in CI (
npm ci, notnpm install) and pinned versions.
3. Secret Detection
Check for secrets in git history:
git log --all -i -G'(password|secret|token|api[_-]?key)[[:space:]]*[:=]' --pretty=format:'%h %ad %an' --date=short --name-only -- '*.env' '*.key' '*.pem' 2>/dev/null | head -40This lists commits and files only (it never prints values). Open a specific commit to confirm, but never paste secret values into the report; tell the user to rotate anything found.
4. Auth/Authz Spot Check
For web archetypes: identify all API endpoints and verify auth middleware is applied.
5. Input Validation Check
Scan for user input without sanitization.
Report Format
=== SENTINEL SECURITY REPORT ===
Date: <timestamp>
Target: <path>
CRITICAL: N
HIGH: N
MEDIUM: N
LOW: N
[CRITICAL] src/auth.ts:45 — Hardcoded API key
[HIGH] src/db.ts:12 — SQL query built with string concatenation
...
DEPENDENCY AUDIT: N vulnerabilities found
OVERALL POSTURE: Clean | Needs attention | Requires immediate action6. CI Integration Note
For CI pipeline use: magician-scan exits 0 (clean), 1 (issues) or 2 (unknown option or missing path); magician-scan --help shows the usage.
# .github/workflows/security.yml
- name: Security scan
run: magician-scan .Obstacles
If this skill runs as a dispatched unit (under /orchestrate, /weave, /manifest, /transmute, or another skill) and hits something that blocks or degrades the work, do not wait for a human who is not there and do not silently ship a degraded result — return an Obstacles block to the caller, alongside whatever you did complete:
STATUS: BLOCKED | DEGRADED | NEEDS_CONTEXT
OBSTACLE: <one-line label of what blocked or degraded the task — the claim alone>
BLOCKER: <the specific, actionable cause — distilled, never a raw traceback or dumped log>
SEVERITY: Critical | High | Medium | Low
WORKAROUND: <what you did to proceed and what it leaves unverified; empty if still fully blocked>
RECURRENCE: First-seen | Recurring | Systemic
SCOPE: <this task only | likely hits sibling/downstream work too>
NEXT: <the action or decision the caller must make to clear it — retry with X, supply input Y, accept degraded, or escalate>When invoked interactively by a human, surface the same obstacle in prose instead. Omit the block entirely on a clean run. See lore/obstacles.md.
Completion Signal
"Sentinel complete. <N total findings>. Review report above and run /scrutinize for systematic remediation."
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
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.

