Skip to content
Back to skills

Kaola Workflow Next

ASecurity

Use when starting, resuming, or running Kaola-Workflow for Codex work, also called kaola-workflow — claims the issue, writes the run's mission ledger, and runs it from that one file.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 13, 2026
ai-agentsgobashnodeexpressgitapi

Works with

  • api

Security analysis

A100/100

Scanned October 5, 2026

npx -y skills add KaolaBrother/Kaola-Workflow --skill kaola-workflow-next --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kaola Workflow Next?

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

Security grade badge for Kaola Workflow Next
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kaolabrother-kaola-workflow-next/badge)](https://www.skillsdirectory.com/skills/kaolabrother-kaola-workflow-next)

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: kaola-workflow-next
description: Use when starting, resuming, or running Kaola-Workflow for Codex work, also called kaola-workflow — claims the issue, writes the run's mission ledger, and runs it from that one file.
---
# Kaola-Workflow Next

This skill is the whole workflow: it claims the work, writes the run's mission ledger, and runs it.
Everything the run needs in order to survive an interruption lives in
`kaola-workflow/.ledger/issue-<N>.jsonl` in the main checkout, so a successor with no context at
all resumes by reading one file.

<!-- KW-COMPACT-RECOVERY-START -->
## Workflow Next operation authority

Recovery marker: `KW-COMPACT-RECOVERY-V2`. This complete prompt owns Workflow Next procedure. Read
project `AGENTS.md`. Resume the recorded frontier, and transition to Kaola-Workflow Finalization
only when every mission is done.

<!-- KW-RUNTIME-DISPATCH-START -->
## Delegation

**Runtime dispatch contract (always loaded).**

Kaola-Workflow defines no subagent roles, role profiles, or subagent model and effort bindings.
Subagent capability belongs to the running Agent Harness: dispatch through its native tool and
schema, choose from the type catalog it actually exposes, and let its own defaults, limits, and
permissions — and the user's explicit instructions — decide model, effort, tools, nesting,
concurrency, isolation, and resume. Where the native schema requires a type, pass one the host
reports, under its real meaning.
Kaola-Workflow installing no profiles is never evidence that the host lacks subagent capability.

Send a bounded, self-sufficient brief naming the outcome, evidence, worktree or commit, custody, and
stop condition.

<!-- KW-RUNTIME-DELEGATION-START -->
## Runtime adapter facts

Host: Codex. If the running host is not Codex, ignore this adapter section and follow the running host's own native subagent schema and catalog.

Follow the running host's current subagent tool and the schema it exposes now. This adapter does not name types, models, nesting, or a concurrency count.
Availability follows that live schema, the host's permissions, and the user's instructions. A missing config field is not evidence the host lacks a tool.
<!-- KW-RUNTIME-DELEGATION-END -->

<!-- KW-RUNTIME-DISPATCH-END -->

**First Principles.** When nothing already settles a situation, break the tie by the numbered First
Principles in the loaded machine-global workflow contract, applied in priority order. Project
`AGENTS.md` adds only local facts and constraints.

<!-- PIN: consent-in-conversation -->
**Consent.** Irreversible and value-laden calls belong to the user — ask, in conversation, before
taking one.
State the proposed destructive Git, deploy, credential, schema/public-API, capability deletion, or
forge-reorganization action and why; wait. Everything checkable remains yours to execute.
<!-- /PIN -->

## Intake, freshness, and claim

- **The user named an issue**: select it exactly. Never substitute another, and never adopt an active folder's issue in its place.
- **The user described a task but named no issue**: resolve or file its issue; priority never outranks the requested work.
- If neither is named, start from `list-open` (below: at most 100 open issues, sorted by priority
  tier, then number; an empty list means unmeasured, not an empty backlog), then apply
  `kaola-workflow/.roadmap/_rules.md`, active folders, and archived summaries, and break ties by
  scope. Respect the user's priority, the forge backlog, real dependencies, which workspace owns
  the write, and whether the result can merge safely.

State the selection aloud before you claim it, including any skipped frontier item. **Everything
before the claim is free**: perform read-only measurement or ask when the pick is genuinely
ambiguous.

**Task clarity.** When the intended outcome and its acceptance basis are already clear and
authorized, continue. When a fact is missing, read the code, reproduce, or look it up first;
implementation detail inside an authorized scope is your own judgment. Ask the user only about an
unresolved choice that would change scope, authorization, or the meaning of acceptance, and keep
doing the investigation that does not depend on the answer. When authorized to maintain the issue,
express the observable outcome and its verification basis in plain language, and cite what is
already sufficient instead of restating it. A research or design request authorizes research or
design only; it does not authorize product implementation, forge writes, or a claim.

<!-- PIN: forge-is-the-backlog -->
Establish freshness with status, fetch/prune, and upstream divergence. Continue when synchronized,
ahead-only, or no-remote; fast-forward only a clean behind-only checkout. Ask before merge, rebase,
stash, reset, or moving user dirt. Before claim, read each shortlisted candidate's own body and comments.
Comments are current state: where a comment contradicts the body, the comment wins.
<!-- /PIN -->

Observe the backlog and claim through the existing forge-specific script:

```bash
git status --short --branch
git fetch --prune
git rev-list --left-right --count @{u}...HEAD
kaola_script(){ _n="$1"; _p="plugins/kaola-workflow-gitea/scripts/$_n"; [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; _p="$(find "$HOME/.codex/plugins/cache" -path "*/kaola-workflow-gitea/*/scripts/$_n" -print -quit 2>/dev/null)"; [ -n "$_p" ] && [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; return 1; }
CLAIM_JS="$(kaola_script kaola-gitea-workflow-claim.js)"; KAOLA_SCRIPTS="$(dirname "$CLAIM_JS")"
node "$CLAIM_JS" list-open
node "$CLAIM_JS" watch-pr >/dev/null 2>&1 || true
```

If a Gitea remote and an authenticated `tea` are available, read each shortlisted issue's body and comments:

```bash
kaola_script(){ _n="$1"; _p="plugins/kaola-workflow-gitea/scripts/$_n"; [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; _p="$(find "$HOME/.codex/plugins/cache" -path "*/kaola-workflow-gitea/*/scripts/$_n" -print -quit 2>/dev/null)"; [ -n "$_p" ] && [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; return 1; }
CLAIM_JS="$(kaola_script kaola-gitea-workflow-claim.js)"; KAOLA_SCRIPTS="$(dirname "$CLAIM_JS")"
node -e "try{const f=require(require('path').join(process.argv[1],'kaola-gitea-forge.js'));const n=process.argv[2];const p=f.discoverProject();const iss=f.viewIssue(n);const cm=f.listIssueComments(p,n);console.log(JSON.stringify({body:iss.body,comments:cm}));}catch(e){console.error(e.message)}" "$KAOLA_SCRIPTS" {N}
```

Set `KAOLA_TARGET_ISSUES` to the selected comma-separated set, then claim it. For a single issue,
leave `KAOLA_TARGET_ISSUES` unset and pass `--target-issue N` instead; a one-member
`--target-issues` claims `bundle-N`. When you chose the issue yourself because nothing was named,
add `--target-source orchestrator_selected`.

```bash
kaola_script(){ _n="$1"; _p="plugins/kaola-workflow-gitea/scripts/$_n"; [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; _p="$(find "$HOME/.codex/plugins/cache" -path "*/kaola-workflow-gitea/*/scripts/$_n" -print -quit 2>/dev/null)"; [ -n "$_p" ] && [ -f "$_p" ] && { printf '%s\n' "$_p"; return; }; return 1; }
CLAIM_JS="$(kaola_script kaola-gitea-workflow-claim.js)"; KAOLA_SCRIPTS="$(dirname "$CLAIM_JS")"
node "$CLAIM_JS" startup --runtime codex --target-issues "$KAOLA_TARGET_ISSUES"
```

The claim is bookkeeping — `workflow-state.md` carries it.
`owned`/`acquired` continues; an existing active folder resumes; user dirt or an irreversible
choice goes back to the user.

## Resume

On resume, read the mission ledger top to bottom and reconcile in-flight locators.
Look for the work, not for the worker. The ledger records what went out and where that output
was to land. Whether to reuse it, retry it, or hand it back belongs to the running harness.

## Write the mission ledger

Create the ledger immediately after claim at the claim's `ledger_path`:
`<main_root>/kaola-workflow/.ledger/issue-<N>.jsonl`, with `main_root` and `issue_number` from
`workflow-state.md`. It lives only in the main checkout — never write it inside a worktree — and it
is gitignored; if the claim reports `ledger_not_gitignored`, tell the user. One JSON object per line,
one line per mission, keys exactly in this order and nothing else:

| key | content |
|---|---|
| `n` | the mission number: 1, 2, 3 … by position, never renumbered |
| `name` | the mission — one line |
| `details` | hints and facts; at dispatch add who took it and **where the output will land**; at close add where the outcome landed |
| `status` | `todo` \| `in-flight` \| `done` \| `failed` \| `blocked` |

```jsonl
{"n":1,"name":"Implement the fix","details":"dispatched: self — output lands on the run branch","status":"in-flight"}
```

Only you write it, rewriting the whole file. Create every line with `status` `todo`; before the work
goes out, set `in-flight` and add the locator to `details`; close with `done` or `failed` and where
the result landed. A `done` or `failed` line never changes again; `blocked` waits on a ruling and may
return to `in-flight`. Inline work records `dispatched: self`.
An item is a mission — a recoverable outcome. A failed command, intermediate finding, repair
attempt, or review round does not by itself create a mission. Keep working within the current
promised outcome while custody and causal boundary remain unchanged. Append a mission only for a
new recoverable outcome that changes custody or for a newly discovered independent causal class. Do
not return `BLOCKED` merely because work remains.

## Run it

Choose one frontier item. The orchestrator holds issue selection and decomposition, design, the
reading of acceptance meaning, the final verdict on a candidate it has read, and finalization.
Custody answers who may decide meaning. Failure frontier, then freeze: focused acceptance, affected
inventory, causal repair, exact-candidate review; any mutation invalidates prior PASS evidence for
changed bytes.
When someone other than the implementing context holds the acceptance tests, the implementation
does not delete, weaken, or reinterpret them to pass; when you wrote the tests yourself, you hold
that meaning. Writing the tests, implementing, and reviewing yourself are all legitimate paths; an
independent review is an optional clean-context check on a frozen candidate whose findings come
back to you for the verdict.
Decide how much to explain by what communication needs, and how much to verify by behavioral impact
and the existing requirements; a short explanation or a small change never lowers acceptance, and
sufficient existing evidence may be cited rather than reproduced.

When all items are done, transition explicitly to:

```text
kaola-workflow-finalize
```

Before continuing or stopping print:

```text
Workflow project: {project}
Issue: {issue or set}
Branch: {branch from workflow-state.md, or TBD if not yet claimed}
Mission ledger: {n done / n in-flight / n todo / n blocked / n failed}
Next: {the next skill, or the frontier item you are opening}
```

## Co-active Folders

Distinct active folders have separate state, branches, and worktrees. Keep their commits separate,
and never touch another session's branch, worktree, folder, or issues. After finalization, stop and
await explicit redirection; never auto-route.

<!-- KW-COMPACT-RECOVERY-END -->

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 ai-agents →

Comments

Loading comments…

Newsletter

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