Token导航 LogoToken导航

Agent Skill · 研究检索

architecture-decision-record(架构决策记录)

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

architecture-decision-record 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 8下载 110核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ariegoldkin/ai-agent-hub --skill architecture-decision-record

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

architecture-decision-record 提供架构决策记录的模板与最佳实践,支持重要技术选型与系统设计文档化。适用于数据库、框架、云服务商等重大技术决策及技术演进场景。协助评估权衡、建立团队规范并记录长期影响。安装前请检查仓库活跃度与权限配置,注意是否涉及敏感信息处理或外部依赖调用。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/architecture-decision-record

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/ariegoldkin/ai-agent-hub --skill architecture-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

architecture-decision-record 怎么安装?

在终端执行 npx skills add https://github.com/ariegoldkin/ai-agent-hub --skill architecture-decision-r…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

architecture-decision-record 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

architecture-decision-record 需要什么权限?

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

architecture-decision-record 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

architecture-decision-record 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 110 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

architecture-decision-record 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
architecture-decision-record

架构决策记录 · 本页

3438需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Architecture Decision Record

Overview

Architecture Decision Records (ADRs) are lightweight documents that capture important architectural decisions along with their context and consequences. This skill provides templates, examples, and best practices for creating and maintaining ADRs in your projects.

When to use this skill:

  • Making significant technology choices (databases, frameworks, cloud providers)
  • Designing system architecture or major components
  • Establishing patterns or conventions for the team
  • Evaluating trade-offs between multiple approaches
  • Documenting decisions that will impact future development

Why ADRs Matter

ADRs serve as architectural memory for your team:

  • Context Preservation: Capture why decisions were made, not just what was decided
  • Onboarding: Help new team members understand architectural rationale
  • Prevent Revisiting: Avoid endless debates about settled decisions
  • Track Evolution: See how architecture evolved over time
  • Accountability: Clear ownership and decision timeline

ADR Format (Nygard Template)

Each ADR should follow this structure:

1. Title

Format: ADR-####: [Decision Title] Example: ADR-0001: Adopt Microservices Architecture

2. Status

Current state of the decision:

  • Proposed: Under consideration
  • Accepted: Decision approved and being implemented
  • Superseded: Replaced by a later decision (reference ADR number)
  • Deprecated: No longer recommended but not yet replaced
  • Rejected: Considered but not adopted (document why)

3. Context

What to include:

  • Problem statement or opportunity
  • Business/technical constraints
  • Stakeholder requirements
  • Current state of the system
  • Forces at play (conflicting concerns)

Example:

## Context

Our monolithic application is experiencing scalability issues:
- Database connection pool exhausted during peak traffic
- Deployment of any feature requires full application restart
- Teams blocked waiting for shared resources
- 45-minute build times impacting developer productivity

Business requirements:
- Support 10x traffic growth over next 12 months
- Enable independent team deployments
- Improve time-to-market for new features

Technical constraints:
- Team familiar with Node.js and Python
- AWS infrastructure already in place
- Budget for 2 senior devops engineers

4. Decision

What to include:

  • The choice being made
  • Key principles or patterns to follow
  • What will change as a result
  • Who is responsible for implementation

Be specific and actionable:

  • ✅ "We will adopt microservices architecture using Node.js with Express"
  • ❌ "We will consider using microservices"

Example:

## Decision

We will migrate from our monolithic architecture to microservices using:

**Technology Stack:**
- Node.js 20+ with Express for service implementation
- PostgreSQL for transactional data (per service)
- Redis for caching and session management
- RabbitMQ for async communication between services
- Docker + Kubernetes for deployment orchestration

**Service Boundaries:**
- User Service: Authentication, profiles, preferences
- Order Service: Order processing, payment integration
- Inventory Service: Product catalog, stock management
- Notification Service: Email, SMS, push notifications

**Migration Strategy:**
- Strangler Fig pattern: Gradually extract services from monolith
- Start with Notification Service (lowest risk, clear boundaries)
- Complete migration within 6 months (Q1-Q2 2026)

**Responsibility:**
- Backend Architect: Service design and API contracts
- DevOps Team: Kubernetes setup and deployment pipelines
- Team Leads: Migration execution per service

5. Consequences

What to include:

  • Positive outcomes (benefits)
  • Negative outcomes (costs, risks, trade-offs)
  • Neutral outcomes (things that change but aren't clearly better/worse)

Be honest about trade-offs:

## Consequences

### Positive
- **Scalability**: Each service can scale independently based on load
- **Development Velocity**: Teams can deploy services without coordination
- **Technology Freedom**: Services can use different tech stacks if needed
- **Fault Isolation**: Failure in one service doesn't crash entire system
- **Faster Build Times**: Services build in 2-5 minutes vs 45 minutes

### Negative
- **Operational Complexity**: Managing 4+ services vs 1 application
- **Network Latency**: Inter-service calls add 10-50ms per hop
- **Distributed Debugging**: Harder to trace requests across services
- **Data Consistency**: Eventually consistent vs immediate consistency
- **Learning Curve**: Team needs to learn Kubernetes, service mesh concepts
- **Initial Slowdown**: 2-3 months of infrastructure setup before benefits

### Neutral
- **Testing Strategy**: Shift from integration tests to contract tests
- **Monitoring**: Need distributed tracing (Jaeger) vs simple logs
- **Cost**: Higher infrastructure costs offset by improved developer productivity

6. Alternatives Considered

Document at least 2 alternatives:

For each alternative, explain:

  • What it was
  • Why it was considered
  • Why it was not chosen

Example:

## Alternatives Considered

### Alternative 1: Optimize Existing Monolith
**Description:**
- Add read replicas for database
- Implement caching layer (Redis)
- Use horizontal scaling with load balancer

**Pros:**
- Lower complexity, team already familiar
- Faster implementation (4-6 weeks)
- No architectural re-work needed

**Cons:**
- Doesn't solve deployment coupling
- Limited scalability ceiling
- Build times remain slow
- Teams still blocked on shared resources

**Why not chosen:**
This addresses symptoms but not root causes. We'd face the same issues again in 12-18 months as we continue growing.

### Alternative 2: Serverless Architecture (AWS Lambda)
**Description:**
- Break application into Lambda functions
- Use API Gateway for routing
- DynamoDB for storage

**Pros:**
- Extreme scalability
- Pay-per-use pricing model
- No server management

**Cons:**
- Vendor lock-in to AWS
- Cold start latency (500ms+)
- Limited to 15-minute execution time
- Team has no serverless experience
- Harder to debug and test locally

**Why not chosen:**
Risk too high given team inexperience. Cold starts unacceptable for our real-time features. Microservices provide similar benefits with more control.

7. References (Optional)

Links to relevant resources:

  • Meeting notes or discussion threads
  • Related ADRs
  • External research or articles
  • Proof of concept implementations

ADR Lifecycle

Proposed → Accepted → [Implemented] → (Eventually) Superseded/Deprecated
          ↓
      Rejected

State Transitions:

  1. Proposed: Draft created, under review
  2. Accepted: Team agrees, implementation can begin
  3. Implemented: Decision is live in production
  4. Superseded: Replaced by new ADR (add reference)
  5. Deprecated: No longer recommended (migration path documented)
  6. Rejected: Not adopted (reasoning captured)

Best Practices

1. Keep ADRs Immutable

Once accepted, don't edit ADRs. Create new ADRs that supersede old ones.

  • ✅ Create ADR-0015 that supersedes ADR-0003
  • ❌ Update ADR-0003 with new decisions

2. Write in Present Tense

ADRs are historical records written as if the decision is being made now.

  • ✅ "We will adopt microservices"
  • ❌ "We adopted microservices"

3. Focus on 'Why', Not 'How'

ADRs capture decisions, not implementation details.

  • ✅ "We chose PostgreSQL for relational consistency"
  • ❌ "Configure PostgreSQL with these specific settings..."

4. Review ADRs as Team

Get input from relevant stakeholders before accepting.

  • Architects: Technical viability
  • Developers: Implementation feasibility
  • Product: Business alignment
  • DevOps: Operational concerns

5. Number Sequentially

Use 4-digit zero-padded numbers: ADR-0001, ADR-0002, etc. Maintain a single sequence even with multiple projects.

6. Store in Git

Keep ADRs in version control alongside code:

  • Location: /docs/adr/ or /architecture/decisions/
  • Format: Markdown for easy reading
  • Branch: Same branch as implementation

Quick Start Checklist

  • Copy ADR template from /templates/adr-template.md
  • Assign next sequential number (check existing ADRs)
  • Fill in Context: problem, constraints, requirements
  • Document Decision: what, why, how, who
  • List Consequences: positive, negative, neutral
  • Describe at least 2 Alternatives: what, pros/cons, why not chosen
  • Add References: discussions, research, related ADRs
  • Set Status to "Proposed"
  • Review with team
  • Update Status to "Accepted" after approval
  • Link ADR in implementation PR
  • Update Status to "Implemented" after deployment

Common Pitfalls to Avoid

❌ Too Technical: "We'll use Kubernetes with these 50 YAML configs..." ✅ Right Level: "We'll use Kubernetes for container orchestration because..."

❌ Too Vague: "We'll use a better database" ✅ Specific: "We'll use PostgreSQL 15+ for transactional data because..."

❌ No Alternatives: Only documenting the chosen solution ✅ Comparative: Document why alternatives weren't chosen

❌ Missing Consequences: Only listing benefits ✅ Balanced: Honest about costs and trade-offs

❌ No Context: "We decided to use Redis" ✅ Contextual: "Given our 1M+ concurrent users and sub-50ms latency requirement..."

Examples

See /examples/ for complete ADR samples:

  • adr-0001-adopt-microservices.md - System architecture decision
  • adr-0002-choose-postgresql.md - Database selection
  • adr-0003-api-versioning-strategy.md - API design pattern

Related Skills

  • api-design-framework: Use when designing APIs referenced in ADRs
  • database-schema-designer: Use when ADR involves database choices
  • security-checklist: Consult when ADR has security implications

Integration with Agents

Backend System Architect

  • Creates ADRs when designing major system components
  • References ADRs when making related architectural decisions
  • Reviews ADRs for consistency with overall architecture

Studio Coach

  • Suggests ADRs for complex multi-agent projects
  • Ensures architectural decisions are documented
  • Tracks ADR status in project planning

Code Quality Reviewer

  • Validates that significant changes have corresponding ADRs
  • Ensures implementation aligns with accepted ADRs
  • Flags when ADR may need to be superseded

Skill Version: 1.0.0 Last Updated: 2025-10-31 Maintained by: AI Agent Hub Team

平台分布

OpenCode

31.77%
按下载量换算35

Codex

22.6%
按下载量换算25

Claude Code

19.03%
按下载量换算21

Antigravity

12.81%
按下载量换算14

Gemini CLI

7.83%
按下载量换算9

windsurf

3.36%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills