npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fancyliu/speclite

v0.1.1

Published

SpecLite local-first CLI control plane.

Readme

SpecLite

SpecLite 是面向 AI IDE 时代的 local-first CLI control plane,用于把一套成熟的、适用于企业级生产项目的、参考敏捷研发流程的 AI Coding 落地方法论安装到本地项目和多个 AI IDE 中。

SpecLite 的 assets/source/speclite/ 不是普通文档集合,而是一整套开箱即用的方法论源包:它包含核心交互能力、SDLC 分阶段 workflow skills、评审链路、运行时辅助脚本、默认 customization 示例,以及用于维护 canonical skill 源定义的支撑工具。SpecLite CLI 的职责,是把这些方法论资产转化为项目内可发现、可配置、可验证、可更新、可审查的本地执行系统。

Audience(目标读者)

  • 使用者:希望在项目中直接安装并使用 SpecLite AI Coding 方法论的团队成员。
  • 开发者:需要理解 CLI、runtime、manifest、validation 和 IDE adapter 的实现者。
  • 维护者:负责维护 canonical skills、fixtures、发布包和企业落地质量的人。

What SpecLite Provides(SpecLite 提供什么)

SpecLite 提供的不是单个 prompt、单份 README 或零散 skill 文件,而是一套可治理的 AI Coding 方法论运行结构:

  • core-skills/:多个 workflow 共享的基础能力,例如帮助、头脑风暴、文档索引、文档拆分和评审辅助。
  • sdlc-skills/:按研发生命周期组织的方法论能力,覆盖分析、计划、方案设计、实现和 DevOps 发布阶段。
  • support-skills/:用于创建、迁移、检查和对齐 SpecLite canonical skill 源定义。
  • scripts/:共享 runtime helper scripts,例如 config/customization resolver。
  • custom/:团队级和用户级 customization 示例。

安装后,目标项目通过本地 IDE skill directories 和 _speclite runtime 消费这些能力。

Runtime Model(运行模型)

SpecLite 将方法论源包安装为项目内的本地运行系统:

flowchart LR
  Assets["assets/source/speclite methodology package"] --> CLI["speclite CLI"]
  CLI --> Runtime["_speclite metadata/control hub"]
  CLI --> Claude[".claude/skills execution plane"]
  CLI --> Agents[".agents/skills execution plane"]
  Runtime --> Output["_speclite-output artifact repository"]
  Claude --> Workflows["AI Coding workflows"]
  Agents --> Workflows
  Workflows --> Output

核心边界:

  • _speclite/ 是 metadata/control hub。
  • .claude/skills/.agents/skills/ 是 IDE execution plane。
  • _speclite-output/ 是 workflow artifacts repository。
  • assets/source/speclite/ 是 canonical methodology package source,不应被写成目标项目 runtime 依赖路径。

Requirements(环境要求)

  • Node.js >=22
  • 推荐 Node.js 24 LTS
  • local-first filesystem project
  • MVP 不依赖数据库、后台服务或浏览器 UI

Quick Start(快速开始)

详细安装和首次使用指南见 docs/quick-start.md

通过 npm 使用已发布包:

npm install -g @fancyliu/speclite
speclite --version
speclite install /path/to/project
speclite status /path/to/project
speclite validate /path/to/project

无需全局安装时,可以用 npx 一次性运行:

npx @fancyliu/speclite@latest status /path/to/project

开发仓库内运行:

npm install
npm run build
npm run dev -- install /path/to/project
npm run dev -- status /path/to/project
npm run dev -- validate /path/to/project

机器可读输出:

speclite status /path/to/project --json
speclite validate /path/to/project --json

CLI Commands(命令)

| Command | Purpose | |---|---| | speclite install [target-directory] | 执行安装 preflight,并在授权后写入 SpecLite runtime、skill mirrors、manifest/index 和输出目录。 | | speclite status [target-directory] | 查看本地 SpecLite installed-state summary。 | | speclite validate [target-directory] | 校验 installed-state、runtime path、manifest/index 和 IDE mirrors。 | | speclite update [target-directory] | 生成或执行安全更新计划。 | | speclite update --repair [target-directory] | 显式修复可安全恢复的 installer-owned canonical 内容。 | | speclite resolve config | Runtime support command,用于解析项目 config。 | | speclite resolve customization | Runtime support command,用于解析 skill customization。 |

resolve 属于 runtime support API surface,主要服务已安装 skills,不是普通使用者的首要命令入口。

Safety Model(安全模型)

SpecLite 的默认策略是保守写入、可审查变更:

  • --dry-run 只生成 plan,不写文件。
  • --yes 只表示 command-level write authorization,不表示接受 unverified source 或 policy rejection。
  • Human-owned custom files 和 workflow-owned artifacts 不会被静默覆盖。
  • Installer-owned files 更新前必须通过 ownership manifest 和 hash comparison。
  • installupdaterepair 写入前必须获取 _speclite/.lock project operation lock。
  • Public report paths 使用 project-relative POSIX-style paths。

Architecture Notes(设计说明)

SpecLite 是 CLI API + file-contract API,不是 REST、GraphQL 或 hosted service。

核心设计决策:

  • Runtime Baseline:Node.js 22 LTS 是最低支持版本,Node.js 24 LTS 是推荐版本。
  • CLI Foundation:TypeScript + commander。
  • Storage Model:filesystem-first,MVP 不使用数据库。
  • Runtime Boundaries:_speclite 是 control hub,IDE skill directories 是 execution plane,_speclite-output 是 artifact repository。
  • Validation Model:statusvalidate、JSON output 和 fixture assertions 共享 deterministic issue model。
  • Update Safety:写入前执行 ownership manifest + hash comparison。

Developer Workflow(开发者工作流)

npm install
npm run build
npm test
npm run release:check

| Script | Purpose | |---|---| | npm run build | 使用 tsup 构建 CLI。 | | npm run dev | 通过 tsx src/bin/speclite.ts 运行开发入口。 | | npm test | 运行 Vitest 测试。 | | npm run release:verify | 构建并执行 packaging check,不运行测试。 | | npm run release:check | 构建、运行 Vitest 并执行 packaging check,作为 publish 前门禁。 |

Maintainer Notes(维护者说明)

维护 SpecLite 时,请区分三类内容:

  • Canonical methodology package source:assets/source/speclite/
  • CLI implementation:src/
  • Planning and implementation artifacts:_bmad-output/

涉及 skill package、manifest、fixture、runtime path、validation issue model 或 release packaging 的变更,应同步检查对应 specs、fixtures 和 packaging verification。