@harnspec/cli
v0.1.6
Published
Specification-driven development made simple
Maintainers
Readme
HarnSpec
[!IMPORTANT] This project is a fork of codervisor/lean-spec. Following the fork, the Commons Clause license condition was added to the original MIT license to ensure the project's sustainability while remaining open for community use.
Ship faster with higher quality. Lean specs that both humans and AI understand.
HarnSpec brings agile principles to SDD (Spec-Driven Development)—small, focused documents (<2,000 tokens) that keep you and your AI aligned.
Quick Start
# suggest :
# install and init any of your project
npm install -g harnspec && harnspec init -yManage your project:
harnspec board # Kanban view
harnspec stats # Project metrics
harnspec ui # auto Web UI for multi projectNext: Your First Spec with AI (10 min tutorial)
Why HarnSpec?
High velocity + High quality. Other SDD frameworks add process overhead (multi-step workflows, rigid templates). Vibe coding is fast but chaotic (no shared understanding). HarnSpec hits the sweet spot:
- Fast iteration - Living documents that grow with your code
- AI performance - Small specs = better AI output (context rot is real)
- Always current - Lightweight enough that you actually update them
📖 Compare with Spec Kit, OpenSpec, Kiro →
AI Integration
HarnSpec is designed to be used with any AI coding assistant (Claude Code, Cursor, Windsurf, GitHub Copilot, Aider, etc.) via the CLI + Agent Skills approach.
Teach your AI assistant the methodology using:
harnspec skill installAI agents can then use harnspec CLI tools directly to manage your project board and specs.
Agent Skills
Teach your AI assistant the Spec-Driven Development methodology:
# Recommended (init auto inject)
harnspec init -y
#Or
harnspec skill installThis installs the harnspec skill which teaches AI agents:
- When to create specs vs. implement directly
- How to discover existing specs before creating new ones
- Best practices for context economy and progressive disclosure
- Complete SDD workflow (Discover → Design → Implement → Validate)
Compatible with: Claude Code, Cursor, Windsurf, GitHub Copilot, and other Agent Skills compatible tools.
Features
| Feature | Description |
| ------------------- | ------------------------------------------------------------------------------------------------- |
| 📊 Kanban Board | harnspec board - visual project tracking |
| 🔍 Smart Search | harnspec search - find specs by content or metadata |
| 🔗 Dependencies | Track spec relationships with depends_on and related |
| 🎨 Web UI | harnspec ui - browser-based dashboard |
| 📈 Project Stats | harnspec stats - health metrics and bottleneck detection |
| 🤖 AI-Native | CLI-first with Agent Skills |
| 🖥️ Desktop App | Desktop app repo: harnspec/harnspec-desktop |
Requirements
Runtime
- Node.js:
>= 24.0.0 - pnpm:
>= 10.0.0(preferred package manager)
Development
- Node.js:
>= 24.0.0 - Rust:
>= 1.70(for building CLI/HTTP binaries) - pnpm:
>= 10.0.0
Quick Check:
node --version # Should be v24.0.0 or higher
pnpm --version # Should be 10.0.0 or higher
rustc --version # Should be 1.70 or higher (dev only)Desktop App
The desktop application has moved to a dedicated repository:
Use that repository for desktop development, CI, and release workflows.
Developer Workflow
Common development tasks using pnpm:
# Development
pnpm install # Install dependencies
pnpm build # Build all packages
pnpm dev # Start dev mode (UI + Core)
pnpm dev:web # UI only
pnpm dev:cli # CLI only
# Testing
pnpm test # Run all tests
pnpm test:ui # Tests with UI
pnpm test:coverage # Coverage report
pnpm typecheck # Type check all packages
# Rust
pnpm rust:build # Build Rust packages (release)
pnpm rust:build:dev # Build Rust (dev, faster)
pnpm rust:test # Run Rust tests
pnpm rust:check # Quick Rust check
pnpm rust:clippy # Rust linting
pnpm rust:fmt # Format Rust code
# CLI (run locally)
pnpm cli board # Show spec board
pnpm cli list # List specs
pnpm cli create my-feat # Create new spec
pnpm cli validate # Validate specs
# Documentation
pnpm docs:dev # Start docs site
pnpm docs:build # Build docs
# Release
pnpm pre-release # Run all pre-release checks
pnpm prepare-publish # Prepare for npm publish
pnpm restore-packages # Restore after publishSee package.json for all available scripts.
Documentation
📖 Full Documentation · CLI Reference · First Principles · FAQ · 中文文档
Community
💬 Discussions · 🐛 Issues · 🤝 Contributing · 📋 Changelog · 📄 LICENSE
