AGENT SKILL

to-seams

Records an agreed-but-unlanded cross-repo interface as a seam: the file a consumer's agent gets pasted into its prompt as ground truth, plus the `[[seam]]` block command-centre reads for the retirement pointer. Use when two repos need to build against an interface neither has landed yet — "record a seam for X", "we agreed on this schema, seam it", "add a seam so Y can build against Z's new field". Halts for approval before writing either file.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
to-seams
description
Records an agreed-but-unlanded cross-repo interface as a seam: the file a consumer's agent gets pasted into its prompt as ground truth, plus the `[[seam]]` block command-centre reads for the retirement pointer. Use when two repos need to build against an interface neither has landed yet — "record a seam for X", "we agreed on this schema, seam it", "add a seam so Y can build against Z's new field". Halts for approval before writing either file.
disable-model-invocation
true

03 SKILL.md 正文

Record a seam

A seam is a pasted-in agreement, not a parsed contract: the file goes into a consumer's prompt byte-for-byte, so what you write here is what the agent reads as ground truth until the producer lands the real thing (design §6).

Process

  1. Find the workspace. Same resolution to-tickets step 7 uses:

    ls "$(git rev-parse --show-toplevel)/../.claude/command-centre.toml" 2>/dev/null
    

    If it's absent, say so and stop — a seam with no [[seam]] config to read it is pointless.

  2. Ask for the four things a seam needs:

    • Name — a short slug (customer-tier-field). Becomes the seam filename and the [[seam]] key.
    • Producer repo — the [[repo]] name in command-centre.toml that will land the real thing.
    • Consumer repo(s) — whichever repos are building against the agreement now. Not written to config — only producer_repo and lands_at are read by anything, the retirement pointer — this is so you know which tickets' next to-tickets run should list this seam by name in their seams = [...].
    • lands_at — one or more paths, in the producer repo, the real thing will live at once it merges. Optional: if the landing path isn't settled yet, leave it empty and say so — an empty lands_at just means "no retirement", not an error.
  3. Get the agreed interface itself. Ask the user to paste or dictate exactly what a consumer's agent should read — a schema, a type, a function signature, whatever the two sides agreed on. Paste it in verbatim: nothing here is parsed, marked up, or addressed by symbol (design §6). If the user hands you prose describing the agreement rather than the interface text itself, ask for the actual text instead of summarising it back to them.

  4. Show both writes, then halt for approval. Before touching disk, show:

    • The seam file's exact planned content, in full.
    • The [[seam]] block exactly as it will be appended:
      [[seam]]
      name          = "<name>"
      producer_repo = "<producer repo>"
      lands_at      = ["<path>", …]
      

    Wait for explicit confirmation before writing either file (§10) — a seam silently written is a prompt silently changed under whoever cuts a task against it next.

  5. Write, in this order: the seam file at <workspace>/.claude/seams/<name>, then append the [[seam]] block to <workspace>/.claude/command-centre.toml. Upsert on name: if a [[seam]] block for this name already exists, replace it in place rather than duplicating it, and say so.

Finishing up

Tell the user the seam's name and which consumer tickets should list it in seams = [...] the next time to-tickets runs for those repos.

04 同仓库更多 Skills

O-Marsters-1997
O-Marsters-1997/my-claude-code

vault-recall

Answer the user's conceptual or technical question using their Obsidian vault as well as general knowledge. Use when the user asks a question (not a task) whose topic appears in the vault MOC digest from session start. Not for task instructions, not mid-task, and not for writing to the vault (that is to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

ingest

Ingest one external source (an article, course lesson, doc, PDF or URL) into the user's Obsidian vault: save the original to raw/, then build wiki/ pages per the vault's § Ingest. Use when the user types /ingest, or says "ingest this", "add this source to my wiki", "put this article/lesson in the vault as a wiki page". Works from any repo. Routing rule: someone else's words go to wiki/ (this skill); the user's own learnings and decisions go to notes/ (/to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-tickets

Breaks a source into independently-grabbable GitHub tickets. For a code feature the source is the plan (`docs/plans/<feature>.md`, from /to-plan) and every new or changed symbol lands in exactly one ticket, its signatures copied into the ticket body; a non-code feature is cut from the PRD's slices. Cuts tickets for one feature per run. If a code feature has no approved plan, offers /to-plan instead of cutting from prose. In a repo that runs command-centre, also emits `[[task]]` blocks into its config; in a plain treepad repo, emits a Batch Manifest instead so the tickets materialise as stacked worktrees.

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-roadmap

Prioritises settled features into a Now / Next / Later kanban board, rendered as a self-contained ./ideas/roadmap.html. Each card is a feature, not a ticket — one card later becomes several tickets via /to-prd -> /to-plan -> /to-tickets. Boards the features in ./docs/approach.md, or the "## Accepted ideas" in ./ideas/CONTEXT.md when there is no approach doc. The approach doc is settled truth: this assigns tiers and reasons about ordering, it never re-litigates what was decided.

产品经理
★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-prd

Turns one feature idea into a PRD built on journeys: a one-line problem, journeys (each ending in an observable state) and delivery slices that say what is usable after each. Interviews, explores the codebase, and saves to docs/prds/<feature>.md. Covers exactly one feature: given a multi-feature source, ask which one. Reads any approach doc or ideate report as priors so it doesn't re-ask what's settled, but needs none. Starts the per-feature spine (/to-prd -> /to-plan -> /to-tickets).

产品经理
★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-plan

Turns one feature's PRD into a skimmable plan in docs/plans/<feature>.md: a short overview, then per phase a glossary, the journeys it satisfies, and its new and modified definitions (types, enums, ports, schema), with the project:<slug> label. No code, branch or PR; the user's review of the file is the gate. Use for "plan this feature", "write the contract", "what are the types". One feature per run. Slash-only.

★ 0