ワンクリックで
design-documentation
Guide for creating compelling design docs and examples. Use this when asked to create or modify any markdown files.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guide for creating compelling design docs and examples. Use this when asked to create or modify any markdown files.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Expert guidance for writing and modifying BDD/Gherkin and MSpec-style tests using the SweDevTools.LiveDoc.xUnit framework for C# and .NET. Generates self-documenting xUnit specs with correct attribute usage, value extraction, and living documentation patterns. Also covers Journey testing via annotated .http files.
Expert guidance for system design/architecture during initial design and for structured code reviews. Use for design proposals, architecture critiques, and PR reviews.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Expert guidance for writing and modifying BDD/Gherkin and MSpec-style tests using the @swedevtools/livedoc-vitest framework. Generates self-documenting TypeScript specs with correct API usage, value extraction, and living documentation patterns.
Expert guidance for writing and modifying BDD/Gherkin and MSpec-style tests using the SweDevTools.LiveDoc.xUnit framework for C# and .NET. Generates self-documenting xUnit specs with correct attribute usage, value extraction, and living documentation patterns. Also covers Journey testing via annotated .http files.
Expert guidance for creating comprehensive SDK documentation sites. Use this when building or maintaining public-facing developer documentation for any SDK, library, or framework — any language, any ecosystem.
| name | design-documentation |
| description | Guide for creating compelling design docs and examples. Use this when asked to create or modify any markdown files. |
When working on design or other documentation use the following guidelines to achieve a high quality result.
Write engaging, narrative-driven documentation that separates business/domain knowledge from technical implementation details. Documentation should read like well-crafted technical journalism—not dry reference manuals.
Key Principles:
Every document MUST follow this structure:
---
# DocFX Metadata
uid: quotes.section.topic
title: [Clear, Descriptive Title]
description: [One-line summary of business value]
---
# [Title]
## What Is [Concept]?
[1-2 paragraphs: Clear definition and business purpose]
- What is it?
- Why does it exist?
- What problem does it solve?
- What's its role in the larger system?
## Why This Matters
[1-2 paragraphs: Brief, focused scenario that illustrates the concept]
- Shows the "why it matters" through a concrete example
- Grounds abstract concepts in reality
- Use specific personas and situations
## The Big Picture
[Mermaid diagram showing overview]
[1-2 paragraphs: Explain the diagram and mental model]
## [Core Section 1: Main Concept]
[Detailed exploration with subsections, examples, supporting diagrams]
### [Subsection with Supporting Example]
[Content with concrete examples]
> **Example: [Specific Scenario Name]**
>
> [Brief, focused example with specific details]
>
> **Result**: [Clear outcome showing why this matters]
## Decision Points and Variations
[Explore scenarios, alternatives, edge cases with decision trees/tables]
## Key Takeaways
- **Key Point 1**: Why it matters
- **Key Point 2**: What to remember
- **Key Point 3**: How to apply it
## Your Next Steps
**To understand related concepts**:
- [Related Topic](link) - How it connects
**To implement or use this**:
- [Implementation Guide](link) - Technical details
**For specific scenarios**:
- [Scenario A](link) - When condition X
---
**Last Updated**: [Date]
**Contributors**: [Names of SMEs]
**Related Topics**: [Links to closely related docs]
Lead with Business Context (1-2 paragraphs)
Ground with Focused Stories (1-2 paragraphs)
Visual Storytelling is MANDATORY
Progressive Disclosure
Write for Clarity and Engagement
Create Connection Points
Every technical document MUST reference actual source code if available initial design docs can omit this step:
**Code Location**: `Services/Quotes/QuoteService.cs`, method `CreateQuoteAsync` (lines 145-230)
**Key Implementation**:
```csharp
// File: Services/Quotes/QuoteService.cs
public async Task<QuoteResult> CreateQuoteAsync(CreateQuoteRequest request)
{
// [Relevant code snippet from actual source]
}
Related Tests: Services/Quotes/Test/UnitTests/QuoteServiceTests.cs
Configuration: appsettings.json → Quote:ApprovalThreshold (default: 0.15)
**Requirements**:
- Include full file paths relative to solution root
- Reference specific classes, methods, and line numbers
- Link to related tests that prove the behavior
- Note configuration values and their locations
- Include actual code snippets (not pseudocode)
---
## Visual Standards
### Mermaid Diagrams
Use Mermaid for all diagrams (supported by DocFX):
**Flowcharts**:
```mermaid
graph TD
A[Start] --> B{Decision?}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
Sequence Diagrams:
sequenceDiagram
Partner->>QuoteService: Create Quote
QuoteService->>PriceComposer: Calculate Price
PriceComposer-->>QuoteService: Return Price
QuoteService-->>Partner: Quote Created
State Machines:
stateDiagram-v2
[*] --> Draft
Draft --> PendingApproval
PendingApproval --> Approved
Approved --> Accepted
Gantt Charts (for timelines):
gantt
title Quote Lifecycle Timeline
dateFormat YYYY-MM-DD
section Creation
Draft Quote :2025-01-01, 1d
Use tables for comparisons, decision matrices, and structured data:
| Scenario | Approach | When to Use | Outcome |
|---|---|---|---|
| Standard case | Option A | Most common | Expected result |
| Edge case | Option B | Specific conditions | Alternative result |
Use blockquotes for examples and important notes:
Example: Specific Scenario Name
[Brief, focused example]
Result: [Clear outcome]
Behind the Scenes
[Technical insight or system behavior]
Business/ directory)Purpose: Explain concepts for non-technical stakeholders
Characteristics:
Example Topics:
Verification: All business rules MUST be traced to actual code implementation if already implemented
Design/ directory)Purpose: Explain implementation for developers and engineers
Characteristics:
Example Topics:
Verification: Every claim must be verifiable in the codebase with file paths and line numbers
Every .md file MUST include YAML frontmatter:
---
uid: quotes.business.domain.quotelifecycle
title: Quote Lifecycle
description: Understanding how quotes move from creation through transaction to fulfillment
---
toc.yml)Every directory with multiple documents MUST have a toc.yml file:
- name: Introduction
href: Introduction/
- name: Domain
href: Domain/
items:
- name: Quote Lifecycle
href: Domain/QuoteLifecycle.md
- name: Pricing and Discounting
href: Domain/PricingAndDiscounting.md
[Related Topic](../RelatedTopic.md)Before marking documentation as complete, verify:
Documentation/QualityGates/Inconsistency-*.mdDocumentation/QualityGates/Clarification-*.mdtoc.yml entry for this doc❌ DON'T:
✅ DO:
Inconsistency-*.md files when you find contradictionsClarification-*.md files when answers are unclear