← 返回 Skills 市场
marcoleongdev

LightSpec

作者 Marco Leong · GitHub ↗ · v0.6.0 · MIT-0
cross-platform ✓ 安全检测通过
136
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lightspec
功能描述
AI-native spec-driven development tool. Create, manage, and apply specifications with your agent.
使用说明 (SKILL.md)

LightSpec Skill

LightSpec 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

Installation

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).

Verification

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.

Updating

To update LightSpec to the latest version:

npm update -g lightspec

After updating, verify again with lightspec --version.

Uninstalling

To remove LightSpec completely:

npm uninstall -g lightspec

Basic Usage

All LightSpec commands follow the pattern:

lightspec [command] [options]

Initialize a Project

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.

Create a New Feature Spec

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/\x3Cchange-name>/spec.md).

List Existing Changes or Specs

lightspec list          # list active changes
lightspec list --specs  # list all specs

View Interactive Dashboard

lightspec view

The agent can run this to get a high‑level overview of all changes and specs.

Validate a Spec or Change

lightspec validate [change-name]

Checks for completeness and consistency.

Apply a Change (Implement)

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).

Show Details of a Change or Spec

lightspec show [change-name]

Workflow Example

  1. Initialize project (if not already done)
lightspec init
  1. Create a change proposal
lightspec change "Add profile search filters by role and team"
  1. Read the generated spec The agent can use read_file to inspect lightspec/changes/add-profile-search-filters/spec.md.

  2. Ask the user what’s missing The agent can summarise the spec and point out gaps (e.g., missing acceptance criteria).

  3. Validate the spec

lightspec validate add-profile-search-filters
  1. Implement after approval
lightspec apply add-profile-search-filters

Tips for the Agent

  • Always confirm with the user before running commands that change files (e.g., apply, init in an existing project).
  • Use lightspec --help or lightspec help [command] if you need more details about a subcommand.
  • LightSpec respects .lightspec/config.json for custom paths – the agent can read that to understand project‑specific settings.
  • Refer to the official LightSpec documentation for the most updated information, guidence and how to guide the user.

ClawHub Installation

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.

安全使用建议
This skill appears coherent for managing a Node-based CLI. Before installing or allowing the agent to run commands: 1) Verify the npm package and GitHub repository (publisher, recent commits, reputation). 2) Prefer non-global installs (npx or local project install) or run in a sandbox/container if you want to avoid global changes and privilege elevation. 3) Be cautious because 'npm install -g' can run install scripts from the package — inspect the package or its source before installing. 4) Require explicit user confirmation before the agent runs commands that change files (init, apply, uninstall). 5) If you want higher assurance, ask the agent to show the exact commands it will run and to display the lightspec package source or installation log before proceeding.
功能分析
Type: OpenClaw Skill Name: lightspec Version: 0.6.0 The LightSpec skill bundle provides instructions for an AI agent to install and use the LightSpec CLI tool for spec-driven development. It includes standard commands for global installation via npm, project initialization, and specification management (e.g., lightspec init, change, apply). The instructions are transparent, align with the stated purpose, and explicitly advise the agent to seek user confirmation before modifying files.
能力评估
Purpose & Capability
Name/description (spec-driven CLI) align with the instructions: the doc instructs installing a Node.js-based CLI via npm and running lightspec commands. Required capabilities are limited to Node/npm and reading project files (e.g., .lightspec/config.json, AGENTS.md), which are appropriate for this purpose.
Instruction Scope
SKILL.md tells the agent to install the CLI, verify it, run commands (init, change, validate, apply, etc.), and read project files. It does not instruct reading unrelated system files, harvesting env vars, or exfiltrating data. It explicitly advises confirming with the user before running file-changing commands, which is appropriate.
Install Mechanism
This is an instruction-only skill (no install spec). It recommends 'npm install -g lightspec' which is a standard install path for a CLI but involves pulling code from the npm registry and may execute package install scripts and require elevated privileges on some systems. That is expected for a CLI but is a moderate operational risk to be aware of.
Credentials
The skill requests no environment variables or external credentials. It does reference local configuration (.lightspec/config.json) and project files (lightspec/changes/...), which is proportional to a project-scoped CLI tool.
Persistence & Privilege
always is false and autonomous invocation is allowed (platform default). The skill does not request persistent or cross-skill configuration changes in its instructions and does not ask to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lightspec
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lightspec 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.6.0
- Initial release of the LightSpec skill for OpenClaw agents. - Guides agents in installing, verifying, updating, uninstalling, and using the LightSpec CLI tool. - Provides workflow examples including initialization, spec creation, validation, and implementation. - Includes best practices and tips for agent interaction with LightSpec. - Offers ClawHub installation instructions for easy setup.
元数据
Slug lightspec
版本 0.6.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

LightSpec 是什么?

AI-native spec-driven development tool. Create, manage, and apply specifications with your agent. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 136 次。

如何安装 LightSpec?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lightspec」即可一键安装,无需额外配置。

LightSpec 是免费的吗?

是的,LightSpec 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

LightSpec 支持哪些平台?

LightSpec 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 LightSpec?

由 Marco Leong(@marcoleongdev)开发并维护,当前版本 v0.6.0。

💬 留言讨论