agentleFS
GitruckGitruck/cli/.agents/skills/source-command-opsx-propose/SKILL.md

source-command-opsx-propose

Skill968 starsChanged 14 days agoMITView on GitHub

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

4 other projects use a version of this, 4 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 12 are common, 0 are distinctive, and 9 are very specific to this project.

  • 12

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user asks to run the migrated source command opsx-propose.

    line 10
  2. Common:

    When ready to implement, run /opsx:apply

    line 21
  3. Common:

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

    line 31
  4. Common:

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

    line 36
  5. Common:

    Use the TodoWrite tool to track progress through the artifacts.

    line 54
  6. Common:

    Read any completed dependency files for context

    line 70
  7. Very specific:

    Create the artifact file using template as the structure

    line 71
  8. Very specific:

    After creating each artifact, re-run openspec status --change "<name>" --json

    line 76
  9. Very specific:

    Check if every artifact ID in applyRequires has status: "done" in the artifacts array

    line 77
  10. Very specific:

    Stop when all applyRequires artifacts are done

    line 78
  11. Common:

    Use AskUserQuestion tool to clarify

    line 81
  12. Common:

    After completing all artifacts, summarize:

    line 91
  13. Very specific:

    Follow the instruction field from openspec instructions for each artifact type

    line 99
  14. Common:

    Read dependency artifacts for context before creating new ones

    line 101
  15. Very specific:

    Use template as the structure for your output file - fill in its sections

    line 102
  16. Very specific:

    Do NOT copy <context>, <rules>, <project_context> blocks into the artifact

    line 104
  17. Very specific:

    Create ALL artifacts needed for implementation (as defined by schema's apply.requires)

    line 108
  18. Common:

    Always read dependency artifacts before creating a new one

    line 109
  19. Common:

    If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum

    line 110
  20. Common:

    If a change with that name already exists, ask if user wants to continue it or create a new one

    line 111
  21. Common:

    Verify each artifact file exists after writing before proceeding to next

    line 112

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

source-command-opsx-propose

Use this skill when the user asks to run the migrated source command opsx-propose.

Command Template

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

I'll create a change with artifacts:

  • proposal.md (what & why)
  • design.md (how)
  • tasks.md (implementation steps)

When ready to implement, run /opsx:apply


Input: The argument after /opsx:propose is the change name (kebab-case), OR a description of what the user wants to build.

Steps

  1. If no 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 at openspec/changes/<name>/ 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
  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
      • 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. 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 to start implementing."

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.