Agent SkillsIvanWng97/pixtuoid › add-source

add-source

GitHub

用于在pixtuoid项目中集成新的agent-CLI源适配器。涵盖跨crate配置、站点清单、主题徽章及运行时接线。重点确保执行包含测试覆盖的关键步骤,防止遗漏导致构建失败或功能缺失。

.claude/skills/add-source/SKILL.md IvanWng97/pixtuoid

Trigger Scenarios

用户请求添加对特定CLI的支持 需要为工具添加源适配器 提及集成新的agent CLI

Install

npx skills add IvanWng97/pixtuoid --skill add-source -g -y
More Options

Non-standard path

npx skills add https://github.com/IvanWng97/pixtuoid/tree/main/.claude/skills/add-source -g -y

Use without installing

npx skills use IvanWng97/pixtuoid@add-source

指定 Agent (Claude Code)

npx skills add IvanWng97/pixtuoid --skill add-source -a claude-code -g -y

安装 repo 全部 skill

npx skills add IvanWng97/pixtuoid --all -g -y

预览 repo 内 skill

npx skills add IvanWng97/pixtuoid --list

SKILL.md

Frontmatter
{
    "name": "add-source",
    "version": "1.0.0",
    "metadata": {
        "scope": "pixtuoid repo only"
    },
    "description": "Wire a new agent-CLI Source adapter into pixtuoid (a new coding CLI whose sessions become office sprites). Use when the user says 'add support for <CLI>', 'add a source for <tool>', or 'integrate <agent CLI>'. Orchestrates the cross-crate checklist whose steps have TEST TEETH — the ones a diff-scoped edit silently misses (site manifest bridge, per-source badge hue, home-dir fn)."
}

add-source (v1)

Adding an agent CLI is not a single-file change — it spans pixtuoid-core (decoder + registry + tests), the pixtuoid binary (runtime wiring + install target + badge hue), and the site manifest. Several steps have test teeth that only just preflight's FULL run catches, not the targeted source/install suites — so an agent that stops at "it compiles" ships a red PR.

When to use

  • "Add support for <CLI>" / "integrate " / "add a source for X".
  • A new transcript-bearing OR hook-only coding CLI should show up as sprites.

The authoritative checklist

The complete, current step list lives in crates/pixtuoid-core/CLAUDE.md ("multi-source decoding" / "Adding a new agent CLI") — read it first; it is the source of truth and stays current. The Copilot-format summary is .github/prompts/add-source.prompt.md. Before you start, decide transcript-bearing vs hook-only (invariant #3): a hook-only CLI (Reasonix/CodeWhale/opencode/Cursor) sets transcript: None, skips the runtime wiring + Source impl, and ships a hook.custom decoder + an install/ target instead.

The test-teeth steps agents miss

These are the ones with a failing test attached — do NOT stop before them:

  • site/src/sources.json row — a manifest bridge test fails until it exists; then just gen-readme to sync the README. (CLAUDE.md step 5.)
  • Per-source badge hue — a Theme::source (SourceColors) field in EVERY theme file + a dashboard_line match arm; two guard tests fail otherwise. (CLAUDE.md step 7.)
  • pub fn <cli>_home() if the CLI has a custom config root — one fn honoring its *_HOME precedence, called from BOTH the watcher's default_paths() AND the installer's default_config_path() so they can't disagree. (CLAUDE.md step 6.)
  • A captured fixture under tests/sources/fixtures/<name>/<scenario>/ exercising the SessionStart hook — the conformance test forces one, and its one-AgentId assertion guards against the reason-field ghost.

(The exact test names + full step list are in crates/pixtuoid-core/CLAUDE.md "Adding a new agent CLI" and add-source.prompt.md — this skill headlines the teeth, those own the specifics.)

Finish

  • Wire it into runtime/driver.rs::build_source_set (transcript-bearing only — the one construction site, called by run_async). This step HAS teeth: build_source_set_wires_every_transcript_bearing_source_plus_the_hook_router (driver.rs) FAILS for a registered source left unwired, so just preflight catches the miss — don't make it wait that long.
  • Capture the real wire shape and set verified_version ("unknown" until a byte-real capture anchors it). Drift-watch it (see the add-a-CLI list's drift-watch note in crates/pixtuoid-core/CLAUDE.md).
  • just gen-contract only if you touched the --json/SourceStatus/OutcomeRow SHAPE (adding a row doesn't).
  • just preflight before the PR, then run the two-lens-review skill.

Version History

  • 0620ccd Current 2026-07-05 20:27

Same Skill Collection

.claude/skills/add-theme/SKILL.md
.claude/skills/beautify-decoration/SKILL.md
.claude/skills/two-lens-review/SKILL.md

Metadata

Files
0
Version
0620ccd
Hash
fbd1f994
Indexed
2026-07-05 20:27

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 17:51
浙ICP备14020137号-1 $Гость$