AgentSkillsCN

bits

为开发工作管理 Umbraco.AI 演示站点。支持以 DemoSite-Claude 配置文件启动系统,通过命名管道发现端口,并生成 OpenAPI 客户端。适用于启动、停止或检查演示站点,或在前端开发中生成 OpenAPI 客户端时使用。

SKILL.md
--- frontmatter
name: bits
description: Track and manage work items, tasks, issues, and todos with dependencies using bits. Use when user needs to create tasks, track progress, manage blockers, find ready work, claim/release tasks, close completed work, or organize multi-step projects. Triggers on "bits", "task", "issue", "backlog", "blockers", "dependencies", "what's ready", "track this", "add to my list", "what should I work on".
argument-hint: "[command or task description]"
allowed-tools:
  - Bash(bits:*)
  - Bash(git:*)
  - Read

Bits Task Tracking

Bits Are Immutable

Once created, bits cannot be updated. This means:

  • No checkboxes in descriptions (you can't check them off)
  • No sub-tasks in descriptions (you can't mark them complete)
  • No progress tracking within a single bit

Instead: Create more bits. They're free. Break work into atomic pieces and link them with dependencies using bits dep <id> <blocker-id>.

bash
# Bad: One bit with checkboxes
bits add "Implement auth" -d "- [ ] Add login\n- [ ] Add logout\n- [ ] Add session"

# Good: Multiple linked bits
bits add "Add login endpoint" -d "POST /login with JWT" --json
bits add "Add logout endpoint" -d "POST /logout invalidates token" --json
bits add "Add session middleware" -d "Validate JWT on protected routes" --json
bits dep <logout-id> <login-id>
bits dep <session-id> <login-id>

When to Use

ScenarioTool
Multi-step work with dependenciesbits
Tasks that block other tasksbits
Tracking progress across sessionsbits
Simple one-off checklistTaskCreate
Quick session-scoped todosTaskCreate

Commands

TaskCommand
Find ready workbits ready --json
Create taskbits add "Title" -d "Description" --json
Start workbits claim <id>
Pause workbits release <id>
Complete workbits close <id> "reason"
View detailsbits show <id>
List tasksbits list

Run bits --help for full reference.

Dependencies

bash
bits add "Feature B" --json  # Returns: bits-abc123
bits dep bits-abc123 bits-blocker  # B blocked by blocker

Tasks with unresolved dependencies won't appear in bits ready.

Session Commands

CommandPurpose
bits session claimClaim primary session (reads stdin)
bits session releaseRelease session (reads stdin)
bits session pruneManual cleanup of stale sessions
bits session hookStop hook with session ownership check

Drain Commands

CommandPurpose
bits drain claimActivate drain mode (reads stdin)
bits drain releaseDeactivate drain mode (reads stdin)

Task Description Format

markdown
# Description
What and why.

# Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2

# Session Notes
[Date] COMPLETED: X | IN PROGRESS: Y | NEXT: Z

Do NOT Close If

  • Tests failing
  • Implementation partial
  • Unresolved errors

Instead: Add "BLOCKED: ..." to Session Notes.