Plan
spec
Turn a plain request into a detailed specification captured as a project issue with testable acceptance criteria, or rewrite an existing issue's specification.
Plan
What it does
/cl-dev:spec turns a plain-language request into a detailed specification, captured as an issue in your project (GitHub or Linear, depending on how the repository is configured). It works through a short interview with you to sharpen the goal, scope, and constraints, then writes the result as a well-formed issue with testable acceptance criteria: the concrete, checkable outcomes that define "done."
The output is a shared source of truth. Everyone who picks up the work later, including the other cl-dev skills in the workflow, reads from the same spec.
A standalone spec session with no originating issue is attributed to the issue C it creates, including the preparation before C exists. If you are already working on A and spec a follow-up B in that session, the session's cost and activity stay with A. Re-specifying A also keeps A. To begin work on B after specifying it, start a new session and use claim-issue or set-context there. See session attribution in the workflow.
When to use it
Reach for /cl-dev:spec at the very start of a piece of work, before any code is written. Use it when you have a new feature, an enhancement, a bug, or a refactor in mind but no issue that captures it clearly yet, or when an existing issue's specification needs rewriting.
It's the first step in the CodeLantern workflow:
spec → claim-issue → design → plan → implement → review → consolidate → finalizeOnce the spec exists as an issue, the natural next step is /cl-dev:claim-issue, which sets up the branch and draft pull request so work can begin.
How to invoke it
Run the command inside your coding agent, in the target repository:
/cl-dev:specYou can start it bare and describe the request when prompted, or lead with a one-line description of what you want, for example "add a rate limit to the public API." Either way, the skill interviews you to fill in the gaps before writing the issue.
To rewrite an existing issue instead of creating one, name it: for example "respecify #12 so the export includes archived widgets." See Respecify an existing issue.
A couple of things to have in place first:
- The repository is set up with CodeLantern, connected to your organization and configured for a project manager (GitHub or Linear). If you haven't done this yet, run /cl-dev:cl-init.
- You know roughly what you want. The skill sharpens a request into a spec; it doesn't decide what to build for you.
Respecify an existing issue
When you ask to respecify a named issue, the skill reads that issue and rewrites its specification in place instead of creating a new one. It still runs the full interview, using the existing issue to suggest answers.
If your request could mean either an existing issue or a new one, for example when you mention an issue without saying what to do with it, or you're on an issue's branch, the skill asks which you mean before the interview starts. A request for separate work always creates a new issue and leaves the original unchanged.
Nothing is saved until you approve the complete draft, which says whether it will create an issue or update one. If you ask for a change, the skill shows the revised draft for approval again. When you approve a respecification, it updates only the issue's title and body and adds the cl-spec-complete label. Assignees, size, priority, state, and other labels stay as they were. If the issue can't be read or the update fails, the skill tells you and stops rather than creating a different issue.
Plan
Related skills
Other skills in the same phase of the workflow.
| approve-plan | Approve a drafted implementation plan so implementation can begin. |
| claim-issue | Claim a spec'd issue by creating its feature branch, a placeholder plan, and a draft pull request. |
| create-impl-plan | Turn a claimed issue into a phased implementation plan an agent can execute. |
| design-solution | Shape and pressure-test a solution design for a larger issue before you commit to a plan. |
| grill | Pressure-test a spec, design, or idea to surface hidden assumptions, open questions, and fuzzy language before they cost you. |
| reduce-complexity | Run an interactive complexity review of a design, plan, or code to find the parts carrying too much weight and simplify them. |
| review-design | Get a written structural, security, and privacy review of a design or plan before you build. |