kanban-markdown
npx skills add https://github.com/charlieclark/skill-kanban --skill kanban-markdown
Agent 安装分布
Skill 文档
/kanban-markdown
Manage a markdown-based kanban board stored in KANBAN.md. Supports creating boards, adding/moving/viewing cards, archiving done items, reviewing board health, and launching an interactive drag-and-drop web app.
Board Format
#= board title##= column headers (exactly:To Do,In Progress,Done)###= card titles- Text after
###heading = card description ---= separator between cards- Empty columns have just the
##heading
Commands
Determine which action the user wants based on their message. If unclear, ask.
Init
Create a new board. Use when the user wants to start a kanban board.
- Check if
KANBAN.mdalready exists. If so, ask before overwriting. - Ask the user for a project/board name.
- Read the template from
{{SKILL_DIR}}/templates/KANBAN.md. - Replace
{{PROJECT_NAME}}with the user’s chosen name. - Write the result to
KANBAN.mdin the current working directory. - Confirm creation and explain the format briefly.
Add
Add a new card. Use when the user wants to add a task or card.
- Verify
KANBAN.mdexists. If not, suggest running init first. - Read
KANBAN.md. - Ask the user for:
- Card title (required)
- Description (optional)
- Column (default: “To Do” â one of: To Do, In Progress, Done)
- Add the card to the end of the chosen column:
Insert just before the next### Card title Description text here. ---##heading or end of file. - Write the updated content back to
KANBAN.md. - Confirm what was added and where.
Move
Move a card between columns. Use when the user wants to move, promote, or mark a task.
- Verify
KANBAN.mdexists. - Read and parse all cards from each column.
- Show the board so the user can see what’s available.
- Ask which card to move. Accept exact title or partial match. Clarify if ambiguous.
- Ask for the target column.
- Remove the card from its source column.
- Insert the card at the end of the target column.
- Write the updated content back to
KANBAN.md. - Confirm: “Moved {card title} from {source} to {target}.”
View
Show a board summary. Use when the user wants to see the board or list tasks.
- Verify
KANBAN.mdexists. - Read and parse all columns and cards.
- Display a summary:
**Project Name â Kanban** To Do: 3 | In Progress: 2 | Done: 5 **To Do** - Card title one - Card title two **In Progress** - Active task **Done** - Completed task - If the board is empty, say so and suggest adding cards.
Archive
Archive completed cards. Use when the user wants to clean up done items.
- Verify
KANBAN.mdexists. - Find all cards in the “Done” column.
- If none, inform the user and stop.
- Show which cards will be archived and ask for confirmation.
- Remove all “Done” cards (keep the
## Doneheading). - Append an
## Archivedsection at the bottom (or add to existing):## Archived **Archived on YYYY-MM-DD** ### Completed task Description. --- - Write the updated content back to
KANBAN.md. - Confirm how many cards were archived.
Review
Analyze board health. Use when the user asks about board status or wants suggestions.
- Verify
KANBAN.mdexists. - Read and parse all columns and cards.
- Count cards per column.
- Check for:
- WIP overload: “In Progress” has more than 3 cards â suggest finishing or moving some back.
- Stale board: “In Progress” is empty but “To Do” has items â suggest picking up work.
- Done pile-up: “Done” has more than 5 cards â suggest archiving.
- Empty board: All columns empty â suggest adding cards.
- Provide an overall health summary.
App
Launch the interactive web app. Use when the user wants a visual UI, drag-and-drop, or says “open the kanban app”.
The web app source lives in the GitHub repo: https://github.com/charlieclark/skill-kanban
-
Verify
KANBAN.mdexists in the current working directory. If not, tell the user to run/kanban-markdowninit first. -
Check if the kanban app is already cloned. Look for
node_modulesandweb/inside{{SKILL_DIR}}. If the app code is not present, clone it:git clone https://github.com/charlieclark/skill-kanban.git {{SKILL_DIR}}/app -
Install dependencies if needed:
npm install --prefix {{SKILL_DIR}}/app -
Start the Vite dev server:
KANBAN_FILE="$(pwd)/KANBAN.md" npm run dev --prefix {{SKILL_DIR}}/appRun this in the background so the user can continue using the CLI.
-
Tell the user:
- The board app is running at http://localhost:5555
- They can drag and drop cards between columns and reorder within columns
- They can add new cards, edit existing ones, and delete cards
- All changes are saved directly to
KANBAN.md - To stop the server, they can press
Ctrl+Cor kill the background process
Template Location
{{SKILL_DIR}}/templates/KANBAN.md