ship-safe-fix

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

An automatic security-fix tool that previews and applies changes for exposed secrets and several common unsafe code patterns.

In plain words
What is it for?
Use it to move hardcoded secrets into environment variables and fix supported TLS, Docker, debug, XSS, and shell-execution issues.
Why use it?
It reduces the manual work of correcting recurring security mistakes, while showing the proposed edits before applying them.

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 move hardcoded secrets into environment variables and fix supported TLS, Docker, debug, XSS, and shell-execution issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asamassekou10/ship-safe/ship-safe-fix
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-fix
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-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-fix/github.svg)](https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-fix)
Your own site
<a href="https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-fix"><img src="https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-fix/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-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/asamassekou10/ship-safe/ship-safe-fix"><img src="https://agentmods.dev/badge/skills/asamassekou10/ship-safe/ship-safe-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 719 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: 7 findings, up to high

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 →

  • high Anti-Refusal · line 27
    Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.
    Fix: Remove jailbreak framing that nullifies safety policies or restrictions. Skill content must not instruct the agent to ignore its guidelines or operate without guardrails.
  • medium MCP Rug Pull · line 16
    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 22
    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 42
    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 48
    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 57
    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 69
    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.00047 $0.00719
Opus 5 $0.00023 $0.00360
Sonnet 5 $0.00009 $0.00144
Haiku 4.5 $0.00005 $0.00072

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

Security

Grade A, and why

ship-safe-fix 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 13d 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-fix/SKILL.md · 80 lines

How it starts

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

Ship Safe — Auto-Fix Security Issues

You are using Ship Safe's remediation engine to automatically fix security issues in this project.

Step 1: Preview the fixes

Always start with a dry run to show what will change:

npx ship-safe@latest remediate $ARGUMENTS --dry-run 2>&1

If $ARGUMENTS is empty, default to . --all (fix both secrets and agent findings):

npx ship-safe@latest remediate . --all --dry-run 2>&1

Flags:

  • No --all flag → only fixes hardcoded secrets (moves to env vars)
  • With --all → also fixes: TLS bypass (rejectUnauthorized: false), Docker :latest tags, debug mode enabled, dangerouslySetInnerHTML without sanitization, shell: true in exec/spawn

Step 2: Present the preview

Show the user what will be changed:

  1. List each file that will be modified
  2. Show the before/after for each change
  3. Group by fix type (secrets, TLS, Docker, debug, XSS, shell)
  4. Note any files that will be created (.env.example, .env)

Step 3: Apply fixes (with confirmation)

Ask the user if they want to proceed. If yes:

npx ship-safe@latest remediate . --all --yes 2>&1

If the user only wants to fix secrets (not agent findings):

npx ship-safe@latest remediate . --yes 2>&1

Step 4: Post-fix verification

After applying fixes:

  1. Run a quick scan to verify secrets were removed:

    npx ship-safe@latest scan . --json 2>/dev/null
    
  2. Report the results — how many issues were fixed vs. remaining

  3. For remaining issues that couldn't be auto-fixed, offer to fix them manually by reading the code and applying targeted changes

Step 5: Follow-up actions

Suggest:

  • Review .env.example — make sure variable names make sense
  • Add .env to .gitignore if not already there
  • Rotate exposed secrets — run npx ship-safe rotate . for step-by-step guides
  • Update baseline — run /ship-safe-baseline . to update after fixes
  • Stage changes — offer to stage the modified files with git

Read the full file on GitHub · 80 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. 13d ago First seen · 80 lines · 47 tokens per session scan A 7fda1a1d6b49

Subscribe to this mod's changes

ship-safe-fix is a skill published in the GitHub repository asamassekou10/ship-safe (842 stars, last pushed 5d ago), licensed MIT. It adds 47 tokens to every session and 719 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