返回 Skill 列表
extension
分类: 开发与工程无需 API Key

spectr-accept-wo-spectr-bin

通过将tasks.md转换为tasks.jsonc来接受Spectr变更提案,而不需要spectr二进制文件。在您处于沙箱或受限执行环境中且路径中没有spectr时使用。当您需要一个轻量级的任务接受替代方案但可以使用spectr二进制文件时,请勿使用。当您可以使用spectr二进制文件时,请勿使用。

person作者: jakexiaohubgithub

Spectr Accept (Without Binary)

This skill provides the ability to accept Spectr change proposals by converting tasks.md files into tasks.jsonc format without requiring the spectr binary. This is particularly useful in sandboxed environments, CI pipelines, or fresh repository checkouts where the spectr binary may not be available.

Usage

The skill provides a scripts/accept.sh script that converts task markdown files into the JSONC format expected by Spectr.

Basic Usage

bash .claude/skills/spectr-accept-wo-spectr-bin/scripts/accept.sh <change-id>

Example

# Accept a change with ID "add-new-feature"
bash .claude/skills/spectr-accept-wo-spectr-bin/scripts/accept.sh add-new-feature

This will:

  1. Read spectr/changes/add-new-feature/tasks.md
  2. Parse the markdown task lists
  3. Generate spectr/changes/add-new-feature/tasks.jsonc

Requirements

The accept script requires jq to be installed for JSON generation. You can verify jq is available:

which jq

Task Format

The script expects tasks in markdown format with the following structure:

# Section Name

## Tasks

- [ ] 1.1 Task description here
- [x] 1.2 Completed task description

Tasks can be:

  • [ ] - Pending (not started)
  • [x] - Completed

Output Format

The script generates a tasks.jsonc file with the following structure:

{
  "version": 1,
  "tasks": [
    {
      "id": "1.1",
      "section": "Section Name",
      "description": "Task description here",
      "status": "pending"
    },
    {
      "id": "1.2",
      "section": "Section Name",
      "description": "Completed task description",
      "status": "completed"
    }
  ]
}

Limitations

  • This script provides basic task conversion functionality
  • For advanced features like hierarchical task validation, use the full spectr accept command
  • The script does not validate task ID uniqueness or proper sequencing
  • Complex markdown formatting in task descriptions may not be preserved

When to Use

Use this skill when:

  • The spectr binary is not available in your environment
  • You're in a sandboxed or restricted execution context
  • You need a lightweight alternative for task acceptance
  • You're running in CI/CD pipelines without spectr installed

For production workflows with validation requirements, consider installing the full spectr binary.