AGENT SKILL

openspec-propose

Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.

License 许可
MIT
最近更新
2026-11-05
Stars
★ 7
Forks
4

01 前言 Front Matter

name
openspec-propose
license
MIT
metadata
{ "author": "openspec", "version": "1.0", "generatedBy": "1.4.1" }
description
Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they want to build and get a complete proposal with design, specs, and tasks ready for implementation.
compatibility
Requires openspec CLI.

03 SKILL.md 正文

Propose a new change - create the change and generate all artifacts in one step.

I'll create a change with artifacts:

When ready to implement, run /opsx:apply


Input: The user's request should include a change name (kebab-case) OR a description of what they want to build.

Steps

  1. If no clear input provided, ask what they want to build

    Use the AskUserQuestion tool (open-ended, no preset options) to ask:

    "What change do you want to work on? Describe what you want to build or fix."

    From their description, derive a kebab-case name (e.g., "add user authentication" → add-user-auth).

    IMPORTANT: Do NOT proceed without understanding what the user wants to build.

  2. Create the change directory

    openspec new change "<name>"
    

    This creates a scaffolded change in the planning home resolved by the CLI with .openspec.yaml.

  3. Get the artifact build order

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

    Parse the JSON to get:

    • applyRequires: array of artifact IDs needed before implementation (e.g., ["tasks"])
    • artifacts: list of all artifacts with their status and dependencies
    • planningHome, changeRoot, artifactPaths, and actionContext: path and scope context. Use these instead of assuming repo-local paths.
  4. Create artifacts in sequence until apply-ready

    Use the TodoWrite tool to track progress through the artifacts.

    Loop through artifacts in dependency order (artifacts with no pending dependencies first):

    a. For each artifact that is ready (dependencies satisfied):

    • Get instructions:
      openspec 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
      • resolvedOutputPath: Resolved path or pattern 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 and write it to resolvedOutputPath
    • Apply context and rules as constraints - but do NOT copy them into the file
    • Show brief progress: "Created <artifact-id>"

    b. Continue until all applyRequires artifacts are complete

    • After creating each artifact, re-run openspec status --change "<name>" --json
    • Check if every artifact ID in applyRequires has status: "done" in the artifacts array
    • Stop when all applyRequires artifacts are done

    c. If an artifact requires user input (unclear context):

    • Use AskUserQuestion tool to clarify
    • Then continue with creation
  5. Show final status

    openspec status --change "<name>"
    

Output

After completing all artifacts, summarize:

  • Change name and location
  • List of artifacts created with brief descriptions
  • What's ready: "All artifacts created! Ready for implementation."
  • Prompt: "Run /opsx:apply or ask me to implement to start working on the tasks."

Artifact Creation Guidelines

  • 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

Guardrails

  • Create ALL artifacts needed for implementation (as defined by schema's apply.requires)
  • Always read dependency artifacts before creating a new one
  • If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
  • If a change with that name already exists, ask if user wants to continue it or create a new one
  • Verify each artifact file exists after writing before proceeding to next

04 同仓库更多 Skills

NeuralNexusPro
NeuralNexusPro/startupOS

错题梳理与强化练习

根据学生上传的试卷照片,自动识别错题、按题型分类分析薄弱环节,并生成包含原错题和同类型变式题的 Word 练习卷。适用于考试后错题梳理、薄弱知识点巩固、针对性复习、家长帮孩子整理错题、老师为学生生成针对性练习等场景。当用户上传试卷图片、提到错题整理、考试复习、薄弱环节分析、错题卷、练习卷、试卷批改、错题本等关键词时,都应使用此技能。

★ 7
NeuralNexusPro
NeuralNexusPro/startupOS

task-manager

任务管理技能,帮助用户通过对话式界面管理项目中的任务

★ 7
NeuralNexusPro
NeuralNexusPro/startupOS

solution-design

AI Native 解决方案架构师。通过对话式引导将业务本体转化为 Agent 协作架构,推荐建模维度(事/人),规划 Agent 职责与协作关系。Use when user says "设计方案", "规划 Agent 架构", "开始解决方案设计", "生成事的维度方案", or "基于vX.X调整".

★ 7
NeuralNexusPro
NeuralNexusPro/startupOS

skill-creator-app

创建、迭代和优化 OriginOS 技能。当用户想要从零创建技能、改进现有技能、运行评测验证技能效果、或优化技能描述以提升触发准确率时触发。

★ 7
NeuralNexusPro
NeuralNexusPro/startupOS

搜索并安装市场技能

自动根据用户输入的技能关键词或分类,从技能市场搜索匹配项,分析来源平台,下载并安装。

★ 7
NeuralNexusPro
NeuralNexusPro/startupOS

印章盖章

根据用户上传的公司印章图片和 Word 文档,自动去除印章背景生成透明底图,并将印章图片以"浮于文字上方"的布局嵌入到 Word 文档的指定盖章位置。当用户提到盖章、印章、公司章、公章、签章、印章透明、去印章背景、Word盖章、合同盖章等场景时,请使用此技能。

★ 7