Migrate existing ADRs to YAML frontmatter format. Scans docs/decisions/ for ADRs without frontmatter, infers status from body text, shows dry-run for approval. Trigger: /adr-migrate
中文简介正在准备中。当前显示原文说明。
Start or resume an ADR session. Without number: show status overview and recommend next actionable ADR. With number: provide phase-specific guidance. Trigger: /adr-session, /adr-session NNN, /adr-session new
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
ADR(Architecture Decision Record)の状態管理とセッションガイダンスを提供する。
引数に応じてモードを分岐:
NNN (number) → Session Mode for ADR-NNNnew → New ADR Creation ModeGlob: docs/decisions/adr-*.md
If no files found AND docs/decisions/ does not exist:
docs/decisions/ と docs/plans/ を作成しますか?"/adr-session new で最初の ADR を作成できます"If directory exists but no ADR files:
/adr-session new で最初の ADR を作成できます"For each adr-*.md file, read the file and extract YAML frontmatter (content between --- delimiters at the start).
Refer to adr-schema.md for valid field definitions.
Error handling:
status value (not in Proposed/Accepted/InProgress/Complete) → warn and skipApply phase logic from adr-schema.md:
Complete → done
Proposed → investigation
Accepted + no plan → planning
Accepted + plan without <!-- validated --> → validation
Accepted + plan with <!-- validated --> → implementation
InProgress → implementation
For ADRs with a plan field, check if docs/plans/{plan} exists and contains <!-- validated -->.
Format:
## ADR Status Overview
| # | Title | Status | Plan | Phase |
|---|-------|--------|------|-------|
| 001 | Auth System | Accepted | plan-auth.md | planning |
| 002 | API Design | Proposed | - | investigation |
| 003 | DB Migration | Complete | plan-db.md | done |
An ADR is actionable when (see adr-schema.md):
Completedeps reference ADRs with status: Complete (or no deps)Circular dependency detection:
Build a directed graph from all deps fields. If a cycle is found:
From the actionable list, recommend the ADR with the earliest phase in priority order: investigation > planning > validation > implementation.
If multiple ADRs are in the same phase, recommend the one with the lowest number.
### 推奨: 次に着手すべき ADR
**ADR-002: API Design** (phase: investigation)
→ `/adr-session 2` で調査セッションを開始できます
Read docs/decisions/adr-NNN-*.md (glob to find the file matching the number).
If not found: "ADR-NNN が見つかりません。/adr-session でステータス概要を確認してください。"
Show:
If ADR has deps, check each referenced ADR's status:
### Investigation Session
このADRはまだ調査段階です。以下のアクションを推奨します:
1. ADR の「コンテキスト」「決定」「影響」セクションを充実させる
2. 必要な調査・PoC を実施
3. 完了したら logic-validator で ADR の論理的整合性を検証:
- Task(subagent_type: "logic-validator") で ADR 内容を検証
4. 検証後、status を `Accepted` に更新
### Planning Session
ADR は承認済みです。実装計画を作成しましょう。
**Plan Mode の使用が必須です。** EnterPlanMode を実行してください。
1. Plan Mode で実装計画を作成
2. テンプレート: この skill の [plan-template.md](references/plan-template.md) を参照
3. 計画ファイルを `docs/plans/plan-{slug}.md` に保存
4. ADR の frontmatter に `plan: plan-{slug}.md` を追加
5. plan-review-automation が自動レビューを実行
6. 人間が `Approval Status: approved` を設定
### Implementation Session
計画は検証済みです。実装を進めましょう。
1. 計画ファイル `docs/plans/{plan}` に従って実装
2. 便利なスキル:
- `/decompose` — タスクを細分化
- `/execute-plan` — 計画に沿って順次実行
- `/scope-guard` — スコープが大きすぎる場合
3. テストが通ることを確認
4. 完了したら ADR の status を `Complete` に更新
### Complete
この ADR は完了済みです。変更や再検討が必要な場合は status を更新してください。
Search for related memos:
Glob: .tmp/session-memos/*.md
Read each file and check if it contains ADR-{NNN} (the target ADR number). If found, list them:
### 関連セッションメモ
- `.tmp/session-memos/abc12345.md` — [問題意識の冒頭]
At the end of the guidance, remind:
セッション終了時には `/session-memo` で作業内容を記録することを推奨します。
new)Scan existing docs/decisions/adr-*.md files, extract numbers, and compute max + 1.
If no files exist, start from 001.
Zero-pad to 3 digits.
Use AskUserQuestion to ask: "新しい ADR のタイトルを入力してください"
Provide no predefined options (user will select "Other" and type the title).
If docs/decisions/ or docs/plans/ don't exist, create them.
Read adr-template.md for the template structure.
Generate the slug from the title (lowercase, spaces to hyphens, remove special chars).
Write the file to docs/decisions/adr-{NNN}-{slug}.md with:
status: Proposed in frontmatterADR-{NNN} を作成しました: `docs/decisions/adr-{NNN}-{slug}.md`
### 次のステップ
1. 「コンテキスト」「決定」「影響」セクションを記入してください
2. 調査が完了したら logic-validator で検証:
Task(subagent_type: "logic-validator") で ADR の論理的整合性を検証
3. 検証後、status を `Accepted` に更新
4. `/adr-session {NNN}` でセッションガイダンスを確認できます
| Skill | When to Use |
|---|---|
| logic-validator (Task subagent) | ADR 作成・更新後の論理検証(investigation phase 完了時) |
/session-memo | セッション終了時の記録 |
/decompose | 実装タスクの細分化(implementation phase) |
/execute-plan | 計画に沿った順次実行(implementation phase) |
/scope-guard | ADR のスコープが大きすぎる場合 |
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Migrate existing ADRs to YAML frontmatter format. Scans docs/decisions/ for ADRs without frontmatter, infers status from body text, shows dry-run for approval. Trigger: /adr-migrate
中文简介正在准备中。当前显示原文说明。
Analyze a project's harness maturity and guide staged adoption of Harness Engineering best practices (quality loops, safety gates, linters, CLAUDE.md optimization).
中文简介正在准备中。当前显示原文说明。
Standardized bug fix workflow using TDD (Red-Green-Refactor). Use when fixing bugs, resolving issues, or when the user invokes /bugfix. Ensures root cause analysis, failing test first, then minimal fix.
中文简介正在准备中。当前显示原文说明。
Create detailed specifications by iteratively clarifying unclear points for Plan mode. Use when: After completing a plan when detailed requirements need clarification before implementation.
中文简介正在准备中。当前显示原文说明。
Policy-enforcing installer that deploys hardened Claude Code Action workflows (`@claude` manual mention + dependency-bot auto-fix) into a personal GitHub repository the user administers. Use when asked to introduce Claude Code Action, apply `@claude` mention support, or set up automated CI auto-fix for dependency bot PRs, using the security-hardened templates shipped with this skill.
中文简介正在准备中。当前显示原文说明。
説明的な文章に緩急を設計するための規範。緩急を装飾ではなく認知モードの切替(観察→逡巡→断定→再観察)と未回収の緊張の管理として扱い、文の拍、段落の密度波形、節の入り方、緩みと駄文の判別、執筆後の機械的な点検手順を定める。読み物として読ませたい章・記事・解説文を生成するとき、または「密度はあるが平坦でおもしろくない」文章を診断・修正するときに使用する。
中文简介正在准备中。当前显示原文说明。