Agent skill
adr-writer
Skill for creating and editing Architecture Decision Records (ADRs). Use when requests involve "create ADR", "record architecture decision", or "document design decisions". Supports creating new ADRs, updating existing ADRs, and reviewing ADR format.
Install this agent skill to your Project
npx add-skill https://github.com/yaakaito/env/tree/main/dotfiles/.claude/skills/adr-writer
SKILL.md
ADR Writer
A skill for creating Architecture Decision Records (ADRs). Generates ADRs following project-specific format conventions.
ADR Format
File Naming Convention
adr-NNN-short-description-in-english-with-hyphens.md
Example: adr-002-new-feature.md
Storage Location
docs/adr/
Structure
# Title (in English)
## Status
Approved
## Context
Describe the background, challenges, and current issues. Follow the flow: facts → challenges → what you want to solve.
Use lists to enumerate facts and issues. Avoid adding sub-headers; prefer prose and lists within this section.
## Decision
Start with a brief summary of the overall decision (1-2 paragraphs). Then, if there are multiple decisions, create a sub-section for each (e.g., ### Decision 1).
However, avoid creating too many sub-sections unnecessarily. Use tables or Mermaid diagrams as needed.
**Important**: Do NOT include implementation-specific code. Use pseudocode only to illustrate concepts.
## Consequences
### Positive
- Positive outcomes and benefits
### Negative
- Negative outcomes, drawbacks, and trade-offs
### Neutral
- Neutral impacts and side effects
## Notes
### Alternatives Considered
- **Alternative A**: Reason for not adopting
- **Alternative B**: Reason for not adopting
### References
- Related ADRs and external resources
Creation Steps
- Determine next ADR number: Check existing files in
docs/adr/to determine the next number - Use example: Refer to
assets/adr-example.md - Fill in each section:
- Title should be concise and in English
- Context/Decision/Consequences/Notes should be detailed and in Japanese
- Add code blocks, tables, and Mermaid diagrams as needed
- Save file: Save as
docs/adr/adr-NNN-description.md
Examples
- assets/adr-example.md - Structure template with explanations
- Before writing, read the two most recent ADRs in
docs/adr/to understand the current format and writing style
Writing Guidelines
- Status: Always set to "Approved"
- Strict structure adherence: Follow the defined ADR format strictly. Before adding any new headers or sections, carefully consider whether it is truly necessary. Prefer using lists or prose within existing sections
- Context: Clearly explain "why this decision is needed now"
- Decision: Be specific and implementation-ready. Avoid vague expressions
- Code examples: Never include implementation-specific code from the actual codebase. Use pseudocode only to illustrate concepts and help readers understand the design. Pseudocode should be language-agnostic and focus on the "what" rather than the "how"
- Consequences: Honestly describe both benefits and drawbacks. No solution is perfect
- Alternatives Considered: Document alternatives that were considered and explain why they were not adopted
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
spec-file-manager
Manage specification files. Use when creating, reading, updating, or listing spec files. Triggers on requests like "create spec", "update spec", "list specs", or "show spec status".
github-workflow
Write and edit GitHub Actions workflow files. Use when creating new workflows, editing existing .github/workflows/*.yml files, or setting up CI/CD pipelines. Triggers on requests like "create a workflow", "add GitHub Actions", "set up CI", or "edit the workflow file".
github-pr-unresolved-review-fetcher
Fetch unresolved PR review comments from GitHub. Use when working with pull request reviews, addressing review feedback, or checking outstanding review comments on a PR. Triggers on requests like "get PR reviews", "fetch review comments", "show unresolved comments", or "what feedback is pending on this PR".
github-workflow-fixer
Analyze and fix GitHub Actions workflow failures. Use when workflows fail, CI/CD issues occur, or when debugging GitHub Actions runs. Triggers on requests like "fix workflow", "why did the build fail", "check CI status", "debug GitHub Actions", or "workflow failed".
codex-review
Codex CLI を使って現在のコード変更を5つの観点(セキュリティ・パフォーマンス・バグ・テスト・アーキテクチャ)から並列レビューし、指摘に基づいてコードを修正するスキル。ユーザーが「codex でレビュー」「codex review」「コードレビューして」「レビュー実行」「codex にレビューさせて」「変更をチェック」などと言った場合や、コード品質チェック・多角的なレビューを求められた場合に使用する。明示的に codex に言及していなくても、包括的なコードレビューを求められたらこのスキルの使用を検討すること。
research
Research a topic using WebSearch based on the current context. Use when the user needs best practices, external guidance, or wants to investigate approaches. Triggers on "research", "search best practices", "find examples".
Didn't find tool you were looking for?