Docs

Skill Glue CLI

Skill Glue 先把 skill 拆成带边界的节点,再给出执行顺序、token 预算和替换建议。第一版先做组合认知,不做重型执行引擎。

Install

第一版通过 GitHub 仓库直接运行,不依赖额外平台。

git clone https://github.com/jklop3841/agentarchitect-site.git
cd agentarchitect-site
npm install

Commands

三条命令对应三种最小任务:组合、估算、解释。

compose

skill-glue compose <manifest> --format json|markdown [--sample-run]

Generate the composed workflow plan with step order, validation checks, and cacheable stages.

estimate

skill-glue estimate <manifest> --format json|markdown

Estimate total token budget and show which steps drive cost.

explain

skill-glue explain <manifest> --format json|markdown

Explain why steps are ordered this way and what can be replaced or cached.

Compose

npm run skill-glue -- compose ./examples/skill-glue/parallel.json --format markdown --sample-run

Estimate

npm run skill-glue -- estimate ./examples/skill-glue/replaceable.json --format json

Explain

npm run skill-glue -- explain ./examples/skill-glue/serial.json --format markdown

Manifest schema

每个 step 都是独立节点,带输入、输出、成本提示和替换候选。

{
  "id": "parallel-content-stack",
  "summary": "Short description",
  "steps": [
    {
      "id": "topic.intake",
      "summary": "What this step does",
      "inputs": ["topic"],
      "outputs": ["topic_card"],
      "cost_hint": { "tokens": "low", "score": 1 },
      "dependencies": [],
      "replaceable_with": [],
      "cacheable": true,
      "validation_checks": ["topic_card includes audience and tone"]
    }
  ]
}

Sample output

输出既能给 Agent 读,也能给人类审阅。

{
  "id": "parallel-content-stack",
  "execution_order": [
    ["topic.intake"],
    ["hook.builder", "evidence.bundle"],
    ["assembly.pass"]
  ],
  "estimated_cost": {
    "total_score": 5,
    "budget_band": "low"
  },
  "cacheable_steps": ["topic.intake", "hook.builder", "evidence.bundle"]
}