Skip to main content
Agentic Coding

The workflow

Run the workflow with skills.

Plan, build, and ship a change with coding agents one explicit skill at a time, with example output from every step.

Published

Before the first change

Install the skills once per repository.

Each skill runs only when you invoke it by name: /jg-plan in Claude Code, $jg-plan in Codex. Skills defer engineering standards to your repository's AGENTS.md, so start with the foundation.

Install jg-skills from your repository's root

npx skills add jesusgraterol/jg-skills --skill "*" -y

Explicit-only invocation and implicit loading are verified with Claude Code and Codex.

Plan

Agree on what to build before any code changes.

  1. jg-brainstorm

    Optional

    Thinks an idea through with you and recommends a direction before planning.

    May change
    Nothing.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-brainstorm Organization API keys: a new keys table with its own CRUD endpoints?

    2. Coding agent

      src/tokens/ already owns hashing, scopes, and revocation. A second table would duplicate all three.

      Summary to plan from
      Recommended direction- Give personal tokens an organization owner- Reuse their hashing, scopes, and revocationStill open- Do keys outlive the admin who created them?
  2. jg-plan

    Settles your decisions with you, then creates or revises an implementation-ready plan.

    May change
    Writes plan.md under coding-agent-planning/ and removes a stale milestones.md.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-plan

    2. Coding agent

      Plan saved. Approve it to start.

      coding-agent-planning/1792040000_org-api-keys/plan.md
      # Plan: Organization API keys## Desired final behaviorOrganization admins create, scope, rotate, and revoke keys.## Files to changesrc/tokens/token.model.ts, token.service.ts, routes.ts## Approval required
  3. jg-challenge-plan

    Optional

    Challenges a plan before approval and surfaces material risks, gaps, and decisions.

    May change
    Nothing.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-challenge-plan

    2. Coding agent

      Challenge
      Revision required
      ## Challenges1. The plan never says what happens to keys when their creator leaves.## Developer decisions required1. Keep those keys? Recommended: yes, the organization owns them.## RecommendationPlan revision required before proceeding
    3. You

      jg-plan Keep the keys; they survive their creator.

  4. jg-challenge-session

    Optional

    Reads another Claude Code or Codex session and challenges its direction, plan, and milestones.

    May change
    Nothing.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-challenge-session org-api-keys From a fresh session in another coding agent.

    2. Coding agent

      The plan's own challenge passed this. Paste this answer into the planning session with jg-feedback.

      Challenge from another session
      Revision required
      ## Challenges1. Any member can rotate an organization key; the plan limits only creation to admins.## RecommendationRevision required before proceeding
    3. You

      jg-feedback Pasted into the planning session: only admins rotate keys.

  5. jg-breakdown

    Optional

    Splits a plan into ordered, reviewable milestones when it has real implementation boundaries.

    May change
    Writes or removes milestones.md next to the plan.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-breakdown

    2. Coding agent

      Three milestones, each with its own checks and review checkpoint.

      milestones.md
      ## Milestone 1: Organization-owned tokens## Milestone 2: Admin endpoints and scopes## Milestone 3: Rotation and audit events## Approval required

Build

Turn the approved plan into verified code.

  1. jg-execute

    Builds an agreed task, a plan, or its milestones; supervised by default, or auto.

    May change
    Code, milestone status lines, and the overview table. In autonomous mode it also commits and pushes each milestone's files and the fixes from its final review of the whole plan.

    Full instructions on jg-skills (opens in a new tab)

    How jg-execute runs

    Builds the next milestone, or the whole plan when it has none, runs its checks, and stops. You run jg-review and jg-push.

    1. You

      jg-execute

    2. Coding agent

      Milestone report
      Checks passed
      Milestone 1: Organization-owned tokensFiles: 6 changedChecks: unit, integration, typecheck passedStatus line written to milestones.mdNextjg-review, then jg-push, then jg-execute for milestone 2
  2. jg-debug

    When needed

    Reproduces a bug, finds its cause, and fixes it with a regression test that fails first.

    May change
    Code, a regression test, and temporary logging it removes. Never commits.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-debug A rotated key still authenticates for a few minutes.

    2. Coding agent

      The auth cache was keyed by owner, so the old key stayed cached. session-cache.ts has the same pattern; reported, not changed.

      Cause, fix, and regression test
      Fixed
      ReproduceFAIL rejects the previous key after rotationFix: src/tokens/token-cache.tsRemoved: const cacheKey = `token:${ownerId}`;Added: const cacheKey = `token:${tokenHash}`;VerifyPASS rejects the previous key after rotation
  3. jg-pause

    When needed

    Stops at the nearest safe point, reports where things stand, and waits until you continue.

    May change
    Nothing.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-pause

    2. Coding agent

      Stopped at a safe point.

      Where things stand
      Paused
      DoneRotation endpoint and its integration testsHalf-finishedAudit event schema: drafted, not wired inTo resumeSay continue

Ship

Check the finished change, then publish it.

  1. jg-review

    Reviews the task's changes against its plan, a finished plan as a whole, or the branch against a target.

    May change
    No files. With a target branch, it may refresh that branch's remote-tracking ref.

    Then you choose the outcome:

    Correct
    Fix the defect or weak proof, then review the new state.
    Continue
    Authorize the next milestone.
    Complete
    Accept the change; nothing is left to build.

    For a branch, run jg-review <target-branch>.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-review

    2. Coding agent

      Review of 6 task files
      Not ready
      Findings1. High: members can list another organization's keys (token.service.ts:42)Checks rununit, integration, typecheck: passedVerdictNot ready
    3. You

      Fix the finding and review again.

    4. Coding agent

      Fixed with a regression test. Second review: Ready to commit.

  2. jg-push

    Commits the current task's files, signed when signing is set up, and pushes the branch.

    May change
    Stages and commits the task's files, or every change when there is no task, and pushes the current branch.

    Publication always needs its own grant: jg-push for one change, or jg-execute auto for a whole run.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-push

    2. Coding agent

      Committed only this task's files, signed off and signed.

      Commit and push
      Pushed
      $ git commit -s -S -m "feat(tokens): give tokens an organization owner" -- <6 task files>[feature/org-api-keys 3f8c2e1] feat(tokens): give tokens an organization owner$ git push origin HEAD:refs/heads/feature/org-api-keys3f8c2e1 pushed to origin/feature/org-api-keys
  3. jg-review-session

    Optional

    Reviews what another session built against its plan, milestones, and your decisions.

    May change
    Nothing.

    Full instructions on jg-skills (opens in a new tab)

    1. You

      jg-review-session org-api-keys

    2. Coding agent

      All three milestones match the plan; one claim still needs evidence.

      Review of the delivered milestones
      Doubt to settle
      ## IssuesNone## Doubts1. "e2e passed" has no CI run for 7d03b18. Settle it with gh run list --commit 7d03b18.## VerdictCouldn't confirm everything

More skills

These skills support the workflow without being one of its steps.

For recurring situations no skill covers, such as orienting in a new codebase or recovering from drift, use the cookbook.