flow-activate
FreeNo executable scriptsNot checkedActivate a groomed design-driven issue — create its worktree + branch (1:1:1:1), run OpenSpec propose to produce proposal/design/specs/tasks, render the spec…
by pmcfadin★ 22 GitHub starsAbout this skill
flow-activate — spec + design, then stop for approval (Seam 1)
You are the CQLite delivery lead. Take a design-driven issue whose board Status=Ready and produce a
committed, owner-approvable OpenSpec change on an isolated worktree. STOP at approval — do not implement.
Steps
- Load the issue.
gh issue view <N> --json number,title,body,labels. Derive a kebab-caseslug. If the issue is oracle-driven (per its body), say so and route toflow-implementinstead — no OpenSpec. - Check eligibility (claim protocol, D2). An item is claimable only if its board
Status=ReadyAND no claim exists on origin. Select by boardStatusONLY — never by thestatus:readylabel (Path A, #1886: labels are decorative; the board is the sole dispatch authority). If the board is unreachable, STOP and fix auth — do NOT fall back to labels to establish eligibility. Empty Ready → nothing to activate; stop. The lock is the slugless fixed-name refrefs/claims/issue-<N>(#2665) — NOT the assignee (@meis identical for the same GitHub user on two machines) and NOT a slug-named branch (a different slug or an identical-SHA base once double-claimed; #1632):
(For the Project-vs-labels detection snippet shared by all flow-* skills, seegit -C <repo-root> fetch origin -q if bash scripts/flow/claim.sh status <N> | grep -q "CLAIM: STATUS issue=<N>" \ || git -C <repo-root> ls-remote --heads origin "issue-<N>-*" | grep -q .; then echo "Already claimed (claim ref or a legacy issue-<N>-* branch on origin) — take the next item." # exit / pick a different item; another machine may `git fetch` its branch to RESUME instead. fiflow-board.) - Acquire the claim FIRST, then create the worktree + branch (PR plumbing, 1:1:1:1).
claim.shis the lock — run it before any worktree/spec work. It pushes a UNIQUE root-commit to the fixed-name refrefs/claims/issue-<N>, so git's server-side ref arbitration decides the race regardless of slug or base (a different-slug or identical-SHA competitor can no longer double-claim):if ! bash scripts/flow/claim.sh claim <N>; then echo "CLAIM LOST — another session holds refs/claims/issue-<N>. Take the next item." # (Adopting a reaped claim instead? Use: bash scripts/flow/claim.sh adopt <N> --expect <old-sha>) # (Refused with reason=legacy-branch-lock ... claim-ref=free — a FREE claim ref but an # issue-<N>-* branch still on origin? The sanctioned resume is # `claim.sh adopt <N> --expect none --reason resume-legacy-branch-lock:branch-outlived-claim` # (#2945 — a placeholder reason, or one still carrying an unsubstituted <…>, is # rejected with exit 64, so substitute a concrete why). The refusal # deliberately does NOT print it: CONFIRM the lane is abandoned first — # `claim-heartbeat.sh should-reap <machine>` (age > 4h AND no open PR AND pid-dead if # local), board Status, branch/PR author. Never resume blind, never hand-craft a claim # commit) fi # CLAIM HELD → set up the worktree + branch. The branch is naming/PR plumbing, NOT the lock: wt=".claude/worktrees/issue-<N>-<slug>" git -C <repo-root> worktree add "$wt" -b "issue-<N>-<slug>" origin/main git -C "$wt" push -u origin "issue-<N>-<slug>" # PR head — NOT the lock # NO lane-lock acquire HERE, deliberately (#3436 FIX 5): at creation time this session # is acting from the ROOT checkout and is not in the lane yet, so there is no durable # process whose cwd is inside it — the lock would have nothing re-identifiable to # record, and `acquire` now REFUSES with reason=unresolved-identity rather than write a # record that refuses forever. The lane lock is taken by the session that works IN the # lane (flow-implement / flow-address), from inside it. # Board visibility: assignee + Status=In Progress. Run the flow-board detection snippet FIRST — it # does `gh auth switch --user "$project_account"` so the project-capable account is active (the EMU # account flip otherwise makes the board write fail and degrade to a label SILENTLY). gh issue edit <N> --add-assignee @me # have_project=1 → set the board Status. `--field` is NOT a gh flag (verified gh 2.87.3 offers only # --field-id); all four IDs are required or the write fails: gh project item-edit --id <item-id> --project-id <project-id> \ --field-id <status-field-id> --single-select-option-id <In-Progress-option-id> # (have_project=0 cannot occur here — Path A eligibility in step 2 already required a reachable board. # Do NOT write a status:in-progress label — the board→label mirror (#2855) derives it from the # board Status you just set; a hand-written board-derived label is reverted on the next mirror pass.) # scripts/flow/*.sh blobs are mode 100644 (no +x) — ALWAYS invoke them via `bash`: bash scripts/flow/claim-heartbeat.sh beat <N> # FIRS
Install flow-activate in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the flow-activate skill do?
Activate a groomed design-driven issue — create its worktree + branch (1:1:1:1), run OpenSpec propose to produce proposal/design/specs/tasks, render the spec + recommended design INLINE, then STOP for the owner's approval. This is Seam 1; it never implements. Second stage of the CQLite delivery pipeline. Use when the owner says "activate
How do I install the flow-activate skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the flow-activate skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
by Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
by Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
by Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
by Anthropic