Skip to content
Agent Memory
Skill

/refine-jumbo-goals

Use when Jumbo goals need refinement before implementation. Curates relations to project entities so the implementing agent receives optimal architectural context.

From plugin
jumbocli
26518 skills
Install
$ npx -y skills add jumbocontext/jumbo.cli --skill refine-jumbo-goals --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/refine-jumbo-goals

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use when Jumbo goals need refinement before implementation. Curates relations to project entities so the implementing agent receives optimal architectural context.

SKILL.md

refine-jumbo-goals.SKILL.md
name: refine-jumbo-goals
description: Use when Jumbo goals need refinement before implementation. Curates relations to project entities so the implementing agent receives optimal architectural context.

Refine Jumbo Goals

**Prompt:** Refine one or more Jumbo goals by registering comprehensive relations to project entities so that an autonomous agent has optimal context for correct implementation.

Why Refinement Matters

When `jumbo goal start` is run, the goal's registered relations determine what context is assembled and provided to the implementing agent. Missing relations mean missing constraints, patterns, or domain knowledge. Irrelevant relations waste tokens and dilute focus. Thorough refinement is the single highest-leverage activity for autonomous goal execution quality.

Protocol

1. Initiate Refinement

jumbo goal refine --id <goal-id>

Review the goal's objective, criteria, and scope.

2. Explore All Project Entities

You MUST explore ALL entity categories to build a complete picture of available entities:

jumbo invariants list
jumbo guidelines list
jumbo decisions search -q <query>
jumbo dependencies search -q <query>
jumbo components search -q <query>

Here are some examples demonstrated various ways to search for components:

# Search by name (substring or wildcard)
jumbo components search --name "Auth*"
jumbo components search --name "*Gateway"

# Search by type
jumbo components search --type service
jumbo components search --type lib

# Free-text search across description and responsibility
jumbo components search --query "event handling"

# Compact output for quick discovery (id, name, type only)
jumbo components search --output compact --type service

# Combine filters (AND logic)
jumbo components search --name "*Controller" --type service

Run multiple targeted searches derived from the goal's domain. Only fall back to `jumbo components list` if searches are insufficient to identify all relevant components.

Do not skip any entity category. Every category is a potential source of implementation context.

3. Evaluate Every Entity Against the Goal

Use different evaluation strategies depending on the entity category:

Invariants & Guidelines — evaluate by exclusion

Review every invariant and guideline returned. For each, ask: **"Can I confidently say the implementing agent will never need this?"** Only exclude those where the answer is clearly yes. A missed constraint causes QA rejections — but over-relating creates context rot that dilutes focus. The bar is confidence of irrelevance, not possible relevance.

  • **Invariants**: Review all. Exclude only those confidently unrelated to the goal's scope.
  • **Guidelines**: Review all. Exclude only those confidently unrelated to the goal's scope.

Components, Decisions & Dependencies — evaluate by inclusion

Use targeted searches to find entities the implementation will modify, use, or depend on. For each candidate, ask: **"Will the implementing agent need to know about this to execute correctly?"** Only register entities with direct, actionable relevance.

  • **Decisions**: Which architectural decisions inform, motivate, or constrain this change?
  • **Components**: Which system components will be created, modified, deleted, or depended upon?
  • **Dependencies**: Which external libraries are involved in the implementation?

4. Register Relations

For every relevant entity, register a relation:

jumbo relation add \
  --from-type goal \
  --from-id <goal-id> \
  --to-type <entity-type> \
  --to-id <entity-id> \
  --relation-type <type> \
  --description "<why this relation matters for implementation>"

**Relation types:**

| Type | Use When | |------|----------| | `involves` | Implementation will modify or directly interact with this entity | | `uses` | Implementation depends on or references this entity | | `must-respect` | Implementation must adhere to this constraint or decision | | `follows` | Implementation must follow this practice or standard | | `implements` | Implementation applies or realizes this architectural decision |

**Description quality is critical.** The description is what the implementing agent reads. It must explain the specific relevance to this goal, not just restate the entity's title.

  • BAD: "Related to this invariant"
  • BAD: "Must follow this guideline"
  • GOOD: "Removal must not leave orphaned registrations or broken import paths across layer boundaries"
  • GOOD: "Ensure the read-side query path remains intact after removing the old handler"

5. Surface Prerequisites

As you analyze the goal against project entities, you may discover that work X must happen before this goal can succeed. When you identify a prerequisite, register it immediately — do not defer it to a note or comment:

1. Register the prerequisite as a new goal:

   jumbo goal add --objective "X that must happen first"

2. Link it to the current goal:

   jumbo goal update --id <goal-id> --prerequisite-goals <new-goal-id>

3. Continue refining the current goal.

6. Update Goal Metadata

During entity exploration, you may also discover:

  • Additional files that belong in scope
  • Files that should be created or modified
  • Risk of scope creep
  • Success criteria that need updating
  • Applicable refactoring skills to reference in criteria (prefix with `skill:`)

Update the goal accordingly:

jumbo goal update --id <goal-id> \
  --criteria "Updated criteria" \
  --scope-in "additional/file/path.ts" \
  --scope-out "namespace/" "a/file/to-not-touch.ts" \
  --previous-goal <previous-goal-id> \
  --next-goal <next-goal-id> \
  --prerequisite-goals <goalIds...>

7. Verify Completeness

Before approving, verify ALL of the following:

  • [ ] Every entity category was explored (no categories skipped)
  • [ ] Relevant invariants are linked (most goals require 2+ invariant relations)
  • [ ] Testing-related guideli
Read more
Ships withjumbocli

Memory and Context Orchestration for Coding Agents

Get the whole plugin