/pulse:pulse-auditfrom pulse
Performs comprehensive security audits with prioritized findings: SAST, OWASP (including LLM Top 10), SCA, supply chain, and Zero Trust. Runs as an automated gate on feature branches or on-demand for explicit audit requests.
Ships in pulse. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You perform a comprehensive security audit covering dependency analysis through code review. Output is a prioritized security report with a concrete remediation plan.
Input: Codebase (src/), dependencies, configuration.
Output: _devprocess/analysis/AUDIT-{PROJECT}-{YYYY-MM-DD}.md.
audit/<YYYY-MM-DD>,
produces a standalone report, and registers a fix or improvement item per
deferred finding. Follow-ups get their own branches via /pulse-build.In scope: SAST (CWE-based), OWASP Top 10, OWASP LLM Top 10 (when AI/LLM is present), SCA (dependencies, licenses), Zero Trust (trust boundaries, input validation), code quality security patterns. Desktop/Electron runtime when detected. Safe local PoC verification (isolated).
Out of scope: penetration testing against systems you do not own, compliance certification, architecture design (done by the pulse-plan skill).
After the tests, the audit of the feature branch runs together with the
review in one fresh session, also with risk: [security]; a red gate
gets one fix round per item. It asks nobody and does no live lookup (Phase 0 is
skipped; the brief names the as-of date of the bundled references
instead):
python3 <plugin root>/skills/pulse-audit/tools/audit_scan.py all --scope branch --base <base> --no-baseline, the plugin root being the directory
above the Pulse CLI's bin/, never the audited project. pulse go runs it itself before the
session starts, outside any agent sandbox and with the network, and
saves the JSON at _devprocess/temp/audit-scan.json; its brief names
that path, the SCA status, the as-of date, and the files and
manifests changed since the previous audit that counted
(~/.cache/pulse/<clone>/audit-context.json: date, commit, manifests). A
subagent of /pulse-build runs the scan itself.AUDIT.md where the brief says (in pulse go the path it
names beside the checkout, else the worktree root): first line
Verdict: pass or Verdict: block (block while a Critical or High
finding is open), then Coverage: <what the scan and you checked, and what not>, then one line per finding, - [H-1|M-1|L-1] <file>:<line> <CWE>: <what>. When SCA did not run (offline, error) or left
dependencies unchecked (partial: a lockfile it could not read, or
dependencies declared without a lockfile), the Coverage line says
SCA unavailable. Do not change code, do not commit, do not touch
GitHub.pulse go keeps the verdict, stamped with the commit, and notes the
audit for the next brief. It gives no verdict without the scan of this
commit or without a Coverage line, and none for a pass whose SCA was
offline, error or partial unless the Coverage line says
SCA unavailable.
The builder fixes blocking findings; then the tests run again and the audit looks again. Medium and Low findings stay in the result's audit evidence as notes.
Called by hand, ask the user WHAT to audit (a structured question where
the tool has one, AskUserQuestion in Claude Code). The scan scripts take
a matching --scope:
| Scope | What | Use when |
|---|---|---|
full | whole codebase | first audit, release gate, periodic (recommended default when no prior baseline) |
branch | branch vs merge-base with --base | before integration approval (common gate) |
commit | last commit | quick post-commit check |
working | uncommitted + untracked | mid-development |
staged | staged only | pre-commit |
range | free A..B | targeted investigation |
A diff scope narrows WHERE findings are reported, never the reachability
context: trace source->sink through the full tree even for a diff scan.
Only full advances the delta baseline.
For a release-gate or full audit, additionally offer the opt-in
supply-chain stages (a structured question where the tool has one): the
clean-room rebuild executes
the project's build command in a scratch clone (needs
[audit.supply_chain] config or --build-cmd/--artifact), and the
release verify needs the gh CLI plus network. Both degrade to honest
not-run ledger entries when declined or unavailable.
Phases 1-6 are driven by tools/ (see tools/README.md), not manual
grep. Resolve skills/pulse-audit/tools/... against the Pulse plugin
root (the directory above the Pulse CLI's bin/). The scripts are
offline-graceful and never log secret plaintext; you TRIAGE their JSON
(source->sink, false-positive review) into findings.
python3 skills/pulse-audit/tools/audit_scan.py all --scope <S> [--base main] \
--taxonomy '{"owasp":"...","owasp-llm":"...","cwe-top-25":"..."}'
The bundled references/*.md are the OFFLINE BASELINE. Before scanning,
fetch the CURRENT editions and reconcile:
--taxonomy; it lands in the report and the delta baseline. The
Fix-Loop and re-audit run against this snapshot so a fix is verifiable
against the SAME list; the next fresh audit re-fetches.currency: offline in the report. Never silently claim currency.codeql pack upgrade codeql/javascript-queries (plus python-queries,
go-queries, rust-queries as the project's runtimes demand). A
stale pack means missing detection rules; the report's Coverage
section flags packs older than 90 days as a blindspot.Feed each from audit_scan.py output; triage into findings.
| Phase | Activity | Reference |
|---|---|---|
| 1. Reconnaissance | audit_scan.py detect + surface. Map entry points, data flows, trust boundaries. Read the project's own threat doc if present (REVIEWER_NOTES.md, SECURITY.md); its declared boundaries become mandatory audit targets + regression checks. Internal analysis only. | references/attack-surface.md, references/threat-modeling.md |
| 2. SAST | audit_scan.py sast. Three-layer cascade: CodeQL (taint analysis, when installed and pack cached) + semgrep (AST rules, when installed) + grep (bundled fallback, always). Layers are additive and deduped by fingerprint; a missing tool is documented, never a failure. Triage source->sink. | references/cwe-patterns.md, tools/README.md#codeql-setup-optional-recommended |
| 3. OWASP Top 10 | Check the Phase-0 current edition (baseline A01-A10). | references/owasp-checklist.md |
| 4. OWASP LLM Top 10, agentic and MCP risks | Only if detect reports LLM APIs or the repo carries MCP server configuration. Deepen with the agent/injection refs; once the model acts (tools, memory, other agents) or the project uses MCP servers, check the agentic and MCP risks. | references/owasp-llm-checklist.md, references/agentic-mcp.md, references/agent-approval-gate.md, references/prompt-injection-boundaries.md |
| 4b. Desktop runtime | Only if detect reports electron. | references/desktop-runtime.md |
| 5. SCA | audit_scan.py sca (the OSV API for npm, PyPI, Go, and crates.io; a failed lookup says offline or error). Classify Runtime / Dev / Transitive. Bundle-reachability check; note that a minified grep can false-negative. | -- |
| 5b. Supply chain | audit_scan.py supply-chain (static: lockfile provenance, action pinning, install-script inventory; always part of all). Opt-in stages: --rebuild (clean-room rebuild, executes the project build) and --release-verify (gh attestation of release assets). Stages that did not run appear as not-run in the ledger. | references/supply-chain.md, tools/README.md#supply-chain-checks |
| 6. Zero Trust + Quality | Input validation, least privilege, defense in depth, fail-closed defaults, audit trail, error handling, resource management, race conditions (CWE-362/367), hardcoded credentials, debug code. Optional isolated PoC. | references/local-dast.md |
Code diff only when the fix is not obvious from the remediation sentence.
H-N: <title>
- Severity: Critical | High | Medium | Low | Info
- CWE-ID: CWE-XXX
- CVSS: <v3.1 vector>=<score> (mandatory for High+; omit for Low/Info)
- Location: <file:line>
- FP: <fingerprint from audit_scan.py>
- Evidence: <snippet / source->sink trace / PoC result>
- Risk: <one sentence>
- Remediation: <one sentence with concrete action>
Status values: Confirmed, Unverified, Mitigated, False Positive,
Resolved. State the status, never leave a false positive silent.
Consider context (DevDependency vs. Runtime).
Verification before Confirmed (binding). A grep/semgrep hit is
Unverified until you trace it: is the input attacker/user-controlled,
and does it reach the sink? Record the source->sink path in Evidence,
then set Confirmed. A hit you cannot trace stays Unverified and drops
to P3; never promote an untraced hit to Confirmed. This is what keeps the
report honest (the recurring failure is a plausible-but-unreachable hit
reported as real).
Positive findings: up to 3 entries, skip entirely when overall risk is High or Critical. The team needs the negative list, not encouragement.
Severity schema: Critical (immediately exploitable, data loss / RCE), High (exploitable with low effort, significant impact), Medium (exploitable under specific conditions), Low (best-practice improvement), Info (note, no direct threat).
Defined here. Do not restate the block in re-audit output or in the Handoff Ritual entry; reference the report instead.
=== Security Audit Result ===
Overall risk: {Critical / High / Medium / Low}
P1 (Must Fix, Critical + High): {N} findings
- {H-1}: {title}, {file:line}, effort {S/M/L}
P2 (Should Fix, Medium): {N} findings
- {M-1}: {title}, {file:line}, effort {S/M/L}
P3 (Consider, Low + Info): {N} findings
- {L-1}: {title}, effort {S/M/L}
Positive findings: {up to 3, omitted when overall risk High or Critical}
Before every release, after significant security-relevant changes, periodically (monthly for active projects), after dependency updates (SCA phase).
Pre-fill the template deterministically from the scan JSON, then write the narrative (Risk/Remediation prose, executive summary) on top:
python3 skills/pulse-audit/tools/report_assembler.py fill \
--findings <scan.json> --project {PROJECT} --date {YYYY-MM-DD} \
> _devprocess/analysis/AUDIT-{PROJECT}-{YYYY-MM-DD}.md
fill produces the count matrix, P1/P2/P3 buckets, an HONEST tools
ledger (only tools that ran; kills the semgrep-overclaim), and the
mandatory "Coverage and limitations" section. Keep the report within the
audit artefact cap; move detail into fix specs if it grows.
After the audit, the user picks scope.
Render the audit summary block defined above. Once.
How should I handle the findings?
A) Fix all findings (P1 + P2 + P3), then re-audit.
B) Fix only P1, defer P2/P3 to backlog.
C) Approve fixes one by one.
D) Nothing to fix, report only. All findings go to backlog.
For each finding to be fixed: implement the concrete remediation, run
affected tests (no regressions). Then proof-of-closure: re-run the
SAME detection that surfaced it (the grep/semgrep rule, or the PoC probe
for a CWE-400) and confirm zero hits; record "Closure evidence:
{command} -> 0" before flipping Confirmed -> Resolved. A fix without a
re-detection that comes back clean stays Confirmed. On Option C: show
each fix before continuing.
Re-run affected phases against the SAME taxonomy snapshot, then compute the delta by fingerprint (not by eye):
python3 skills/pulse-audit/tools/report_assembler.py delta \
--before .git/security-audit/prev-run.json \
--after .git/security-audit/last-run.json
=== Re-Audit Delta ===
Before: {N} P1, {N} P2, {N} P3
After: {N} P1, {N} P2, {N} P3
Resolved: {fingerprints}
New: {if a fix introduced new findings}
Adversarial check on any NEW finding a fix introduced: try to refute it (is it reachable?) before reporting it, so a fix-bypass is caught. Loop until all in-scope findings resolve or the user aborts. Do not re-render the full summary block.
Each open finding gets its own fix spec, so pulse go plans and builds
it like any other fix:
skills/pulse-build/templates/FIX-TEMPLATE.md to
_devprocess/requirements/fixes/<slug>.md and fill it from the
report: title <H/M/L-ID>: <short risk>; priority from severity,
H -> P1, M -> P2, L -> P2 (R6 knows P0 to P2 only); effort from the
finding; Symptom with the risk, the evidence as path:line, and a
relative link to the report; Root cause from the source-to-sink
trace; the remediation as FR-01 (EARS) and under Fix; what must keep
working as FR-02 (unchanged); parent: the affected feature (or
epic). Run pulse number --apply: it names the file
FIX-{ee}-{ff}-{nn}-<slug>.md after its place under that parent.pulse new fix "<title>" --draft, create its
fix/<n>-<slug> branch from refs/remotes/origin/<base> after
git fetch origin, commit the spec and push.
Attach it with pulse new fix "<title>" --parent <affected feature or epic> --spec <the fix spec> --issue <n>. Spec, Plan and fix use this branch.
It writes issue: and parent: into the spec; the handoff commit
takes them along.Confirmed with the note "Deferred to
#".Audit report (final version), feature specs (security-relevant changes), decision records (when fixes affect decisions), fix items (open findings).
The audit is the release gate, so the mechanical document check runs
here: pulse check (dead links, missing paths, code paths in decision
records, stubs without an open item). It must report nothing.
docs(audit): <scope> <date> with Refs: for the item and
the fix items, on the item branch you audit, else on a docs branch,
never on the base or default branch. Push after
every commit. The body names unresolved P0/P1 findings and why,
architectural concerns that need redesign rather than patching (for
a future Plan), and the release verdict: green, yellow, or
red.Security Audit, Security Review, OWASP, SAST, SCA, Vulnerability, CVE, Threat Model, Dependency Audit, Code Review Security, Fix-Loop, Handoff
references/agent-approval-gate.md (opens in a new tab)references/agentic-mcp.md (opens in a new tab)references/attack-surface.md (opens in a new tab)references/cwe-patterns.md (opens in a new tab)references/desktop-runtime.md (opens in a new tab)references/local-dast.md (opens in a new tab)references/owasp-checklist.md (opens in a new tab)references/owasp-llm-checklist.md (opens in a new tab)references/prompt-injection-boundaries.md (opens in a new tab)references/supply-chain.md (opens in a new tab)references/threat-modeling.md (opens in a new tab)templates/AUDIT-TEMPLATE.md (opens in a new tab)tools/README.md (opens in a new tab)tools/audit_scan.py (opens in a new tab)tools/lib/__init__.py (opens in a new tab)tools/lib/cleanroom.py (opens in a new tab)tools/lib/codeql_runner.py (opens in a new tab)tools/lib/detectors.py (opens in a new tab)tools/lib/findings.py (opens in a new tab)tools/lib/osv.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pssah4/pulse --plugin pulse10 skills in this plugin
/pulsePulse entry point: where the work stands, what comes next, and which Pulse command fits, and how a person sets Pulse up, starts pulse go, and works the live map. Execute an explicitly requested pulse go start. Use when the user types /pulse, asks "where do I start", "what's next", "who is working on what", "activate Pulse", "build everything that is ready", "show the map", or starts new work without saying what kind it is.
/pulse-baBusiness analysis: a structured dialog about problem, users, and scope, condensed into a short BA record that feeds requirements engineering. Use when the user mentions "Business Analysis", "BA", "Problem Analysis", "Personas", "Define Scope", "Explore", "How might we", "Value Proposition", or starts a new project without a clear requirement.
/pulse-buildOther plugins' skills for the same job