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?"
Install
npx skillscat add asamassekou10/ship-safe/ship-safe-score Install via the SkillsCat registry.
Ship Safe — Security Score
You are checking this project's security health score.
Step 1: Run the score command
npx ship-safe@latest score $ARGUMENTS 2>&1If $ARGUMENTS is empty, default to .:
npx ship-safe@latest score . 2>&1If the user mentions skipping dependencies, add --no-deps.
The command outputs styled terminal text (not JSON). Parse the output for the score, grade, and category breakdown.
Step 2: Present the results
Extract and present:
- Score and Grade: The 0-100 score and A-F letter grade
- Category Breakdown: Show deductions per category (Secrets, Code Vulnerabilities, Dependencies)
- Grade Meaning:
- A (90-100): Ship it! Your code looks secure.
- B (75-89): Minor issues to review, but generally safe.
- C (60-74): Fix issues before shipping to production.
- D (40-59): Significant security risks present.
- F (0-39): Not safe to ship. Critical issues found.
Step 3: Recommendations
Based on the score:
A or B (75+): Congratulate the user. Suggest running
npx ship-safe guardto install a pre-push git hook that maintains the score. Mention they can run/ship-safefor a detailed breakdown anytime.C (60-74): Recommend running
/ship-safefor a full audit to see exactly what needs fixing. Mention the most likely problem areas based on the category breakdown.D or F (below 60): Strongly recommend running
/ship-safeimmediately. Offer to start the full audit right now. Emphasize that critical findings should be fixed before any deployment.