Skip to content
Back to skills

Open

ASecurity

Re-open an orca objective — the long-lived unit `/orca:new` starts under `.orca/objectives/` — in this session, and carry it forward from wherever it stands. Picks one (the newest by default, or the slug named), claims it for this session, arrives in its worktree, and checks the config and the reviewer (all in a background `orca:objective-open` agent, so none of that output enters the session), then loads only a bounded digest of it — never the objective's files — and routes by its derived st...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
businessgoshellbashgit

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add miguelbacalhau/orca --skill open --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Open?

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

Security grade badge for Open
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/miguelbacalhau-open/badge)](https://www.skillsdirectory.com/skills/miguelbacalhau-open)

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
---
description: Re-open an orca objective — the long-lived unit `/orca:new` starts under `.orca/objectives/` — in this session, and carry it forward from wherever it stands. Picks one (the newest by default, or the slug named), claims it for this session, arrives in its worktree, and checks the config and the reviewer (all in a background `orca:objective-open` agent, so none of that output enters the session), then loads only a bounded digest of it — never the objective's files — and routes by its derived state: open or blocking decisions go to the discussion, an unaccepted plan back to the planning gate, a confirmed plan to the phase loop, an interrupted phase to a fresh implementer that resumes it, a finished objective whose final verification has not run to that verification, a verified one to what's next (its open follow-ups, new decisions, `/orca:review`, `/orca:pr`, `/orca:archive`). A route outside the phase loop warms the worktree up with secrets and `.orca/setup` in a background `orca:provision` agent; the loop provisions at each phase start. One session drives an objective at a time: another live session's claim is never taken, and one whose session has ended is taken over without asking. Requires the bare-repo-with-worktrees layout; needs no bypass mode.
args: <optional objective slug or directory>
user-invocable: true
disable-model-invocation: true
---

# Orca: open

An objective keeps every piece of its state in files under `<repo-root>/.orca/objectives/<YYYYMMDD-HHMMSS>-<slug>/`, so any session can carry it forward. This skill picks one, claims it for this session, and continues it from where its files say it stands — the discussion, the planning gate, or the phase loop.

**Minimal context.** The objective's bounded digest is this session's whole starting context. Never read `objective.md`, `decisions.md`, `phases.md`, `report.md`, or any phase directory here: read one decision, phase, or follow-up entry only when the conversation turns to it (`sed` on its heading or id — `sed -n '/^## D3 — /,/^## /p' <dir>/decisions.md`, `grep -F -- '- F4 · ' <dir>/report.md` — never the file), and pass paths, not contents, to every agent. The instructions are split the same way: the discussion, planning, and loop live in `${CLAUDE_PLUGIN_ROOT}/skills/new/{provision,discussion,planning,loop}.md`, each read only when the routed state needs it.

You keep what needs the conversation and run the read-only objective verbs (`list`, `digest`) yourself. The open and the reviewer check run in `orca:objective-open`, and provisioning in `orca:provision`. Every spawn runs in the background: wait for its notification, and never fabricate a result. Shell calls go through `bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh` with your own Bash tool — the work loop's verb hook plays no part, so this skill needs no bypass mode.

## Step 1: Pick the objective

```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh objective list "$PWD"
```

One `OBJECTIVE:` line per objective, oldest first: `<dir>`, slug, state, `open:<n>` decisions, `pending:<n>` / `blocked:<n>` phases, `followups:<n>`, `owner:<verdict>`. (`FAIL: NOT_GIT` → nothing to open here; say so and stop.)

- **No lines** → there is no objective to open: point at `/orca:new <idea>`, and stop.
- **An argument** → match it against the slugs and directories (exact slug first, then a fragment). One match → that objective. Several → list them and ask which. None → run `objective list "$PWD" --all` before declaring the miss: an archived or abandoned one is restored with `/orca:archive --undo <slug>` first — say that. Otherwise list the objectives, and never guess.
- **No argument** → offer the newest (the last line), naming its slug and state, and list the others in one line; the user can name another. Never force the choice: an objective this session already owns (`owner:mine`) is offered first instead.

Then, by the chosen line's owner and state:

- `owner:live` or `owner:unknown` → another session holds it. Say which — the `session=` and `host=` lines of `<dir>/owner`, nothing else — and stop. Never take a live claim; the user ends that session first.
- `landed` → its branch is merged into the trunk (whatever its owner is, `mine`, `stale`, or `none`). Say so and offer `/orca:archive`; open it only if the user wants more work on it.
- `owner:stale`, `owner:none`, or `owner:mine` → open it. A `stale` owner's session has ended (its process is gone, or it was this terminal's conversation before a `/clear`): the open takes it over without asking.

## Step 2: Open

Read `${CLAUDE_PLUGIN_ROOT}/skills/new/provision.md`. When the chosen line's owner is not `mine` and this session stands in an `orca-*` worktree — it was driving another objective — leave it first, as that file's Standing in the worktree says (Leaving before another objective). Then run its open: spawn `orca:objective-open` with the `Mode: open` task on `<dir>`. It claims the objective for this session, arrives in the worktree (re-adding it when it is gone), and checks the reviewer. None of that output enters this session. On `status: open_failed`, these reasons stop first:

- `OWNED_ELSEWHERE` → another live session claimed it since the list: say which, and stop.
- `ARCHIVED` → restore it first with `/orca:archive --undo <slug>`, and stop.
- `NO_SESSION_ID` → this session has no id to claim with: relay it, and stop.

Any other is a worktree failure: the claim stands, and that file's rule holds. On `status: ok` with `claim: stolen`, say in one line that the objective's earlier session had ended and this session took its claim over.

On `status: ok`, stand in the worktree as that file says, before the digest and before anything else is spawned; a move that fails or is declined stops the skill there.

Hold the reviewer values from the object, as that file says. Provisioning waits for the digest: whether it is worth spawning depends on the route (Step 4).

## Step 3: The digest

```bash
bash ${CLAUDE_PLUGIN_ROOT}/scripts/orca.sh objective digest <dir>
```

At most 40 lines: the title and one-line outcome, the derived `State:`, the worktree and whether it is dirty, the decision counts with the open ones listed, one line per phase, the active phase's last action, the open follow-ups by count, and the last report entry's heading. Show the user the gist in a few lines — where the objective stands and what comes next — and route.

## Step 4: Route by state

The digest's `State:` line decides where this session goes, and whether the worktree is provisioned now. **A route into the phase loop** — `active`, or `ready` answered yes — spawns no provisioning here: the loop's phase start provisions the worktree before the implementer runs, so one here would be wasted. **Every other route** — the discussion, the planning gate, what's next — spawns `orca:provision` in the background as that file's Provisioning says, a warm-up that overlaps the conversation; follow its provision result when it lands. A `ready` objective whose answer turns to the discussion spawns it then.

- **`discussing`** / **`blocked`** → the discussion: read `${CLAUDE_PLUGIN_ROOT}/skills/new/discussion.md` and follow it, the open decisions first — a `blocked` objective's blocking decision (the phase line's `blocked on D<n>`) before anything else. When the user says go, hand off as below.
- **`planning`** → a proposal awaits its confirmation: read `${CLAUDE_PLUGIN_ROOT}/skills/new/planning.md` and follow it — it starts from where the gate stopped. On its confirmation, the loop.
- **`ready`** → a confirmed plan with pending phases: list them from the digest and ask once — **run them now?** Yes → the loop. Changes → the discussion.
- **`active`** → a phase was interrupted mid-loop: say which, from the digest's phase and `Action:` lines, and run the loop — it resumes that phase with a fresh implementer and the resume handoff, and `rounds next` continues from its files.
- **`verify`** → every phase is done, but no final verification covers the last one: say so, and run the loop. With no phase to take it goes straight to its final verification (Step 8), which waits for this route's warm-up provision, since it runs the checks. A fix phase it adds runs in the same pass.
- **`idle`** → every phase is done and verified (the digest's `Final verification:` line says how). Offer what's next: the open follow-ups by count — the user can pull any into the discussion, where a decision citing it (`**Source:** F4`) takes it — new decisions, then plan and loop. New work beyond the objective's idea gets the discussion's split offer first (its own `/orca:new`). Or `/orca:review`, `/orca:pr`, `/orca:archive`.
- **`landed`** → the user chose in Step 1 to keep working on it: as `idle`.

**The hand-off** from the discussion, when the user says go, is the one in `${CLAUDE_PLUGIN_ROOT}/skills/new/provision.md`: confirm no decision is open, then planning, then the loop. A decision that blocked a phase is settled this way too.

**The loop** is `${CLAUDE_PLUGIN_ROOT}/skills/new/loop.md`, read and followed with `<dir>`, `worktree`, and `reviewer` in hand — it waits for a warm-up provision result still in flight.

A user who stops anywhere needs nothing from you: the files already say where the objective is, and `/orca:open` picks it up again from any session.

## Guidelines

- The digest is the starting context. Reading an objective's files whole — even "just to check" — is exactly what this skill exists to avoid; read the one entry the conversation needs.
- Never take a live session's claim. A claim whose session has ended (`stale`) is free: the open takes it without asking.
- You never edit code and never touch the worktree: the session may stand in it, and still edits nothing there. `objective.md` and `decisions.md`, through the discussion and the loop's rulings, are the only files this skill writes.
- Never read `.orca/config`, `.orca/setup`, or a setup log into the conversation; the provision agent reports them, and `/orca:doctor` owns fixing them.

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 business →

Comments

Loading comments…

Newsletter

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