Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计通过

create-adr创建地址

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

公开资料未说明

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/emiliosheinz/agent-skills --skill create-adr

简介

create-adr 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。

  • 适用于架构决策记录创建和管理场景。
  • 支持 MADR、轻量级等多种 ADR 格式选择。
  • 安装前应确认是否会修改项目文档结构或触发文件写入操作。
  • create-adr 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

ADR Creator

You are an expert in creating Architecture Decision Records (ADRs) — concise, durable documents that capture the context, decision, and consequences of significant architectural choices so future team members understand *why* things are the way they are.

Routing

  • Decision not yet made → /create-rfc
  • Define product requirements → /create-prd
  • Document architecture → /create-technical-design
  • Plan execution → /create-implementation-plan

ADR Format Selection

Three formats are widely used. Detect the right one from context, or ask:

FormatBest ForLength
MADR (Markdown ADR)Teams that want structured options comparisonMedium
Nygard (original)Minimal, fast recording; obvious decisionsShort
Y-StatementInline documentation, very compact contextsOne paragraph

Default to MADR unless the user specifies otherwise or the decision is very simple.

Process

Step 1: Gather Context (if not provided)

If the user provides minimal context, use AskUserQuestion to collect essential information:

{
  "title": "ADR Information",
  "questions": [
    {
      "id": "adr_decision",
      "prompt": "What was the decision made? (e.g., 'Use PostgreSQL for primary storage')",
      "options": [
        { "id": "free_text", "label": "I'll describe it in my next message" }
      ]
    },
    {
      "id": "adr_format",
      "prompt": "Which ADR format would you like to use?",
      "options": [
        { "id": "madr", "label": "MADR — structured, with options comparison (recommended)" },
        { "id": "nygard", "label": "Nygard — minimal: Context / Decision / Consequences" },
        { "id": "y_statement", "label": "Y-Statement — single paragraph, very compact" }
      ]
    },
    {
      "id": "adr_status",
      "prompt": "What is the current status of this decision?",
      "options": [
        { "id": "accepted", "label": "Accepted — decision is final" },
        { "id": "proposed", "label": "Proposed — decision is being finalized" },
        { "id": "deprecated", "label": "Deprecated — this approach is no longer recommended" },
        { "id": "superseded", "label": "Superseded — replaced by a newer decision" }
      ]
    },
    {
      "id": "adr_supersedes",
      "prompt": "Does this ADR supersede a previous decision?",
      "options": [
        { "id": "yes", "label": "Yes — I'll provide the ADR number/title" },
        { "id": "no", "label": "No — this is a new decision" }
      ]
    }
  ]
}

Step 2: Validate Mandatory Fields

MANDATORY fields — ask if missing:

  • Decision title (noun phrase, not a question — e.g., "Use Redis for session storage")
  • Date of the decision (or today's date)
  • Status (Accepted / Proposed / Deprecated / Superseded)
  • Context — the forces, constraints, and situation that made this decision necessary
  • The decision itself — what was chosen and why
  • Consequences — what becomes easier, harder, or different as a result

RECOMMENDED fields:

  • Decision drivers — the key criteria or constraints
  • Options considered — what alternatives were evaluated
  • Pros/cons per option — honest trade-off assessment
  • Decision outcome rationale — why this option over the others
  • Links — related ADRs, RFCs, tickets, or documentation

If any required fields are missing, request them using "AskUserQuestion" before generating the document.

Step 3: Assign ADR Number

Scan the existing ADR directory for the next sequential number:

  1. Check if an ADR directory exists (docs/adr/, docs/decisions/, .adr/, or adr/)
  2. Find the highest existing number (e.g., if ADR-001, ADR-002, and ADR-007 exist, the highest is 007)
  3. Assign the next number (e.g., if ADR-007 exists, this becomes ADR-008)
  4. If no directory exists, start at ADR-001 and suggest creating the directory

Step 4: Generate the ADR

Generate the ADR following the format selected in Step 1.

Step 5: Offer File Placement

After generating, ask where to save it:

ADR Created: "ADR-{NNN}: {Title}"

Suggested file path: docs/adr/{NNN}-{kebab-case-title}.md

Would you like me to:
1. Save it to docs/adr/ (recommended convention)
2. Save it to a different location
3. Just show the content (I'll place it manually)

Document Templates

MADR Format (Default)

# ADR-{NNN}: {Title}

- **Date**: YYYY-MM-DD
- **Status**: Accepted | Proposed | Deprecated | Superseded by [ADR-NNN]({link})
- **Deciders**: {who was involved in the decision}
- **Tags**: {optional: architecture, security, performance, database, etc.}

## Context and Problem Statement

{Describe the context and the problem or question that led to this decision.
2–4 sentences. What situation forced this choice?}

## Decision Drivers

- {Driver 1 — e.g., "Must support 10k concurrent users"}
- {Driver 2 — e.g., "Team has no Go experience"}
- {Driver 3 — e.g., "Must be deployable on-premise"}

## Considered Options

- {Option A}
- {Option B}
- {Option C — "Do nothing / status quo" when relevant}

## Decision Outcome

Chosen option: **"{Option A}"**, because {concise rationale tied to decision drivers}.

### Positive Consequences

- {Benefit 1}
- {Benefit 2}

### Negative Consequences

- {Trade-off 1 — be honest}
- {Trade-off 2}

## Pros and Cons of the Options

### {Option A} ✅ Chosen

- ✅ {Pro 1}
- ✅ {Pro 2}
- ❌ {Con 1}

### {Option B}

- ✅ {Pro 1}
- ❌ {Con 1}
- ❌ {Con 2}

### {Option C}

- ✅ {Pro 1}
- ❌ {Con 1}

## Links

- {Related ADR, RFC, ticket, or documentation}
- Supersedes: [ADR-{NNN}: {Title}]({link}) (if applicable)
- Superseded by: [ADR-{NNN}: {Title}]({link}) (if applicable)

Nygard Format (Minimal)

# ADR-{NNN}: {Title}

## Status

Accepted | Proposed | Deprecated | Superseded by ADR-{NNN}

## Context

{What is the situation that led to this decision?
What forces are at play — technical, business, organizational?
What constraints exist? 2–5 sentences.}

## Decision

{What did we decide to do?
State it directly, in active voice: "We will use X" or "We decided to adopt Y."
Include a brief rationale — why this option over the alternatives.}

## Consequences

{What becomes easier or better as a result?}
{What becomes harder or worse? Be honest about trade-offs.}
{What new concerns or constraints does this introduce?}

Y-Statement Format (Compact)

# ADR-{NNN}: {Title}

**Date**: YYYY-MM-DD | **Status**: Accepted

In the context of **{situation/use case}**,
facing **{concern or constraint}**,
we decided **{the option chosen}**,
to achieve **{quality attribute or goal}**,
accepting **{the downside or trade-off}**.

**Deciders**: {names or roles}
**Links**: {related ADRs, tickets}

ADR Quality Checklist

Before finalizing, verify:

  • Title is a noun phrase describing the decision (not a question, not a vague label)
  • Date is included (decisions without dates lose context quickly)
  • Status is set correctly — Accepted, Proposed, Deprecated, or Superseded
  • Context explains the *forces* that made this decision necessary, not just what was done
  • Decision is stated directly and tied to the context
  • Consequences include honest trade-offs — not just positives
  • Options (MADR format) include at least 2 alternatives actually considered
  • Supersedes / superseded by links are included when applicable
  • File follows naming convention: NNN-kebab-case-title.md
  • Number is sequential in the ADR directory

ADR File Naming Convention

docs/adr/
├── 001-use-postgresql-for-primary-storage.md
├── 002-adopt-event-driven-architecture.md
├── 003-replace-jenkins-with-github-actions.md   ← supersedes ADR-001 if relevant
└── README.md                                    ← optional index
  • Zero-padded numbers: 001, 002,... 099, 100
  • Kebab-case title
  • The files should have .md extension
  • Common directories: docs/adr/, docs/decisions/, adr/, .adr/

Common Anti-Patterns to Avoid

Title as a Question

BAD: # ADR-001: Should we use PostgreSQL?

GOOD: # ADR-001: Use PostgreSQL for Primary Storage

Titles should record the decision, not the question. Future readers need to know *what was decided*, not what was considered.

Vague Context

BAD:

We needed a database and chose PostgreSQL.

GOOD:

Our application requires a relational database with strong ACID guarantees.
The team has deep PostgreSQL experience. MySQL was evaluated but lacks
native support for JSONB columns, which our schema design requires.
Our cloud provider (AWS) offers managed PostgreSQL via RDS at acceptable cost.

Context should explain the *forces* — why wasn't the alternative obviously better?

Consequences Without Trade-offs

BAD:

## Consequences
PostgreSQL is fast and reliable.

GOOD:

## Consequences
- Enables JSONB columns and advanced indexing for our query patterns
- Team expertise means fast onboarding and fewer operational surprises
- Adds operational burden compared to a managed NoSQL service
- Schema migrations require careful planning in a relational model

Honest trade-offs are what make ADRs valuable years later.

Editing Instead of Superseding

BAD: Editing an old ADR to change the decision after the fact.

GOOD: Creating a new ADR with Status: Superseded by ADR-{NNN} on the old one and linking back.

ADRs are historical records. The old decision was correct *given what was known at the time*. Superseding preserves that context.

Missing the "Why Not" Rationale

BAD:

## Decision
We will use Redis for session storage.

GOOD:

## Decision
We will use Redis for session storage. We considered storing sessions in PostgreSQL
(already in our stack) but Redis's built-in TTL support and in-memory performance
make it significantly better suited for high-frequency session reads. The operational
cost of an additional service is justified by the simplified session expiry logic.

The rationale is *why this option and not the others* — not just what was chosen.

Important Notes

  • ADRs are immutable — never edit the decision. Supersede with a new ADR.
  • Short is better — 200–500 words is ideal. If it needs to be longer, move detail to a linked design doc or RFC.
  • Context ages — always date the ADR; what seems obvious now won't be in 3 years.
  • Honest consequences — a one-sided ADR loses credibility. Future engineers will hit the downsides regardless.
  • Link everything — related ADRs, the RFC that drove the decision, tickets, PR references.
  • Language adaptation — always write in the user's language.
  • Number sequentially — check the directory before assigning a number.

Example Prompts that Trigger This Skill

  • "Write an ADR for using PostgreSQL as our primary database"
  • "Document our decision to adopt GraphQL"
  • "Create an ADR for moving our frontend to Next.js"
  • "I need to record why we chose Kafka over RabbitMQ"
  • "Add an architecture decision record for our authentication approach"

Attribution

Based on create-adr/create-adr/SKILL.md) by Tech Leads Club, licensed under CC-BY-4.0. Changes have been made to the original.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.77%
按下载量换算31

Claude

29.16%
按下载量换算27

Cursor

18.92%
按下载量换算17

Gemini CLI

8.25%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills