markdown-site: Skill for Claude Code

.claude/sec-check/SKILL.md

sec-check is a skill for Claude Code from waynesutton/markdown-site. It costs 46 tokens per session (608 once invoked), scanned A, original, MIT.

A checklist for reviewing security in Convex backend code, authentication, public data queries, admin routes, webhooks, uploads, and AI-generated code.

In plain words
What is it for?
Use it to review auth logic, user-data access, public API responses, admin actions, forms, webhooks, uploads, and API-key flows.
Why use it?
It helps find unauthorized access, accidental exposure of personal data, unsafe public functions, and weak ownership checks before code is shipped.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is waynesutton/markdown-site's own configuration. It tells Claude Code how to work on markdown-site itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything markdown-site configures →

Reuse

Borrowing it

Nothing to install: this file belongs to waynesutton/markdown-site. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/waynesutton/markdown-site/main/.claude/sec-check/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/waynesutton/markdown-site

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 sec-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/waynesutton/markdown-site/sec-check/github.svg)](https://agentmods.dev/skills/waynesutton/markdown-site/sec-check)
Your own site
<a href="https://agentmods.dev/skills/waynesutton/markdown-site/sec-check"><img src="https://agentmods.dev/badge/skills/waynesutton/markdown-site/sec-check/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 sec-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/waynesutton/markdown-site/sec-check"><img src="https://agentmods.dev/badge/skills/waynesutton/markdown-site/sec-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 608 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00046 $0.00608
Opus 5.5 $0.00018 $0.00243
Sonnet 5.5 $0.00009 $0.00122
Haiku 4.5 $0.00005 $0.00061

Measured 1mo ago against content hash 7bf12260512f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sec-check scanned grade A with 0 findings 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 1mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/sec-check/SKILL.md · 63 lines

How it starts

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

Security Review Skill

Use this skill when reviewing Convex functions, auth logic, public query shapes, admin routes, webhooks, uploads, or any AI generated code that touches user data.

When to use it

Reach for this skill when:

  • a mutation writes user or admin data
  • a public query returns package or user data
  • an internal function should be separated from a public wrapper
  • a form collects names, emails, or other contact info
  • a webhook, upload, or API key flow is added
  • AI generated code needs a security pass before shipping

Auth and ownership checks

  • Call ctx.auth.getUserIdentity() before authenticated writes.
  • Never trust client supplied user ids for ownership.
  • Prefer indexed ownership checks over fetch then compare patterns.
  • Use internalQuery, internalMutation, and internalAction for sensitive backend work.
  • Keep public wrappers thin. Do auth and access checks there, then call internal functions.
  • Return generic Not found style errors when you should not reveal existence.

Data exposure rules

  • Public queries should return public safe shapes only.
  • Strip PII like email, name, Discord handle, internal notes, AI review details, or admin metadata unless the caller is allowed to see them.
  • Add explicit return validators on public functions so the response shape stays tight.
  • Mutations should return minimal data, usually ids or null, not the submitted object.
  • Treat everything returned by a query as visible in browser DevTools and WebSocket traffic.

Sensitive integrations

  • Keep secrets in server side environment variables only.
  • Validate webhook signatures before processing.
  • Restrict CORS for sensitive endpoints.
  • Validate upload types and file sizes server side.
  • Do not send user PII into AI prompts when it is not required for the task.
  • Use simple actor labels like AI or System, not fake email addresses, for automated actions.

AI generated code checks

  • Watch for missing returns validators.
  • Watch for public query or mutation usage where internal* should be used.
  • Watch for ctx.db.get() plus client supplied ids in ownership checks.
  • Watch for full objects returned from public queries or mutations.
  • Watch for vague or over detailed error messages that leak internal state.

Read the full file on GitHub · 63 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. 1mo ago First seen · 63 lines · 46 tokens per session scan A 7bf12260512f

Subscribe to this mod's changes

sec-check is a skill published in the GitHub repository waynesutton/markdown-site (627 stars, last pushed 5mo ago), licensed MIT. It adds 46 tokens to every session and 608 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.