Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

create-adr-spike创建 ADR 峰值

Agent Skill

create-adr-spike 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

1

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-adr-spike(创建 ADR 峰值)
来源仓库:https://github.com/dawiddutoit/custom-claude
仓库路径:skills/create-adr-spike
安装命令:
npx skills add https://github.com/dawiddutoit/custom-claude --skill create-adr-spike
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill create-adr-spike

简介

create-adr-spike 统一流程创建架构决策记录与研究尖峰,支持多选项评估与技术调研。

  • 适用于框架选型、库比较或重构策略制定等需深度调研的决策场景。
  • 自动触发条件包括明确询问 X 或 Y 选择、技术债务评估与影响分析请求。
  • 输出标准化 ADR 文件,包含背景、选项对比与推荐决定的完整论证过程。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Create ADR Spike

Standardized workflow for creating Architecture Decision Records (ADRs) and conducting research spikes for technical decisions.

When to Use This Skill

Explicit Triggers:

  • "Create an ADR for [decision]"
  • "Architecture decision for [problem]"
  • "Research spike on [topic]"
  • "Evaluate options for [choice]"
  • "Document technical decision about [subject]"
  • "Should we use X or Y?"

Implicit Triggers:

  • Comparing multiple technical alternatives
  • Making architectural choices that affect system design
  • Evaluating libraries, frameworks, or patterns
  • Deciding on refactoring approaches
  • Documenting important technical trade-offs

Debugging/Analysis Triggers:

  • "What decisions led to this architecture?"
  • "Why did we choose [technology/pattern]?"
  • "Search existing ADRs for [topic]"

When NOT to Use:

  • Simple code refactoring (no architectural impact)
  • Bug fixes without design implications
  • Minor configuration changes
  • Routine maintenance tasks

Table of Contents

Core Sections

  • Quick Start - What this skill does and when to use it
  • Workflow - Complete 5-phase ADR creation process

- Phase 1: Research (Discovery) - Gather context and search existing knowledge - Phase 2: Analysis (Evaluation) - Evaluate alternatives systematically - Phase 3: Decision (Recommendation) - Make clear, justified recommendation - Phase 4: Documentation (Formalization) - Create permanent ADR record - Phase 5: Memory Storage (Persistence) - Store decision in memory graph

Project Integration

Supporting Resources

  • reference.md - Technical documentation, ADR template deep-dive, and comprehensive examples
  • Scripts - Utility scripts for ADR number finding and validation
  • Templates - ADR and migration templates for structured decision records

Additional Information

Templates

This skill includes comprehensive ADR and migration templates:

- Status and metadata frontmatter - Context, decision, and consequences sections - Implementation strategy and validation plan - Migration path with before/after examples - Alternatives considered and trade-off analysis - Related decisions and references

- Current state and desired state analysis - Phased migration path with detailed steps - Risk analysis and mitigation strategies - Comprehensive rollback procedures - Testing strategy and monitoring plan - Communication and training plans

Usage: Reference these templates when creating ADRs from spikes or planning complex migrations/refactors.

Quick Start

Invoke this skill when you need to:

  • Document an architectural decision
  • Research technical alternatives
  • Evaluate competing solutions
  • Create a formal decision record

Example invocation:

"Create an ADR for choosing between PostgreSQL and Neo4j for our graph storage"

Workflow

Phase 1: Research (Discovery)

Objective: Gather all relevant context before making a recommendation.

  1. Identify the Decision:

- What problem are we solving? - What constraints exist (performance, cost, expertise)? - What are the success criteria?

  1. Search Existing Knowledge: # Search existing ADRs for related decisions find docs/adr -name "*.md" -type f -exec grep -l "keyword" {} \; # Search project memory for patterns mcp__memory__search_memories(query="related topic")
  2. Research External Resources (if needed):

- Use mcp__context7__resolve-library-id to find library documentation - Use mcp__context7__get-library-docs to get detailed technical info - Use WebSearch for recent discussions, benchmarks, or comparisons - Use WebFetch to extract specific documentation pages

  1. Document Findings:

- Create ADR directory and start drafting ADR.md: docs/adr/not_started/{number}-{kebab-case-title}/ └── ADR.md # Draft: add research findings to "Context" and "Research" sections - DO NOT create separate RESEARCH.md, ANALYSIS.md, or EXECUTIVE_SUMMARY.md files - DO NOT put research in .claude/artifacts/ - All research goes directly into ADR.md sections

Phase 2: Analysis (Evaluation)

Objective: Evaluate alternatives systematically.

  1. Identify Options (minimum 2-3):

- List all viable alternatives - Include "do nothing" if applicable - Consider hybrid approaches

  1. Evaluate Each Option: For each alternative, document:

- Pros: Benefits and strengths - Cons: Drawbacks and weaknesses - Performance: Speed, scalability, resource usage - Maintainability: Code complexity, debugging, testability - Cost: Development time, operational cost, learning curve - Team Fit: Expertise required, training needed - Risks: What could go wrong? - Trade-offs: What are we giving up?

  1. Create Comparison Matrix: Criteria Option A Option B Option C Performance High Medium Low Maintainability Medium High Low Cost Low High Medium Team Fit High Medium Low

Phase 3: Decision (Recommendation)

Objective: Make a clear, justified recommendation.

  1. Recommend Preferred Option:

- State choice clearly - Provide 2-3 sentence rationale - Reference evaluation criteria

  1. Document Justification:

- Why this option over others? - What criteria weighted most heavily? - What assumptions are we making? - What constraints influenced the decision?

  1. Identify Consequences:

- Positive: What improves? - Negative: What gets harder? - Risks: What could fail? - Mitigations: How to reduce risks?

Phase 4: Documentation (Formalization)

Objective: Create permanent ADR record.

  1. Determine ADR Number: # Find highest existing ADR number across all status directories find docs/adr -name "[0-9]*.md" | \ sed 's/.*\/\([0-9]*\)-.*/\1/' | \ sort -n | tail -1
  2. Choose ADR Directory: Default: Use not_started/ for new decisions unless implementation begins immediately.

- docs/adr/not_started/ - Decision made, implementation not started - docs/adr/in_progress/ - Implementation currently underway - docs/adr/implemented/ - Fully implemented and verified

  1. Create ADR from Template:

- Copy template: templates/adr-template.md or templates/migration-template.md - Fill all required sections (no placeholders) - Use next sequential number (e.g., ADR-028) - Use kebab-case for filename: 028-descriptive-title.md

  1. Complete Required Sections:

- Status: Proposed | Accepted | In Progress | Completed - Date: Current date (YYYY-MM-DD) - Context: Problem statement, current state, motivation - Decision: Chosen approach, scope, pattern - Consequences: Positive, negative, migration strategy - Alternatives Considered: At least 2-3 options with pros/cons - References: Links to research, docs, discussions

  1. Add Implementation Tracking (if applicable):

- Files affected - Completion criteria - Testing strategy - Code marker guidelines

Phase 5: Memory Storage (Persistence)

Objective: Store decision in memory graph for future retrieval.

  1. Create Memory Entity: mcp__memory__create_entities(entities=[{"name": f"ADR-{number}: {title}", "type": "ArchitectureDecision", "observations": [f"Status: {status}", f"Decision: {chosen_option}", f"Rationale: {key_reason}", f"Date: {date}", f"Location: docs/adr/{status_dir}/{number}-{kebab-case-title}/"]}])
  2. Create Relations to Existing Entities:

- Link to affected components - Link to related ADRs (supersedes, relates-to) - Link to architectural patterns

  1. Verify Document Structure:

- Maximum 2 files per ADR - see "Document Structure Rule" section - For not_started/: Only ADR.md - For in_progress/: ADR.md + IMPLEMENTATION_PLAN.md - NO separate RESEARCH.md, ANALYSIS.md, EXECUTIVE_SUMMARY.md, or IMPLEMENTATION_NOTES.md - NO documents in .claude/artifacts/

Quality Checklist

Before marking the spike complete, verify:

  • Minimum 2-3 alternatives evaluated
  • Clear recommendation with justification
  • Consequences documented (positive AND negative)
  • ADR created in correct directory with proper numbering
  • All required sections completed (no placeholder text)
  • Memory entity created with proper observations and relations
  • Max 2 files: ADR.md only (not_started) or ADR.md + IMPLEMENTATION_PLAN.md (in_progress)
  • No extra files: No RESEARCH.md, ANALYSIS.md, EXECUTIVE_SUMMARY.md, IMPLEMENTATION_NOTES.md
  • No single-option analysis (red flag: only one option presented)
  • Trade-offs documented (no "silver bullet" claims)
  • Risks identified with mitigation strategies

Document Structure Rule (CRITICAL)

Minimal documents. No redundancy. Human-readable.

Document Count by Status

StatusDocumentsContents
not_started/1 file: ADR.mdResearch + Analysis + Decision
in_progress/2 files: ADR.md + IMPLEMENTATION_PLAN.mdAdd implementation details
implemented/1-2 filesSame as in_progress (plan becomes historical record)

✅ CORRECT Structure

For not_started/ (decision made, not yet implementing):

docs/adr/not_started/005-subprocess-daemon-architecture/
└── ADR.md    # Contains: Executive Summary, Research, Analysis, Decision, Alternatives

For in_progress/ (actively implementing):

docs/adr/in_progress/005-subprocess-daemon-architecture/
├── ADR.md                  # The decision (research + analysis + decision)
└── IMPLEMENTATION_PLAN.md  # How to build it (phases + tasks + notes)

❌ WRONG Structure (Too Many Documents)

docs/adr/in_progress/005-.../
├── ADR.md
├── RESEARCH.md              # ❌ WRONG: Put in ADR.md
├── ANALYSIS.md              # ❌ WRONG: Put in ADR.md
├── EXECUTIVE_SUMMARY.md     # ❌ WRONG: Put in ADR.md
├── IMPLEMENTATION_PLAN.md
└── IMPLEMENTATION_NOTES.md  # ❌ WRONG: Put in IMPLEMENTATION_PLAN.md

The Rule

  • ADR.md = Research + Analysis + Executive Summary + Decision + Alternatives
  • IMPLEMENTATION_PLAN.md = Phases + Tasks + Developer Notes (only when in_progress/)
  • That's it. 1-2 files maximum.

Anti-Patterns to Avoid

  1. Single Option Presented:

- ❌ BAD: "We should use PostgreSQL" (no alternatives) - ✅ GOOD: "PostgreSQL vs Neo4j vs Hybrid approach" (multiple options)

  1. Missing Trade-off Analysis:

- ❌ BAD: "Option A is better in every way" - ✅ GOOD: "Option A is faster but harder to maintain"

  1. No Consequence Documentation:

- ❌ BAD: Decision without discussing impact - ✅ GOOD: Positive/negative consequences documented

  1. Skipping Memory Storage:

- ❌ BAD: ADR created but not in memory graph - ✅ GOOD: ADR entity created with relations

  1. Placeholder Text in ADR:

- ❌ BAD: "[TODO: Add alternatives]" - ✅ GOOD: All sections fully completed

  1. Wrong Directory:

- ❌ BAD: Implementation ADR in not_started/ - ✅ GOOD: ADR directory matches status

  1. No External Research:

- ❌ BAD: Decision based only on opinion - ✅ GOOD: Research references documentation, benchmarks, community discussion

  1. Ignoring Existing ADRs:

- ❌ BAD: Creating conflicting ADR without checking existing - ✅ GOOD: Search existing ADRs, note conflicts/supersessions

  1. Splitting Documents Across Locations:

- ❌ BAD: ADR in docs/adr/, research in .claude/artifacts/ - ✅ GOOD: ALL documents in docs/adr/{status_dir}/{number}-{kebab-case-title}/

Project-Specific Conventions

ADR Directory Structure (This Project)

docs/adr/
├── implemented/    # Completed ADRs (11+ ADRs)
├── in_progress/    # Active implementation (4+ ADRs)
├── not_started/    # Proposed/accepted, not started (10+ ADRs)
├── TEMPLATE-refactor-migration.md
└── README.md

Numbering Convention

  • Use 3-digit format: 001, 028, 127
  • Find highest number across ALL status directories
  • Use next sequential number
  • Do not reuse numbers

Filename Convention

  • Format: {number}-{kebab-case-title}.md
  • Example: 028-indexing-orchestrator-extraction.md
  • Keep titles concise (3-7 words)

Status Values

  • Proposed: Initial draft, seeking approval
  • Accepted: Approved, awaiting implementation
  • In Progress: Currently implementing
  • Completed: Fully implemented and verified
  • Superseded: Replaced by newer ADR

Refactor Markers (for in-progress ADRs)

If ADR is in in_progress/, add file-level markers in affected code:

# =============================================================================
# TODO: "Section Name"
# REFACTOR: [ADR-XXX] Brief description
# WHY: One-line reason
# STARTED: YYYY-MM-DD
# STATUS: IN_PROGRESS
# PERMANENT_RECORD: docs/adr/in_progress/XXX-title.md
# ACTIVE_TRACKING: todo.md "Section Name"
# =============================================================================

See: Refactor Marker Guide

Integration with todo.md

For ADRs requiring implementation:

  • Create section in ./todo.md tracking tasks
  • Reference in ADR's "Active Tracking" section
  • Update ADR's "Progress Log" as work proceeds

Examples

Python Examples

Complete Walkthroughs

See references/reference.md for detailed examples of:

  • Simple architectural decision (library choice)
  • Complex refactor/migration ADR
  • Research spike with external investigation
  • Superseding an existing ADR

Supporting Files

Requirements

Skills & Tools:

  • Skill tool access: Read, Grep, Glob, Bash, Write
  • MCP tools: mcp__memory__, mcp__context7__ (for research)
  • Web tools: WebSearch, WebFetch (for external research)

Project Setup:

  • docs/adr/ directory structure exists with status subdirectories (in projects using this skill)
  • ADR templates available at templates/adr-template.md and templates/migration-template.md
  • Memory system configured for entity storage

Knowledge:

  • Understanding of Clean Architecture principles (for this project)
  • Ability to evaluate technical trade-offs
  • Familiarity with ADR format and structure

Troubleshooting

Issue: Can't find next ADR number

# Solution: Use helper script
./scripts/find_next_adr_number.sh

# Or manually:
find docs/adr -name "[0-9]*.md" | sed 's/.*\/\([0-9]*\)-.*/\1/' | sort -n | tail -1

Issue: Don't know which directory to use

  • not_started/: Decision made, no implementation yet (default)
  • in_progress/: Currently implementing
  • implemented/: Fully complete and verified

Issue: Alternatives seem equivalent

  • Good! Document that in the ADR
  • Explain why you chose one over the other (team fit, learning curve, etc.)
  • Consider hybrid approaches

Issue: Only one viable option

  • ❌ RED FLAG - dig deeper
  • Minimum 2-3 alternatives required
  • Include "do nothing" as an option if applicable
  • Consider different implementation approaches of the same technology

Issue: Research taking too long

  • Set time box (1-2 hours for simple decisions, 4-8 hours for complex)
  • Focus on key decision criteria
  • Note what you didn't research in ADR limitations section
  • Can always update ADR later with more research

Issue: Memory entity creation fails

  • Verify memory system is configured and running
  • Check entity name doesn't already exist
  • Simplify observations if too complex
  • Skip memory storage if blocked, but note in ADR

Success Criteria

An ADR spike is complete when:

  1. ✅ Research conducted (existing ADRs, memory, external sources)
  2. ✅ Alternatives evaluated (2-3+ options)
  3. ✅ Recommendation made with justification
  4. ✅ ADR created with all required sections
  5. ✅ ADR placed in correct directory with proper numbering
  6. ✅ Memory entity created with relations
  7. ✅ Research artifacts saved and referenced
  8. ✅ Quality checklist verified

Output Format

When completing an ADR spike, provide:

  1. Executive Summary:

- Decision made - Key rationale (2-3 sentences) - Alternatives considered

  1. ADR Location:

- Full path to created ADR - ADR number and title

  1. Memory Entity:

- Entity name - Key observations stored

  1. Next Steps (if applicable):

- Implementation tasks - todo.md section created - Refactor markers needed

References


Skill Type: Project Skill (team workflow) Audience: @researcher, @planner, any agent making architectural decisions Last Updated: 2025-10-17

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.67%
按下载量换算24

Claude

29.82%
按下载量换算22

Cursor

19.33%
按下载量换算14

Gemini CLI

8.83%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills