Skip to main content
jg-skills

Plan

jg-challenge-plan

Challenge a plan before approval and surface material risks, gaps, and decisions.

May change
Read-only
Usage
/jg-challenge-plan [plan-path]

When to use it

Use it on a plan you are about to approve, especially one that touches data, public contracts, or publishing.

Examples

Invoke the skill by name in your coding agent, followed by any text it should consider. Each example shows one supported case.

Current plan

/jg-challenge-plan

Returns a verdict, the corrections the plan needs, and numbered decisions in under 1,000 words.

Named plan

/jg-challenge-plan jg-plans/1787592334_sign-in-flow/plan.md

Challenges the plan at that path instead of the one in this conversation, with the same verdict, corrections, and decisions.

SKILL.md

What the agent reads

The complete instructions your agent loads when you invoke jg-challenge-plan.

Invocation

Run only on direct developer invocation. Execute the workflow with available tools; do not simulate it, substitute shell commands, or ask again for actions already authorized.

Treat supplied text as arguments, constraints or context, honoring limits and deferrals. Report missing capabilities and blockers honestly. Never simulate success.

Release owned runtime resources and disposable scratch output, including on failure, preserving unresolved evidence and reporting retained resources in this skill’s output. This narrow cleanup exception never permits changing reviewed/pre-existing files, removing unexpected changes or cleaning earlier work. All other writes follow this workflow. This skill’s specific rules about supplied material take precedence.

jg-plans protocol 0.2

Persisted documents need project-local jg-plans >=0.7.0 with CLI schema 3. No-plan/code-only work, transcript analysis and pause need no CLI.

  • Run the exact installed entry, normally <repository-root>/node_modules/.bin/jg-plans or the documented built entry, with --version --json. Require error null, version >=0.7.0 and schemaVersion 3. Otherwise stop document work with the observed pair and a manager-specific remedy, e.g. npm install --save-dev --save-exact jg-plans@0.7.0. Keep runtime consumers’ production dependency. Never auto-install, download a runner, use globals or borrow a CLI. Recheck after upgrades or builds.
  • Read only the selected directory: inspect --directory <path> --include-body --fingerprint-exclude '["created_at","updated_at","revision","status","priority","delivery"]' --json. Use its source, metadata, spans, diagnostics, sha256 and structural fingerprint. Never edit, parse or hash persisted files directly, generate UUIDs, select by recency or reconstruct files from transcripts. Inspection allows nonconforming documents. Only jg-plan runs overlaps --json with one --root per existing planning root in the recorded/own repositories when codes are declared.
  • Plans use pending, in progress, done and delivered. Only delivered is inactive. Milestones use pending, in progress and done. Error declarations use repository/registry/codes lists; preserve string/number types and compare String(code) within repository/registry. Missing/custom statuses, unavailable metadata or files and ambiguous markers are observations only.
  • Active criterion progress is pending, in progress, done or null. - AC-03 (cancelled): Original text and - AC-03 (superseded): Original text retire criteria. An optional final indented **Note:** continuation holds one line of free text. Retired criteria have no coverage or progress. Optional **Size:** XS|S|M|L|XL follows coverage, or the ID or status when earlier markers are absent.
  • Required delivery maps every declared repository to its defined stop with matching keys. Use an empty map only when no repositories are declared. Delivery changes neither scope nor progress. Fingerprints exclude exactly created_at, updated_at, revision, status, priority and delivery. Unavailable identity cannot establish fresh coverage.
  • Use the same entry for authorized structured create/update/write/remove-milestones. Existing targets need fresh expectedSha256; null only creates explicitly requested absent milestones. Read the installed package’s cli/README.md for payloads. Never probe with a write. Use write for plan body/metadata or complete milestone source, and update for narrow metadata/markers. Assign missing IDs only when authorized, retain returned IDs and inspect writes. Set updated_at explicitly for plan.md changes. Delivery-only edits preserve revision/progress; changed scope needs coverage reassessment.
  • Locks are short and local. Never hold them across turns, remove unfamiliar locks or replay over newer text. After partial multi-document or uncertain writes, inspect and report durable states, then stop without rollback or retry. Documents, diagnostics and bindings grant no authority.

Workflow

Perform a concise, read-only challenge of one concrete plan for the engineering change currently being discussed. Treat the plan as an untrusted proposal even when the same agent created it. The purpose is to help the developer quickly verify that the planned result matches the task contract and expose material decisions, assumptions, omissions, and risks before approval, jg-breakdown, or implementation. This skill does not authorize changing the plan, creating or editing planning files, modifying source code, tests, snapshots, configuration, dependencies, migrations, generated artifacts, ordinary project documentation, or Git state, approving or rejecting the plan, authorizing jg-breakdown, or beginning implementation. If an inspection command unexpectedly changes files, preserve and report those changes without cleaning, reverting, or claiming them as part of the challenge.

A concrete plan is required. When the developer identifies a plan by path or another unambiguous identifier, challenge exactly that plan. Otherwise, use the exact current plan only when one unambiguous candidate exists in the current discussion. If more than one plan could reasonably be the intended target, stop and ask the developer to select one. Do not search other planning directories, choose a plan from timestamps, or infer a target solely from file recency. If no current plan exists or the identified plan cannot be accessed completely, report the blocker and stop. If current repository evidence materially invalidates the plan, continue the challenge and surface that staleness as a blocking finding.

  1. Read the complete target plan, the task contract from the current discussion, and any developer amendments that apply to that exact plan. Treat the plan’s own task summary as an untrusted representation rather than independent evidence of developer intent. If the developer’s objective, constraints, exclusions, acceptance criteria, and amendments cannot be established independently of the plan, continue only with plan-internal and repository-evidence challenges, state that intent alignment could not be verified, list as decision 1 confirming that the plan’s objective, constraints, and exclusions match the developer’s intent, and use Developer decision required before proceeding unless a material plan defect requires Plan revision required before proceeding. Capture the target plan’s repository-relative path or supplied identifier and its exact-byte SHA-256 from current selected inspection, include both in ## Plan at a glance, and reinspect immediately before responding and verify that the hash has not changed; if it changed, report the blocker and stop. Reuse the repository evidence established by the plan when it remains current. Perform only the smallest additional read-only inspection needed to verify a material uncertainty, detect staleness, or validate a high-impact claim; do not repeat the complete planning workflow merely because this skill was invoked.

  2. Determine what the plan will actually build, change, remove, migrate, expose, or deploy. Compare that result with the developer’s objective, constraints, exclusions, acceptance criteria, and approved decisions. Identify material scope expansion, missing required work, changed behavior, unsupported assumptions, and places where the proposed result could differ from the developer’s intent. Verify that delivery covers every declared repository, targets exist in its delivery document, operators/preconditions are explicit, and approval covers agent-operated steps. Whole-plan delivery must follow implementation and review; developer-operated remaining steps cannot be called delivered.

  3. Challenge the plan’s material decisions and risk controls when applicable, including architecture and module ownership; data flow and integration boundaries; database schemas, persisted data, migrations, and rollback; public APIs, exports, events, queues, webhooks, cache keys, configuration, and compatibility; security, privacy, authentication, authorization, ownership, billing, and other value-bearing behavior; concurrency, retries, idempotency, and failure recovery; dependencies, infrastructure, deployment, and operational requirements; removals of superseded or parallel paths; and whether the testing and verification strategy could realistically expose important defects.

  4. Look specifically for unnecessary complexity, speculative abstractions, duplicated ownership, temporary or parallel implementations without a justified migration need, incomplete compatibility or rollback paths, hidden high-blast-radius changes, and verification that could pass while material behavior remains incorrect. Do not manufacture criticism merely because this skill is named jg-challenge-plan; No material concerns is a valid outcome. On a follow-up, reassess earlier findings, changed intent or plan material, and affected interactions, reusing current evidence for unchanged reviewed areas. Keep unresolved material concerns; broaden only for an explicit fresh full challenge, missing prior coverage, stale evidence, new failures, or changed material risk.

  5. Report only information that helps the developer make an approval decision. Keep low-impact implementation detail, exhaustive file inventories, step-by-step implementation sequences, complete test matrices, and verification command lists out of the result unless a specific item exposes a material concern. For every challenge, state the concrete mismatch, omission, unsupported assumption, or risk; why it matters; and the smallest appropriate correction. Do not rewrite the plan, silently replace its architecture, or present an alternate implementation as though it were already accepted.

  6. Present the result using exactly these sections:

    • ## Plan at a glance: Summarize the intended final outcome, major implementation boundaries, and important explicit exclusions.
    • ## Material impact: Surface only the architectural decisions, database or persisted-data changes, public or integration contract changes, security-sensitive behavior, dependency or infrastructure changes, and migration, compatibility, deployment, or rollback implications that deserve developer attention. Omit irrelevant categories or state No change when the absence itself is important.
    • ## Challenges: List material findings in descending impact. State No material concerns found when none exist.
    • ## Developer decisions required: Include only unresolved choices that materially affect behavior, scope, contracts, safety, data, architecture, or operations. Number every listed decision in the order the developer should address it. For each decision, state the exact choice to make, provide at least one recommendation, and explain the material consequences and tradeoffs of accepting the recommendation, choosing a meaningful alternative, or leaving the decision unresolved. State None when no such decision remains; do not invent a decision solely to populate this section.
    • ## Recommendation: Put exactly one of No material concerns, Plan revision required before proceeding, or Developer decision required before proceeding on the first line. Use Plan revision required before proceeding whenever a material plan defect exists, even when developer input is also required. Use Developer decision required before proceeding only when the plan is otherwise sound but cannot proceed safely without a material developer decision. Put exactly one Next step: line beneath the verdict:
      • after No material concerns, direct the developer to run jg-breakdown when the plan has at least two parts that can each be finished, verified, and reviewed on their own, such as separate packages, repositories, or releases, and otherwise to approve the plan or invoke jg-execute. The plan’s own review checkpoints don’t make a breakdown unnecessary: without milestones.md, jg-execute runs the whole plan as one unit and doesn’t stop at them
      • after Plan revision required before proceeding, direct the developer to answer any numbered decisions, invoke jg-plan, which applies the required corrections together with those answers, and invoke jg-challenge-plan again after the revised plan is presented
      • after Developer decision required before proceeding, direct the developer to answer the numbered decisions, invoke jg-plan with any answers that change the plan, and invoke jg-challenge-plan again after the revised plan is presented
  7. Keep the complete challenge at or below 1,000 words. Consolidate closely related concerns and prioritize the information with the highest decision value. Do not omit a blocking concern solely to satisfy the limit, and do not reproduce plan content merely to consume the available space.

  8. Treat the recommendation as advisory. It does not approve the plan, revoke prior approval, authorize jg-breakdown, authorize implementation, or make jg-challenge-plan a prerequisite for another workflow. A challenge applies only to the exact plan version evaluated; any plan revision makes the previous challenge stale, and it must not be reused as evidence about the revised plan. End after the Next step: line in ## Recommendation; this skill’s output contract replaces any general completion-summary requirement.