Proactive workflow for projects using beads issue tracker. ACTIVATE AUTOMATICALLY when session starts in directory with .beads/. Use when: starting work session, selecting tasks, completing tasks,...
Proactive task management for projects using beads issue tracker.
When starting a session in a project directory:
ls -d .beads 2>/dev/null
If .beads/ does not exist — this skill is not applicable.
YOU MUST ALWAYS CHECK AND OFFER TO CREATE CLAUDE.md:
# Check if CLAUDE.md exists and has Beads Workflow section
if [ -f CLAUDE.md ]; then
grep -q "## Beads Workflow" CLAUDE.md && echo "configured" || echo "needs_section"
else
echo "no_claude_md"
fi
If "no_claude_md" or "needs_section":
CLAUDE.md content to add:
# CLAUDE.md
## Beads Workflow
При старте сессии используй скилл `beads-workflow` для:
1. Показать текущую задачу (in_progress) или выбрать из ready
2. Отслеживать прогресс через TodoWrite
3. При завершении — закрыть задачу через bd close
## Project Info
<!-- Add project-specific instructions here -->
bd list --status in_progress --json
bd ready --json
If task in_progress exists:
"Продолжаем работу над [id] [title]" Show task details with
bd show <id>
If no in_progress: Use AskUserQuestion with ready tasks as options (max 4, sorted by priority).
bd update <id> --status in_progress
bd show <id>
Use TodoWrite to break down the task into subtasks.
bd create "Subtask title" -t task -p 1
bd dep add <new-id> <parent-id> --type parent-child
When user says "готово", "done", "сделал", "закрой задачу":
Confirm which task (if ambiguous)
Ask for brief reason via AskUserQuestion:
Close and sync:
bd close <id> --reason "<reason>"
bd sync
Offer next task from ready list
When user says "создай задачу", "новая задача", "create task":
Task description must include:
skill:<name># With skill recommendation
bd create "Implement user auth API" -t task -p 1 -l "skill:backend-rust"
# Without skill (general task)
bd create "Write documentation" -t task -p 2
Priority: 0=critical, 1=high, 2=medium, 3=low
For subtasks, link to parent:
bd dep add <child-id> <parent-id> --type parent-child
When user says "обнови задачи", "refresh", "sync":
bd sync
bd ready --json
Show what changed:
If current in_progress task was modified, warn user.
Before showing ready list for next task selection, ALWAYS sync first:
bd sync
bd ready --json
This ensures task list is current before user picks.
If task is still in_progress when session ends:
bd sync to save state