feat(project-bootstrap): canonical template + Step 5.6 add session-handoff trigger [v1.12.0]

CLAUDE.md.template gains `session handoff: read on start, write on end`
between `pull remote before work` and `follow project discipline`
(session-lifecycle clustering). Step 5.6 trigger->fulfiller table gains
the corresponding row (template ↔ table source-of-truth invariant).

Greenfield-bootstrap'ed projects now ship handoff trigger из коробки.
Existing projects unaffected — CLAUDE.md merge in Step 5 is idempotent
and respects user removals.

Bump 1.11.0 -> 1.12.0 MINOR (new canonical trigger = new capability,
backward-compatible). dist/project-bootstrap.skill rebuilt.

Closes [session-handoff-bootstrap-template-extend].
Unblocks [session-handoff-existing-projects-upgrade] Path B.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 23:10:03 +03:00
parent 90c5be7c88
commit 01bc7147c9
5 changed files with 44 additions and 11 deletions

View File

@@ -0,0 +1,34 @@
# session-handoff-bootstrap-template-extend
## Goal
Расширить canonical CLAUDE.md template в `project-bootstrap` новой trigger-строкой `session handoff: read on start, write on end` — чтобы greenfield-bootstrap'ed проекты получали handoff из коробки. Также добавить соответствующий row в Step 5.6 trigger→fulfiller table (source-of-truth invariant: template ↔ table в одном commit'е). Bump project-bootstrap MINOR (new template entry = new capability, backward-compatible).
## Key files
- `skills/project-bootstrap/assets/CLAUDE.md.template:10` — добавлен `session handoff: read on start, write on end` между `pull remote before work` и `follow project discipline` (session-lifecycle clustering)
- `skills/project-bootstrap/SKILL.md:3` — bump `version: 1.11.0``1.12.0`
- `skills/project-bootstrap/SKILL.md:492` — новый row в Step 5.6 trigger→fulfiller table
## Decisions log
- 2026-05-24: позиция trigger-строки — после `pull remote before work` (тоже session-start hook), перед `follow project discipline`. Session-lifecycle triggers группируются вместе.
- 2026-05-24: bump MINOR (1.11.0 → 1.12.0) — добавление trigger-строки в canonical template = новая capability для greenfield bootstrap'а, существующие проекты не ломаются (CLAUDE.md merge — idempotent + respects user removals per Step 5.6 Algorithm).
- 2026-05-24: rebuild `dist/project-bootstrap.skill` через `scripts/build.ps1 -Names project-bootstrap` — обязательно, иначе deploy на других машинах через `.skill` archive получит stale template.
- 2026-05-24: reinstall в `~/.claude/skills/project-bootstrap/` через `scripts/install.ps1 -Names project-bootstrap`.
## Open questions
- [ ] нет
## Completed steps
- [x] edit `assets/CLAUDE.md.template` — insert trigger line
- [x] edit `SKILL.md` frontmatter — bump 1.11.0 → 1.12.0
- [x] edit `SKILL.md` Step 5.6 — add row to trigger→fulfiller table
- [x] `scripts\build.ps1 -Names project-bootstrap``dist/project-bootstrap.skill` rebuilt
- [x] `scripts\install.ps1 -Names project-bootstrap`
- [x] verify `~/.claude/skills/project-bootstrap/SKILL.md` v1.12.0 on disk
- [x] verify template contains новой строки + table row at SKILL.md:492
- [x] STATUS.md → 🟢
- [ ] commit (next)
## Notes
Unblocks `[session-handoff-existing-projects-upgrade]` Path B (project-bootstrap в upgrade-режиме теперь видит handoff trigger как canonical).
Этот edit — следствие user'ского напоминания из брейнсторма 2026-05-24 «не забудь, что нужно будет обновить project bootstrap».