Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

adr-architectureADR 架构

Agent Skill

adr-architecture 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,591

周安装

65

GitHub Stars

85

下载量

510
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/lyndonkl/claude --skill adr-architecture

简介

用于创建和维护架构决策记录(ADR),记录关键技术选型的上下文与影响。

  • 提供标准模板与常见模式参考,支持快速生成符合团队规范的 ADR 文档。
  • 可结合 PostgreSQL、微服务等典型场景,输出包含决策依据与后果的完整记录。
  • 安装命令:npx skills add https://github.com/lyndonkl/claude --skill adr-architecture。
  • 使用前请确认本地是否已配置 ADR 目录与命名规范,避免文件路径冲突。

SKILL.md

Architecture Decision Records (ADR)

Table of Contents

- 1. Understand the Decision - 2. Choose ADR Template - 3. Document the Decision - 4. Validate Quality - 5. Deliver and File

Each ADR captures: Context (what situation necessitates this decision), Decision (what we're choosing), Alternatives (other options considered), Consequences (trade-offs and implications), and Status (proposed, accepted, deprecated, superseded).

Quick Example:

# ADR-042: Use PostgreSQL for Primary Database

**Status:** Accepted
**Date:** 2024-01-15
**Deciders:** Backend team, CTO

## Context
Need to select primary database for new microservices platform.
Requirements: ACID transactions, complex queries, 10k+ QPS at launch.

## Decision
Use PostgreSQL 15+ as primary relational database.

## Alternatives Considered
- MySQL: Weaker JSON support, less robust constraint handling
- MongoDB: No ACID across documents, eventual consistency issues
- CockroachDB: Excellent but adds operational complexity we can't support yet

## Consequences
✓ Strong consistency and data integrity
✓ Excellent JSON support for semi-structured data
✓ Team has deep PostgreSQL experience
✗ Vertical scaling limits (will need read replicas at 50k+ QPS)
✗ More complex to shard than DynamoDB if we need it

Workflow

Copy this checklist and track your progress:

ADR Progress:
- [ ] Step 1: Understand the decision
- [ ] Step 2: Choose ADR template
- [ ] Step 3: Document the decision
- [ ] Step 4: Validate quality
- [ ] Step 5: Deliver and file

Step 1: Understand the decision

Gather decision context: what decision needs to be made, why now, who decides, constraints (budget, timeline, skills, compliance), requirements (functional, non-functional, business), and scope (one service vs organization-wide). This ensures the ADR addresses the right problem.

Step 2: Choose ADR template

For technology selection (frameworks, libraries, databases) → Use resources/template.md. For complex architectural decisions with multiple interdependent choices → Study resources/methodology.md. To see examples → Review resources/examples/ (database-selection.md, microservices-migration.md, api-versioning.md).

Step 3: Document the decision

Create adr-{number}-{short-title}.md with: clear title, metadata (status, date, deciders), context (situation and requirements), decision (specific and actionable), alternatives considered (with pros/cons), consequences (trade-offs, risks, benefits), implementation notes if relevant, and links to related ADRs. See Common Patterns for decision-type specific guidance.

Step 4: Validate quality

Self-check using resources/evaluators/rubric_adr_architecture.json. Verify: context explains WHY, decision is specific and actionable, 2-3+ alternatives documented with trade-offs, consequences include benefits AND drawbacks, technical details accurate, understandable to unfamiliar readers, honest about downsides. Minimum standard: Score ≥ 3.5 (aim for 4.5+ if controversial/high-impact).

Step 5: Deliver and file

Present the completed ADR file, highlight key trade-offs identified, suggest ADR numbering if not provided, recommend review process for high-stakes decisions, and note any follow-up decisions needed. Filing convention: Store ADRs in docs/adr/ or architecture/decisions/ directory with sequential numbering.

Common Patterns

For technology selection:

  • Focus on technical capabilities vs requirements
  • Include performance benchmarks if available
  • Document team expertise level
  • Consider operational complexity

For architectural changes:

  • Include migration strategy in consequences
  • Document backward compatibility impact
  • Consider team velocity impact during transition
  • Note monitoring and rollback plans

For standards and conventions:

  • Include examples of the standard in practice
  • Document exceptions or escape hatches
  • Consider enforcement mechanisms
  • Note educational/onboarding implications

For deprecations:

  • Set status to "Deprecated" or "Superseded"
  • Link to superseding ADR
  • Document sunset timeline
  • Include migration guide

Guardrails

Do:

  • Be honest about trade-offs (every choice has downsides)
  • Write for future readers who lack current context
  • Include specific technical details (versions, configurations)
  • Acknowledge uncertainty and risks
  • Keep ADRs immutable (status changes, but content doesn't)
  • Write one ADR per decision (focused scope)

Don't:

  • Make decisions sound better than they are
  • Omit alternatives that were seriously considered
  • Use jargon without explanation
  • Write vague consequences ("might improve performance")
  • Revisit/edit old ADRs (write new superseding ADR instead)
  • Combine multiple independent decisions in one ADR

Quick Reference

  • Standard template: resources/template.md
  • Complex decisions: resources/methodology.md
  • Examples: resources/examples/database-selection.md, resources/examples/microservices-migration.md, resources/examples/api-versioning.md
  • Quality rubric: resources/evaluators/rubric_adr_architecture.json

ADR Naming Convention: adr-{number}-{short-kebab-case-title}.md

  • Example: adr-042-use-postgresql-for-primary-database.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

31.29%
按下载量换算160

github-copilot

21.45%
按下载量换算109

Gemini CLI

19.57%
按下载量换算100

Antigravity

12.02%
按下载量换算61

windsurf

8.52%
按下载量换算43

Codex

3.5%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills