dok3-security-precheck

dok3-security-precheck is a skill for Claude Code from LeeYudok/agents-scaffold. It costs 76 tokens per session (1,443 once invoked), scanned A, original, MIT.

A security audit preparation workflow that scans source code and, when configured, SonarQube security hotspots. SonarQube is a tool that reports possible code-security problems.

In plain words
What is it for?
Use it for security checks, audit preparation, and code-audit requests, including problems such as exposed secrets, missing access checks, and unsafe logging.
Why use it?
It finds and prioritizes security issues before an external security team reviews the code, then tracks fixes and checks them again.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it for security checks, audit preparation, and code-audit requests, including problems such as exposed secrets, missing access checks, and unsafe logging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leeyudok/agents-scaffold/dok3-security-precheck
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 LeeYudok/agents-scaffold --skill dok3-security-precheck
Clone the repo
git clone --depth 1 https://github.com/LeeYudok/agents-scaffold

Made for: Claude Code.

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 dok3-security-precheck

README.md
[![agentmods](https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/dok3-security-precheck/github.svg)](https://agentmods.dev/skills/leeyudok/agents-scaffold/dok3-security-precheck)
Your own site
<a href="https://agentmods.dev/skills/leeyudok/agents-scaffold/dok3-security-precheck"><img src="https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/dok3-security-precheck/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 dok3-security-precheck

Your own site · 80×15
<a href="https://agentmods.dev/skills/leeyudok/agents-scaffold/dok3-security-precheck"><img src="https://agentmods.dev/badge/skills/leeyudok/agents-scaffold/dok3-security-precheck.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00076 $0.01443
Opus 5.5 $0.00030 $0.00577
Sonnet 5.5 $0.00015 $0.00289
Haiku 4.5 $0.00008 $0.00144

Measured today against content hash 0962f5b36649, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dok3-security-precheck scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -u "${SONAR_TOKEN}:" \
presets/lang/en/base/.claude/skills/dok3-security-precheck/SKILL.md · 114 lines

How it starts

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

Security Pre-check (before an external audit)

Sweep the codebase with the same criteria an external security team would use, and fix findings ahead of time.

1. Scan (parallel)

Run concurrently:

Agent(subagent_type: "security-audit") — grep-based scan of the 12 P0 code items
  (hardcoded secrets, missing auth, PII logging, ...) + 8 agent-config items
  (.claude/ hooks, MCP, permissions, prompt injection)
# SonarQube security hotspots (TO_REVIEW only) — skip this step with a note if the
# project has no sonar-project.properties. Never hardcode the host or token:
# use $SONAR_HOST_URL / $SONAR_TOKEN from the environment.
if [ -f sonar-project.properties ]; then
  key=$(grep 'sonar.projectKey' sonar-project.properties | cut -d= -f2-)
  curl -s -u "${SONAR_TOKEN}:" \
    "${SONAR_HOST_URL}/api/hotspots/search?projectKey=$key&status=TO_REVIEW&ps=500" \
    | python3 -c "import sys,json; d=json.load(sys.stdin); print('TO_REVIEW:', len(d['hotspots'])); [print(h['ruleKey'], h['component'], h.get('line','')) for h in d['hotspots']]"
fi

The security-audit agent produces better results when its prompt names this project's concrete context (auth mechanism, session handling, CORS config, data-access layer, PII fields). Don't describe these from memory — at run time, grep the repo for its auth/session/CORS/data-access entry points and include what you actually find.

2. Grading + report

  • P0 (critical): escalate immediately. Hardcoded secrets, auth bypass, SQL injection, .env leaked into git, etc.
  • P1 (recommended fix): this skill's main target. Missing rate limits, missing cookie attributes, missing constant-time comparison, overly broad permission allows, PII logging, etc.
  • Pass: also list items that were checked and found clean (what was checked is the evidence of coverage).

Report as a table: P0 N / P1 N / pass N.

3. Issue registration (P1 and up, skip trivia)

Group findings by file/topic into one issue each — no issue-per-finding spam. Example: three findings in the same auth controller (rate limit, cookie attributes, constant-time comparison) become one issue.

Read the full file on GitHub · 114 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. today First seen · 114 lines · 76 tokens per session scan A 0962f5b36649

Subscribe to this mod's changes

dok3-security-precheck is a skill published in the GitHub repository LeeYudok/agents-scaffold (40 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 1,443 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-30.

Related

dok3-security-precheck compared with skills from other repositories

dok3-security-precheck next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dok3-security-precheckLeeYudok/agents-scaffoldSkill40todayMITA76Claude Code
nx-libSpaceMalamute/ai-rulesSkill29mo agononeA15Claude Code
reviewSpaceMalamute/ai-rulesSkill29mo agononeA14Claude Code
learningSpaceMalamute/ai-rulesSkill29mo agononeA37Claude Code
code-reviewSpaceMalamute/ai-rulesSkill29mo agononeA15Claude Code
security-auditSpaceMalamute/ai-rulesSkill29mo agononeA14Claude Code
sudden-deathSpaceMalamute/ai-rulesSkill29mo agononeA13Claude Code