Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

security-precheck

Skill by LeeYudok

Runs a self-check for security issues before an external security team reviews the code. It scans with a security-audit agent and optional SonarQube hotspots, sorts findings into P0, P1 and P2, then fixes them in parallel. Aimed at developers preparing for an external audit.

  • Score 50
  • 40 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install security-precheck

Built from the published package, never by AI.

git clone --depth 1 https://github.com/LeeYudok/agents-scaffold /tmp/agents-scaffold && mkdir -p ~/.claude/skills && cp -r /tmp/agents-scaffold/.claude/skills/security-precheck ~/.claude/skills/security-precheck

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install security-precheck in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Security-precheck is a workflow skill for preparing code for an external security review. It runs a security-audit agent in parallel with an optional SonarQube security hotspot check. The skill checks for items such as hardcoded secrets, missing authentication and PII logging, then reports results as P0, P1 or P2 with a count of checks that passed.

P1 findings are grouped by file or topic into GitHub or GitLab issues. Each issue is handled by a subagent running in its own git worktree, and changes go through pull or merge requests that are merged one at a time. Accepted risks are saved to a project memory file. The skill is meant for teams that want to fix findings before an outside security team audits their code.

Written from the project's SKILL.md and checked against it.

What it can do

  • Security audit scanRuns the security-audit agent over P0 code rules and agent configuration items using grep-based checks.
  • SonarQube hotspot checkPulls TO_REVIEW security hotspots from SonarQube when sonar-project.properties is present.
  • Severity reportSorts findings into P0, P1 and passed items with a summary table.
  • Issue creationCreates grouped GitHub or GitLab issues for P1 findings using the gh or glab CLI.
  • Parallel fixesDispatches subagents in isolated worktrees to fix issues, grouping issues that touch the same file.
  • Sequential mergeOpens a PR or MR per fix, checks CI and build gates, and merges them one at a time.
  • Memory recordSaves the date, finding counts, issue numbers and accepted risks to a project memory file.

What you need

  • gh or glab CLI
  • Git
  • SonarQube host and token (optional, read from SONAR_HOST_URL and SONAR_TOKEN)

Try asking

  • Run a security precheck on this repo before the external audit.
  • Scan the code for hardcoded secrets and missing auth checks.
  • Create grouped issues for the P1 findings and fix them in parallel.

Good to know

  • The SonarQube step is skipped when sonar-project.properties is missing.
  • Frontend build gates can fail in new worktrees until dependencies are installed.
  • MCP permissions are granted per tool, so read-only limits cannot be set.

Security check

B
  • Allowed to use Bash, Edit, Write without limitsIn SKILL.md

Checked automatically: .claude/skills/security-precheck/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: BashAgentReadEditWrite

Alternatives to security-precheck

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

security-precheck: common questions

Does security-precheck need SonarQube?

No. The source says the SonarQube hotspot step runs only when sonar-project.properties exists, and otherwise it is skipped and reported.

Does it push code or merge to the main branch directly?

The source says subagents commit only and do not push or merge. Changes go through PR or MR, and direct commits to main or develop are not allowed.

Which findings get turned into issues?

The source says issues are created for P1 and above, excluding trivial items. Related findings in the same file or topic are grouped into one issue.

How do I install security-precheck?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is security-precheck free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is security-precheck safe to use?

It scores 50 of 100. Grades: maintenance A, licence A, quality C. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.

What are alternatives to security-precheck?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

security-precheck Install

Add to stack

Loading.