craft-security

craft-security is a skill for Claude Code, Codex from gul-labs/craftsman-marketplace. It costs 138 tokens per session (2,810 once invoked), scanned A, original, MIT.

A defensive security review standard for applications, covering access checks, input handling, secrets, browser protections, dependencies, and data exposure.

In plain words
What is it for?
Use it when hardening or reviewing endpoints, authentication and authorization, validation, HTTP security headers, CORS, dependencies, or sensitive-data handling.
Why use it?
It helps find weaknesses such as users accessing another person's data, injection attacks, leaked secrets, cross-site scripting, or missing security settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the craftsman plugin — 12 skills shipped together

Good fit Use it when hardening or reviewing endpoints, authentication and authorization, validation, HTTP security headers, CORS, dependencies, or sensitive-data handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gul-labs/craftsman-marketplace/craft-security
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 gul-labs/craftsman-marketplace --skill craft-security
Clone the repo
git clone --depth 1 https://github.com/gul-labs/craftsman-marketplace

Made for: Claude Code, Codex.

Or install craftsman, the plugin that ships this one along with the rest of its 12 skills.

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 craft-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-security/github.svg)](https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-security)
Your own site
<a href="https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-security"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-security/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 craft-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/gul-labs/craftsman-marketplace/craft-security"><img src="https://agentmods.dev/badge/skills/gul-labs/craftsman-marketplace/craft-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 138 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,810 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.00138 $0.02810
Opus 5 $0.00069 $0.01405
Sonnet 5 $0.00028 $0.00562
Haiku 4.5 $0.00014 $0.00281

Measured 5d ago against content hash 2e1c46334961, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

craft-security 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 5d 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.

plugins/craftsman/skills/craft-security/SKILL.md · 187 lines

How it starts

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

Security Craft

This skill encodes one engineer's standard for defensive security, applied the same way across every repo. The method and opinions live here; the project specifics (which auth provider, which secret store, which validation library) live in the target repo's code and config — always discover them, never assume or hardcode.

Operating principle — discover before you build

Different repos already have different pieces in place. Before changing anything, spend a few minutes mapping the current posture so you extend rather than conflict:

  • package.json / lockfile → which auth library, validation library, and HTTP framework are present?
  • grep for an existing env schema (env.ts, config.ts) — are secrets loaded through a validated schema or read raw from process.env?
  • Check for an existing middleware file or proxy entry point — are security headers already set, and where?
  • Scan package.json for known-vulnerable pinning patterns; note whether a dependency scanner (npm audit, Snyk, Dependabot) is wired into CI.
  • Look at existing route handlers — is authorization checked once in middleware, per-route, or not at all?

State what you found, then propose the smallest set of changes that closes the gaps.

The security layers (work in this order)

  1. Authorization & auth-flow security — enforce least-privilege on every resource (a valid session does not mean access to everything), and apply the security standard for the authentication flow (JWT verification criteria: pin the algorithm, reject alg:none, check exp/iss/aud). The authN implementation — verifying the session/token and resolving the principal/tenant in the request lifecycle — is owned by craft-backendauth.md; this layer owns the criteria that verification must meet and the authZ policy on top. See references/authz.md.
  2. Input & output — validate all input at the boundary, encode all output for its target context, parameterize all queries. Never trust data that crossed a trust boundary. See references/input-output.md.
  3. Secrets — credentials, tokens, and keys belong in a validated env schema or secret store, not in source code, logs, or error messages. See references/secrets.md.
  4. Transport & headers — TLS is table stakes; security headers (CSP, HSTS, X-Frame-Options, etc.) and a strict CORS policy narrow the attack surface further. See references/headers-cors.md.
  5. Supply chain — pinned, scanned dependencies with critical vulnerabilities blocking CI. Every package you import is code you're responsible for. See references/supply-chain.md.
  6. Data rights — a user-data deletion path exists and cascades, third-party processors get their own deletion call, an export path exists, and PII is inventoried rather than leaking into logs or error trackers. Engineering-observable only — not legal advice. See references/data-rights.md.

Read the full file on GitHub · 187 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago Changed · +13 lines 2e1c46334961
  2. 11d ago First seen · 174 lines · 138 tokens per session scan A f09988a63b0e

Subscribe to this mod's changes

craft-security is a skill published in the GitHub repository gul-labs/craftsman-marketplace (1 stars, last pushed today), licensed MIT. It adds 138 tokens to every session and 2,810 once invoked, about $0.0007 per session on Opus 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-31.

Related

Other skills, from other repositories

plumb-line-audit

Use when auditing a diff or repository against the plumb-line principles — finds laundered uncertainty, boundary leaks, hardcoded priors, overstated maturity, outputs lacking recorded lineage, and baseline drift with no explanation. Read-only: it reports, never auto-fixes.

slopstopper/plumb-line · 0 tokens

plumb-line-bootstrap

Use when setting up a project with the plumb-line discipline — interviews the builder to find their source-truth layer and layering, generates a domain-neutral ruleset, and installs parameterized enforcement (boundary check, test gate, pre-commit gate, branch guard) for the project's language. Ships no default layers…

slopstopper/plumb-line · 73 tokens

plumb-line-remediate

Use when applying findings from a plumb-line audit report — the builder has a report (or pasted findings) and wants the fixes made. Opt-in and separate from the audit, which is read-only and never fixes.

slopstopper/plumb-line · 51 tokens

plumb-line-adopt

Use when a builder wonders what plumb-line would do for their codebase or which part to adopt — or when, mid-task, their work shows a fit signal (adding a mock or fallback near a production path, mixing fixture, cached, or LLM/agent-produced data with real data) and visible uncertainty would help. Inspects the repo…

slopstopper/plumb-line · 0 tokens

plumb-line-method

Use when a builder wants to learn or be reminded of the plumb-line method — the discipline of epistemic honesty enforced by tooling. Teaches the thesis, the nine portable principles, the maturity vocabulary, and the one-line test. Pure knowledge; takes no actions.

slopstopper/plumb-line · 59 tokens

setup-craft-skills

Run once per repository to get the most out of the other craft skills (explain-back, name-things, delete-this, seams, loud-errors, boyscout, why-comments, fit-in). Scaffolds an optional shared CONTEXT.md — domain glossary, language/stack, conventions, and untouchables — that those skills read to match your project's…

mikestangdevs/craft-skills · 139 tokens