plainweave: Skill for Claude Code

.agents/skills/legis-workflow/SKILL.md

legis-workflow is a skill for Claude Code, Codex from foundryside-dev/plainweave. It costs 120 tokens per session (4,003 once invoked), scanned A, original, MIT.

A set of agent instructions for Legis, a tool that relates code changes to branches, commits, pull requests, checks, and governance decisions. Governance here means rules and review controls applied to changes.

In plain words
What is it for?
Use it to evaluate policy cells, submit or check overrides, run governance gates, inspect Git context, route Wardline findings, and verify evidence before closing Filigree work.
Why use it?
It explains how to inspect change context, evaluate policy decisions, and handle governed overrides and verification steps.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; 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/legis-workflow/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 legis-workflow

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/foundryside-dev/plainweave/legis-workflow"><img src="https://agentmods.dev/badge/skills/foundryside-dev/plainweave/legis-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,003 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.00120 $0.04003
Opus 5.5 $0.00048 $0.01601
Sonnet 5.5 $0.00024 $0.00801
Haiku 4.5 $0.00012 $0.00400

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

Security

Grade A, and why

legis-workflow 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/legis-workflow/SKILL.md · 253 lines

How it starts

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

Legis Workflow

Legis is the git/CI and governance side of the Weft suite. This skill is the depth behind the lean CLAUDE.md block: the full CLI reference, the MCP tool catalogue, the error/recovery table, and the worked patterns an agent actually runs. Keep it faithful to the installed legis — when in doubt, legis --help and legis <command> --help are authoritative.

What legis is

Legis answers what changed, in which branch/commit/PR/check context, and what governance or attestation state exists for that change? It is an SEI consumer (Loomweave remains the identity authority) and the suite's single governed judge — Wardline analyses trust; Legis governs it, one judge not two. It does not own issue state (Filigree) or code identity (Loomweave); it adds branch/commit/PR/check context and a graded enforcement layer on top.

Enforcement is a 2×2 of policy cells, each agent-set, each a distinct override flow:

Judge OFF Judge ON
Simple chill — agent self-reports a recordable override; human reviews async (ACCEPTED_SELF) coached — an LLM wall evaluates the override before it records; ACCEPTED_BY_JUDGE or BLOCKED (not self-clearable)
Complex structured — block + escalate; a human operator must sign off before the gate clears (ESCALATED_PENDING) protected — full machinery: HMAC-signed verdicts, decay sweep, override-rate gate, operator override

The operating invariant is agent-first: humans on the loop, not in the loop. Every cell produces an append-only audit trail keyed on SEI, so the record survives rename/move. The recorded override is the safety mechanism — an attributable audit event, never a silent pass.

Reaching the tools

Prefer the MCP tools (mcp__legis__*) when a Legis MCP server is attached; fall back to the legis CLI otherwise. Each surface maps thinly over the same service layer, so they agree on outcomes.

Identity is launch-bound. The MCP server is started with legis mcp --agent-id <name>; that --agent-id is the actor for every override, sign-off, and audit record the session produces. No tool schema accepts an actor argument — you cannot spoof or override identity from a call. (Contrast the CLI's sei-backfill --actor, which stamps appended backfill events from a one-shot command, not an interactive session.)

Read the full file on GitHub · 253 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 · 253 lines · 120 tokens per session scan A 7990eac31207

Subscribe to this mod's changes

legis-workflow is a skill published in the GitHub repository foundryside-dev/plainweave (0 stars, last pushed 3mo ago), licensed MIT. It adds 120 tokens to every session and 4,003 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

open-code-review

Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…

alibaba/open-code-review · 98 tokens

learn-from-sage

Detection-gap (miss) analysis for Code Review Sage. Learn from shipped fixes, acted-on human comments, and design outcomes to close reviewer blind spots. Inline during review stages a candidate; a human triggers a one-shot AI consolidation into the live ruleset.

kirodotdev/KiroCrew · 56 tokens

git

Git and code hosting platform management — GitHub, GitLab, Codeberg, Forgejo. Zero barrier — install x-cmd and manage repos from the terminal. Use for "git", "github", "gitlab", "repo", "pull request", "code hosting".

x-cmd/x-cmd · 58 tokens

meta-codereview-current-diff

Read the current uncommitted diff, run three independent reviewers (safety + tests-coverage + style) in parallel, then arbitrate a single BLOCK / BLOCKWITHOVERRIDE / PASSWITHNOTES verdict. Use before commit when you want a multi-perspective second-opinion instead of a single-reviewer agent loop.

opensquilla/opensquilla · 73 tokens

omh-code-review

This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 48 tokens

omh-image-cards

This is an OMH img-summary workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).

rlaope/oh-my-hermes · 79 tokens