edwardzhang/sps-cli/sps-pipeline

Claude Code and agent skill by edwardzhang/sps-cli

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

SPS pipeline & project management — set up projects, configure YAML pipelines, manage task cards, drive worker lifecycle, run web console, monitor health. Use when the user asks to "create a pipeline", "set up a project", "add tasks", "start the pipeline", "open console", "check status", or anything in the SPS workflow. (🪸 Coral SPS)

Install

npx vskill@latest install edwardzhang/sps-cli/sps-pipeline

SKILL.md

The same SKILL.md was published earlier as edwardzhang/sps-cli/sps-pipeline.

SPS Pipeline (v0.51.x — Single-Worker Card Pipeline + Web Console + Wiki)

SPS drives an AI worker through task cards. One worker, one card at a time, serial execution. Each card walks one or more YAML-defined stages (e.g. develop → review → Done); failure halts until the user resolves it. v0.50 added a 4-layer service architecture; v0.51 added per-project Wiki knowledge base injection.

Two ways to operate

ModeCommandUse when
Web Console (preferred)sps consoleDaily work — kanban, logs, worker dashboard, project create, conf editor, pipeline editor, chat with agent, all in one UI
CLIsps tick / card / worker / wiki / …Scripting, troubleshooting, headless servers

Console listens on 127.0.0.1:4311 by default; opens browser auto. Single-instance guard via ~/.coral/console.lock.


1. First-time setup

bash
npm install -g @coralai/sps-cli # latest (currently 0.51.x)
sps setup # ⭐ MUST RUN: interactive wizard

sps setup does:

  1. Creates ~/.coral/ directory tree (projects/, memory/user/, memory/agents/).
  2. Copies bundled skills → ~/.coral/skills/.
  3. Interactively writes ~/.coral/env (Git remote token, Matrix credentials, etc.).
  4. Symlinks user skills → ~/.coral/.claude/skills/ and ~/.claude/skills/.
  5. Installs @agentclientprotocol/claude-agent-acp globally if missing.

Re-run safe: sps setup --force keeps existing values as defaults.

No separate console config. Console reads ~/.coral/env + per-project conf.


2. Create a project

Option A — Console (recommended)

Open sps console → /projects/new → fill form → submit. Form provides:

  • Project name + repo path
  • Git toggle (worker commits + pushes? off for non-code projects)
  • Wiki toggle (v0.51+): scaffolds wiki/ + writes WIKI_ENABLED=true to conf
  • Merge branch, max workers, ACK timeout, Matrix room
Option B — Interactive CLI
bash
sps project init <name> # asks the same questions on tty
What gets created
~/.coral/projects/<name>/
├── conf # your active settings (private, mode 600)
├── conf.example # full reference with comments (read-only docs)
├── pipelines/
│ ├── project.yaml # default 1-stage pipeline (develop → Done)
│ └── sample.yaml.example # heavily-commented YAML reference
├── pipeline_order.json # active pipeline pointer
├── runtime/
│ ├── state.json # worker slot + active card state (machine-managed)
│ └── tick.lock # lock file
├── logs/ # per-tick logs
├── pm_meta/ # markdown card backend metadata
└── cards/ # state subdirs created on first use
└── seq.txt

Plus, in the target repo (PROJECT_DIR):

  • .claude/CLAUDE.md — worker rules + (if wiki=on) wiki SOP block
  • .claude/skills/ — symlinked from ~/.coral/skills/
  • .claude/settings.local.json — Claude Code local config
  • wiki/ (if wiki=on) — knowledge base scaffold
  • ATTRIBUTION.md (if wiki=on) — borrows declaration

3. Pipeline YAML

Location: ~/.coral/projects/<name>/pipelines/project.yaml

Single source of truth for stages, profiles, transitions. Edit this file (or in console at /projects/<name> pipeline editor) to customize.

Critical YAML rules
  1. `mode: project` — orchestrate cards through states. (mode: steps is for

one-shot custom pipelines via sps pipeline run <name>.)

  1. `on_complete` of each stage points to the next stage's target state. No

skipping, no looping.

  1. Last stage's `on_complete: "move_card Done"`.
  2. Don't write `agent:` field — it's accepted for back-compat but ignored.

Claude (via ACP) is the only supported worker as of v0.38.0.

  1. Single worker, serial execution — set MAX_CONCURRENT_WORKERS in conf if

you want >1 slot reserved, but cards still run one at a time.

  1. Failure halts pipeline by default (on_fail.halt: true). Worker labels card

NEEDS-FIX; user must resolve before next card runs.

Templates

Simple (1 stage):

yaml
mode: project
git: true
stages:
- name: develop
on_complete: "move_card Done"
on_fail:
action: "label NEEDS-FIX"
halt: true

With review (2 stages):

yaml
mode: project
git: true
stages:
- name: develop
profile: fullstack
on_complete: "move_card Review"
on_fail: { action: "label NEEDS-FIX", halt: true }
- name: review
profile: reviewer
on_complete: "move_card Done"
on_fail: { action: "label REVIEW-FAILED", halt: true }

Non-git (data / docs project):

yaml
mode: project
git: false
stages:
- name: process
profile: tax-worker
on_complete: "move_card Done"
on_fail: { action: "label PROCESS-FAILED", halt: true }
YAML field reference
FieldRequiredNotes
modeyesproject (state machine) or steps (one-shot, run via sps pipeline run)
gitnotrue (default) — worker commits + pushes / false — no git ops
stagesyesArray
stages[].nameyesUnique within file
stages[].profilenoSkill profile (e.g. fullstack / reviewer / tax-worker); falls back to DEFAULT_WORKER_SKILLS in conf
stages[].on_completeyes"move_card <NextState>"
stages[].on_fail.actionno"label NEEDS-FIX" etc.
stages[].on_fail.haltnodefault true
stages[].on_fail.commentnoComment text
stages[].timeoutno30s / 5m / 2h (rare)

trigger and card_state are auto-derived per stage from the position. Don't set manually.

Custom pipelines (mode: steps)

For one-shot scripted runs (e.g. canary deploy, bulk ingest), use mode: steps and invoke via sps pipeline run <pipeline-name> "<prompt>". Out of scope for normal card pipelines; see sample.yaml.example for syntax.


4. Card state machine

Since v0.51.9:
Backlog → Todo → Inprogress → [QA / Review] → Done
↑↓
Planning (manual staging by the user; not auto-dispatched)
↓ fail
NEEDS-FIX (halt)

Default states (configurable in YAML pm.card_states):

  • Planning — v0.51.10+: manual staging / draft. The console "New card" form defaults here; the user drags to Backlog to run.
  • Backlog — `sps card add` (CLI / agent) defaults here; StageEngine claims and runs the card.
  • Todo — StageEngine has prepped (branch / worktree); the next tick dispatches a worker.
  • Inprogress — worker active
  • QA (or Review) — code complete, awaiting human/auto verification
  • Done — finished
  • Canceled — folded into Done view (rare state)

Engines walk this graph each tick. The active stage writes a per-slot marker file at ~/.coral/projects/<p>/runtime/worker-<slot>-current.json (v0.50.21+). Stop hook reads this to detect which card the worker just finished.


5. Card management

Where new cards land — depends on caller (v0.51.10+)
CallerDefault entry stateBehavior
`sps card add` (CLI / Worker / agent)BacklogStageEngine claims it on the next tick and runs
Console "New card" formPlanningStaged; runs only when the user drags it to Backlog on the board
`POST /api/projects/<p>/cards` (direct API call)PlanningDefaults to the manual semantics; pass initialState: 'Backlog' in the body to run immediately

Agent calls `sps card add` → card lands in Backlog → runs automatically. This is the main SPS path. When a Worker inside one card needs to "spawn a sub-task," it calls sps card add — the sub-task is auto-picked up on the next tick.

bash
# Agent / Worker main path — lands in Backlog and runs automatically
sps card add <project> "Title" "Description"
sps card add <project> "T" "D" --skills python,backend --labels feature
# Stage instead (let the user review / drag to dispatch later)
sps card add <project> "Title" "Description" --draft
# → card lands in Planning, awaits manual drag to Backlog
View
bash
sps card dashboard <project> # CLI table
# console: /board?project=<name>
Lifecycle (machine-managed, but you can intervene)
bash
sps card mark-started <p> <seq> # called by Claude Code UserPromptSubmit hook
sps card mark-complete <p> <seq> # called by Claude Code Stop hook
sps reset <p> # reset all non-Done
sps reset <p> --card 5,6,7 # reset specific seq
sps reset <p> --all # full reset incl. Done

Note: sps reset returns the card to Planning (not Backlog) — reset = back to manual control; you must drag to Backlog again to re-run. This semantic applies since v0.51.9.

Card label vocabulary
LabelMeaningWho sets
AI-PIPELINEMarker for "SPS pipeline cards" (since v0.51.9+ no auto behavior is triggered — purely identification)Auto-added by sps card add
STARTED-<stage>ACK signal — Claude received the promptUserPromptSubmit hook
COMPLETED-<stage>Worker finished a stageStop hook
CLAIMEDStageEngine reserved a worker slotEngine
NEEDS-FIXWorker failed; pipeline haltedEngine
BLOCKEDExternal dep; pipeline skipsUser
WAITING-CONFIRMATIONWorker waiting on user inputEngine
STALE-RUNTIMEInprogress > timeoutMonitorEngine
ACK-TIMEOUTClaude never ACK'd within WORKER_ACK_TIMEOUT_SMonitorEngine
skill:<name>Force-load specific skillUser on card
conflict:<domain>Serial-with-others-in-same-domainUser

6. Pipeline lifecycle commands

bash
# Run continuously (one tick spawns next via cron-like loop)
sps tick <project> # foreground tick(s) — Ctrl+C to stop
sps pipeline start <project> # alias for tick
sps pipeline stop <project> # graceful stop
sps stop <project> # CLI alias for stop
sps stop --all # stop all running ticks
# Status
sps status # all projects
sps pipeline status # alias
sps doctor <project> # health check
sps doctor <project> --fix # auto-repair drift
# One-off ticks (each engine separately, useful for cron / debugging)
sps scheduler tick <p> # No-op since v0.51.9 (dormant; interface kept for compatibility)
sps pipeline tick <p> # full StageEngine pass
sps qa tick <p> # QA → Done finalization
sps monitor tick <p> # health probe (ACK timeout, stale runtime)
sps pm scan <p> # rebuild card index from disk
Worker control
bash
sps worker ps <project> # list slots + PIDs
sps worker dashboard <project> # rich UI (also in console)
sps worker kill <project> <seq> # SIGKILL one slot
sps worker launch <project> <seq> # manual spawn (debugging)
Logs
bash
sps logs <project> # follow mode (default)
sps logs <project> --err # stderr only
sps logs <project> --lines 50 --no-follow
# console: /logs?project=<name> (live SSE)

7. Web Console (sps console)

Single binary launches the web UI:

bash
sps console # opens http://127.0.0.1:4311
sps console --port 5000
sps console --no-open
sps console --kill # stop running console
sps console --dev # vite dev server (development)

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/edwardzhang/sps-cli/sps-pipeline/badge)](https://verified-skill.com/skills/edwardzhang/sps-cli/sps-pipeline)

Something wrong with this skill or its page? Tell us.