xiaohongshu
xiaohongshu
advance
Claim and work on beads safely with proper coordination. Use when starting work, finishing work, or finding the next task. Covers the full bead lifecycle: discover → verify → claim → work → close.
Full skill instructions
Complete bead lifecycle: discover → verify → claim → work → close. Direct execution.
Design rationale: This skill executes directly rather than spawning subagents because each step is a simple command sequence (~200 tokens each), not substantial analytical work. Per Lita research: "Simple agents achieve 97% of complex system performance with 15x less code." Subagent overhead would exceed actual work.
| Signal | Action |
|---|---|
| User says "next task" or "what's next" | Run discovery → claim |
| User says "/advance" | Run full protocol |
| Just finished a task | Close out, then discover |
| Starting work on a specific bead | Verify → claim |
| User says "claim" or "start" | Verify → claim |
| User says "done" or "close" | Run close protocol |
| Tool | Purpose |
|---|---|
fetch_inbox(agent_name) | Check for messages before claiming |
file_reservation_paths(paths, exclusive) | Reserve files before editing |
release_file_reservations(agent_name) | Release files after closing |
send_message(to, subject, body_md, thread_id) | Announce [CLAIMED]/[CLOSED] |
| Command | Purpose |
|---|---|
bd list --status in_progress --json | Check for current work |
bd ready --json | List available tasks |
bd update <id> --status in_progress --assignee NAME | Claim task |
bd close <id> --reason "..." | Close completed bead |
bd dep tree <id> | View dependencies |
bd blocked | View blocked tasks |
bv --robot-triage | Get recommendations |
bv --robot-next | Get single best task |
bv --robot-plan | Get execution order |
cm context "task description" --json | Get patterns before starting |
pytest | Run tests before closing |
ubs --staged | Security scan (MANDATORY) |
Execute these steps directly. No subagents needed.
Check for in-progress work:
bd list --status in_progress --assignee YOUR_NAME --json
If work exists:
Run verification gates:
pytest # or your test command
ubs --staged # MANDATORY - never skip
Commit changes:
git add -A
git commit -m "Implement {feature}
Closes {bead-id}"
Always include .beads/issues.jsonl in commits.
Close sub-beads FIRST, then parent:
bd close {id}.1 --reason "Completed: {summary}"
bd close {id}.2 --reason "Completed: {summary}"
bd close {id} --reason "Completed: {summary}"
Release file reservations:
release_file_reservations(
project_key=PROJECT_PATH,
agent_name=YOUR_NAME
)
Announce closure:
send_message(
project_key=PROJECT_PATH,
sender_name=YOUR_NAME,
to=[ALL_AGENTS],
subject="[CLOSED] {id} - {title}",
body_md="Completed **{id}**.\n\nTests: passing\nSecurity: clean\nReservations: released",
thread_id="{id}"
)
Get recommendations:
bv --robot-triage # Priority recommendations
bv --robot-next # Single best task
bv --robot-plan # Execution order
Get ready tasks:
bd ready --json
Check already claimed:
bd list --status in_progress --json
Discover active agents:
ReadMcpResourceTool(
server="mcp-agent-mail",
uri="resource://agents/{PROJECT_PATH}"
)
Check inbox:
fetch_inbox(
project_key=PROJECT_PATH,
agent_name=YOUR_NAME,
include_bodies=True,
limit=10
)
Address urgent messages before claiming new work.
All must pass before claiming:
ready[CLAIMED] messages)bd dep tree {id})Check task status:
bd show {task_id} --json
Check file availability:
# Test if files are available
file_reservation_paths(
project_key=PROJECT_PATH,
agent_name=YOUR_NAME,
paths=["src/module/**"],
ttl_seconds=60, # Short test
exclusive=False # Just checking
)
Check for claim conflicts:
search_messages(
project_key=PROJECT_PATH,
query="[CLAIMED] {task_id}"
)
If ANY check fails → pick different task or coordinate first.
If uncertain, ask:
send_message(
project_key=PROJECT_PATH,
sender_name=YOUR_NAME,
to=[OTHER_AGENTS],
subject="Claiming task: {task-id}?",
body_md="Planning to pick up **{task-id}**. Files: `src/...`. Conflicts?",
importance="normal"
)
Claim parent AND all sub-beads:
bd update {id} --status in_progress --assignee YOUR_NAME
bd update {id}.1 --status in_progress --assignee YOUR_NAME
bd update {id}.2 --status in_progress --assignee YOUR_NAME
CRITICAL: Always claim parent AND all sub-beads together. If you only claim parent, other agents may grab sub-beads.
Reserve files:
file_reservation_paths(
project_key=PROJECT_PATH,
agent_name=YOUR_NAME,
paths=["src/module/**", "tests/**"],
ttl_seconds=3600, # 1 hour
exclusive=True,
reason="{bead-id}: {description}"
)
Announce (MANDATORY):
send_message(
project_key=PROJECT_PATH,
sender_name=YOUR_NAME,
to=[ALL_AGENTS],
subject="[CLAIMED] {id} - {title}",
body_md="""Starting work on **{id}**: {title}
**Files reserved:**
- src/module/**
- tests/**
**Sub-beads claimed:**
- {id}.1: {sub_title_1}
- {id}.2: {sub_title_2}
""",
importance="normal",
thread_id="{id}"
)
After claiming, get patterns and anti-patterns:
cm context "{task-title}" --json
This returns:
Based on research (45.97% higher pass@1 rate with TDD):
ubs --staged before any commitMax 3 repair iterations per bead.
After 3 attempts:
send_message(
project_key=PROJECT_PATH,
sender_name=YOUR_NAME,
to=["operator"],
subject="[BLOCKED] {id} - Needs investigation",
body_md="Bead {id} failed after 3 repair attempts.\n\nLast error: ...\nSpike created: {spike-id}",
importance="high",
thread_id="{id}"
)
Why the cap? Security degrades with repeated self-correction. Models flip-flop on correct answers. Failing fast is safer than debugging loops.
Present to user:
## Task Claimed
**Bead:** {id} - {title}
**Priority:** {priority}
**Files:** {file_list}
### Context from Memory
{relevant patterns from cm}
### TDD Checklist
- [ ] Write/review tests first
- [ ] Implement to pass tests
- [ ] Run `ubs --staged` before commit
- [ ] Max 3 repair iterations
Ready to begin implementation.
These gates apply to ALL bead work:
| Gate | Requirement | Evidence |
|---|---|---|
| TDD-first | Write tests before implementation | 45.97% higher success rate |
| ubs --staged | Security scan before every commit | ~40% of LLM code has vulnerabilities |
| Max 3 iterations | Stop after 3 repair attempts | Security degrades with more |
| Escalate on failure | Create spike, notify operator | Don't waste time debugging |
| Type | Meaning | Example |
|---|---|---|
blocks | A must complete before B can start | Schema blocks implementation |
discovered-from | Found B while working on A | Bug found during feature work |
# Add dependency (B is blocked by A)
bd dep add {child-id} {blocker-id} --type blocks
# View dependencies
bd dep tree {id}
# View blocked tasks
bd blocked
# Full graph analysis
bv --robot-triage
Schema → Implementation → Tests:
bd dep add impl-id schema-id --type blocks
bd dep add test-id impl-id --type blocks
Discovered Issues:
# While working on feature-123, found bug
bd create "Found: edge case in validation" -t bug
bd dep add {new-bug-id} feature-123 --type discovered-from
When multiple agents are active:
Check for conflicts:
# If reservation fails, another agent has those files
# Options:
# 1. Pick different task
# 2. Coordinate via message
# 3. Wait for TTL expiry
Extend if needed:
renew_file_reservations(
project_key=PROJECT_PATH,
agent_name=YOUR_NAME,
extend_seconds=1800
)
[CLAIMED] messagesUse bead ID as thread ID for all related messages:
Bead: bd-123
Thread ID: bd-123
Subject: [CLAIMED] bd-123 - Title
Reservation: reason="bd-123"
Commit: Closes bd-123
| Conflict | Resolution |
|---|---|
| Both claimed same task | First [CLAIMED] wins, other picks new task |
| Both editing same file | Reservation holder wins, other waits |
| Dependency disagreement | Discuss in thread, escalate if stuck |
# Recommended next
bv --robot-triage
bv --robot-next # Single best task
# Ready tasks
bd ready --json
# Claimed tasks
bd list --status in_progress --json
# Claim (always include sub-beads + assignee)
bd update {id} --status in_progress --assignee YOUR_NAME
# Close (sub-beads first)
bd close {id}.1 --reason "..."
bd close {id} --reason "..."
# Dependencies
bd dep add {child} {blocker} --type blocks
bd dep tree {id}
bd blocked
| Don't | Why | Do Instead |
|---|---|---|
| Claim only parent | Sub-beads appear "ready" to others | Claim all sub-beads |
| Skip assignee | Can't track who's working | Always --assignee |
| Skip [CLAIMED] | Duplicate work | Always announce |
| Skip [CLOSED] | Stale state | Always announce |
| Close parent first | Sub-beads orphaned | Close sub-beads first |
| Hoard tasks | Blocks others | One task at a time |
| Skip file reservations | Merge conflicts | Reserve before editing |
| Implement before tests | 45.97% lower success rate | TDD-first always |
Skip ubs --staged | ~40% of LLM code has vulnerabilities | Mandatory gate |
| Unlimited repair loops | Security degrades, models flip-flop | Max 3 iterations |
| Continue after 3 failures | Wastes time, introduces bugs | Stop, spike, escalate |
| Skip inbox checks | Miss coordination messages | Check before claiming |
/prime — Session startup/calibrate — Phase boundary checks/release — Pre-ship checklistbeads-cli/ — bd command referencebeads-viewer/ — bv command referencexiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience