| name | specification-engine |
| description | Generates specifications using SpecKit before implementation tasks. |
| command-dispatch | tool |
| command-tool | speckit |
Specification Engine
Overview
This skill handles project initialization and specification creation using SpecKit.
Execution Flow
Step 1: Check if directory exists
Step 2: New directory?
IF NEW DIRECTORY:
exec({ command: "mkdir -p /path/to/project" });
speckit({
command: "init",
directory: "/path/to/project",
force: true,
});
IF EXISTING DIRECTORY:
speckit({
command: "init",
directory: "/path/to/project",
force: true,
});
Step 3: Speckit Commands (if project already initialized)
Use these slash commands with OpenCode:
speckit.specify → Create SPEC.md
speckit.plan → Create implementation plan
speckit.tasks → Generate actionable tasks
speckit.implement → Execute implementation
Step 4: Interactive OpenCode (optional)
To interact with OpenCode TUI directly:
opencode;
Important Rules
- NEW project → always run
speckit init
- EXISTING project with SPEC.md → skip to speckit commands
- Want to interact manually? → use
opencode command (not a tool)
Tools Available
| Tool | When to Use |
|---|
exec | Create directory with mkdir |
speckit | Initialize SpecKit (speckit init) |
opencode | For TUI interaction, type "opencode" |
Forbidden Tools
- write, edit (use opencode instead)