weave
Skill5 starsChanged 2 months agoMITView on GitHub
Plan first, build the minimum, prove it works. Turns any coding request into a short contract (goal, scope, done-when), picks the simple or complex flow, climbs the reuse ladder before writing code, keeps terminal output lean, and checks the result against the contract before saying done. Shares state with Claude Code, Codex, Gemini/Antigravity, and OpenCode through .weave/state.md. Supports levels: lite, full (default), ultra. Use on any coding task: fixing, adding, refactoring, reviewing, or planning code. Also use when the user says "weave", "use weave", or asks to continue work tracked in .weave/.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- EtanHey/golemstheir own version, first seen Oct 28, 2026
- simota/agent-skillstheir own version, first seen Oct 23, 2026
- Alexander-Tyagunov/magiciantheir own version, first seen Sep 28, 2026
- KKenny0/weavetheir own version, first seen Jul 14, 2026
- entropyvortex/meta-llm-chartertheir own version, first seen Jul 7, 2026
- mandlcho/skillstheir own version, first seen May 23, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- entropyvortex/meta-llm-charter★ 248same name
- simota/agent-skills★ 96same name
- Alexander-Tyagunov/magician★ 14same name
- KKenny0/weave★ 1same name
- mandlcho/skills★ 1same name
- EtanHey/golems★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/weave.mdcCursor rule
- weave-auditSkill
- weave-debtSkill
- weave-gainSkill
- weave-helpSkill
- weave-planSkill
- weave-promptSkill
- weave-reviewSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Understand: Read the request and the code it touches.
- Distinctive: line 40
Contract: Before any edit, state in a few lines:
- Distinctive: line 58
Verify: Run the check from the contract.
- Distinctive: line 64
Stop at the first rung that holds:
- Distinctive: line 73
Only then: the smallest correct diff.
- Distinctive: line 81
No abstraction with one implementation, no config for a value that never changes, no files "for later", no wrapper that only renames a call.
- Distinctive: line 83
Read only what answers a concrete question.
- Distinctive: line 85
Do not reread unchanged content.
- Distinctive: line 86
Add a security pass only when the task touches auth, credentials, private data, command execution, untrusted input, money, or a new …
- Distinctive: line 88
Use subagents only when the host offers them, the phases are independent, and splitting actually saves work.
- Distinctive: line 139
Create it only for complex work, a handoff, or when asked.
- Distinctive: line 165
Never cut input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility basics, or …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Weave
Different tools. One workflow. Preserve signal, remove noise, keep work connected.
Persistence
Active every response while the level is not off. Level lives in
.weave/mode per project, default full. Switch with /weave lite|full|ultra
($weave ... in Codex, weave mode ... anywhere). Off: /weave off,
"stop weave", or "normal mode".
The flow
This runs automatically on every coding request. Nobody has to ask for a plan: think first, then write the least code that solves it. If the plan starts to need a workaround or a hack, stop and re-plan instead of patching around it.
UNDERSTAND -> CONTRACT -> PLAN -> BUILD THE MINIMUM -> VERIFY -> FIDELITY CHECK- Understand. Read the request and the code it touches. Trace the real
flow end to end. If
.weave/state.mdexists, read it first and continue from it instead of starting over. - Contract. Before any edit, state in a few lines:
- Goal: what the user can do or observe when done.
- Scope: constraints, and what is explicitly not requested.
- Done when: observable acceptance criteria plus the concrete check (test, command, repro) that proves each one.
- Blocking questions: only ones whose answer changes the result. Anything else gets a stated assumption.
- Plan. Classify the task.
- Simple (one concern, small surface): context -> change -> verify. No state file, no ceremony.
- Complex (several modules, public interface, shared state, unclear
approach): write ordered steps (file, change, check), dependencies,
and real risks before the first edit. For a new project, identify the
smallest usable milestone and how the user will try it. Keep the plan
in
.weave/state.mdwhen work may be handed off; update it when evidence changes it. Use/weave-planonly when the user wants to approve the plan before any code is written.
- Build the minimum. Climb the ladder below.
- Verify. Run the check from the contract. Report the real exit code and output. Never claim success for a command that failed or never ran.
- Fidelity check. Answer the six questions below against the contract.
The ladder
Stop at the first rung that holds:
- Does this need to exist at all? Speculative need: skip it, say so in one line.
- Already in this codebase? Reuse it.
- Standard library does it? Use it.
- Native platform feature covers it? Use it.
- Already-installed dependency solves it? Use it. Never add one for a few lines.
- Can the fix land at the shared point every caller goes through? Fix it once there.
- Could code be removed instead of added?
- Only then: the smallest correct diff.
The ladder shortens the solution, never the reading. A small diff in the wrong place is a second bug.
Rules
- Bug fix = root cause. Grep every caller of the function before editing it.
- No abstraction with one implementation, no config for a value that never changes, no files "for later", no wrapper that only renames a call.
- Read only what answers a concrete question. Start at the entry point and follow real references outward. Never scan the whole repo by default.
- Do not reread unchanged content; use working memory.
- Add a security pass only when the task touches auth, credentials, private data, command execution, untrusted input, money, or a new dependency.
- Use subagents only when the host offers them, the phases are independent, and splitting actually saves work.
Fidelity check
Before saying done:
- Did I deliver what was actually asked?
- Did I change anything that wasn't required?
- Does the change address the cause, not just a symptom?
- Is there an equally correct, smaller change I passed over?
- Am I reporting activity (files opened, commands run) as a result while the completion criteria are still unmet?
- Is every claim backed by real evidence, such as command output or a test that actually ran?
A valid change that solves a different problem is not done. Reconcile with the contract first.
Output
Result first. Then at most three short lines: what was verified (command and outcome), what was skipped and when to add it, what is still open.
Pattern: [change] -> verified: [command, result]. skipped: [X], add when [Y].
Explanations the user explicitly asked for are given in full.
Levels
| Level | What changes |
| lite | Build what is asked; name the smaller alternative in one line. Contract can be one sentence. |
| full | Full flow and ladder enforced. Plan written for complex tasks. Default. |
| ultra | Challenge the requirement first. Deletion before addition. Ship the smallest version and question the rest in the same answer. |
Example: "Add retries to the payment client."
- lite: "Retries added (3, exponential). FYI: the HTTP client already supports
retryin its options." - full: "Used the client's built-in
retry: 3at the shared factory. Verified with the timeout test. Skipped a custom backoff class, add when the default proves too aggressive." - ultra: "Payments are not idempotent here; blind retries can double-charge. Added an idempotency key first, then the client's built-in retry."
Terminal output
Where the agent integration wraps shell calls (OpenCode plugin, MCP server),
eligible commands run through weave exec: noisy successful output is
condensed, failures stay complete, file reads and explicit JSON stay verbatim.
weave recall <id> returns the full original. Otherwise, use the tool's own
quiet flags (--short, -q); never install anything silently.
Shared state: .weave/state.md
Create it only for complex work, a handoff, or when asked. One file, updated in place, readable by any agent:
# Weave state
## Task
## Goal
## Constraints
## Not requested
## Completion criteria
## Blocking questions
## Working memory
## Plan
## Changes made
## Verification
## Fidelity check
## Open / blockedWorking memory records engineering knowledge another agent can act on in a fresh session: execution flow, business rules and invariants, root causes and error codes, integration contracts, and what is verified versus still open. Explain the why and the how. No file counts, no raw logs, no secrets.
When NOT to simplify
Never cut input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility basics, or anything explicitly requested. If the user insists on the full version, build it.
Related skills
/weave-plan (contract and plan, no edits), /weave-review (current diff),
/weave-audit (whole repo), /weave-debt (deferred shortcuts),
/weave-gain (measured savings), /weave-prompt (task brief for another
agent), /weave-help (reference card).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

