AgentSkillsCN

creating-openspec-change

创建新的 OpenSpec 变更目录与初始结构。适用于启动新功能、修复缺陷或进行重构时使用。

SKILL.md
--- frontmatter
name: creating-openspec-change
description: Creates a new OpenSpec change directory and initial structure. Use when starting a new feature, bugfix, or refactor.

Creating OpenSpec Change

Purpose

Initializes a new change proposal directory with the standard OpenSpec structure, enabling spec-driven development for a new task.

1. Safety & Verification

  1. Check Help: Run cd docs && npx @fission-ai/openspec@latest new change --help.
  2. Naming: Use a slug-style name (e.g., add-dark-mode).

2. Common Workflows

Workflow: Start a New Change

  1. Run cd docs && npx @fission-ai/openspec@latest new change <name>.
  2. This creates a directory under docs/openspec/changes/<name>/.

3. Error Handling

  • If the directory already exists: Choose a different name or manually manage the existing directory.

4. Examples

Example: Create a New Feature Proposal

Command: cd docs && npx @fission-ai/openspec@latest new change user-auth Expected Output: A new directory docs/openspec/changes/user-auth/ is created with initial template files.