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.
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-precheckRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold /tmp/agents-scaffold && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agents-scaffold/.claude/skills/security-precheck ~/.gemini/antigravity-cli/skills/security-precheckAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
