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.
curl -O https://raw.githubusercontent.com/foundryside-dev/plainweave/main/.agents/skills/legis-workflow/SKILL.mdgit clone --depth 1 https://github.com/foundryside-dev/plainweaveWrote 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.
[](https://agentmods.dev/skills/foundryside-dev/plainweave/legis-workflow)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.)
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.
- 1mo ago First seen · 253 lines · 120 tokens per session scan A 7990eac31207
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.
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…
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.
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".
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.
omh-code-review
This is an OMH code-review workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
omh-image-cards
This is an OMH img-summary workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).