Skip to content
Back to skills

Jig

ASecurity

Run a task through a jig flow: pick the flow, track its steps, prove the result.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
developmenttypescriptrustgobashreactvuenodedebuggingrefactoringapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add PetukhovArt/jig --skill jig --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jig?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jig
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/petukhovart-jig/badge)](https://www.skillsdirectory.com/skills/petukhovart-jig)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jig
description: "Run a task through a jig flow: pick the flow, track its steps, prove the result."
disable-model-invocation: true
argument-hint: "<task, with how you will know it is done>"
---

# jig

Plugin root: `${CLAUDE_PLUGIN_ROOT}` when the agent sets it, otherwise the directory two levels above this file. Below, `<root>` means this path.
CLI: `node "<root>/bin/jig.mjs" <command>`; `jig <command>` in flows means this. Atoms: `<root>/atoms/<name>.md`. Flows: `<root>/skills/jig/flows/<name>.md`. Roles: `<root>/skills/jig/references/roles/<name>.md`, indexed with tier and effort in `<root>/skills/jig/references/roles.md`.

## Non-negotiables
These hold for the whole task, in every flow.
- **Evidence.** Every claim carries its label in the same sentence: measured (you ran it and saw the output), inferred (from code you read, with `file:line`), or guess (say what would confirm it). A fact you can observe by running something, you run; never hand the human a check you could run. Never fabricate a link, an output or a citation.
- **hitl by default.** Reversible work proceeds without asking: edits, local commits, branches, worktrees, checks, subagents. A fact is looked up or run, never asked. A fork you can settle by running something is settled by an experiment. Only a real product or taste choice goes to the human: ask it in your reply, with your recommendation, and wait (format: atom `questions`).
- **afk** when the human said they are away or must not be waited on ("going to bed", "don't stop", "until done") or the flow is `afk-mode`: take the default you recommend, keep going, and list in the final report each question, the option you took and what the human could tell you instead.
- **Irreversible waits, always**: force-push to a shared branch, deploys, deleting data or branches you did not create, messages to other people, merging, publishing.
- **Questions are text in your reply.** A tool that blocks the session on a question, or may be turned off, is not a channel.
- **Context window.** Bulk reading (many files, long logs, wide searches) goes to a subagent with pointers (paths, line ranges), not pasted content. You own every subagent's output: check its diff or claims and write your own summary.

## Before the first step
1. Restate the task in one line each: the goal, the done check (something that can pass or fail), the proof you will show, what is already known, the constraints. Missing done check: propose one and continue with it.
2. Pick the flow whose description fits. None fits, or the work is large and cross-cutting: `custom-flow`.
3. Read the flow file. Copy its numbered steps verbatim into a todo list, before any task-specific items: the todo tool if the session has one, otherwise a list in your reply, updated at each step. A step you do not do stays in the list as `skip: <reason>`. Mark a step done when it is done; no in-progress updates.

## While working
- When a step names an atom, read `<root>/atoms/<name>.md` before acting on that step. When what you are about to do matches a trigger in the atom index below, read that atom too.
- When a step names a role, spawn a subagent whose prompt begins `Read <root>/skills/jig/references/roles/<name>.md and follow it.`, then your brief: goal, scope, file pointers, and the paths of the atoms it must read. Do not read the role file yourself. Its tier and effort are in `references/roles.md`; run `jig tiers` once per session for the models of each tier; no mapping for this agent: pick the model that fits the tier description in `references/tiers.md`. OpenCode's `task` tool takes no model: pass `subagent_type: jig-<tier>`. Review what it returns; do not pass its text through.
- Code crossing a function boundary → `flows/module-design.md` before writing it.
- **agent-view configured**: `.jig/config.jsonc` (or `.jig/config.local.jsonc`) names `"agent-view"` and does not set it to `false`, the same test `jig pre-mr` uses; an `agent-view.config.json` alone does not count. Configured: a step that drives the app uses agent-view on the runtime `agent-view.config.json` names in `runtime` (electron, tauri or browser) and on its `port`, never a browser or port 9222 by default. Not configured: that step is `skip: agent-view not configured`.
- **Where the app runs**: never run the dev server or a verify in a checkout where another agent writes code at the same time. One writer working in turn (edit, commit, then run): the dev server and the verify run in its own checkout. A slot (`jig slot show <n> <branch>`, the `jig-slots` skill) only when another agent writes in that checkout meanwhile or it serves another task; a slot shows commits only, so commit first.
- Hooks may deny an edit or keep you from finishing. Read the reason, fix the cause, do not work around it.

## Atoms
<!-- atoms:start -->
**Process**
- `automate-repeats`: Apply to any non-trivial edit, migration, analysis or check
- `autonomy`: Apply when you are about to ask the human 'should I do X?' or to stop and wait
- `context-window`: Apply when context fills up: large outputs, long files, repeated reads, fan-out work
- `lessons-to-checks`: Apply when you catch yourself writing the same instruction a second time, or see a recurring correction or review finding
- `questions`: Apply before you ask the human anything, or when you interview them about a plan
- `small-steps`: Apply to multistep work and to how you stack commits and merge requests
- `writing-for-agents`: Apply when you write or edit text an agent runs on: a skill, a flow, an atom, a role, AGENTS.md or CLAUDE.md

**Design**
- `design-it-twice`: Apply when facing a novel module interface, data shape or architectural decision with no precedent in the codebase, or when a new requirement lands in an existing design
- `do-less`: Apply when sizing a change, adding an option or abstraction, or sequencing an addition
- `domain-model`: Apply when writing stateful logic, designing types, naming a new field or term, or when code branches a lot on the same shape
- `module-depth`: Apply before you write code that crosses a function boundary: a new or changed signature, exported type or module surface
- `one-way`: Apply when introducing a new API, abstraction or way of doing a task while old ones exist
- `patterns`: Apply when designing a module interface with two or more variants, or when untangling complex code: a switch on type, an instanceof chain, duplicated conditional creation, an import cycle
- `shared-state`: Apply when concurrent actors, modules or runs might write the same file, key, branch or state object, or when a command must survive crashes and retries
- `system-edges`: Apply when wiring validation, error handling, adapters or imports across modules
- `ux`: Apply when you build, review or attack UI: components, markup, styles, screens

**Code**
- `comments`: Apply when you add, keep or review a code comment
- `dead-code`: Apply when deleting code believed unused, or reviewing a diff that leaves an export, file or branch nothing reaches
- `docs`: Apply when writing, editing or reviewing a Markdown document (README, docs, ADR, glossary)
- `effects`: Apply when writing or reviewing reactive code (Vue, React, Solid, signals, stores)
- `tests`: Apply when you write, change, keep or review a test
- `typescript`: Apply when reading or editing TypeScript

**Proof**
- `change-impact`: Apply before you change code other code depends on
- `evidence`: Apply to every claim in a reply or report
- `prove-shippable`: Apply after completing a task, before declaring done
- `root-causes`: Apply when debugging
- `why-this-number`: Apply before you trust, report or act on a measured number: a speedup, a regression, a latency, a throughput, an eval score

**Review**
- `reader-cost`: Apply when shaping or reviewing code that is hard to trace
- `smells`: Apply when judging whether a hunk is a code smell
<!-- atoms:end -->

## Flows
<!-- flows:start -->
- `afk-mode`: work unattended toward a checkable done condition, or turn a queue of tasks into a stack of merge requests the human lands.
- `break-it`: attack a feature in the running app and report reproduced bugs (bug bash), one breaker subagent per screen or claim.
- `bug-fix`: reproduce, find the root cause, fix, prove.
- `custom-flow`: no flow fits, or the work is large and cross-cutting: frame it, design its workflow, run each unit as an experiment, leave a decision trail.
- `deepening`: find module deepenings in a scope (paths, a merge request, a branch, a scan card), show them as an HTML report, then design and refactor the one the user picks.
- `diagnose`: find the cause of a symptom without fixing it, from a live process or a captured artifact; the fix is bug-fix.
- `eval`: measure how a change to an atom, flow or skill changes agent behavior before you keep it.
- `feature`: build new behavior with the right data shape and prove it on the running product.
- `investigation`: understand code or a decision without changing it.
- `metric-climb`: improve one metric over many measured attempts until a stop predicate holds; a one-off slowness fix is perf.
- `module-design`: ground, sketch two shapes in parallel, pick by depth, implement against the sketch.
- `mr-watching`: drive your open merge requests through conflicts, threads and CI, and land a verified stack when the user says so.
- `perf`: measure, explain the limiter, fix, measure again.
- `prototype`: settle a design decision with a throwaway instrument.
- `refactoring`: change structure, keep behavior, prove equivalence.
- `session-pause`: stop cleanly with a resume point.
- `session-resume`: resume work a previous session left.
- `ui`: build or change UI against a reference (Figma, an image, an existing implementation, a spec) or the project's own tokens and components, then prove it on every target, width and theme.
<!-- flows:end -->
Every code-changing flow ends with the shared step in `flows/mr.md`.
Reviewing someone else's merge request: the `jig-review` skill in mode `review`.
The weekly improvement loop: when the user asks for it, follow `references/loop.md`.

## Reply
Follow the flow's `Reply:` contract. Name each atom that changed a decision and the decision it changed; an atom named without one is noise.

Files in this skill

  • SKILL.md9.8 KB
  • agents/openai.yaml129 B
  • flows/afk-mode.md3 KB
  • flows/bug-bash.md2.2 KB
  • flows/bug-fix.md2.4 KB
  • flows/custom-flow.md2.5 KB
  • flows/deepening.md2.9 KB
  • flows/diagnose.md2.1 KB
  • flows/eval.md2.2 KB
  • flows/feature.md3.5 KB
  • flows/investigation.md1.4 KB
  • flows/metric-climb.md2.9 KB
  • flows/module-design.md2.8 KB
  • flows/mr-watching.md2.3 KB
  • flows/mr.md3.6 KB
  • flows/perf.md1.1 KB
  • flows/prototype.md1 KB
  • flows/refactoring.md1.2 KB
  • flows/session-pause.md904 B
  • flows/session-resume.md845 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.