detailed-design-parser

atman-33 的头像作者 atman-33

解析detailed-design.md文件以提取和格式化特定文件的更改,以便于复制。当用户希望从detailed-design.md文件生成detailed-design-by-file.md时使用此技能。

📖 中文导读:解析detailed-design.md文件以提取和格式化特定文件的更改,以便于复制。当用户希望从detailed-design.md文件生成detailed-design-by-file.md时使用此技能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: detailed-design-parser description: Parses detailed-design.md files to extract and format file-specific changes for easier copying. Use this skill when the user wants to generate a detailed-design-by-file.md from a detailed-design.md file. metadata: short-description: Parse detailed-design.md for file changes

Detailed Design Parser

This skill helps in parsing detailed-design.md files to extract code changes and format them into a detailed-design-by-file.md file. This is useful for copying file contents to other applications.

Usage

  1. Identify the detailed-design.md file path. It is usually located at openspec/changes/<openspec_id>/detailed-design.md.
  2. Run the parse_design.py script with the path to the detailed-design.md file.

Script

The script scripts/parse_design.py takes the input file path as an argument and generates the output file in the same directory.

python {path}/scripts/parse_design.py <path_to_detailed_design_md>