plainweave: Skill for Claude Code

.agents/skills/wardline-gate/SKILL.md

wardline-gate is a skill for Claude Code, Codex from foundryside-dev/plainweave. It costs 69 tokens per session (881 once invoked), scanned A, original, MIT.

A security workflow for finding and fixing trust-boundary bugs, where untrusted data reaches code that expects validated data.

In plain words
What is it for?
It helps run static taint scans, trace a finding back to its source, add validation at the correct boundary, and confirm the defect is gone.
Why use it?
It provides a scan, explanation, boundary-level fix, and re-scan process, with rules for handling baselines and exceptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is foundryside-dev/plainweave's own configuration. It tells Claude Code and Codex how to work on plainweave 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 plainweave configures →

Reuse

Borrowing it

Nothing to install: this file belongs to foundryside-dev/plainweave. 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/foundryside-dev/plainweave/main/.agents/skills/wardline-gate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/foundryside-dev/plainweave

Made for: Claude Code, Codex.

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 wardline-gate

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/foundryside-dev/plainweave/wardline-gate"><img src="https://agentmods.dev/badge/skills/foundryside-dev/plainweave/wardline-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 881 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.00069 $0.00881
Opus 5.5 $0.00028 $0.00352
Sonnet 5.5 $0.00014 $0.00176
Haiku 4.5 $0.00007 $0.00088

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

Security

Grade A, and why

wardline-gate 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.

.agents/skills/wardline-gate/SKILL.md · 69 lines

How it starts

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

Wardline: the trust-boundary gate

Wardline is a deterministic, whole-program static taint analyzer. It marks trust boundaries with two decorators from wardline.decorators: @external_boundary (untrusted data arriving from outside) and @trusted (a producer that must only receive validated data). When untrusted data reaches a trusted producer it raises PY-WL-101 at ERROR.

The loop

  1. Scan. Run wardline scan . --fail-on ERROR (or call the scan MCP tool). Read the gate verdict and the active (non-suppressed) findings — active is the population the gate enforces on.
  2. Explain. For each active defect, call explain_taint (MCP) or run wardline explain-taint <fingerprint> [PATH] (CLI) with the finding's fingerprint, and its qualname as sink_qualname. Do this right after the scan and before editing — a stale fingerprint returns an error. With a Loomweave store configured, pass chain: true (--chain on the CLI) to walk the full taint chain back to the originating boundary.
  3. Fix at the BOUNDARY, not the sink. Add validation or rejection at the hop where untrusted data should have been checked — not a band-aid at the sink.
  4. Re-scan. Confirm the finding is gone.

Exit codes (CLI path)

  • 0 — clean (or gate not requested).
  • 1 — the gate tripped: a non-suppressed defect at/above --fail-on.
  • 2 — a wardline error (bad config, unreadable path). Not a finding.

Branch on the code. On a trip, read the structured report wardline just wrote — the finding names the function, file, and lines, which is enough to locate the leak.

Suppression discipline

Prefer FIXING a finding. Suppress only a finding you have judged a true non-issue, always with a reason:

  • MCP baseline — snapshot current defects so only NEW findings surface. overwrite: false (default) refuses to clobber an existing baseline; overwrite: true re-derives it. A coarse, whole-set tool; requires a reason.
  • waiver_add — waive ONE finding by fingerprint with a mandatory reason and an expiry date. An audited, time-boxed exception.
  • wardline judge (opt-in, network) — an LLM pass that labels each defect TRUE/FALSE positive. Never runs automatically, never folded into scan; fails loud with no API key so "couldn't triage" is never mistaken for "nothing to triage". Above-floor false positives can be recorded as audited suppressions.

Read the full file on GitHub · 69 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 · 69 lines · 69 tokens per session scan A 52505ea4ecdf

Subscribe to this mod's changes

wardline-gate is a skill published in the GitHub repository foundryside-dev/plainweave (0 stars, last pushed 3mo ago), licensed MIT. It adds 69 tokens to every session and 881 once invoked, about $0.0003 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-31.