AGENT SKILL

solution

Use when the user wants to write system architecture at docs/architecture/solution.md (stub or full arc42-lite). Drafts or re-authors the document. Triggers on "write the architecture", "solution design", "arc42". Re-authoring is also how an existing solution.md gets critiqued or revised — docs-review checks writing quality and cross-document consistency, not architectural soundness. Do NOT use for business strategy (product), delivery phases (roadmap), epic list (tasks), work-item tdd.md (tdd), task Gherkin (tasks), or ADR files (adr write). Story AC belongs in docs/work/{work-id}/tasks.md.

适用职业产品经理
License 许可
MIT
最近更新
2026-08-20
Stars
★ 2
Forks
0

01 前言 Front Matter

name
solution
license
MIT
metadata
{ "owner": "architecture", "author": "Carinya Parc", "version": "2.0", "work_shape": "authoring", "output_class": "delivery-artefact" }
description
Use when the user wants to write system architecture at docs/architecture/solution.md (stub or full arc42-lite). Drafts or re-authors the document. Triggers on "write the architecture", "solution design", "arc42". Re-authoring is also how an existing solution.md gets critiqued or revised — docs-review checks writing quality and cross-document consistency, not architectural soundness. Do NOT use for business strategy (product), delivery phases (roadmap), epic list (tasks), work-item tdd.md (tdd), task Gherkin (tasks), or ADR files (adr write). Story AC belongs in docs/work/{work-id}/tasks.md.
allowed-tools
Read Write Glob Grep
argument-hint
[--stage stub|full] [--context <notes>]

02 资源文件 1

03 SKILL.md 正文

Solution

You are a Solution Architect writing arc42-lite solution design.

Artefact

Default path: docs/architecture/solution.md — arc42-lite architecture (stub or full).

Path resolution

If the user names a different file path in their request, read and write that path instead of the default.

Stage (--stage)

  • stub — Phase 0: fill §1–§2 only; scaffold §3–11 as [NEEDS CLARIFICATION]. ≤2 pages.
  • full — Phase 2+: all eleven sections. 8–12 pages.

Negative constraints

solution.md MUST NOT contain:

  • Commercial rationale, personas, positioning → docs/product/product.md
  • Story-level acceptance criteria → docs/work/{work-id}/tasks.md
  • Phase sequencing → docs/product/roadmap.md

Context

<artifacts> [Stub: docs/product/product.md, architecture principles, system boundary Full: product.md, docs/work/{work-id}/tdd.md (skeleton mode), ADR register, accepted ADRs] </artifacts>

Steps (stub)

  1. Read product.md and architecture principles
  2. §1 Context and scope — boundary, C4 L1 (ASCII), owns / does not own
  3. §2 Quality goals and constraints — top 3–5 NFRs, constraints
  4. Scaffold §3–11 with [NEEDS CLARIFICATION]
  5. Delete the <!-- DO NOT INCLUDE --> comment block before saving

Steps (full)

  1. Read all context
  2. §1 Context and scope
  3. §2 Quality goals and constraints
  4. §3 Solution strategy — style, key choices, principles vs quality goals
  5. §4 Building block view — C4 L2/L3, module layout
  6. §5 Runtime view — 2–5 key sequences
  7. §6 Data model and ubiquitous language
  8. §7 Cross-cutting concepts — observability, errors, security, testing
  9. §8 Deployment and environments
  10. §9 Architectural decisions — links to ADRs in docs/architecture/decisions/; mark gaps as "(Not yet written)"
  11. §10 Risks, technical debt, open questions
  12. §11 Graduation candidates — patterns that may lift org-wide when reused
  13. Delete the <!-- DO NOT INCLUDE --> comment block before saving

Quality rules

  • §1 includes text-based C4 L1 diagram
  • §3 names trade-offs, not only choices
  • §9 does not invent full ADR bodies — link or mark candidates
  • Do not repeat business context from product.md — link instead

Gotchas

  • Per-work-item files/APIs → cite from docs/work/{work-id}/tdd.md, don't duplicate full specs.
  • Story-level Gherkin → tasks.md, not solution.
  • Closed ADRs → ADR-NNNN-*.md; proposals stay in register only.

Output format

Markdown with YAML frontmatter. Save to the resolved path. Use assets/solution.template.md.

Supporting files

Related skills

  • product, tasks, tdd, adr
  • docs-review — review or critique an existing solution.md

04 同仓库更多 Skills

carinyadigital
carinyadigital/skills

skill-name

Replace with description of the skill and when the agent should use it.

Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

validate

Use when the user wants final completion sign-off on any work item — epic, story, bug, or spike: every task in docs/work/{work-id}/tasks.md verified against Gherkin AC and, for an epic, roadmap phase exit criteria. Triggers on "validate CHK01", "validate JIRA-123", "is this story done", "sign off the epic". Builds an acceptance matrix with evidence, updates task and work-item status, and produces a validation report. Do NOT use for PR or branch code review (code-review), writing tasks (tasks), sprint retrospective (sprint-retro), or drafting the breakdown (tasks) or the technical design (tdd).

代码审查视觉设计
★ 2
carinyadigital
carinyadigital/skills

ux-design-review

Use when the user wants a UX or design review of implemented UI — components, pages, or flows — against its design source, covering accessibility (WCAG 2.2 AA), interaction states, responsiveness, design fidelity, and design-system conformity. Triggers on "review the checkout page", "check this UI before I ship it", "is this accessible", "does this match the design". Live-environment-first: drives the rendered UI in a real browser where possible. Works with any framework or design tooling. Produces a structured verdict with a coverage statement; writes no source changes. Do NOT use to address or fix UX findings (ux-design-fix), for code correctness or security review (code-review), to review a tdd.md document (docs-review), or to implement features (implement).

设计师视觉设计Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

ux-design-fix

Use when the user wants to change how existing UI looks or behaves — fix spacing, colour, layout, states, responsiveness, or accessibility on a component, page, or flow. Takes either a ux-design-review output (scoped by action tier) or a direct instruction. Triggers on "the summary card padding is off", "the modal breaks on mobile", "make the focus ring visible", "fix the UX review findings", "this button looks wrong". Fixes via design tokens and library components rather than local patches, re-renders to verify visually, and re-checks neighbours for shift. Do NOT use to build new UI, screens, or flows (implement), to review UI without changing it (ux-design-review), to fix code-review findings (code-review-fix), or to redesign a component or flow.

开发工程师设计师视觉设计Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

tdd

Use when the user wants a technical design document (TDD) for any work item — epic, story, bug, or spike — at docs/work/{work-id}/tdd.md, in skeleton or full mode. Pass a work item ID (CHK01, or a Linear/Jira/GitHub key like JIRA-123). Resolves the source system and writes at whatever level the ID names — a story gets its own tdd.md beside its parent epic's, not nested inside it. Cite solution.md — do not re-narrate architecture. Triggers on "tdd CHK01", "write the technical design for JIRA-123", "design the epic", "how should we build this story". For reviewing an existing tdd.md, use docs-review instead. Do NOT use for test-driven development — writing a failing test first, red/green/refactor, or any test-authoring task is implement. Do NOT use to write the breakdown itself — stories, tasks, or sub-tasks (tasks), task Gherkin (tasks), system-wide architecture (solution), ADR write (adr), or code implementation (implement).

视觉设计Skill与智能体开发
★ 2
carinyadigital
carinyadigital/skills

tasks

Use to decompose anything into delivery work — a product strategy and roadmap into epics, an epic into stories and tasks with Gherkin acceptance criteria, a story into sub-tasks, or an external spec, RFC, or PRD into both in one pass. Resolves the work item's source system (Linear, Jira, GitHub/GitLab issues, or filesystem) and its type first. Writes docs/product/backlog.md and docs/work/{work-id}/tasks.md, or the tracker directly when one is resolved. Triggers on "break this spec into a backlog", "write the epics", "decompose checkout-foundation", "turn this RFC into tickets", "write tasks for CHK01", "write sub-tasks for JIRA-123", "what stories do we need". EARS with --ears. Do NOT use to groom an existing backlog or check sprint readiness (backlog-refine), write technical design at any level (tdd), write architecture (solution), phase the delivery (roadmap), implement code (implement), or sign off a work item (validate).

产品经理Skill与智能体开发
★ 2