Install
openclaw skills install lightspecAI-native spec-driven development tool. Create, manage, and apply specifications with your agent.
openclaw skills install lightspecLightSpec is a CLI tool that brings spec‑driven development to any AI‑assisted workflow. It helps you create feature specifications, track changes, and implement code based on those specs. This skill teaches your OpenClaw agent how to install, verify, update, uninstall, and use LightSpec effectively.
For more details on LightSpec, visit the Lightspec repository
LightSpec requires Node.js (v18 or later). The agent can install it globally via npm:
npm install -g lightspec
If Node.js is not present, the agent should first install Node.js (platform‑specific instructions can be provided if needed).
To confirm LightSpec is installed correctly, run:
lightspec --version
The agent should expect a version number like 1.2.3. If the command fails, installation should be retried or the user notified.
To update LightSpec to the latest version:
npm update -g lightspec
After updating, verify again with lightspec --version.
To remove LightSpec completely:
npm uninstall -g lightspec
All LightSpec commands follow the pattern:
lightspec [command] [options]
Run inside a project directory to set up LightSpec:
lightspec init
This creates a lightspec/ folder and injects instructions into AGENTS.md (if present). The agent can then use the generated structure.
lightspec change "User authentication"
Or using the spec subcommand (depending on version). The agent should inspect the output to see where the spec file was created (usually lightspec/changes/<change-name>/spec.md).
lightspec list # list active changes
lightspec list --specs # list all specs
lightspec view
The agent can run this to get a high‑level overview of all changes and specs.
lightspec validate [change-name]
Checks for completeness and consistency.
After a spec is approved, the agent can apply it to the codebase:
lightspec apply [change-name]
This command generates code or updates files based on the spec (implementation details depend on the project’s configuration).
lightspec show [change-name]
lightspec init
lightspec change "Add profile search filters by role and team"
Read the generated spec
The agent can use read_file to inspect lightspec/changes/add-profile-search-filters/spec.md.
Ask the user what’s missing The agent can summarise the spec and point out gaps (e.g., missing acceptance criteria).
Validate the spec
lightspec validate add-profile-search-filters
lightspec apply add-profile-search-filters
apply, init in an existing project).lightspec --help or lightspec help [command] if you need more details about a subcommand..lightspec/config.json for custom paths – the agent can read that to understand project‑specific settings.To install this skill from ClawHub, the user can run:
openclaw install lightspec
Once installed, the agent will automatically load this skill and be able to assist with LightSpec tasks.