openspec-ff-change

22
0
Source

快速创建实现所需的所有产出物。当用户想要快速创建实现所需的所有产出物,而不是逐个创建时使用。

Install

mkdir -p .claude/skills/openspec-ff-change && curl -L -o skill.zip "https://mcp.directory/api/skills/download/1097" && unzip -o skill.zip -d .claude/skills/openspec-ff-change && rm skill.zip

Installs to .claude/skills/openspec-ff-change

About this skill

快速完成产出物创建 - 一次性生成开始实现所需的一切。

输入:用户的请求应包含变更名称(kebab-case)或对他们想要构建内容的描述。

步骤

  1. 如果没有提供明确的输入,询问他们想要构建什么

    使用 AskUserQuestion tool(开放式,无预设选项)询问:

    "您想要处理什么变更?请描述您想要构建或修复的内容。"

    根据他们的描述,推导出一个 kebab-case 名称(例如:"add user authentication" → add-user-auth)。

    重要提示:在不了解用户想要构建什么的情况下,请勿继续。

  2. 创建变更目录

    openspec-cn new change "<name>"
    

    这将在 openspec/changes/<name>/ 创建一个脚手架变更。

  3. 获取产出物构建顺序

    openspec-cn status --change "<name>" --json
    

    解析 JSON 以获取:

    • applyRequires: 实现前所需的产出物 ID 数组(例如:["tasks"]
    • artifacts: 所有产出物及其状态和依赖项的列表
  4. 按顺序创建产出物直到准备好应用

    使用 TodoWrite tool 跟踪产出物的进度。

    按依赖顺序循环遍历产出物(没有待处理依赖项的产出物优先):

    a. 对于每个 ready(依赖项已满足)的产出物

    • 获取指令:
      openspec-cn instructions <artifact-id> --change "<name>" --json
      
    • The instructions JSON includes:
      • context: Project background (constraints for you - do NOT include in output)
      • rules: Artifact-specific rules (constraints for you - do NOT include in output)
      • template: The structure to use for your output file
      • instruction: Schema-specific guidance for this artifact type
      • outputPath: Where to write the artifact
      • dependencies: Completed artifacts to read for context
    • Read any completed dependency files for context
    • Create the artifact file using template as the structure
    • Apply context and rules as constraints - but do NOT copy them into the file
    • Show brief progress: "✓ Created <artifact-id>"

    b. 继续直到所有 applyRequires 产出物完成

    • 创建每个产出物后,重新运行 openspec-cn status --change "<name>" --json
    • 检查 applyRequires 中的每个产出物 ID 在 artifacts 数组中是否具有 status: "done"
    • 当所有 applyRequires 产出物完成时停止

    c. 如果产出物需要用户输入(上下文不清楚):

    • 使用 AskUserQuestion tool 进行澄清
    • 然后继续创建
  5. 显示最终状态

    openspec-cn status --change "<name>"
    

输出

完成所有产出物后,总结:

  • 变更名称和位置
  • 已创建产出物的列表及简要描述
  • 准备就绪:"所有产出物已创建!准备好实现。"
  • 提示:"运行 /opsx:apply 或要求我实现以开始处理任务。"

产出物创建指南

  • Follow the instruction field from openspec instructions for each artifact type
  • The schema defines what each artifact should contain - follow it
  • Read dependency artifacts for context before creating new ones
  • Use template as the structure for your output file - fill in its sections
  • IMPORTANT: context and rules are constraints for YOU, not content for the file
    • Do NOT copy <context>, <rules>, <project_context> blocks into the artifact
    • These guide what you write, but should never appear in the output

护栏

  • 创建实现所需的所有产出物(由 Schema 的 apply.requires 定义)
  • 在创建新产出物之前始终阅读依赖产出物
  • 如果上下文极其不清楚,询问用户 - 但倾向于做出合理的决定以保持势头
  • 如果同名变更已存在,建议继续处理该变更
  • 在继续下一个之前,验证写入后每个产出物文件是否存在

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

282789

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

206415

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

201286

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

211231

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

169197

rust-coding-skill

UtakataKyosui

Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.

165173

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.