ship-safe-scan

ship-safe-scan is a skill for Claude Code from asamassekou10/ship-safe. It costs 36 tokens per session (685 once invoked), scanned A, original, MIT.

A project scan for exposed secrets such as API keys, passwords, access tokens, and database connection URLs. It uses pattern matching and checks for unusually random-looking text, called entropy analysis.

In plain words
What is it for?
Use it to scan a project, identify leaked credentials by file and line, and review the reported secret type and severity.
Why use it?
It helps find credentials accidentally committed to source files before they are shared or deployed. The scan reports findings without displaying the full secret values.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the ship-safe plugin — 9 skills shipped together

Good fit Use it to scan a project, identify leaked credentials by file and line, and review the reported secret type and severity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asamassekou10/ship-safe/ship-safe-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asamassekou10/ship-safe --skill ship-safe-scan
Clone the repo
git clone --depth 1 https://github.com/asamassekou10/ship-safe

Made for: Claude Code.

Or install ship-safe, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ship-safe-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-scan/github.svg)](https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-scan)
Your own site
<a href="https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-scan"><img src="https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ship-safe-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-scan"><img src="https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 14
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 20
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 82
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00685
Opus 5 $0.00018 $0.00342
Sonnet 5 $0.00007 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 12d ago against content hash bcab9cfb7685, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ship-safe-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code-plugin/skills/ship-safe-scan/SKILL.md · 88 lines

How it starts

The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ship Safe — Secret Scan

You are scanning this project for leaked secrets using Ship Safe's pattern matching and entropy analysis engine.

Step 1: Run the scan

npx ship-safe@latest scan $ARGUMENTS --json 2>/dev/null

If $ARGUMENTS is empty, default to .:

npx ship-safe@latest scan . --json 2>/dev/null

The command exits 0 if clean, 1 if secrets found. Capture stdout regardless.

Step 2: Parse the JSON output

The JSON output has this structure:

{
  "filesScanned": 234,
  "totalFindings": 5,
  "clean": false,
  "findings": [
    {
      "file": "src/config.js",
      "findings": [
        {
          "line": 42,
          "type": "Stripe Live Secret Key",
          "severity": "critical",
          "description": "Hardcoded Stripe live secret key found",
          "matched": "sk_live_****"
        }
      ]
    }
  ]
}

Step 3: Report

If clean: Confirm no secrets were found. Report how many files were scanned. This is good news!

If secrets found:

  1. List each finding grouped by file:
    • File path and line number
    • Secret type (e.g., "AWS Access Key", "GitHub Token", "Database URL")
    • Severity level
  2. Never display actual secret values — even partial matches should be referred to by type only
  3. If multiple secrets are in the same file, group them together

Step 4: Remediate

For each secret found, offer to fix it:

  1. Replace the hardcoded secret with an environment variable reference:

    • JavaScript/TypeScript: process.env.VARIABLE_NAME
    • Python: os.environ.get('VARIABLE_NAME')
    • Use a descriptive variable name based on the secret type (e.g., STRIPE_SECRET_KEY, DATABASE_URL)
  2. Create or update .env.example with placeholder values:

    STRIPE_SECRET_KEY=sk_live_your_key_here
    DATABASE_URL=postgresql://user:password@host:5432/db
    
  3. Ensure .env is in .gitignore — check and add if missing

  4. Warn about git history — if the secret was already committed, it exists in git history. Recommend:

    • Rotating the credential immediately (mention npx ship-safe rotate)
    • Consider using git filter-branch or BFG Repo Cleaner to remove from history

Read the full file on GitHub · 88 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 88 lines · 36 tokens per session scan A bcab9cfb7685

Subscribe to this mod's changes

ship-safe-scan is a skill published in the GitHub repository asamassekou10/ship-safe (842 stars, last pushed 5d ago), licensed MIT. It adds 36 tokens to every session and 685 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

django-migration-psql

Reviews Django migration files for PostgreSQL best practices specific to Prowler. Trigger: When creating migrations, running makemigrations/pgmakemigrations, reviewing migration PRs, adding indexes or constraints to database tables, modifying existing migration files, or writing data backfill migrations. Always use…

prowler-cloud/prowler · 96 tokens

backend-development

Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.

MoizIbnYousaf/Ai-Agent-Skills · 32 tokens

database-connections

Connect a Mendix app to an external database over JDBC with the External Database Connector, and define the queries microflows run against it. Use when the app must read or write Oracle, PostgreSQL, MySQL or SQL Server directly from a microflow.

mendixlabs/mxcli · 55 tokens

mail-time

Use when building, wiring, reviewing, or debugging MailTime and ostrio:mailer email queues for horizontally scaled Node.js, Bun, or Meteor apps. Trigger on MailTime, MongoQueue, RedisQueue, PostgresQueue, mailTimePreset, JoSk email scheduling, Redis Cluster / KeyDB Cluster / Valkey useHashTags, KeyDB…

veliovgroup/mail-time · 179 tokens

connect-rapidminer-graph

Fetch data from a RapidMiner graph mart or any SPARQL 1.1 HTTP endpoint (AnzoGraph and friends) and surface it as Mendix entities. Use when a graph database with a SPARQL endpoint has to feed a Mendix app read-only.

mendixlabs/mxcli · 62 tokens

mendix-odata-pushdown

Push OData query options into the SQL of a Mendix resource served by a read microflow, so $filter, $orderby, $top, $skip, $count and the key lookup reach the database instead of being silently dropped. Use when publishing an OData resource over data Mendix has no table for — a warehouse view, a legacy database, a…

mendixlabs/mxcli · 117 tokens