asamassekou10/ship-safe/ship-safe-fix
Claude Code and agent skill by asamassekou10/ship-safe
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install asamassekou10/ship-safe/ship-safe-fixSKILL.md
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:
If $ARGUMENTS is empty, default to . --all (fix both secrets and agent findings):
Flags:
- No
--allflag → only fixes hardcoded secrets (moves to env vars) - With
--all→ also fixes: TLS bypass (rejectUnauthorized: false), Docker:latesttags, debug mode enabled,dangerouslySetInnerHTMLwithout sanitization,shell: truein exec/spawn
Step 2: Present the preview
Show the user what will be changed:
- List each file that will be modified
- Show the before/after for each change
- Group by fix type (secrets, TLS, Docker, debug, XSS, shell)
- 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:
If the user only wants to fix secrets (not agent findings):
Step 4: Post-fix verification
After applying fixes:
- Run a quick scan to verify secrets were removed:
``bash npx ship-safe@latest scan . --json 2>/dev/null ``
- Report the results — how many issues were fixed vs. remaining
- 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
Important Notes
- Ship Safe creates a backup before modifying files — the user can revert if something breaks
- The
--allflag is important for fixing agent-level findings beyond just secrets - Never display actual secret values, even in the dry run output
- If a fix might break functionality (e.g.,
shell: falsein exec), warn the user to test - For
dangerouslySetInnerHTMLfixes, note thatDOMPurifyneeds to be installed:npm install dompurify
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
- SKILL.md in the repositoryCheckingclaude-code-plugin/skills/ship-safe-fix/SKILL.md
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
[](https://verified-skill.com/skills/asamassekou10/ship-safe/ship-safe-fix)