像檢查程式碼一樣
檢查你的規格說明。
$ specscore spec lint features/apply-discount/README.md:0 [error] oq-section: Open Questions section not found features/apply-discount/README.md:0 [error] index-entries: Child directory not listed in index: refunds features/apply-discount/refunds:0 [error] readme-exists: README.md not found 3 violations found (3 errors) # exit code 1
60 秒安裝。
$ curl -fsSL https://specscore.md/install/get-cli | shPS> powershell -c "irm https://specscore.md/install/get-cli.ps1 | iex"$ brew install specscore/tap/specscore$ go install github.com/specscore/specscore-cli/cmd/specscore@main需要 Go 1.26 或更高版本。 安裝 main 分支的最新開發組建——可能包含尚未納入 正式發布標籤的變更。
要鎖定特定版本,將 @main 替換為標籤(如 @v0.4.2), 或使用 @latest 取得最新的正式發布。
你將獲得什麼。
Lint
驗證結構、元資料、交叉引用和 AC 唯一性。 按需求輸出 pass/fail 報告,附修復建議。
Score
以 0-100 分評估規格完整性。發現遺漏的參與者、 觸發器、錯誤狀態、安全模型和限制。
CI 就緒
出錯時返回非零結束代碼。將 specscore lint整合到你的 CI 管線中,與 ESLint、Prettier 和測試並行執行。
無遙測
CLI 不向外發送任何資料。規格和評分保留在你的機器上。 無需帳號、無需 API 金鑰、不依賴雲端服務。
可攜性
單一可執行檔。支援 macOS、Linux、Windows。零相依。 適用於任何 Markdown 規格目錄。
開源
MIT 授權條款。原始碼在specscore/specscore-cli。 永久免費。
與 AI 代理配合使用。
CLI 是兩個 Claude Code 外掛底層的引擎。如果你的代理在撰寫規格, CLI 會在代理寫任何程式碼之前告訴你規格是否合格。
這條迴圈在 Claude Code 和 Cursor 中如何進行——功能檔案、specscore agent setup 和 specscore spec lint——見 用 Claude Code 和 Cursor 做規範驅動開發。