Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

architecture-exploration建筑探索

Agent Skill

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

总安装

214

周安装

9

GitHub Stars

35

下载量

75
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/petekp/claude-code-setup --skill architecture-exploration

简介

用于深度探索系统架构,生成可行的架构选项并协助选择最优方向。

  • 适合在迁移前进行架构预研,避免过早承诺单一设计方案。
  • 使用时可请求生成架构备选方案、评估技术债务或分析子系统依赖关系。
  • 需明确区分架构探索与实施执行,不直接处理代码迁移工作。
  • architecture-exploration 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Architecture Exploration

Reason deeply about a system, generate real architectural options, and help the user choose the best direction before any migration begins.

This skill is intentionally pre-commit. Its job is to help pick the right architecture, not to execute the migration. Once a direction is chosen, hand the work off to audit-and-migrate.

Why This Exists

Large engineering efforts fail long before code is written:

  1. Premature commitment — a promising idea becomes the default architecture before alternatives are seriously examined.
  2. Local reasoning — the agent optimizes one subsystem without understanding system-wide constraints, ownership, and failure modes.
  3. Strawman comparison — one favored option is compared against weak alternatives, creating false confidence.
  4. Migration contamination — the discussion quietly shifts from "what should we build?" to "how should we implement it?" before the target architecture is actually chosen.

This skill exists to force disciplined exploration before implementation.

Hard Boundary

This skill does not:

  • create migration slices
  • create ratchet budgets for execution
  • start refactoring
  • write scaffolding or implementation code
  • turn the leading option into the assumed winner before comparison is complete

This skill does:

  • map the current system
  • define the decision frame
  • generate multiple serious options
  • compare them against the same constraints
  • stress-test them
  • recommend a direction
  • produce a handoff package for audit-and-migrate

Perform all of this work directly. Do not rely on other skills to do the shaping, stress-testing, or architecture comparison for you.

If the user has already chosen a direction and wants to land it safely, stop using this skill and use audit-and-migrate.

Core Principle

First excavate reality, then compare options, then recommend.

Do not start with architecture taste. Start with the actual system, the actual constraints, and the actual problem.

Evidence Discipline

Before you recommend an architecture, you must earn the recommendation.

For the relevant system, actively inspect:

  • current code paths
  • ownership boundaries
  • state and data flow
  • external contracts and integrations
  • docs and operational surfaces
  • obvious history signals when needed (recent churn, known incidents, partial prior refactors)

Do not recommend major boundary changes based only on the user's summary if the local codebase can answer the question.

When a claim is uncertain, mark it as uncertain. A high-integrity architectural recommendation is one that is well-calibrated, not one that sounds maximally confident.

Workflow

Phase 1: Define the Decision Frame

Before exploring options, pin down the decision you are actually making.

Capture:

  • Goal — what outcome the user wants
  • Problem — what pain or failure mode motivates the change
  • Invariants — what must remain true
  • Non-goals — what should stay out of scope
  • Constraints — team, tooling, performance, compliance, time, compatibility, ops, or organizational limits
  • External surfaces — APIs, env vars, queues, dashboards, CLI entrypoints, jobs, data contracts, webhooks, partner integrations
  • Decision horizon — are we optimizing for the next 3 months, 1 year, or 3 years?

If the user already has a candidate solution in mind, treat it as Option A, not as the conclusion.

Phase 2: Map the Current System

Understand the current system before proposing alternatives.

For the affected system or systems, map:

  • Primary workflows
  • Current module boundaries
  • Data flow
  • Ownership of logic and state
  • External dependencies
  • Operational surfaces
  • Known pain points
  • Hotspots — fragile areas, high-churn files, flaky tests, unclear ownership, duplicated logic, stale docs

Produce a concise current-state map:

## Current System
| Area | Current Owner | Inputs | Outputs | Dependencies | Pain |
|------|---------------|--------|---------|--------------|------|
| ...  | ...           | ...    | ...     | ...          | ...  |

Do not skip this because the user "already knows the system." A rigorous option comparison depends on a shared map of reality.

Phase 3: Generate the Option Set

Generate 2-4 serious architectural options.

Do not generate fake alternatives. Every option must be plausible enough that a strong team could reasonably choose it.

When feasible, include:

  • Option 1: Evolutionary path — improves the current system with lower disruption
  • Option 2: Simplifying path — removes concepts and indirection aggressively
  • Option 3: Structural path — introduces stronger boundaries or a new architecture shape
  • Option 4: Do less — if the problem may be solvable with narrower change than expected

Each option must describe:

  • architecture shape
  • boundary changes
  • ownership model
  • data flow
  • operational model
  • what stays
  • what changes
  • what gets simpler
  • what gets harder

Phase 4: Analyze Each Option

For every option, run the same analysis.

A. Fit

How well does the option satisfy:

  • the goal
  • invariants
  • constraints
  • external surface obligations

B. Assumptions

List the must-be-true assumptions:

## Must-Be-True Assumptions
| Assumption | Why It Matters | How to Verify | Fastest Disproof |
|------------|----------------|---------------|------------------|
| ...        | ...            | ...           | ...              |

C. Failure Modes

Imagine the option failed one year later. Work backward.

## Pre-Mortem
| Failure Mode | Warning Signal | Prevention |
|--------------|----------------|------------|
| ...          | ...            | ...        |

D. Tradeoffs

Evaluate each option on:

  • Concept count — how many new ideas someone must carry
  • Boundary clarity — is ownership sharper or blurrier?
  • Migration difficulty — how hard this will be to land later
  • Cleanup burden — how likely it is to leave vestigial code, docs, configs, or adapters
  • Rollback story — how hard it is to back out
  • Operability — monitoring, debugging, failure handling, support burden
  • Testability — can the system be verified deterministically?
  • Extensibility — what future changes become easier?
  • Lock-in — what new constraints does this create?

Use relative ratings with justification. Avoid fake precision.

## Tradeoff Matrix
| Dimension | Option A | Option B | Option C |
|-----------|----------|----------|----------|
| Simplicity | Medium — ... | High — ... | Low — ... |
| Migration Difficulty | ... | ... | ... |
| Cleanup Burden | ... | ... | ... |
| Operability | ... | ... | ... |
| Testability | ... | ... | ... |
| Long-Term Flexibility | ... | ... | ... |

E. Disqualifiers

For each option, state what would make it the wrong choice.

Examples:

  • requires compatibility the project does not need
  • increases operational burden beyond the team's capacity
  • creates too much cleanup debt during migration
  • depends on an external contract the team does not control
  • adds concepts without enough payoff

F. Unknowns

What remains uncertain? Distinguish:

  • architectural unknowns — boundary or ownership uncertainty
  • runtime unknowns — load, latency, concurrency, failure behavior
  • organizational unknowns — team readiness, external consumers, ops constraints

Phase 5: Recommend

Do not stop at listing options. Make a recommendation.

The recommendation must include:

  • Recommended option
  • Why it wins
  • Why the runner-up loses
  • Why the other options were rejected
  • What could change the recommendation
  • What must be validated before committing

If the recommendation is genuinely unclear, say so and explain exactly which uncertainty blocks a good decision.

Phase 6: Define Validation Spikes

Before committing, propose the cheapest high-value spikes to kill uncertainty.

Good spikes are:

  • narrow
  • fast
  • evidence-producing
  • architecture-relevant

Examples:

  • compile-time module skeleton
  • thin path through one critical workflow
  • event/queue boundary proof
  • fake adapter proving data contract shape
  • load experiment for one suspected bottleneck

For each spike:

## Validation Spikes
| Spike | Question Answered | Cost | Success Signal | Failure Signal |
|-------|-------------------|------|----------------|----------------|
| ...   | ...               | ...  | ...            | ...            |

Phase 7: Prepare the Handoff to audit-and-migrate

Once the user chooses a direction, hand off the decision package cleanly.

The handoff section must include:

  • Chosen architecture
  • Decision rationale
  • Invariants
  • Non-goals
  • Critical workflows
  • External surfaces
  • Known hotspots
  • Leading migration risks
  • Expected deletion zones — code, docs, scripts, config, env, adapters likely to become vestigial
  • Validation spikes already run
  • What still needs proof

This section should make it easy to start audit-and-migrate without reopening the architecture debate.

Output Contract

For non-trivial explorations, produce a decision-grade artifact at .claude/architecture/ARCHITECTURE_OPTIONS.md or the project’s equivalent docs location.

Use this structure:

# Architecture Exploration: [System Name]

## Goal

## Problem

## Invariants

## Non-Goals

## Constraints

## External Surfaces

## Current System
| Area | Current Owner | Inputs | Outputs | Dependencies | Pain |

## Option 1: [Name]
### Architecture Shape
### Why It Might Work
### Tradeoffs
### Failure Modes
### Disqualifiers
### Cleanup / Migration Implications
### Unknowns

## Option 2: [Name]
...

## Tradeoff Matrix
| Dimension | Option 1 | Option 2 | Option 3 |

## Assumptions
| Assumption | Why It Matters | How to Verify | Fastest Disproof |

## Risk Register
| Risk | Option(s) Affected | Likelihood | Impact | Mitigation |

## Validation Spikes
| Spike | Question Answered | Cost | Success Signal | Failure Signal |

## Recommendation

## Runner-Up

## Why The Other Options Lose

## Decision Needed

## Handoff to audit-and-migrate

For smaller requests, present the same structure inline in the conversation.

Reasoning Standards

Avoid False Precision

Do not invent numerical scoring that implies rigor you do not actually have. Relative ratings with explanations are better than fake weighted totals.

Prefer Evidence to Taste

Architecture preferences are not evidence. Ground recommendations in:

  • codebase structure
  • observed constraints
  • operational surfaces
  • migration burden
  • cleanup burden
  • failure modes

Always Include a Simpler Option

If every option increases conceptual complexity, you probably missed a better path.

Do Not Default to Rewrite

A full rewrite or major structural reset must earn its place. It is rarely the default winner.

Make the Tradeoffs Symmetrical

Every option gets the same scrutiny. Do not stress-test the user's preferred option less just because it sounds elegant.

When to Stop

Exploration is complete when:

  • the current system is mapped clearly enough to compare alternatives
  • the option set includes at least two serious choices
  • each option has explicit tradeoffs and failure modes
  • the recommendation is grounded in evidence
  • the next step is clear: either run a validation spike or start audit-and-migrate

If you reach that point, stop exploring and recommend the decision.

Relationship to audit-and-migrate

Use this skill to answer:

  • "What architecture should we choose?"
  • "What are our options?"
  • "What is the best design tradeoff here?"

Use audit-and-migrate after the answer becomes:

  • "We are committing to Option B"
  • "Now plan the migration"
  • "Now land this safely"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.17%
按下载量换算27

Claude

27.44%
按下载量换算21

Cursor

19.25%
按下载量换算14

Gemini CLI

9.38%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills