add-bead
無料Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.
日本語の概要は準備中です。原文の説明を表示しています。
Run quality gates, commit, push, and open a PR with the canonical template. Use when the user runs /ship or wants to ship the current changes.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Runs all quality checks, commits staged/unstaged changes, pushes the branch, and creates or updates a PR.
/ship # Auto-generate commit message
/ship "add login redirect" # Use provided commit message
/ship --amend # Amend previous commit (use sparingly)
git status # Show what will be committed
git diff --stat # Show changed files summary
If working tree is clean (nothing to commit): report "Nothing to ship. Working tree is clean."
Run all checks. All must pass before committing.
bun run typecheck # TypeScript — 0 errors required
bun run lint # Lint (skip if no lint script in package.json)
bun test # Tests (skip if no test files exist)
Strict evaluator verdict (optional): If AGENT_FORGE_EVAL_VERDICT=strict is set in the environment where hooks run, the task is shippable only once its run's evaluator verdict is on file and the gate has read it. The quality gate enforces this on TaskCompleted, and only for a run it can tie to that Beads issue through a run correlation; without one the strict check fails. Three steps, with one pointer for all of them: (1) the run's correlation: a Forge run has one from forge:phase-gate … --write --bead <TASK-ID>; otherwise create it once with bun run forge:correlate --bead <TASK-ID>. Either prints a pointer. (2) File the verdict with that pointer: bun run forge:verdict --correlation <pointer> … (schema 2, written once at the path that run declares: .claude/protocols/evaluation-verdict.md). (3) Run the gate with the same pointer: bun run quality-gate --correlation <pointer>. Running forge:correlate --bead again mints a new run, whose verdict has not been filed.
If any check fails:
Scan the diff for security issues before committing:
git diff HEAD
Check for:
eval() or unsafe dynamic code executionif (true))If any security issue is found: stop, fix, do not ship. Never commit secrets.
Stage all changes:
git add -A
git status --short # Confirm staged files look right
Commit with the provided or generated message:
# Format: type(scope): description\n\nRefs: <TASK-ID>
git commit -m "<message>"
If --amend flag: git commit --amend --no-edit
If no message was provided, infer from:
<type>(<scope>): <description>\n\nRefs: <TASK-ID>Types: feat, fix, refactor, test, docs, chore, build
Check if the current branch has a stack relationship:
gh pr list --state open --json number,headRefName,baseRefName
git log --oneline master..HEAD
--base <that-branch> in PR creation--base mastergit pull --rebase origin <base-branch> # Rebase on latest before pushing
git push origin <current-branch>
If push fails due to diverged history:
git pull --rebase and retry onceThe PR body MUST follow the canonical template — see .claude/skills/pr-description/SKILL.md.
Do not hand-roll an ad-hoc body; start from the template, fill every required section with real
content, and validate before posting.
gh pr list --head <current-branch> --json number,url
mkdir -p .tmp/work
cp .claude/skills/pr-description/references/pr-template.md .tmp/work/pr-body.md
# Fill every section in .tmp/work/pr-body.md:
# What Changed · Why It's Needed · How It Was Tested · Test Evidence
# (paste real `bun test` / typecheck output) · Risk & Rollback · Linked Issues & AC Trace.
# Pull AC from: bd show <TASK-ID>
bun run .claude/skills/pr-description/scripts/check-pr-body.ts .tmp/work/pr-body.md
# Must print "ok": true before continuing.
gh pr create \
--title "<TASK-ID>: <task title>" \
--base <base-branch> \
--body "$(cat .tmp/work/pr-body.md)"
gh pr edit <number> --body "$(cat .tmp/work/pr-body.md)"
# Close Beads task
bd close <TASK-ID> 2>/dev/null || true
bd comments add <TASK-ID> "worklog: shipped — PR #<n>" 2>/dev/null || true
# Beads is local-only here: nothing to push (see "Tracker is local-only" in CLAUDE.md)
# Deploy dashboard
bun run build-pages 2>/dev/null || true
# Final status
git status
echo "✓ Shipped: <branch> → PR #<n>"
Quality gates: PASS (tsc, lint, tests)
Security scan: PASS
Committed: abc1234 — feat(auth): add refresh token rotation
Pushed: origin/feat/T-42-refresh-tokens
PR: https://github.com/org/repo/pull/17 (created)
Beads: T-42 closed
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.
日本語の概要は準備中です。原文の説明を表示しています。
Register a new sub-repo in the knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Add focused Bun unit tests for mission-critical behavior and edge cases — not blanket coverage.
日本語の概要は準備中です。原文の説明を表示しています。
Answer questions about the codebase from knowledge files. Use when the user runs /ask or asks a domain/knowledge question about the repos.
日本語の概要は準備中です。原文の説明を表示しています。
Meta-skill for creating Agent Forge skills under .claude/skills/ with SKILL.md, optional references/ and scripts/, and Bun scaffolds. Use when the user wants to add or author a skill, scaffold a new skill folder, or align skill docs with harness conventions (JSON script output, Beads for tasks).
日本語の概要は準備中です。原文の説明を表示しています。
Choose Beads issue priority (P0–P4, numeric, or named) from urgency, impact, and risk when creating or triaging work.
日本語の概要は準備中です。原文の説明を表示しています。