Fold new dev-log entries back into docs/dev-file volumes (the current-truth architecture docs), then bump each volume's 最后核对 stamp. Use when the user asks to distill/reconcile dev-file, run the weekly docs pass, or close out a workstream. Processes only the delta since each volume's stamp — cheap when run regularly.
يبقى الأمر في سطر واحد. مرّر أفقيًا لمراجعته كاملًا قبل النسخ.
تفضّل نسخة محلية؟ نزّل الملفات المتاحة حاليًا لدى SkillsMP.
عرض SKILL.md
SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
distill-devfile
description
Fold new dev-log entries back into docs/dev-file volumes (the current-truth architecture docs), then bump each volume's 最后核对 stamp. Use when the user asks to distill/reconcile dev-file, run the weekly docs pass, or close out a workstream. Processes only the delta since each volume's stamp — cheap when run regularly.
Distill dev-log → dev-file
Goal: every claim in docs/dev-file/* is true today. docs/dev-log/* is the dated
history of how the code got here; this pass folds what those logs (and the commits behind
them) changed back into the volumes, so AI and humans can keep trusting dev-file as
current truth (the three-layer contract in AGENTS.md).
Anchor: each volume carries > 最后核对:YYYY-MM-DD right under its H1. This pass
processes only dev-logs and commits after that date, then bumps the stamp. Missed
weeks self-correct — the window just grows.
0. Preflight
Read the root CLAUDE.md and follow its Git workflow.
Confirm the working tree is clean and synchronize with origin/main before starting.
Prefer a feature branch and pull request. Push directly to main only when the user explicitly
asks for it.
Never bypass hooks; node_modules/.bin must be available for the tracked hooks.
Volumes 09 and 10 are bannered historical snapshots — never update them, never bump
their stamps.
1. Collect the delta
For each remaining volume (00–08, 11, 12):
Read its 最后核对 stamp.
List newer logs: dev-log filenames are YYYY-MM-DD-<slug>.md, so a lexical compare on
the prefix works (ls docs/dev-log | sort + filter > stamp).
Backstop for changes that shipped without a log:
git log --since=<stamp> --oneline -- <paths in the volume's routing row below>.
Scan the new logs' 「后续 / 未闭环」 sections for explicit "写回规格文档" items —
those are mandatory queue entries even if the topic looks minor.
2. Route logs → volumes
A log can hit multiple volumes. Routing map (volume ← topics / proving paths):
ls of the trees it draws, vite.config.ts lint blocks, AGENTS.md
11-Pulse-Ingest-Source-Catalog
sources, adapters, ingest pipeline, source health
3. Amend — one subagent per volume with a non-empty delta
Volumes with an empty delta: leave untouched, do not bump the stamp (the stamp means
"verified", not "looked at"). Typical week at sprint pace: 3–6 volumes get agents; run
them in parallel, each owning exactly one file.
Per-agent rules (put these in every agent prompt):
dev-logs are leads, code is truth. Verify every claim against source before
writing, and cite the proving path in your summary — even yesterday's log can be wrong
(a 2026-06-09 log claimed a 280px rail; the code constant was 264px).
Surgical Edit calls only. Preserve the volume's structure, heading numbering, and
Chinese-prose-with-English-terms style. New coverage as terse as neighboring sections.
Cite dev-logs the way the volume already does.
Bump the volume's > 最后核对: stamp to today.
Touch ONLY the assigned volume.
Return: amendments (was → now + proving path), verified-OK areas, flagged-uncertain
items left unchanged.
4. Hygiene sweep (flag, don't fix)
dev-log naming violations: anything in docs/dev-log/ not matching
YYYY-MM-DD-<slug>.md except README.md.
docs/product-design/<feature>/ working docs whose content has since shipped or been
superseded — candidates for a dated archive note.
Report these in the final summary; fix only when trivially mechanical and the user has
already approved that class of fix.
5. Land it
vp fmt --write on touched docs only (vp panics when output is piped — redirect to a
file). Do not run repo-wide --fix: it may sweep up other sessions' files.
Run pnpm run ci, pnpm generated:check, and git diff --check before committing; the tracked
pre-push hook rechecks the committed HEAD.
One commit: docs(dev-file): distill <from>..<to> with per-volume highlights.
Push the current feature branch and open a pull request unless the user explicitly requested a
direct push to main.
If the remote advanced, synchronize with origin/main, rerun the checks, and push again.
Do not skip hooks or force-push. Wait for the tracked pre-push hook and hosted checks.
Final report to the user: per-volume changes, skipped volumes, hygiene flags, and exact validation
results.
packages/ingest/src/, apps/server/src/jobs/pulse/
12-Marketing-Architecture
marketing pages, i18n/locale handoff, SEO, marketing deploy