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
In this repository47 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-agent-skills-assistantSkill
- ansibleSkill
- cavemanSkill
- claude-cliSkill
- code-doctorSkill
- code-summarizerSkill
- codex-cliSkill
- concourse-ciSkill
- dev-brainstormingSkill
- docker-cliSkill
- file-organizerSkill
- frontend-web-developerSkill
- github-actions-cicdSkill
- github-cliSkill
- gitlab-ci-cdSkill
- grill-meSkill
- gtd-assistantSkill
- herdr-cliSkill
- hf-cliSkill
- karpathy-guidelinesSkill
- list-large-filesSkill
- list-most-intensive-processesSkill
- llama-cppSkill
- llm-wikiSkill
- mermaidSkill
- morning-ritualSkill
- obsidian-masterSkill
- obsidian-open-loops-collectorSkill
- opencode-agent-creatorSkill
- opencode-cliSkill
- pi-cliSkill
- pi-subagents-masterSkill
- plnk-cliSkill
- ponytailSkill
- product-prd-brainstormingSkill
- python-api-developerSkill
- ralph-prd-converterSkill
- ralph-prd-generatorSkill
- rest-testsuite-skillSkill
- skill-loaderSkill
- design-taste-frontendSkill
- terraformSkill
- tmux-coderSkill
- tmux-specialistSkill
- trello-cliSkill
- uvSkill
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
- Distinctive: line 64
Write the ticket as markdown following the format contract: references/card-format.md
- Very specific: line 122
when planning workloads, specifications and tickets with the user load and use the grill-me skill
- Distinctive: line 150
keep the core rule: deterministic work in the script, fuzzy work in agents
≈ “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.
Files
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 cardsBoard: 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)
- Prerequisites —
plnkon PATH and authenticated,herdrserver running,git,jq,flock. (plnk auth login --server <url> ...— see the plnk-cli skill for install/auth details.) - Board —
scripts/setup-board.shcreates the project, board, the 9 lists and theDispatchfield group (idempotent), and writes~/.config/planka-development-flow/config.envwith all IDs filled in. - Config — in that file, set
MODEL(or per-roleMODEL_IMPL/MODEL_REVIEW) and add at least onePROJ_<name>_repoblock for a repo you want to dispatch to (template:config/config.env.example). - 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.mdCron (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>&1Creating tickets
- Write the ticket as markdown following the format contract: references/card-format.md
new-card.sh --title "..." --project <name> --desc file.md [--list inbox|ready]— creates the card, adopts theDispatchfield group, sets theprojectfield.- 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| Key | Meaning |
MAX_PARALLEL | tickets in flight per dispatch run (default 2) |
MAX_ATTEMPTS | bounces allowed before Rejected (default 3) |
CARD_TIMEOUT | seconds to wait for one agent (default 3600) |
MODEL | herdr/pi model default for implementer + reviewer |
MODEL_IMPL / MODEL_REVIEW | per-role model overrides (fall back to MODEL) |
THINKING_IMPL / THINKING_REVIEW | pi thinking level per role (off…max), appended as a :level suffix |
HERDR_RUN | path to run-pi-herdr.sh |
WT_ROOT | worktree root (<root>/<project>/<cardId>) |
*_hard | file globs — touching any → bounce (gate G3 hard) |
*_soft | file globs — touching any → flag comment, continues (gate G3 soft) |
How dispatch works
Phases (details in references/gates.md):
- implement — pick up to
MAX_PARALLELeligible Ready cards (project known, attempts < max), claim each (Ready → Claimed → In Progress), create the git worktree frombase_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 Reviewcards, with the reviewer agent. APPROVE →Human Review; CHANGES REQUESTED →Ready(re-implementation reads the review comment). - cleanup — remove worktrees +
ai/<cardId>branches ofDonecards.
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-meskill
Prerequisites
plnkCLI on PATH with valid token (plnk auth whoami)herdrserver 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 statusshows cards stuck inClaimed/In Progress→ a previous run was killed mid-flight; the nextrunwill not pick them up (they are not in Ready). Inspect withherdr 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 cardsbut there are cards in Ready → check theprojectfield value matches a config key, andattempts<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
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
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.

