/agentic:agentic-use-workflowfrom agentic
Runtime every agentic-* skill loads first. Use at the start of any agentic-* skill.
Ships in agentic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Runtime every agentic skill loads first. Contracts read by other skills or outside tooling live in references/; follow them exactly.
{agentic-use-workflow} = this skill's base directory, the folder holding this SKILL.md (e.g. .agents/skills/agentic-use-workflow with the skills CLI, ${CLAUDE_PLUGIN_ROOT}/skills/core/agentic-use-workflow in the Claude plugin).
Every mechanic below runs through bun {agentic-use-workflow}/scripts/agentic.ts <command> (agentic.ts below). bun is a hard requirement: no manual fallback; bun missing → hooks exit non-blocking with one line, commands fail loudly. No args → usage.
| Command | Does |
|---|---|
start <workflow> --harness h [--title] [--work slug] | Creates the work item if new, mints the 4-hex run, logs workflow started |
event --type t --summary s [flags] | Validated append to events.jsonl; fills ts/work/run/harness/workflow; invalid → nothing written |
state | Re-derives state.json from the log |
resume | ≤15-line summary: status, phase, current step, escalations, pending units, last events, next command |
decide --tag --focus --q --a --why | Appends the next D<n> to decisions.md + logs the decision event |
put <relative path> | Content on stdin → allowlisted work-item file (spec.md, plan.md, context.md, implementation.md, pr.md, briefs/**, reports/**, reviews/**, tickets/**) in the main-checkout item, from any worktree; logs artifact; reviews/{n}-{reviewer}.md also logs completed with counts |
step <key> [--task] [--unit] [--agent] [--skills] | Resolves model + effort, prints the filled brief, logs started before the spawn |
gate --task T1,T2 / gate --baseline | Runs .agentic.json verify at HEAD of the cwd checkout (clean tree only); log {item}/gates/{sha}.log; logs checks per task (completed/failed, data {sha, log}), baseline = one without task (data.baseline); a green SHA is not re-run. Blocks: background it. Red → ≤10 lines + log path, exit 1 |
merge | PR from state.pr. Runs gh pr merge {n} --squash --match-head-commit {head} only when the latest review (workflow-level review run or playbook step: review) is completed with 0 blocker/major in its last iteration and reviewed the PR head (data.head = PR head, or data.patchId = the local checkout's patch-id vs base while its HEAD = PR head: a conflict-free rebase passes, a code change refuses; run merge and review completed events from the PR's checkout, event records cwd HEAD + patch-id), gh pr view says mergeable, and CI proof holds for the head: all checks green, or, when no check ran (Actions blocked), non-Actions checks green and marker $(git rev-parse --git-common-dir)/agentic/ci-pass/{sha} holding the head sha. Logs completed (babysit-pr, step: merge). Exit 1 names the failed condition, no merge call |
review eligible --base <ref> [--iteration n] | Computed reviewer list |
hub sync | Upserts the work item's mirror comments on its hub issue (GitHub, via gh). No hub or no gh → prints skipped: …, exit 0 |
cleanup check | Archive-ready check (PR-state check skipped with a message when gh is missing) |
hook spawn / hook compact | Harness hook entry points (shipped by the plugins' hooks; skills-CLI installs: wire them per the README) |
Exit 0 ok, 1 validation/runtime failure, 2 usage error. Sub-agents run only put, for their own report; otherwise >> appends.
Read references/config.md before resolving any config value: lookup and merge, fields, defaults, profiles, step keys, limits. No config file found → built-in defaults; say so once and suggest the user run /agentic-configure (Codex: $agentic-configure).
Harness key is cursor, claude or codex, from your own runtime. Unsure → ask.
Profiles: resolve them per config.md and say once which run. Their skills are the codestyle skills for every step that writes or judges code. Units (tickets, else plan.md tasks) add their own Skills: a step working on given units loads the profile skills plus theirs; a step judging the whole change (reviewers) loads the union across units.
Every skill named in a step, config or brief (agentic, vendored, codestyle, reviewers) is reached by its invocation:
Call the Skill tool with "<name>", one skill per call.disable-model-invocation: true: the vendored to-spec, to-tickets, implement): the Skill tool can't reach it. The calling skill reads its co-located copy by relative path: "Read ../<name>/SKILL.md and follow it". Subagents get the absolute path, resolved from the calling skill's base directory.X/SKILL.md (next to the asking skill, ../X/SKILL.md, else among the installed skills) and follow it. Briefs then list each skill's absolute SKILL.md path and carry this rule as the delegation brief's Skills: line.The Claude plugin namespaces skills as agentic:<name>; a bare name means either.
Vendored skills that expect setup (a tracker "already provided", a board, a merge gate) take it from the agentic brief: tracker, work-item paths, scope (report-only for reviewers). The brief is their setup; keep the user out of third-party setup skills.
agentic.ts step <key> resolves model and effort per config.md and prints them in the brief; spawn with exactly those.
Keep the session model for work that needs it.
chore subagent. Its brief: do exactly that; touching more than 2 files or needing a decision → stop and report.context.* included) → subagent on the resolved explore model, even if that means bypassing the harness's built-in Explore agent.One session or subagent per step key and unit; parallel when independent (no shared writes, no ordering). Brief and harness controls for model and effort: references/delegation.md. Read-only subagents return cited findings; you write them to the target file (e.g. the matching context.md section).
{output}/{YYYYMMDD}-{slug}/, layout in references/state.md. The helper resolves {output} in the main checkout (first git worktree list entry), even from a worktree.
agentic.ts start creates the folder; write the raw request to input.md.{slug} or ending in -{slug}; run agentic.ts resume and follow state.md. Several matches → ask.agentic-cleanup archives merged items to {output}/_archive/; slug lookup skips them.{output} in .gitignore unless commitWork: true.Where the code is built, chosen once per work item by the first skill that writes to the repo (a playbook at its start, agentic-implement, or the promotion after a gate):
feat/{slug} (fix/{slug} for bugs) from the up-to-date default branch, at {worktrees}/{slug}. Install dependencies so the project checks run there. Ask before copying untracked local files (.env, …).Branch or path already taken → ask. Before the first write, check workspace.path (for a new worktree, {worktrees}) is writable; not writable under Codex's sandbox (worktrees sit outside the repo) → ask the user to restart Codex with --add-dir <path> or add the path to sandbox_workspace_write.writable_roots in ~/.codex/config.toml. Log the choice as a decision event; it becomes workspace in state.json (absolute path). From then on every repo write and code operation (implement, review, babysit-pr, knowledge promotion, their subagents) runs in workspace.path. A skill that doesn't ask (review, babysit-pr) and finds no workspace uses the current checkout, recorded as current. Recorded path gone → ask.
events.jsonl lets someone outside the session follow the work: who started what, on which model, which milestones, how it ended. Milestones, not tool calls. Log with agentic.ts start / event / decide; state.json is derived by agentic.ts state only. Before your first event, read references/state.md: enums, who logs what, derivation.
Step fails → failed event, tell the user; continue only on their answer.
Runs once a skill's grills are done: references/escalation.md. Open escalations → references/state.md Resume step 0.
Before posting unfixed vulnerabilities anywhere but local files: references/disclosure.md.
Playbook start and autonomous tail: references/playbook.md.
While a workflow runs, talk compressed: drop articles, filler, hedging. Fragments OK ("3 files changed. Tests green."). Technical terms, paths, APIs, type names exact.
Normal prose for security warnings, irreversible actions, and anything the user could misread. Code, docs, commits, PR text: always normal prose.
agents/openai.yaml (opens in a new tab)references/brief-template.md (opens in a new tab)references/config.md (opens in a new tab)references/delegation.md (opens in a new tab)references/disclosure.md (opens in a new tab)references/escalation.md (opens in a new tab)references/playbook.md (opens in a new tab)references/state.md (opens in a new tab)scripts/agentic.test.ts (opens in a new tab)scripts/agentic.ts (opens in a new tab)scripts/fixtures/hook-claude-session-start.json (opens in a new tab)scripts/fixtures/hook-claude-spawn-session.json (opens in a new tab)scripts/fixtures/hook-claude-spawn.json (opens in a new tab)scripts/fixtures/hook-claude-subagent-stop.json (opens in a new tab)scripts/fixtures/hook-codex-session-start.json (opens in a new tab)scripts/fixtures/hook-codex-spawn.json (opens in a new tab)scripts/fixtures/hook-cursor-session-start.json (opens in a new tab)scripts/fixtures/hook-cursor-subagent-start.json (opens in a new tab)scripts/fixtures/subagent-transcript.jsonl (opens in a new tab)scripts/hook.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub johannwilfridcalixte/agent-skills --plugin agentic40 skills in this plugin
/agentic-babysit-prGet a work item's PR merge-ready and watch it until it merges: push, open or reuse the PR, fix CI and comments in a loop. Use to open a PR, get it green, handle feedback, or watch it to merge./agentic-change-featureChange an existing feature's behaviour, from request to merged PR; `light` for a small change./agentic-clean-architectureUse when writing or modifying backend code that has business logic — services, domain models, use cases, APIs with validation/calculations/state transitions. Default for any non-trivial backend work./agentic-cleanupClean up after a merged PR. Removes the work item's worktree and branches, updates the default branch, archives the work-item folder. Use when a PR has merged, or with --all to sweep stale worktrees and branches./agentic-code-testingTesting rules (layers, test doubles, flakiness, naming, coverage). Use when writing or reviewing tests, or fixing a flaky one./agentic-configureSet up agentic: write the config (models per step, reviewers, folders, profiles, limits).