Skip to main content
ClaudeWave
Skill829 estrellas del repoactualizado 4d ago

ship-safe-baseline

Manage your security baseline — accept current findings as known debt, then only report new regressions on future scans. Use when the user wants to adopt security scanning incrementally or suppress existing findings.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/asamassekou10/ship-safe /tmp/ship-safe-baseline && cp -r /tmp/ship-safe-baseline/claude-code-plugin/skills/ship-safe-baseline ~/.claude/skills/ship-safe-baseline
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# Ship Safe — Baseline Management

You are helping the user manage their security baseline. A baseline lets teams "accept" current findings as known technical debt and only see new regressions on future scans.

## Understand the request

- **No flags or just a path** → Create/update the baseline
- **`--diff`** → Show what changed since the baseline was created
- **`--clear`** → Remove the baseline

## Step 1: Run the baseline command

```bash
npx ship-safe@latest baseline $ARGUMENTS 2>&1
```

If `$ARGUMENTS` is empty, default to `.`:

```bash
npx ship-safe@latest baseline . 2>&1
```

For diff mode:
```bash
npx ship-safe@latest baseline . --diff 2>&1
```

For clearing:
```bash
npx ship-safe@latest baseline --clear 2>&1
```

## Step 2: Explain the result

### If creating a baseline:
1. Report how many findings were baselined
2. Explain that `.ship-safe/baseline.json` was created
3. Tell the user they can now run `npx ship-safe audit . --baseline` (or `/ship-safe --baseline`) to only see new findings
4. Recommend adding `.ship-safe/baseline.json` to version control so the whole team shares the same baseline

### If showing diff:
1. Report new findings (not in baseline) — these are regressions
2. Report resolved findings (in baseline but no longer detected) — these are improvements
3. If no changes, confirm the codebase matches the baseline

### If clearing:
Confirm the baseline was removed. Future scans will show all findings again.

## Step 3: Suggest workflow

After creating a baseline, suggest this workflow:
- **CI pipeline**: Add `npx ship-safe audit . --baseline --json` to fail builds only on new findings
- **Periodic review**: Run `/ship-safe-baseline --diff` to track progress on reducing technical debt
- **After fixing**: Run `/ship-safe-baseline .` to update the baseline

## Important Notes

- The baseline uses content-based fingerprints (`rule:path:snippet`), not line numbers — so the baseline survives code reformatting and line shifts
- Creating a baseline does NOT mean the findings are safe — it means the team acknowledges them and will address them over time
ship-safe-ciSkill

Run Ship Safe in CI mode — compact output, exit codes, SARIF generation. Use when the user wants to set up CI/CD security gates or test their pipeline configuration.

ship-safe-deepSkill

Run a deep security audit with LLM-powered taint analysis — regex scan nominates findings, then an LLM verifies taint reachability and exploitability. Use when the user wants thorough, high-confidence results with fewer false positives.

ship-safe-fixSkill

Auto-fix security issues — remediate hardcoded secrets and common vulnerabilities (TLS bypass, debug mode, XSS, shell injection, Docker :latest). Use when the user wants to automatically fix security findings.

ship-safe-hooksSkill

Install ship-safe as real-time Claude Code hooks — blocks secrets and dangerous commands before they land on disk. Use when the user wants automatic security scanning on every file write or bash command.

ship-safe-red-teamSkill

Run a multi-agent red team scan — 29 specialized security agents scan for 80+ attack classes including injection, auth bypass, SSRF, supply chain, Supabase RLS, MCP security, agentic AI, RAG poisoning, PII compliance, and more. Use when the user wants a deep security analysis beyond just secrets.

ship-safe-scanSkill

Quick scan for leaked secrets — API keys, passwords, tokens, database URLs. Use when the user wants to check for hardcoded secrets or exposed credentials.

ship-safe-scoreSkill

Get your project's security health score (0-100, A-F grade). Use when the user wants a quick security check or asks "is my code safe to ship?

ship-safeSkill

Run a full security audit on this project — 16 agents scan for secrets, injections, auth bypass, SSRF, supply chain, Supabase RLS, MCP security, agentic AI, RAG poisoning, PII compliance, and more. Use when the user wants a security audit, vulnerability scan, or asks if their code is safe to ship.