Logo Issue To Beads

Issue To Beads

Cộng đồng
jbdamask
issue-to-beads

Decomposes GitHub issues into structured Beads epics, tasks, and sub-tasks with objectively verifiable acceptance criteria. Use this skill whenever the user mentions converting GitHub issues to Beads, planning work from a GitHub issue, decomposing issues into tasks, breaking down a GitHub issue, or wants to take an issue and turn it into actionable Beads work items. Also trigger when the user says things like "plan this issue", "break down issue X", "convert this to beads", or references a GitHub issue URL and wants it turned into trackable work. Requires that the user's project uses Beads (bd) for issue tracking.

Tổng quan

Nhà phát hànhjbdamask
Kho mãjohn-claude-skills
Tên kỹ năngissue-to-beads
Sao
29
Bản fork
3
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jbdamask công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Issue To Beads trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jbdamask/john-claude-skills/tree/main/plugins/beads-planner/skills/issue-to-beads
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jbdamask/john-claude-skills.git /tmp/john-claude-skills
mkdir -p .claude/skills
cp -r /tmp/john-claude-skills/plugins/beads-planner/skills/issue-to-beads .claude/skills/issue-to-beads
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Issue To Beads trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Issue To Beads ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Issue To Beads với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Issue-to-Beads

Converts a GitHub issue into a structured Beads work breakdown with epics, tasks, and sub-tasks - each with 3-5 objectively verifiable acceptance criteria. All beads must have relationships and dependencies mapped out.

Prerequisites

  • The user's project must have Beads initialized (bd init already run)
  • The bd CLI must be available on PATH
  • The gh CLI must be authenticated for the target GitHub repo
  • The user should be in (or specify) the project directory containing .beads/
  • The project should have an AGENTS.md file — read it first, as its acceptance criteria conventions and landing-the-plane workflow take precedence over this skill's defaults

Workflow Overview

GitHub Issue → Fetch → Branch & Worktree → Plan-Only → Work Breakdown → File Beads → Review & Refine (up to 5x) → Handoff

The skill operates in seven phases:

  1. Fetch — Pull the GitHub issue content and present a summary
  2. Branch — Create a git branch and check out a worktree for the issue
  3. Plan — Load the plan-only skill to explore the codebase and develop an approved plan
  4. Breakdown — Collaborate with the user to agree on the Beads work breakdown
  5. File — Create detailed Beads epics, tasks, sub-tasks, verifiable criteria, and beads relationships and dependencies
  6. Refine — Review, proofread, polish, and iterate (up to 5 rounds)
  7. Handoff — Show the tree, ready queue, and sync to git

Phase 1: Fetch the GitHub Issue

Accept any of these input formats:

  • Issue number: #42 or 42
  • Full URL: https://github.com/owner/repo/issues/42
  • Owner/repo + number: myorg/myrepo#42

Fetch the issue using gh:

bash
gh issue view <number> --json title,body,labels,assignees,milestone,comments --repo <owner/repo>

If --repo is not specified, gh will use the current directory's git remote. If the fetch fails, ask the user for the correct repo.

Also fetch any linked issues or referenced PRs mentioned in the body to build context.

After fetching, present a brief summary to the user covering: the issue's goal, key requirements, constraints, and any open questions or ambiguities you noticed. This sets the stage for planning.

Phase 2: Branch & Worktree

After fetching the issue, create a dedicated branch and worktree so all Beads work happens in isolation from the main branch.

Branch Naming

Derive the branch name from the issue number and title:

<issue-number>-<slugified-title>

For example, issue #42 titled "Add user authentication" becomes 42-add-user-authentication. Keep the slug short — truncate to ~50 characters if needed.

Create Branch and Worktree

bash
# Create the branch from the current HEAD
git branch <branch-name>

# Check out a worktree for the branch
git worktree add ../<branch-name> <branch-name>

The worktree is created as a sibling directory to the current repo. After creating it, all subsequent work (planning, filing beads, syncing) must happen inside the worktree directory.

If a branch or worktree with that name already exists, ask the user whether to reuse it or pick a different name.

Phase 3: Plan (via plan-only skill)

IMPORTANT: Do NOT use EnterPlanMode or built-in plan mode. Built-in plan mode auto-executes after approval, which is not what we want here.

Load the plan-only skill using the Skill tool:

Skill: beads-planner:plan-only

The plan-only skill will:

  1. Explore the codebase using Explore/Plan agents
  2. Develop an implementation plan
  3. Write it to .claude/plans/<slug>.md
  4. Present it to the user for approval
  5. Stop — no auto-execution

Once the plan-only skill completes and the user has approved the plan, copy the plan file into the project's .plan directory so it persists as a project artifact:

bash
mkdir -p .plan
# Find the plan file that plan-only just wrote (most recent file in .claude/plans/)
ls -t .claude/plans/*.md | head -1
# Copy it with the issue-derived name
cp <plan-file> .plan/<issue-number>-<slug>.md

Use the issue number and slug from Phase 2 for the destination filename (e.g., .plan/42-add-user-authentication.md). The source file is whatever plan-only actually wrote — do not assume its slug matches the branch slug. Find the most recently created .md file in .claude/plans/ and use that.

Then proceed to Phase 4. The plan file serves as a reference for the work breakdown — it is not a trigger for implementation.

If the user rejects the plan, stop the entire workflow.

Phase 4: Work Breakdown

Using the approved plan as a foundation, propose the Beads work breakdown. This is where the plan gets translated into concrete, trackable work items.

Step 4a: Propose the Work Breakdown

Present a draft work breakdown structured as:

Epic: [Title derived from issue]
  ├── Task 1: [Title]
  │   ├── Acceptance Criteria: [verifiable criteria]
  │   └── Blocked by: —
  ├── Task 2: [Title]
  │   ├── Acceptance Criteria: [verifiable criteria]
  │   └── Blocked by: Task 1
  └── Task 3: [Title]
      ├── Acceptance Criteria: [verifiable criteria]
      └── Blocked by: —  (can parallelize with Task 1)

Pay careful attention to:

  • Organization: All tasks must belong to an Epic, which is effectively the top-level container for the GitHub issue.
  • Dependencies: Which tasks block which? Get this right — it determines what shows up in bd ready.
  • Parallelization: Tasks that are independent of each other should have no blocking dependency between them, so multiple workers can pick them up simultaneously.
  • Granularity: File a bead for any work that would take longer than about 2 minutes to finish. If something is trivially quick, it can be a bullet point inside a parent task's description rather than its own bead.
  • Detailed designs: Each task description should give the implementing agent enough context to start working without needing to re-read the entire GitHub issue.

Solicit feedback on the breakdown:

  • Are these the right tasks?
  • Is the dependency ordering correct?
  • Are any tasks missing?
  • Should any tasks be split or merged?

Step 4b: Refine Acceptance Criteria

Every task must have acceptance criteria that are objectively verifiable — meaning a different person (or an AI agent) could determine pass/fail without subjective judgment.

Follow the conventions from the project's AGENTS.md:

Always include as the final criterion:

  • "Typecheck passes"

For tasks with testable logic, also include:

  • "Tests pass"

For tasks that change UI, also include:

  • "Verify in browser"

Good acceptance criteria examples:

  • "Status column added to tasks table with default 'pending'"
  • "Filter dropdown has options: All, Active, Completed"
  • "Clicking delete shows confirmation dialog"
  • "Running npm test produces 0 failures"
  • "The endpoint GET /api/users returns HTTP 200 with a JSON array"
  • "The file src/auth/jwt.ts exists and exports a verifyToken function"

Bad acceptance criteria (too vague — never use these):

  • "Works correctly"
  • "User can do X easily"
  • "Good UX"
  • "Handles edge cases"

If something is inherently subjective (like design quality), decompose it into measurable proxies:

  • "The component renders without console errors"
  • "Lighthouse accessibility score ≥ 90"
  • "All text meets WCAG AA contrast ratio (4.5:1)"

Present the acceptance criteria to the user for approval.

Step 4c: Final Confirmation

Show the complete plan one more time with all tasks, dependencies, priorities, and acceptance criteria. Ask the user to confirm before proceeding to filing.

Phase 5: File Beads

Now grind through creating every issue in Beads. This is the execution-heavy phase — be thorough and methodical.

Beads Hierarchy

Beads uses hierarchical IDs rooted on an epic:

bd-a3f8        Epic
bd-a3f8.1      Task (child of epic)
bd-a3f8.2      Task (child of epic)
bd-a3f8.2.1    Sub-task (child of task)

Use --parent <id> when creating to place items in the hierarchy. Beads auto-assigns the dotted ID.

Plan ElementBeads Typebd Flag
Top-level work itemepic-t epic
Individual work unit (>2 min)task-t task --parent <epic-id>
Smaller piece within a tasktask (sub-task)-t task --parent <task-id>
Bug found during analysisbug-t bug

Priority Mapping

The following table is provided for completeness, only. All tasks created for GitHub issues are considered essential and, therefore, should be one of P0, P1, P2, P3. Do not use P4 as that priority level suggests the task is unnecessary.

PriorityWhen to use
P0Blocking other teams or production
P1Core path — must be done for the issue to be considered complete
P2Important but not on the critical path
P3Nice-to-have, polish, optimization
P4Backlog / future consideration

Creation Order

  1. Create the top-level epic first
  2. Create tasks as children of the epic
  3. Create sub-tasks as children of their respective tasks (if needed)
  4. Add blocks dependencies between tasks
  5. Add any related or discovered-from links

Command Pattern

bash
# 1. Create epic (returns an ID like bd-a3f8)
bd create "Epic Title" -t epic -p 1 \
  -d "Description including GitHub issue reference.

Acceptance Criteria:
- [Objective criterion 1]
- [Objective criterion 2]
- Typecheck passes" \
  --json

# 2. Create tasks under epic (auto-assigns bd-a3f8.1, bd-a3f8.2, etc.)
bd create "Task Title" -t task -p 1 \
  --parent <epic-id> \
  -d "Detailed description of what to implement and how.

Acceptance Criteria:
- [Objective criterion 1]
- [Objective criterion 2]
- Typecheck passes" \
  --json

# 3. Create sub-tasks under a task if needed (auto-assigns bd-a3f8.1.1, etc.)
bd create "Sub-task Title" -t task -p 1 \
  --parent <task-id> \
  -d "Focused piece of work within the parent task.

Acceptance Criteria:
- [Objective criterion 1]
- Typecheck passes" \
  --json

# 4. Add blocking dependencies
bd dep add <blocked-task-id> <blocker-task-id> --type blocks

# 5. Add discovered-from links (if applicable)
bd dep add <new-issue-id> <source-issue-id> --type discovered-from

Description Format

Every Beads issue description must follow this structure:

[Detailed functional description of what needs to be done.
Include enough context that a worker agent can start implementing
without re-reading the full GitHub issue. Mention specific files,
functions, APIs, or patterns to use where relevant.]

Source: GitHub Issue <owner>/<repo>#<number>

Acceptance Criteria:
- [Objective criterion 1]
- [Objective criterion 2]
- Typecheck passes

Dependency Best Practices

  • Tasks that produce artifacts consumed by later tasks get blocks dependencies
  • Tasks within the same phase that are independent get no dependency — this enables parallelization
  • All child tasks get parent-child links to their epic automatically via --parent
  • Use discovered-from for bugs or follow-up work found during analysis

Phase 6: Review & Refine

This phase is critical for quality. After filing all the beads, step back and do a thorough review. The goal is to ensure that worker agents will have as smooth a time as possible when they pick up these tasks.

Review Checklist

For each bead, check:

  • Clarity: Could a worker agent understand what to do without asking questions?
  • Acceptance criteria: Are they truly objectively verifiable? No vague language?
  • Standard criteria included: Does every task end with "Typecheck passes"? Do testable tasks include "Tests pass"? Do UI tasks include "Verify in browser"?
  • Dependencies: Are all blocking relationships correct? Are parallelizable tasks actually unblocked from each other?
  • Descriptions: Do they include enough detail about files, functions, and approach?
  • Granularity: Is every bead scoped to more than ~2 minutes of work? Are any too large and should be split?
  • Titles: Are they clear and specific enough to understand at a glance in bd ready output?
  • Priorities: Do they accurately reflect importance and critical path?

Iteration Loop

After each review pass, make updates using bd update:

bash
# Fix a description or acceptance criteria
bd update <id> -d "Improved description..." --json

# Fix priority
bd update <id> -p <new-priority> --json

# Add a missing dependency
bd dep add <blocked-id> <blocker-id> --type blocks

# Add a missing task discovered during review
bd create "Newly discovered task" -t task --parent <epic-id> -p 2 \
  -d "Description...

Acceptance Criteria:
- [criteria]
- Typecheck passes" --json

Repeat this review-and-refine cycle up to 5 times. Each pass should focus on progressively finer details:

  1. Pass 1: Structural correctness — are the right tasks present with correct dependencies?
  2. Pass 2: Description quality — are descriptions detailed enough for a cold-start worker?
  3. Pass 3: Acceptance criteria rigor — are all criteria truly objective and verifiable?
  4. Pass 4: Parallelization opportunities — can any blocking deps be removed to enable more concurrent work?
  5. Pass 5: Final polish — titles, priorities, consistency, anything remaining

After each pass, briefly note what was changed. Stop early if a pass produces no meaningful improvements — say "I don't think we can do much better than this" and move on to handoff.

Phase 7: Handoff

Once refinement is complete:

  1. Run bd sync to ensure the JSONL index reflects all Phase 6 changes
  2. Run bd dep tree <epic-id> to show the user the full hierarchy
  3. Run bd ready --json to show what's immediately actionable
  4. Summarize what was created: epic count, task count, dependency count, how many tasks are parallelizable
  5. Invoke the git-push-and-tag skill to stage, commit, push, and label the issue:
Skill: beads-planner:git-push-and-tag

Work is NOT complete until the skill finishes successfully. Never stop before pushing — that leaves work stranded locally.

Edge Cases

  • Tiny issues (single task, no decomposition needed): One epic, one task. Still include acceptance criteria with "Typecheck passes" as the final criterion.
  • Enormous issues (20+ tasks): Suggest breaking the GitHub issue into multiple Beads epics, each with its own task hierarchy. Ask the user how they'd like to group them.
  • Vague issues (missing requirements): Use Phase 4 aggressively to fill gaps. Create "Research" or "Spike" tasks for unknowns with acceptance criteria like "A decision document exists at docs/decisions/001-auth-approach.md with Status, Context, Decision, and Consequences sections."
  • Issues with existing Beads work: Run bd list --json to check for duplicates before creating. Alert the user if overlap is found.

Reference

For detailed Beads CLI syntax and advanced patterns, read references/beads-cli-reference.md.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Issue To Beads làm được gì?

Decomposes GitHub issues into structured Beads epics, tasks, and sub-tasks with objectively verifiable acceptance criteria. Use this skill whenever the user mentions converting GitHub issues to Beads, planning work from a GitHub issue, decomposing issues into tasks, breaking down a GitHub issue, or wants to take an issue and turn it into actionable Beads work items. Also trigger when the user says things like "plan this issue", "break down issue X", "convert this to beads", or references a GitHub issue URL and wants it turned into trackable work. Requires that the user's project uses Beads...

Vì sao nên dùng Issue To Beads trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Issue To Beads là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Issue To Beads trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jbdamask/john-claude-skills/tree/main/plugins/beads-planner/skills/issue-to-beads. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Issue To Beads?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Issue To Beads với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Issue To Beads với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Issue To Beads có miễn phí không?

Có. Kỹ năng này được jbdamask phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇