From agentops
Crafts and lints persistent Mayor-style goals using bounded RPI experiments and bead graphs. Useful for outcome-driven development and experiment planning.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agentops:craft-goalThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Craft the autonomy contract above AgentOps RPI. A goal is a persistent
Craft the autonomy contract above AgentOps RPI. A goal is a persistent Mayor over a bead-shaped experiment graph. Each RPI is one scientific trial; the goal selects the next useful trial, preserves what was learned, and ratchets toward a larger outcome.
Goal / Mayor: observe graph → choose bounded wave → consume verdicts → ratchet
└─ Bead: durable experiment intent, context, scratch, evidence, and links
└─ RPI: plan → implement → fresh validate → verdict → report and stop
└─ Implementation: one RED → GREEN → refactor experiment
The number of RPIs need not be known in advance. The goal is safe when success is decidable, every experiment is bounded, knowledge is monotonic, and the authorization envelope cannot silently renew itself.
Insight: bounded waves shorten the feedback loop; one hard, non-renewing campaign envelope prevents those waves from becoming infinite continuation.
Named failure mode — completion treadmill: discoveries recursively become
requirements and activity continues without new information. Its opposite is
first-red abandonment: one falsified hypothesis ends a viable campaign.
Anti-pattern: choose endless retries or stop on the first red. Corrective:
continue while experiments produce a defined ratchet and remain
inside the envelope; invoke an andon on churn, judgment, or exhaustion.
Stop when the goal reports ACHIEVED, NOT_ACHIEVED, or NEEDS_OPERATOR.
| Caller wording | Mode | Result |
|---|---|---|
| "craft a goal", "turn this into a goal" | craft | Compile a Mayor-style goal prompt and settings. |
| "lint/review this goal", "is this safe" | lint | Return findings and a rewrite when supplied facts permit one. |
Stop after 1 compilation pass. Never create a goal or mutate beads.
Fuzzy route is acceptable; fuzzy success is not. Before goal creation, the caller must know the outcome, what evidence would prove it, non-goals, and authority. The exact experiment graph may still be unknown.
USE_RPI for one shaped experiment with no verdict-driven follow-on.UNSAFE_GOAL when no falsifiable first question or terminal evidence
can be named. Route that intent to idea/plan work.UNSAFE_GOAL for indefinite monitoring or event reaction; that is an
automation, not a terminal goal.Goals may be different sizes. Size the wave and hard campaign envelopes to the outcome; do not invent one universal budget.
UNSTUCK or ESCALATE.Stop when the goal reports ACHIEVED, NOT_ACHIEVED, or NEEDS_OPERATOR.
Record each experiment in a bead with:
Use graph semantics deliberately:
parent-child for goal → experiment membership;blocks only for real execution ordering;related for alternatives or correlated observations;discovered-from for provenance of newly exposed work.Use live bd/br state as authority and bv --robot-* output for
prioritization, parallel tracks, bottlenecks, and graph insight. Never treat a
static plan as fresher than the graph.
An RPI makes progress when its durable result does at least one:
More code, another commit, a repeated error, or a rewritten plan is not itself progress. A NOT_PROVEN result counts only when its evidence narrows the next question; repetition without new information increments the no-progress counter. Stop when no ratchet remains inside the envelope.
discovered-from child and consider it in a later wave.Every newly selected RPI must address an unmet criterion or a named uncertainty blocking one. A new commit, subject, bead, helper, or wave never resets totals.
Specify both:
Dispatch budget: every wave declares numeric RPI, token, time, and concurrency limits before any work is selected. Fresh-helper budget: exactly 1 per HOLD.
Continue automatically across waves only while a ratchet exists and the next experiment fits frozen acceptance, authority, and remaining envelope.
Enter HOLD on any declared trigger: repeated blocker, no ratchet for the configured number of RPIs, oscillation between prior approaches, repeated live failure class, requested acceptance change, operator-reserved decision, or hard-ceiling exhaustion. HOLD permits exactly 1 bounded fresh-context helper:
UNSTUCK must name a materially different bounded experiment, then resume.ESCALATE emits NEEDS_OPERATOR and performs no more implementation.Current Codex goals lack an agent-triggered pause/checkpoint state. A
NEEDS_OPERATOR report therefore also tells the operator to pause the goal;
the prompt alone cannot guarantee that product-level pause.
Stop when any terminal report is emitted.
Read and fill the copy-paste-only goal prompt. Preserve its headings and terminal semantics; replace every angle-bracket field.
Lead with SAFE_TO_CREATE, USE_RPI, or UNSAFE_GOAL. Return the copy-paste
prompt, separate goal-tool token budget, assumptions, and one lint line for:
outcome, evidence, admission, bead graph, RPI boundary, ratchet, discovery,
wave budget, hard budget, breaker, operator andon, scope, self-hosting, and
terminal reports.
Done when:
Stop after 1 lint pass and zero goal executions. Paired evidence:
docs/learnings/2026-07-12-go-cli-goal-stall-tracker-layer-confusion.md and
skills/rpi/SKILL.md.
Return UNSAFE_GOAL with missing decisions. Do not invent acceptance,
authority, graph semantics, or campaign size. The caller owns revision and goal
creation.
npx claudepluginhub boshu2/agentops --plugin agentopsCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.