Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fold-pending

БесплатноБез исполняемых скриптовНе проверен

Fold the information in a shipped pending architecture doc into canonical package docs. Use after the sprint that implemented a pending/*.md doc has landed…

leogodin217от leogodin217★ 65 звёзд на GitHub

Об этом скилле

Fold Pending Information

The pending doc was a temporary carrier. Its information now belongs to whichever canonical docs own those contracts. Folding transfers information; it does not promote a file. The pending file is deleted at the end — nothing "graduates."

This skill runs after the sprint that implemented a pending/*.md doc has landed. It is the missing step between /implement-sprint and a clean architecture tree.

Pending docs vs. canonical docs

Folding is a transformation between two different kinds of document. Knowing the difference is the skill — every phase below serves it.

Pending doc (docs/architecture/pending/*.md) Canonical doc (a subsystem doc)
Purpose A proposal, written once for design review A permanent contract reference for implementers and adjacent designers
Lifespan Temporary carrier — deleted after folding Lives as long as the code it describes
Owner Nobody — a proposal in flight The subsystem that owns the contract
Voice Delta — describes the change ("X now does Y", "we rejected W", "Z unchanged") Steady-state — a plain statement of the current contract, no history
Structure Self-contained narrative: Problem, Solution, What Doesn't Change, then the design Contract sections — Boundary, Invariants, Rationale — matching the package's other docs
Schema / examples Spelled out in full — the doc is the spec, no code exists yet Schema and examples become links; the doc keeps reasoning, not restatement
Scope framing Sprint-bound — "sprint 1", "out of scope (v1)", scope cuts None — describes what is, not what a sprint did or deferred

Folding therefore changes three things at once, not one:

  1. Voice — delta → steady-state.
  2. Structure — narrative → the contract sections the package's other canonical docs use (see templates/canonical-arch-doc.md).
  3. Density — full spec → links for schema and examples, but rationale, invariants, constraints, and normative algorithms are kept and stated as contract. A short doc is fine; a doc thin on why is the failure.

The common failure is to treat folding as relocation plus a verb swap — move the file, delete the "now"s. That leaves a doc with pending structure and pending density (schema tables, YAML, sprint-scoping sections) even when every sentence reads as steady-state. It still reads as a proposal. A reader who never saw the pending doc — an implementer extending the package, a designer of an adjacent subsystem — must be able to read every sentence as a plain statement of current contract.

Two steps are gated and must not be skipped: verify delivery (Phase 1) and re-voice + re-structure (Phases 4–5).

Input

One or more paths to pending docs under docs/architecture/pending/*.md. If no path is given and exactly one pending doc exists, use it; if several exist, list them and ask which.

All pending docs live at docs/architecture/pending/<name>.md — there is no per-package pending location. Routing into canonical package docs is decided here in Phase 3 from the doc's Affected Subsystems section, not from frontmatter.

Context posture

Full architecture. Run /understand architecture first — it loads the pipeline boundaries, docs/PROCESS.md (which owns the folding rules), and the docs/CAPABILITIES.md outline a fold updates. CLAUDE.md is already in context. On top of the bundle, load:

  1. templates/canonical-arch-doc.md — the section spine a folded doc targets
  2. The pending doc(s) to fold

Phase 1 — Verify delivery (GATE: hard STOP)

Everything the pending doc claims as shipped must actually exist in code.

  • Extract every concrete artifact the doc names: classes, functions, Pydantic models, validation rules, Implementation: links.
  • Confirm each exists — find_definition / find_references / Grep. Check the contract matches (signature, fields, raises) — not just that the name exists.
  • Verify every section that asserts code: Semantics, Interface Contracts, Validation Rules, Configuration. Older docs may carry a Design Context / Architecture zone split — the verification target is the same: anything the doc claims as built.

If anything is missing, partial, or contradicts the doc: STOP. Present the gap and ask the user how to proceed. Do not fold a doc whose design was not fully built.

Phase 2 — Classify the information

Sort every unit of information into one of:

Class Destination
Design-review framing — What Doesn't Change, the design-review pitch Dropped. Never folded.
Problem / Solution Compressed into the canonical doc's one-paragraph Purpose; load-bearing why moves to Rationale.
Routing map — Affected Subsystems Not folded; used to pick destinations in Phase 3.
Semantics extending an existing subsystem Merged into that subsystem's arch doc.
**A coherent new contra
Полный SKILL.md на GitHub

Установить fold-pending в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

templates/canonical-arch-doc.md

FAQ

Что делает скилл fold-pending?

Fold the information in a shipped pending architecture doc into canonical package docs. Use after the sprint that implemented a pending/*.md doc has landed. Verifies delivery, redistributes information by ownership, re-voices and re-structures it into a canonical doc, prunes retired forward constraints and Obsidian notes, deletes the pending file.

Как установить скилл fold-pending?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fold-pending запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить fold-pending с