Openspec propose

From mendix/web-widgets · View interactive version

Openspec propose is an AI agent skill from the GitHub repository mendix/web-widgets. 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.

How to use this skill

Skill file

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.

  1. Create the change directory

```bash

openspec new change "<name>"

```

This creates a scaffolded change at openspec/changes/<name>/ with .openspec.yaml.

  1. Get the artifact build order

```bash

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

```

Parse the JSON to get:

  1. 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):

```bash

openspec instructions <artifact-id> --change "<name>" --json

```

b. Continue until all applyRequires artifacts are complete

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

  1. Show final status

```bash

openspec status --change "<name>"

```

Output

After completing all artifacts, summarize:

Artifact Creation Guidelines

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.