technical-spec-design

Transforms product requirements into structured technical specifications. Auto-triggers when requirements are unclear, multiple implementation approaches exist, or component-level/architecture design is needed. Auto-trigger conditions: - User asks "how to implement a feature" - Requests design of technical specs / architecture / APIs / components - Mentions "multiple implementation approaches, need comparison" - Provides PRD / requirements description, wants technical specs - Requirements contain uncertainty or ambiguity NOT applicable for: - Simple bug fixes - Simple features with clear implementation path - Pure coding tasks (no design decisions)

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "technical-spec-design" with this command: npx skills add wjszxli/technical-spec-design

Installation

OpenClaw Setup (Recommended)

OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.

Via ClawdHub (recommended):

clawdhub install technical-spec-design

Manual:

git clone https://github.com/wjszxli/technical-spec-design ~/.openclaw/skills/technical-spec-design

Technical Specification Design Skill

1. Input Contract

Accepts the following input types:

  1. Complete PRD document
  2. Brief requirements description (may be incomplete)
  3. Existing technical specification (for optimization/review)

2. Available Resources

Core Templates

ResourcePurposeUsage Scenario
spec_template.mdMain spec templateStarting new technical specs
component_template.mdComponent designDesigning individual components
requirements_analysis_template.mdRequirements analysisBreaking down requirements

Examples

ResourcePurpose
examples/sample_input.mdSample PRD input
examples/sample_output.mdComplete spec example

Scripts

ScriptPurposeUsage
scripts/generate_spec.pyGenerate spec from templatepython scripts/generate_spec.py --interactive -o my_spec.md
scripts/validate.pyValidate skill structurepython scripts/validate.py

3. Output Contract

Output must be Markdown and strictly include the following structure (may be trimmed by mode):

Standard Structure

  1. Requirements Clarification (if needed)
  2. Requirements Analysis (the trifecta)
  3. Technical Specification Design
  4. Component/Module Design
  5. Technology Selection Comparison (if applicable)
  6. Risk and Boundary Analysis
  7. Pending Questions

4. Mode System (Auto-selected)

Mode A: Requirements Clarification Mode

Trigger conditions:

  • Insufficient input information
  • Key uncertainties exist

Output:

  • Only output "Requirements Clarification Questions"
  • Do not proceed with any design work

Mode B: Lightweight Specification Mode

Trigger conditions:

  • Simple features
  • Implementation path is relatively clear

Output:

  • Simplified requirements analysis
  • Core specification design
  • Brief component breakdown

Mode C: Full Technical Specification Mode (Default)

Trigger conditions:

  • Medium to large requirements
  • Involves architecture/component design/technology selection

Output complete structure


5. Execution Flow (Must Follow Strictly)

Step 1: Requirements Completeness Check

Check for missing information:

  • User goals
  • Requirements context
  • Inputs and outputs
  • Constraints
  • Edge cases

If missing: → Enter Mode A, output only clarification questions


Step 2: Requirements Analysis (The Trifecta)

1. Feature Breakdown

Format: Product requirement → Page/Module → Change points

2. Use Case Analysis

Describe complete user paths (cross-page)

3. Page Operation Specification

Format: Action + Condition + Object + Behavior


Step 3: Technical Specification Design

Include:

  • Architecture breakdown (frontend/backend/services)
  • Data flow design
  • State management
  • Core processes (pseudocode acceptable)

Step 4: Component/Module Design

Requirements:

  • Must drill down to component/module level
  • Clear responsibility boundaries
  • Describe dependencies

Step 5: Technology Selection Comparison (If Multiple Options)

Must use table format:

| Approach | Description | Pros | Cons | Use Cases |


Step 6: Risk and Boundary Analysis

Must include:

  • Edge cases
  • Performance concerns
  • Scalability
  • Exception handling

Step 7: Output Pending Questions

List all issues still requiring product/business confirmation


6. Output Constraints (Mandatory)

Prohibited

  • ❌ Output runnable code (JS / TS / Java / SQL, etc.)
  • ❌ Skip requirements analysis and write specs directly
  • ❌ Make assumptions based on "common cases"
  • ❌ Use vague language (e.g., "maybe", "typically")

Required

  • ✅ Use structured expression
  • ✅ Use pseudocode for process descriptions
  • ✅ All changes must map to components/modules
  • ✅ Explicit boundaries and exceptions

7. Technology Research Guidelines

When multiple approaches exist, must use comparison tables—plain text descriptions are not allowed.


8. Red Flags (Must Stop)

If any of these thoughts occur, must stop and return to the process:

  • "Just write a rough spec first"
  • "Handle it the common way"
  • "Design while coding"
  • "This requirement is simple, no analysis needed"

9. Quick Checklist

Before output, must confirm:

  • Requirements clarified
  • Trifecta complete
  • Component design included
  • Pseudocode used
  • Edge cases analyzed
  • Pending questions documented

10. Examples (Few-shot)

Example 1: Ambiguous Requirements (Mode A)

Input: "Build a comment feature"

Output:

  • Do comments support replies?
  • Is pagination needed?
  • Is liking/upvoting needed?
  • Is moderation required?

Example 2: Simple Requirements (Mode B)

Input: "Show success message after form submission"

Output:

  • Brief feature breakdown
  • State transitions
  • Toast/notification component design

Example 3: Complex Requirements (Mode C)

Input: "Design an admin system with multi-role permissions"

Output: Complete technical specification structure (including technology comparison)


Core Principles (Summary)

The essence of technical specifications: eliminate uncertainty before coding.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

GigaChat (Sber AI) Proxy

Integrate GigaChat (Sber AI) with OpenClaw via gpt2giga proxy

Registry SourceRecently Updated
3600smvlx
General

TencentCloud Video Face Fusion

通过提取两张人脸核心特征并实现自然融合,支持多种风格适配,提升创意互动性和内容传播力,广泛应用于创意营销、娱乐互动和社交分享场景。

Registry SourceRecently Updated
General

TencentCloud Image Face Fusion

图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。

Registry SourceRecently Updated
General

YoudaoNote News

有道云笔记资讯推送:基于收藏笔记分析关注话题,推送最新相关资讯。支持对话触发与每日定时推送(如早上9点)。触发词:资讯推送、设置资讯推送、生成资讯推送。

Registry SourceRecently Updated
1.5K1lephix