design-init
Initialize new design documentation from templates. Use when creating new design docs, documenting new systems, starting architecture documentation, or setting up design docs for a new module.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Design Documentation Initialization
Creates new design documentation files from templates with proper frontmatter and structure.
Overview
This skill initializes new design documentation files by:
- Reading the design configuration
- Selecting the appropriate template based on category
- Populating frontmatter with current metadata
- Creating the file in the correct module location
- Validating the output
Quick Start
Basic usage:
/design-init effect-type-registry cache-optimization
With explicit category:
/design-init rspress-plugin-api-extractor component-lifecycle --category=architecture
Specify template:
/design-init website deployment --template=default
Parameters
Required
-
module- Module name (must exist in config) -
topic- Topic/filename for the document (kebab-case)
Optional
-
category- Design doc category (default: infer from topic) -
template- Specific template to use (default: auto-select)
Workflow Overview
- Parse Parameters - Extract module, topic, category, template
- Load Configuration - Read config, verify module exists
- Determine Category - Infer from topic or ask user
- Select Template - Category-specific or default
- Populate Frontmatter - Set status, dates, metadata
- Populate Body - Replace template variables
- Determine Path - Construct output path
- Create File - Write to disk
- Report Success - Show summary and next steps
Supporting Documentation
For Detailed Workflow Steps
See instructions.md for:
- Complete step-by-step workflow
- Validation rules before creation
- Special case handling
- Success criteria
Load when: Need detailed implementation guidance or handling edge cases
For Category and Template Selection
See category-templates.md for:
- Category inference patterns and keywords
- Template selection logic
- Template variable replacement
- Title case conversion rules
Load when: Determining which category or template to use for a new doc
For Error Handling
See error-messages.md for:
- All error message formats
- Error handling strategies
- Special case handling (long names, invalid chars, existing files)
- Fix instructions for each error type
Load when: Encountering errors or need to handle edge cases
For Usage Examples
See examples.md for:
- Complete usage scenarios
- Example outputs for different cases
- Multi-step walkthroughs
- Success report format
Load when: User wants to see concrete examples or needs clarification
Integration
Use this skill in combination with:
-
/design-validate- Validate after creation -
/design-update- Update newly created docs -
/design-review- Review doc quality
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!