Agent skill

Weed

by juxt in juxt/allium

Weed the Allium garden. An agent skill from juxt/allium.

MITAuto-check passedDevelopment

Install Weed

skills CLI
$ npx skills add juxt/allium --skill weed -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install juxt/allium weed --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/juxt/allium.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/weed .claude/skills/weed && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
weed
GitHub stars
507
Token cost
~2.5k tokens
SKILL.md length
1,300 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Weed the Allium garden. An agent skill from juxt/allium.

  • Works in 4 steps: Read language reference for the Allium… → Read the relevant .allium files (search… → If the allium CLI is available, run… → …
  • The user wants to check spec-code alignment
  • SKILL.md covers Interaction modes, Startup, Modes and How you work, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Weed is an agent skill from juxt/allium. Weed the Allium garden. Find where Allium specifications and implementation code have diverged, and help resolve the divergences. Use when the user wants to check spec-code alignment, compare specs against implementation, audit for spec drift or violations, sync specs with code or code with specs, or verify whether the implementation matches what the spec says.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. The repository describes itself as: The specification language that talks back. The licence is MIT.

When your agent uses it

  • The user wants to check spec-code alignment
  • Compare specs against implementation
  • Audit for spec drift
  • Sync specs with code

Example prompts

  • “/weed”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read language reference for the Allium syntax and validation rules.
  2. Read the relevant .allium files (search the project to find them if not specified).
  3. If the allium CLI is available, run allium check against the files to verify they are syntactically correct.
  4. Read the corresponding implementation code.

What it can do on your machine

Read from SKILL.md and the folder at commit 7f7f008. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Weed loads about 2.5k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 1,300 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from juxt/allium at commit 7f7f008, republished under its MIT licence (© juxt). 1,300 words, ~2,525 tokens.

Download SKILL.mdSave it as .claude/skills/weed/SKILL.md (or your agent's skills folder).
name
weed
description
Weed the Allium garden. Find where Allium specifications and implementation code have diverged, and help resolve the divergences. Use when the user wants to check spec-code alignment, compare specs against implementation, audit for spec drift or violations, sync specs with code or code with specs, or verify whether the implementation matches what the spec says.

Weed

You weed the Allium garden. You compare .allium specifications against implementation code, find where they have diverged, and help resolve the divergences.

Interaction modes

This skill runs in two modes. Every instruction below that asks, prompts or checks with the user follows the mode:

  • Interactive — running inline in a conversation. Ask the user directly and wait for the answer.
  • Non-interactive — running as the weed subagent (for example inside the Allium loop), where no user is reachable. Do not guess an answer: report each question as an open finding in your output (and, when updating the spec, record it as an open question declaration), then continue with the work that does not depend on it.

Startup

  1. Read language reference for the Allium syntax and validation rules.
  2. Read the relevant .allium files (search the project to find them if not specified).
  3. If the allium CLI is available, run allium check against the files to verify they are syntactically correct.
  4. Read the corresponding implementation code.

Modes

You operate in one of three modes, determined by the caller's request:

Check. Read both spec and code. Report every divergence with its location in both. Do not modify anything.

Update spec. Modify the .allium files to match what the code actually does. The spec becomes a faithful description of current behaviour.

Update code. Modify the implementation to match what the spec says. The code becomes a faithful implementation of specified behaviour.

If no mode is specified, default to check and report all findings.

How you work

For each entity, rule or trigger in the spec, find the corresponding implementation. For each significant code path, check whether the spec accounts for it. Report mismatches in both directions: spec says X but code does Y, and code does Z but the spec is silent.

Process-level checks

Beyond construct-by-construct comparison, check process-level properties:

  • Transition reachability in code. For each transition declared in the spec's transition graph, verify the implementation has a code path that triggers it. If a transition is declared but no code path produces it, flag it.
  • Surface-trigger coverage. For each rule with an external stimulus trigger, verify the implementation has a corresponding entry point (API endpoint, webhook handler, message consumer). If the spec says BackgroundCheckResultReceived is provided by a surface, verify the code has the corresponding handler.
  • Undeclared transitions in code. Check whether the implementation produces state changes not declared in the spec's transition graph. If code can transition an entity from state A to state C but the graph only allows A → B → C, flag it.
  • Invariant enforcement. For each expression-bearing invariant in the spec, check whether the implementation enforces it (database constraint, application-level check, test assertion). If no enforcement exists, flag the gap.
  • Bottom-up process reconstruction. For entities with status fields, trace the state machine from the code: which states exist, which transitions the code produces, which actors trigger them. Compare the reconstructed process to the spec's transition graphs. Present the reconstructed process to the user for validation: "From the code, I see this lifecycle for Order: placed → paid → shipped → delivered, with cancellation possible from placed or paid. The spec's transition graph matches except it doesn't include cancellation from paid. Is this a spec gap or a code bug?"

Report process-level divergences alongside construct-level ones. Read assessing specs to understand the spec's maturity before checking — don't flag process-level gaps on a coarse spec that hasn't reached that level of development yet.

Divergence classification

When you find a mismatch, propose a classification with your reasoning. The caller confirms or overrides. Classify each divergence as one of:

  • Spec bug. The spec is wrong, code is correct. Fix the spec.
  • Code bug. The code is wrong, spec is correct. Fix the code.
  • Aspirational design. The spec describes intended future behaviour. Leave both as-is but note the gap.
  • Intentional gap. The divergence is deliberate (e.g. spec abstracts away an implementation detail). Leave both as-is.

Present divergences grouped by entity or rule for easier review.

When code has repeated interface contracts across service boundaries (e.g. the same serialisation requirement in multiple integration points), check whether the spec uses contract declarations for reuse. Code assertions and invariants (e.g. assert balance >= 0, class-level validators) should align with spec invariants. If the spec lacks a corresponding invariant Name { expression }, flag the gap.

Guidelines for spec updates

  • Preserve the existing -- allium: N version marker. Do not change the version number.
  • Follow the section ordering defined in the language reference.
  • Describe behaviour, not implementation. If you find yourself writing field names that imply storage mechanisms or API details, rephrase.
  • Use config blocks for variable values (thresholds, timeouts, limits). Do not hardcode numbers in rules.
  • Temporal triggers always need requires guards to prevent re-firing.
  • Use with for relationships, where for projections. Do not swap them.
  • Inline enums compared across fields must be extracted to named enums.
  • When adding new rules or entities, place them in the correct section per the file structure.
  • Config values derived from other services' config (e.g. extended_timeout = base_timeout * 2) should use qualified references or expression-form defaults in the spec.
Show full SKILL.md (457 more words)Show less

Guidelines for code updates

  • Follow the project's existing conventions for style, structure and naming.
  • Run tests after making changes. If tests fail, report the failures rather than silently adjusting tests.
  • Flag changes that have implications beyond the immediate file (e.g. API contract changes, database migrations, downstream consumers).
  • Prefer minimal, targeted changes. Do not refactor surrounding code unless directly required by the divergence fix.
  • If a code change requires a migration or deployment step, note this explicitly.

Boundaries

  • You do not build new specifications from scratch. That belongs to the elicit skill.
  • You do not extract specifications from code. That belongs to the distill skill.
  • You do not modify skills/allium/references/language-reference.md. The language definition is governed separately.
  • You do not make architectural decisions. Flag wider implications and let the caller decide.

Context management

Spec alignment checks can require many edit-validate cycles. When running interactively, if you anticipate a long iterative session, or if the context is growing large, advise the user to open a fresh chat specifically for weeding the spec. Provide a copy-paste prompt so they can resume, such as: "Use the weed skill to continue resolving divergences between the [Spec Name] spec and [Implementation Files]."

Verification

After every edit to a .allium file, run allium check against the modified file if the CLI is installed. Fix any reported issues before presenting the result. If the CLI is not available, verify against the language reference. The first time the CLI is not found, note: "I'll validate against the language reference instead. If you'd like automated checking, the CLI is available via Homebrew or crates.io — see the README for details."

If allium analyse is available, run it after completing divergence checks. Use findings to identify process-level gaps that construct-by-construct comparison misses. A missing_producer finding might indicate either a spec gap (the code handles it but the spec doesn't model it) or a code gap (nobody implemented the data path). Classify each finding by checking whether the code addresses it. Consult actioning findings for how to translate findings into domain questions.

Output format

When reporting divergences (check mode), use this structure for each finding:

### [Entity/Rule name]
Spec: [what the spec says] (file:line)
Code: [what the code does] (file:line)
Classification: [proposed classification with reasoning]

Group related divergences together. Lead with the most consequential findings.

Typed result (loop hand-off)

When running as the weed subagent inside the Allium loop, return your result as a single JSON object conforming to weed-result.schema.json, and nothing else. The loop routes on the structured fields (verdict, each divergence's classification, open_questions) rather than parsing prose, so the routing and the convergence check stay deterministic. Keep the summary field to the one human-readable line; put the detail in the structured fields. Emit every field, using [] for empty lists. Running interactively, present the prose format above as before — the typed record is for the machine hand-off, not the conversation.

json
{
  "phase": "weed",
  "mode": "check",
  "verdict": "dirty",
  "divergences": [
    { "subject": "Order.cancel", "classification": "code-bug", "spec": "cancel allowed from paid (shop.allium:42)", "code": "guarded to pending only (order.py:88)" }
  ],
  "open_questions": [],
  "artefacts": [],
  "summary": "1 divergence: Order.cancel (code-bug)"
}

© juxt, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/weed of juxt/allium.

Open the folder on GitHubat commit 7f7f008

Compare with similar skills

Weed next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Weed compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Weed this skilljuxt/allium507—~2.5kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from juxt/allium

  • Tend

    juxt/allium

    Tend the Allium garden. An agent skill from juxt/allium.

    507 GitHub stars~2.7k tokensUpdated 12 days ago
    Auto-check passed
  • Witness

    juxt/allium

    Independently witness that an Allium loop's convergence claim is true and was reached honestly.

    507 GitHub stars~2.6k tokensUpdated 12 days ago
    Auto-check passed

Categories

Questions about Weed

What does Weed do?

Weed the Allium garden. An agent skill from juxt/allium. Weed is an agent skill from juxt/allium. Weed the Allium garden.

When should I use Weed?

Weed fits situations like: the user wants to check spec-code alignment; compare specs against implementation; audit for spec drift; sync specs with code.

How do I install Weed in Claude Code?

Run `npx skills add juxt/allium --skill weed -a claude-code`. Or copy the skill folder (skills/weed in juxt/allium) into .claude/skills/weed in your project. Claude Code loads it when a task matches its description.

How do I install Weed in Codex?

Run `npx skills add juxt/allium --skill weed -a codex`. Or copy the skill folder (skills/weed in juxt/allium) into .agents/skills/weed in your project. Codex loads it when a task matches its description.

Can I use Weed in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add juxt/allium --skill weed -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/weed, .gemini/skills/weed, .github/skills/weed and .opencode/skills/weed in your project.

What does Weed need to run?

SKILL.md names no scripts, command-line tools or credentials: Weed is instructions for the agent only.

Does Weed access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Weed safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Weed use?

Weed is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Weed use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Weed?

Skills that share tags, products or a category with Weed: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Weed?

juxt (a GitHub organization) maintains it in juxt/allium, which has 507 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 27, 2026.

Source: juxt/allium on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.