agentleFS
KubementatKubementat/ai_agent_skills/skills/planka-development-flow/SKILL.md

planka-development-flow

Skill2 starsChanged 9 months agoMITView on GitHub

Orchestrate the Planka-based AI development workflow — create tickets, dispatch them to agentic implementer/reviewer sessions, and track them through the board (Inbox → Ready → Claimed → In Progress → Ready for Review → In AI Review → Human Review → Done/Rejected). Use when the user says "dispatch the board", "run the planka flow", "create a ticket", "planka status", works on Planka tickets, or asks about the AI ticket pipeline. The classical dispatcher script does all deterministic work; agents only implement and review.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write the ticket as markdown following the format contract: references/card-format.md

    line 64
  2. Very specific:

    when planning workloads, specifications and tickets with the user load and use the grill-me skill

    line 122
  3. Distinctive:

    keep the core rule: deterministic work in the script, fuzzy work in agents

    line 150

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Your role

You are a product manager of the software development lifecycle using the planka development flow described below to control and manage your team of agents. You help the user to plan and enqueue work items in form of tickets to the planka board. You are an expert planka and Kanban user.

planka-development-flow

A ticket pipeline where Planka is the system of record and agents are workers. A classical bash script (dispatch.sh) does everything deterministic — polling, claiming, worktrees, gates, reporting, cleanup. The only agentic parts are the implementation session and the AI-review session, launched via herdr.

You:       Inbox ──► Ready           (write ticket, you decide what gets worked)
dispatch:  Ready ──► Claimed ──► In Progress ──► (agent implements)
gates:     G1 commits · G2 tests · G3 protected files · G4 state + report
dispatch:  ──► Ready for Review ──► In AI Review ──► (agent reviews)
AI review: APPROVE ──► Human Review      CHANGES ──► Ready (bounce, attempts++)
You:       Human Review ──► Done (merge branch)  |  Rejected
dispatch:  (next run) cleans worktrees + branches of Done cards

Board: Dispatch Board in the AI-Orchestration project on any Planka instance you control. Required structure and ID lookup in references/board-map.md.

Setup (first time only)

  1. Prerequisites — plnk on PATH and authenticated, herdr server running, git, jq, flock. (plnk auth login --server <url> ... — see the plnk-cli skill for install/auth details.)
  2. Board — scripts/setup-board.sh creates the project, board, the 9 lists and the Dispatch field group (idempotent), and writes ~/.config/planka-development-flow/config.env with all IDs filled in.
  3. Config — in that file, set MODEL (or per-role MODEL_IMPL / MODEL_REVIEW) and add at least one PROJ_<name>_repo block for a repo you want to dispatch to (template: config/config.env.example).
  4. Verify — scripts/dispatch.sh status.

Quick start

SKILL=<path to this skill>

$SKILL/scripts/dispatch.sh status      # board overview
$SKILL/scripts/dispatch.sh run         # full pass: implement + review + cleanup
$SKILL/scripts/new-card.sh --title "Add /foo" --project my-app --desc /tmp/ticket.md

Cron (the intended periodic trigger — idempotent, lock-protected, safe to overlap):

*/30 * * * * <path to this skill>/scripts/dispatch.sh run >> ~/.config/planka-development-flow/dispatch.log 2>&1

Creating tickets

  1. Write the ticket as markdown following the format contract: references/card-format.md
  2. new-card.sh --title "..." --project <name> --desc file.md [--list inbox|ready] — creates the card, adopts the Dispatch field group, sets the project field.
  3. Tickets in Ready are the gate: only cards you put there get worked.

project field values must match a PROJ_<name>_repo key in the config (see below). Cards with unknown projects are skipped (not bounced).

Config

~/.config/planka-development-flow/config.env (bash-sourced, no parser). Example: config/config.env.example. Per-project settings:

# key = project field value with non-alphanumerics -> _  (my-app -> my_app)
PROJ_my_app_repo=$HOME/my-app
PROJ_my_app_base_ref=main
PROJ_my_app_test=npm test
PROJ_my_app_hard=.env* *.pem keys/* secrets/*
PROJ_my_app_soft=Dockerfile docker-compose.yml package.json package-lock.json
KeyMeaning
MAX_PARALLELtickets in flight per dispatch run (default 2)
MAX_ATTEMPTSbounces allowed before Rejected (default 3)
CARD_TIMEOUTseconds to wait for one agent (default 3600)
MODELherdr/pi model default for implementer + reviewer
MODEL_IMPL / MODEL_REVIEWper-role model overrides (fall back to MODEL)
THINKING_IMPL / THINKING_REVIEWpi thinking level per role (off…max), appended as a :level suffix
HERDR_RUNpath to run-pi-herdr.sh
WT_ROOTworktree root (<root>/<project>/<cardId>)
*_hardfile globs — touching any → bounce (gate G3 hard)
*_softfile globs — touching any → flag comment, continues (gate G3 soft)

How dispatch works

Phases (details in references/gates.md):

  • implement — pick up to MAX_PARALLEL eligible Ready cards (project known, attempts < max), claim each (Ready → Claimed → In Progress), create the git worktree from base_ref (never HEAD), launch implementer agents in parallel via herdr, poll card state, then run gates G1–G4 and the report check.
  • review — same pattern for Ready for Review cards, with the reviewer agent. APPROVE → Human Review; CHANGES REQUESTED → Ready (re-implementation reads the review comment).
  • cleanup — remove worktrees + ai/<cardId> branches of Done cards.

Key design rule (learned the hard way — see references/lessons.md): agents never post their own report comments. The script checks after each run and auto-captures the agent's final transcript output from herdr if the comment is missing. The card move is the agent's only plnk mutation — and when the agent drops even that (turn ends, card unmoved), the dispatcher rescues: it detects the idle agent and completes the move from the transcript's verdict/status marker or the commit evidence (gates still apply).

Other skills to use

  • when planning workloads, specifications and tickets with the user load and use the grill-me skill

Prerequisites

  • plnk CLI on PATH with valid token (plnk auth whoami)
  • herdr server running (herdr status; start: nohup herdr server > /tmp/herdr-server.log 2>&1 &)
  • run-pi-herdr.sh (herdr-cli skill) at $HERDR_RUN
  • git, jq, flock

Troubleshooting

  • dispatch.sh status shows cards stuck in Claimed/In Progress → a previous run was killed mid-flight; the next run will not pick them up (they are not in Ready). Inspect with herdr agent list, then move the card back to Ready manually (plnk card move <id> --to-list <readyListId>).
  • Review/implementation keeps bouncing → read the card comments; the gate that failed is named in the bounce comment (G1/G2/G3).
  • no eligible cards but there are cards in Ready → check the project field value matches a config key, and attempts < MAX_ATTEMPTS.
  • Log file for cron runs: ~/.config/planka-development-flow/dispatch.log

Extending

This skill is the home of the system. When improving it:

  • prompt changes → scripts/prompts/{implementer,reviewer}.txt
  • new gates/phases → scripts/dispatch.sh (document in references/gates.md)
  • new repo → add PROJ_<name>_* keys to the config
  • keep the core rule: deterministic work in the script, fuzzy work in agents

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.