junco-graph-optimizer
Skill1 starsChanged 33 days agoMITView on GitHub
Optimize an existing Junco workflow's graph topology through measured restructuring, decomposition, tournaments or pruning, not new-workflow creation or model, scheduler or limit tuning.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crates/junco-policy/AGENTS.mdAGENTS.md
- crates/marsh/AGENTS.mdAGENTS.md
- packages/junco-agent/AGENTS.mdAGENTS.md
- update-dependenciesSkill
- graftSkill
- junco-graph-createSkill
- junco-profile-optimizerSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 10
Keep models, thinking, all five ordered ladder rungs and strength selection/escalation unchanged, along with scheduler …
- Distinctive: line 12
Keep authoritative evaluators/checks, assignment text, helper bodies, contracts, tools and permissions fixed.
- Distinctive: line 14
Never overwrite outside edits: precheck both target files before staging/restoring either.
- Very specific: line 24
After owned child resources are gone, restore/retain the confirmed pair on rejection, failed confirmation, cancellation or stop.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rewrite the selected <workflow>.yml in place with confirmed geometry; change its prepared TS only for audited geometry-required bindings. Read references/optimization.md before preparation or experiments; its complete procedures are mandatory.
Preserve
- Keep models, thinking, all five ordered ladder rungs and strength selection/escalation unchanged, along with scheduler algorithms/composition and every limit's value, scope and enclosing enforcement boundary.
- New geometry inherits effective model/strength, scheduling, window/threads and limits explicitly at every level; parent strength is not recursive. If policy, measurement windows, readiness or ownership cannot be preserved through bindings alone, report the candidate inapplicable.
- Keep authoritative evaluators/checks, assignment text, helper bodies, contracts, tools and permissions fixed; new agents receive no broader access. Concurrent workers require already-safe independent artifacts.
- Require explicit paid-run authorization. Never fabricate prerequisites or measurements; synthetic/offline evidence proves wiring, not savings. Never call
schedules.runOptimizeror thejunco-profile-optimizerbinary, copy their controller or write another. - Never overwrite outside edits: precheck both target files before staging/restoring either; report conflicts without overwriting either.
- Consult the standard library index in junco's root AGENTS.md before inventing replacement topology or helper code. Prefer indexed building blocks whose contracts fit the allowed transformation and prepared runner; reuse never permits changing frozen schedulers, adding unrequested persistence, bypassing reserved helpers or weakening the evaluator.
Workflow
- Inspect the pair, invocation, bindings, evaluator and repeat safety. Ask only unresolved intake; report missing prerequisites rather than inventing substitutes.
- Preserve originals in the safe session; prepare dormant baseline instrumentation and reserved maps once, offline-check it, save immutable
prepared.tsand baselineincumbent-0.yml/.ts, then check and measure only as authorized. - Derive each trial from the same saved incumbent pair: one geometry change, archived YAML and TS, plus an old→new binding audit for any TS difference. Stage the matched archived pair safely and set
expectedTsSha256from its archived TS bytes. - Rank costly/difficult work using profiles and failure evidence. Consider leader/workers, authoritative Ralph loop and two-candidate tournament, and a duty-proven redundant-node ablation; report every inapplicable pattern.
- Offline-check changed TS, run
measure.ts check, then authorizedmeasure.ts run <name> <R>. Accept quality-first; ablations also require strictly lower recorded USD. Freshly confirm the exact archived winning pair before promotion; re-profile afterward. - After owned child resources are gone, restore/retain the confirmed pair on rejection, failed confirmation, cancellation or stop. Without confirmed improvement, retain the original graph. Follow reference target/plateau/budget rules with no hidden cap; report the actual stop reason, never a global optimum.
Report
Give baseline/final metrics, decisions, stop reason, retained paths/hashes, prepared.ts hash, binding changes and evidence/spend coverage using the reference's complete report checklist.
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.

