一键导入
architect
Repo-grounded ideation, research, and technical solution design before planning or implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Repo-grounded ideation, research, and technical solution design before planning or implementation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research and define codebase issues before implementation planning. Use when the human explicitly invokes `$diagnose-issue`, or when an active documented workflow such as `planning-workflow`, `shape-requirements`, or `architect` routes a current-code question here. Do not select it directly from a generic bug, ticket, symptom, or design concern; enter through `planning-workflow` instead. Do not use when the user asks for a step-by-step implementation plan, direct implementation, or code review of an existing diff.
Coordinate planning from intent to implementation. Route through shape-requirements, diagnose-issue, review-spec, create-plan, plan-review, and handoff-work. Use when starting feature work, fixing a non-trivial issue, or running the full plan-build cycle.
Shape requirements before planning or implementing. Gate underspecified build, fix, or plan tasks. Interview when the user says "interview me about", "ask me questions about", "help me think through", "I need to spec out", "let's flesh out", or has a vague idea to turn into a brief.
Operate one manually stepped Harness Factory work item from intake through triage, planning, implementation, continuation, publication, and merge acknowledgement. Use when asked to run, resume, inspect, or recover Factory; interpret its next reaction or durable evidence; or apply guarded Linear projections.
Brief a code change, diff, branch, commit range, or pull request so the user can decide whether to approve, merge, revise, or build on it. Use when the user asks for a walkthrough of what changed or how it works, wants behavior or day-to-day impact, asks about API, contract, or boundary changes, questions diff size or complexity, or wants accepted tradeoffs.
Delegate one scoped implementation to an isolated executor while the parent retains authority and review control.
| name | architect |
| description | Repo-grounded ideation, research, and technical solution design before planning or implementation. |
Design the smallest repo-grounded solution before planning or building. Return an inline architecture memo the user can keep, discard, or turn into a plan.
diagnose-issue first:
read ../diagnose-issue/SKILL.md completely and follow it instead of
diagnosing inline. Use the shape-requirements gate when unclear product
intent prevents a choice.Identify the goal, accepted decisions, scope, success criteria, constraints, and unknowns that could change the design. Resolve blocking unknowns before deep work.
Done when: the design target and material unknowns are explicit.
Apply this authority order:
When a current-session diagnose-issue result exists, use its status, mechanism,
evidence, and constraints as the starting contract. Verify only gaps that could
change the design. Treat its recommended direction as a hypothesis, not accepted
architecture.
Read AGENTS.md, repository guidance, and the relevant intent source before
product, boundary, public API, provider, data, or documentation-architecture
decisions. Inspect only the code paths, tests, callers, contracts, schemas,
configuration, and lifecycle boundaries needed to follow the behavior. Use
prior plans only for accepted decisions, and keep current behavior distinct
from planned work. Consult official sources when third-party behavior matters.
Before proposing new state, coordination, or abstraction, identify the current owner and existing repository, platform, or provider primitives. Name the verified gap they cannot satisfy; if none exists, prefer no change or use those primitives.
Follow the flow far enough to support each decision with durable path:line
anchors. Label remaining assumptions.
Done when: repository evidence and project intent constrain the design.
Evaluate only the fit, tradeoffs, risks, compatibility, and test implications that could change the recommendation or the user's approval. Explicitly answer any surface the user asked about, even when unchanged.
Done when: one recommendation wins on current evidence, its outcome scope is classified, any umbrella has coherent architectural units, and alternatives remain only where the user has a real choice.
For non-trivial, cross-module, public-contract, migration, security-sensitive, or still-uncertain designs, consult one read-only advisor only when its answer could change the recommendation. Ask it to challenge the smallest proposed design, identify a missing constraint, or test pattern fit—not to brainstorm more architecture.
Name the task architect-advisor; provide grounded anchors and request an
evidence-backed response. Use another advisor only for a distinct unresolved
uncertainty.
Triage actual advice as Adopt, Adapt, or Decline. Omit empty categories and omit advisor reporting when consultation did not affect the decision. If consultation is unavailable, continue with grounded judgment.
Done when: decision-changing critique has been resolved.
Recommend one direction. If product priority or risk tolerance—not repository evidence—decides between viable choices, ask the user with a recommended answer and concise tradeoff.
Return a proportional memo using the smallest useful shape:
## Architecture Memo
**Goal**:
**Recommendation**:
**Confidence**: High | Medium | Low
**Scope**: One scoped outcome | An umbrella requiring scoped units
## Why this fits
Decision-shaping project intent, repository facts, and tradeoffs. Place each
`path:line` anchor beside the claim it supports.
## Scoped units
Include only for an umbrella. For each unit, state:
- **Observable outcome**:
- **Acceptance boundary**:
- **Dependencies**:
- **Explicit exclusions**:
## Impact and tradeoffs
Only material current-to-proposed changes to behavior, contracts,
ownership/lifecycle boundaries, compatibility/adoption,
operations/performance, and risk. State relevant unchanged surfaces the user
asked about. Name the recommended direction's benefit, accepted downside, why
it is acceptable, and a revisit trigger when useful. Omit when a no-change
result or `Why this fits` already makes the consequences clear.
## Alternatives
Only materially different viable choices. Omit when one direction is clear.
## Boundaries
Only planning-relevant locked decisions or concrete non-goals. Omit when none
exist.
## Advisor check
Only advice that affected the decision, labeled Adopt, Adapt, or Decline. Omit
when no consultation affected the recommendation.
Do not duplicate the recommendation as a separate decision or planning checklist. Add another section only when it changes the architecture choice.
Done when: the user can approve the direction with its material consequences and accepted tradeoffs understood, answer one focused question, or ask to turn it into a plan.