asamassekou10/ship-safe/ship-safe-scan

Claude Code and agent skill by asamassekou10/ship-safe

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

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

Install

npx vskill@latest install asamassekou10/ship-safe/ship-safe-scan

SKILL.md

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

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

If $ARGUMENTS is empty, default to .:

bash
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:

json
{
"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
  1. Never display actual secret values — even partial matches should be referred to by type only
  2. 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)
  1. Create or update `.env.example` with placeholder values:

`` STRIPE_SECRET_KEY=sk_live_your_key_here DATABASE_URL=postgresql://user:password@host:5432/db ``

  1. Ensure `.env` is in `.gitignore` — check and add if missing
  1. 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
  1. Suggest auto-fix — mention /ship-safe-fix for bulk remediation, or /ship-safe-baseline to baseline known findings

Read the file and surrounding context before making any changes. Apply fixes only after presenting the findings, unless the user asked for auto-fix.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/asamassekou10/ship-safe/ship-safe-scan/badge)](https://verified-skill.com/skills/asamassekou10/ship-safe/ship-safe-scan)

Something wrong with this skill or its page? Tell us.