Cursor-rules-java 042-planning-openspec
Use when you need to take a `*.plan.md` file and turn it into OpenSpec change artifacts by validating OpenSpec installation, initializing or reusing an OpenSpec project, and creating or updating a change proposal/spec/tasks flow. Includes a concrete workflow based on `examples/requirements-examples/problem1/requirements/openspec`. Part of the skills-for-java project
install
source · Clone the upstream repo
git clone https://github.com/jabrena/cursor-rules-java
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jabrena/cursor-rules-java "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/042-planning-openspec" ~/.claude/skills/jabrena-cursor-rules-java-042-planning-openspec && rm -rf "$T"
manifest:
skills/042-planning-openspec/SKILL.mdsource content
OpenSpec Change Planning from *.plan.md
*.plan.mdGuide the process of turning an implementation plan (
*.plan.md) into an OpenSpec change workflow. This is an interactive SKILL. It verifies CLI availability, initializes OpenSpec when needed, and then creates or updates a change with proposal, design, tasks, and spec deltas.
What is covered in this Skill?
- Input analysis from
(scope, change-id candidate, affected capabilities)*.plan.md - Installation and availability checks for OpenSpec CLI
- Recommended installation paths on macOS, Linux, and Windows using npm
- OpenSpec project bootstrapping with
openspec init - Existing-project workflow using
,openspec list
,openspec statusopenspec show - Validation and completion flow with
andopenspec validate --allopenspec archive - Example-root workflow at
examples/requirements-examples/problem1/requirements/openspec
Constraints
Always execute OpenSpec commands from the parent directory that contains the
openspec/ folder. Do not invent requirements not present in the *.plan.md; convert plan intent into explicit OpenSpec change artifacts.
- MUST: Start by reading and summarizing the provided
*.plan.md - MUST: Check CLI availability with
before any OpenSpec operationopenspec --version - MUST: If OpenSpec is missing, provide macOS, Linux, and Windows install guidance via npm command
- MUST: Offer
when no OpenSpec project existsopenspec init - MUST: When creating a new OpenSpec project, run plain
only (do not useopenspec init
options)--tools ... - MUST: Use a stable change-id (for example:
) for status/show/archive commandsadd-dark-mode - MUST: Run
before archivingopenspec validate --all - MUST: When a feature/change is completed (all checklist tasks done), guide the user to archive it (for example:
)openspec archive us-001-god-analysis-api - MUST: In
, generate a single OpenSpec checklist (tasks.md
/- [ ]
) only; do not add a second table-based task list- [x] - MUST: Explain whether the workflow creates a new change or updates an existing one
When to use this skill
- Convert
into OpenSpec*.plan.md - Add change proposal from plan
- Update existing OpenSpec project
- Initialize OpenSpec in requirements folder
- Validate and archive OpenSpec change
Reference
For detailed guidance, examples, and constraints, see references/042-planning-openspec.md.