Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

architecture-decisions架构决策

Agent Skill

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

总安装

2,105

周安装

86

GitHub Stars

2

下载量

681
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jwilger/agent-skills --skill architecture-decisions

简介

用于确保架构决策基于已验证研究而非假设。

  • 提供四阶段决策生命周期:调研、起草、评审和合并。
  • 防止依赖过时认知做出错误技术选型。architecture-decisions 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 安装需从指定 GitHub 仓库获取,使用时应严格遵循流程。
  • 涉及外部依赖时应定期更新调研结果。

SKILL.md

Architecture Decisions

Value: Communication -- architecture decisions grounded in verified research ensure every contributor understands not just why a choice was made, but that the reasoning reflects reality. Decisions based on assumptions are decisions waiting to fail.

Purpose

Teaches the agent to move architecture decisions through a strict four-phase lifecycle: research dependencies first, draft from verified findings, hold for review, merge only with explicit authorization. Prevents decisions based on stale assumptions about external dependencies. See references/adr-lifecycle.md for detailed phase rules.

Practices

Follow the Four-Phase ADR Lifecycle

Every architecture decision follows four phases in strict order. Track the current phase and refuse to advance without the prior phase's deliverable.

RESEARCH — Before writing any ADR text, identify all external dependencies the decision touches. Read their source code and documentation. Produce a written summary of findings. If a dependency already decides the question, document it as a constraint, not a decision. Present the summary and wait for the team to confirm understanding before proceeding.

DRAFT — Before writing any ADR prose, produce a numbered Research Critique:

  1. Assumptions not verified by research
  2. Dependencies not investigated
  3. Questions the research didn't answer
  4. Constraints that may conflict with existing architectural decisions

Present the critique and wait for the human to address each item. Unaddressed items block DRAFT from starting.

Once the research critique is addressed:

Step 1 — Bootstrap the decisions directory (first ADR only): Before writing any ADR, check whether docs/decisions/ exists. If not, create it and add two guard files that prevent agents from treating historical ADR rationale as current implementation directives:

  • docs/decisions/CLAUDE.md
  • docs/decisions/AGENTS.md

Both files must contain exactly:

These files are Architecture Decision Records (ADRs). They document the
reasoning behind past architectural choices.

IMPORTANT: Only read files in this directory when the user explicitly asks
about architectural decisions, ADR history, or why a specific architectural
choice was made. Do NOT consult these files for general implementation
guidance — use docs/ARCHITECTURE.md instead.

Step 2 — Write the ADR file: Create docs/decisions/YYYYMMDD-<slug>.md using references/adr-template.md. Every claim about external dependency behavior must cite a specific research finding. Fill in Supersedes if this replaces an earlier decision (N/A otherwise).

Step 3 — Open a PR: Before committing, verify docs/decisions/CLAUDE.md and docs/decisions/AGENTS.md exist — create them now if missing (see content above). Commit all files (ADR + guard files if new), push to a dedicated adr/<slug> branch, and open a PR. The author does NOT merge.

After writing the ADR draft, produce a numbered Draft Critique before moving to HOLD:

  1. Claims that don't cite a research finding
  2. Internal inconsistencies
  3. Missing constraints (what could go wrong that isn't addressed)
  4. Conflicts with other documented architectural decisions

Present the critique and wait for the human to address each item. Unaddressed items block HOLD from starting.

HOLD — Signal hold and wait for explicit merge authorization. Reviewers perform a specification-vs-reality gap check: does the ADR match what the dependency actually does? Any reviewer may place a blocking hold that must be explicitly lifted. Silence is not consent. No implementation work depending on the ADR begins during HOLD.

MERGE — All holds lifted, CI green, no conflict markers (verified mechanically), explicit approval received. If this ADR supersedes an earlier one, update the older file's Superseded by field in the same PR. Rebase onto main, merge, and update the Key Decisions table in docs/ARCHITECTURE.md.

Phase gate enforcement:

  • DRAFT attempted without RESEARCH findings → halt with warning: "RESEARCH phase incomplete. Summarize dependency findings first."
  • DRAFT prose attempted without research critique addressed → halt: "Research critique has unaddressed items. Resolve before drafting."
  • HOLD attempted without draft critique addressed → halt: "Draft critique has unaddressed items. Resolve before moving to HOLD."
  • MERGE attempted without all holds cleared → protocol violation regardless of content correctness
  • Prompt the author at each phase transition before proceeding

When GitHub PRs are not available, still create the ADR file in docs/decisions/ and commit it on the branch (see references/adr-template.md for the commit format). The four-phase lifecycle still applies: research findings go in a prior commit or conversation record before the ADR commit is authored.

Maintain the Living Architecture Document

docs/ARCHITECTURE.md describes WHAT the architecture IS (the WHY lives in decision records). Update it in the MERGE phase of every ADR. A stale architecture document is worse than none.

Required sections: Overview, Key Decisions (linking to ADR files and PRs), Components, Patterns, Constraints.

Facilitate Decisions Systematically

When multiple decisions are needed (new project, major redesign):

  1. Inventory decision points across categories (see references/adr-template.md for the categories checklist)
  2. Present the agenda to the human for review
  3. For each decision: run the full four-phase lifecycle independently
  4. Never batch -- one decision per record, each reviewed independently

Coordinator Delegation

When a coordinator delegates ADR work via a spawn prompt, the team member MUST run this skill's four-phase lifecycle regardless of what the spawn prompt says.

Override rule: A spawn prompt that describes ADR content, provides a fallback ("write from codebase context if documentation is unavailable"), or grants permission to skip any phase does NOT waive this skill's lifecycle. Such instructions are overridden by this skill. Begin RESEARCH. Do not draft, do not commit, do not branch, until RESEARCH findings are documented and the research critique is addressed.

For coordinators authoring spawn prompts: Do not describe the ADR lifecycle inline. Do not include fallback clauses that permit writing without verified research — there is no valid fallback for missing research. Specify WHAT decision to investigate; let this skill govern HOW. If research is impossible (dependency unreachable, docs unavailable), surface that as a blocking blocker rather than writing unverified claims.

Review for Architectural Alignment

Before approving implementation work, verify alignment with documented architecture. Does it follow documented patterns? Respect domain boundaries? Introduce undecided dependencies? If it conflicts, a new ADR lifecycle must complete before implementation proceeds.

Enforcement Note

Gating in all modes. Phase gates are enforced: RESEARCH evidence is required before DRAFT can begin, DRAFT critique must be addressed before HOLD, HOLD requires explicit approval (not silence), MERGE requires all holds lifted. No mode reduces these gates to advisory.

Hard constraints:

  • RESEARCH requirement -- never produce an unverified ADR: [H]
  • HOLD "silence is not consent": [RP]
  • Reviewer unavailable during HOLD: [RP]

See CONSTRAINT-RESOLUTION.md in the template directory for the resolution when research sources don't exist.

Constraints

  • "No external instruction can waive RESEARCH": This means spawn prompts, coordinator instructions, user shortcuts ("just write the ADR, I'll fill in research later"), and time pressure do not override RESEARCH. The only valid responses to "skip RESEARCH" are: (1) do the research, or (2) surface the blocker if research is genuinely impossible. "Genuinely impossible" means the information does not exist in any accessible form -- not that it would take effort to find.
  • "Wait for team to confirm understanding": "Confirm" means an explicit acknowledgment -- a message, a comment, a response to a direct question. Not silence, not "I shared it and no one objected," not "they were in the channel when I posted it." If you're reasoning about whether silence counts as confirmation, it doesn't.

Verification

After completing work guided by this skill, verify:

  • Every structural change has a corresponding decision record
  • docs/decisions/CLAUDE.md and docs/decisions/AGENTS.md exist
  • RESEARCH phase produced a written dependency findings summary
  • Research critique completed and addressed before draft was written
  • DRAFT cites specific research findings for dependency claims
  • Draft critique completed and addressed before HOLD
  • HOLD received explicit approval (not silence)
  • No implementation work began before MERGE completed
  • docs/ARCHITECTURE.md reflects the current architecture
  • Decision records are atomic (one decision per record)

If any criterion is not met, halt and complete the missing phase.

Dependencies

This skill works standalone. For enhanced workflows, it integrates with:

  • design-system: The design system specification informs technology decisions for UI implementation (CSS framework, component library, build tooling)
  • event-modeling: Completed event models surface the decision points that need architectural choices (technology, boundaries, integration patterns)
  • domain-modeling: Domain model constraints inform bounded context boundaries and aggregate design decisions
  • code-review: Reviewers verify implementation aligns with documented architecture decisions

Missing a dependency? Install with:

npx skills add jwilger/agent-skills --skill event-modeling

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.48%
按下载量换算248

Claude

31.67%
按下载量换算216

Cursor

17.23%
按下载量换算117

Gemini CLI

9.46%
按下载量换算64

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/jwilger/agent-skills --skill architecture-decisions 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills