← 返回
安全合规 中文

Kanban Workflow

Kanban Workflow is a TypeScript skill for a stage-based agentic co-worker that integrates PM platforms via CLI-auth adapters only (no direct HTTP auth). It p...
Kanban Workflow 是一项 TypeScript 技能,适用于基于阶段的智能代理协作者,仅通过 CLI 认证适配器(无直接 HTTP 认证)集成项目管理平台。
simonvanlaak
安全合规 clawhub v0.1.12 1 版本 100000 Key: 无需
★ 0
Stars
📥 936
下载
💾 22
安装
1
版本
#latest

概述

Kanban Workflow (core)

Goal

Provide a reusable core for a project-management “co-worker” that:

  • Uses the existing stage:* lifecycle as the canonical state machine.
  • Integrates with PM platforms via CLI-managed auth only (no direct HTTP auth handling).
  • Centralizes workflow/rules/runbooks so GitHub/Planka/Plane/Linear implementations share logic.

Canonical stage model

Treat these labels/states as canonical (and the only stages the agent should consider):

  • stage:backlog
  • stage:blocked
  • stage:in-progress
  • stage:in-review

Notes:

  • Done/closed is platform-specific and intentionally not part of the canonical stage set.

Adapters map platform concepts (labels, lists, statuses, custom fields) into this canonical set.

Architecture (ports & adapters)

Core (platform-agnostic)

  • Canonical entities: WorkItem, Project, Comment, Stage.
  • Canonical events: WorkItemCreated, WorkItemUpdated, StageChanged, CommentAdded, etc.
  • Workflow engine: stage-based worker loop + clarification/comment templates.
  • State: cursors + dedupe + snapshots for diffing.

Adapters (platform-specific)

Adapters are “smart wrappers” that:

  • Call existing CLIs (e.g. gh, planka-cli, plane-cli, linear-cli), relying on their auth/session.
  • Compose multiple CLI calls to implement higher-level operations.
  • Synthesize events by polling + snapshot diffing when webhooks or event types are missing.

Canonical adapter entrypoints live in src/adapters/:

  • github.ts (gh CLI)
  • planka.ts (planka-cli)
  • plane.ts (plane-cli; Api2Cli workspace)
  • linear.ts (linear-cli; Api2Cli workspace)

See also: src/adapters/README.md for CLI links and assumptions.

Entry points

Library entry points:

  • tick() (poll → normalize → diff → events)
  • verb-level workflow helpers: show, next, start, update, ask, complete, create
  • automations: runProgressAutoUpdates()

CLI entry point:

  • src/cli.ts (provides kanban-workflow ; see README for setup flags)

CLI ergonomics: "What next" tips

All kanban-workflow commands print a What next: tip after execution to guide the canonical flow:

setupnextstart → (ask | update) → completenext

After start, the tip additionally reminds you to run the actual execution/implementation work in a subagent, then report back via ask/update.

If config/kanban-workflow.json is missing or invalid, all commands error and instruct you to complete setup.

Setup (flags-only)

Setup writes config/kanban-workflow.json and validates that the selected platform CLI is installed + authenticated.

Required:

  • kanban-workflow setup --adapter ...
  • stage mapping flags: --map-backlog, --map-blocked, --map-in-progress, --map-in-review

Adapter flags (summary):

  • GitHub: --github-repo , optional --github-project-number
  • Plane: --plane-workspace-slug , --plane-project-id , optional --plane-order-field
  • Linear: --linear-team-id or --linear-project-id , optional --linear-view-id
  • Planka: --planka-board-id , --planka-backlog-list-id

Continuous status updates

While a task is in stage:in-progress, Kanban Workflow can post an automatic progress update comment every 5 minutes.

Use runProgressAutoUpdates() and persist its state in your agent/runtime.

Recommended repo layout

  • scripts/: deterministic helper scripts used by adapters or the core.
  • references/: schemas and adapter notes (loaded on demand).
  • assets/: runbooks/SOP templates.

Repo status

  • The current core implementation is in TypeScript under src/.

Next implementation steps

1) Extend the adapter port to include idempotent write operations (comment/transition/label) in addition to fetchSnapshot().

2) Finish and validate the Plane + Linear adapters (consume plane-cli / linear-cli output schemas).

3) Decide on the authoritative mapping rule for stage → platform state (names vs explicit mapping table) and codify it.

4) Add a small CLI surface for Kanban Workflow itself (e.g. kanban-workflow tick --adapter plane --workspace ... --project ...).

版本历史

共 1 个版本

  • v0.1.12 当前
    2026-03-29 14:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,568
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,684
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 265,993