oliverweissl/context-garden / skills/weeder
weeder
VerifiedMeasure and reduce a Skill's token footprint (always-loaded description + on-trigger SKILL.md body) without regressing routing accuracy or losing instructions. Use when a SKILL.md feels oversized, repeats rules, or has a vague description that might mis-route.
| File | Kind | Size |
|---|---|---|
| .gitignore | other | 32 B |
| SKILL.md | skill md | 3.1 KB |
| agents/weeder.md | markdown | 1.2 KB |
| bin/weederexecutable | script | 292 B |
| references/classification.md | markdown | 4.9 KB |
| references/llm-assist.md | markdown | 2.1 KB |
| references/routing-heuristic.md | markdown | 4.1 KB |
| scripts/cg_mode.py | script | 5.4 KB |
| scripts/we_apply_suggestion.py | script | 5.7 KB |
| scripts/we_audit.py | script | 5.6 KB |
| scripts/we_config.py | script | 2.5 KB |
| scripts/we_constraints.py | script | 5.1 KB |
| scripts/we_dupes.py | script | 6.1 KB |
| scripts/we_filler.py | script | 4.9 KB |
| scripts/we_optimize.py | script | 4.3 KB |
| scripts/we_parse.py | script | 5.0 KB |
| scripts/we_routing.py | script | 4.5 KB |
| scripts/we_suggest.py | script | 3.8 KB |
| scripts/we_text.py | script | 2.1 KB |
| scripts/we_tokens.py | script | 4.1 KB |
| scripts/weeder.pyexecutable | script | 12.0 KB |
| tests/fixtures/answer_lot.json | config | 875 B |
| tests/fixtures/filler_sentences.json | config | 2.6 KB |
| tests/fixtures/routing_examples.json | config | 489 B |
| tests/smoke_test.shexecutable | script | 14.3 KB |
references/llm-assist.md
View on GitHub# LLM-assist levels for step 3
`weeder` never makes a network call or needs an API key, at any level.
The level changes how much of step 3 `suggest` packages as a
request/answer file pair for the agent already running this CLI; it never
changes who makes the call or introduces a second model into the loop.
## The three levels
| level | `suggest` produces | rest of step 3 |
|---|---|---|
| `none` (default) | zero requests | do all of step 3 freehand |
| `slight` | one `description_shorten` request | duplicate consolidation and filler removal still freehand |
| `lot` | `description_shorten` + `duplicate_consolidation` + `unnecessary_removal` | nothing left freehand |
Whatever the level, steps 4-7 run **unchanged** against the result — an
assist-drafted answer is held to the same bar as a freehand edit.
## Resolving the level
Precedence, highest first: `--assist {none,slight,lot}` >
`$CONTEXT_GARDEN_LLM_ASSIST` > `llm_assist.level` in the nearest
`.context-garden/config.yaml` (walking up from the cwd) > `none`. The
config parser only reads flat `key: value` lines plus one level of
indented nesting (`llm_assist:` / ` level: slight`).
## Traps
- `--dup-threshold` must match between `suggest` and `apply-suggestion`
if you use a non-default value — `apply-suggestion` recomputes the
duplicate grouping from the original `skill_dir` to resolve
`group_index`/`member_index`.
- `apply-suggestion` only performs mechanical edits; it does not validate
them. Matching is whitespace-normalized but not code-aware: a filler
sentence containing inline code (stripped during detection) may fail
to match verbatim and is reported as a warning and skipped.
## Why consolidating a multi-way duplicate rarely hits 100% first try
`test-function` checks each **original** constraint sentence against the
whole after-document, so collapsing several differently-worded
restatements into one canonical wording drops each variant's distinctive
words and gets them flagged MISSING — the gate working as intended.
Iterate `canonical_text` until the specifics that matter are kept.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |