model-data-schema
Author the persistence schema as a binding contract from the captured external shapes and the interview — before any test stub is written.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Author the persistence schema as a binding contract from the captured external shapes and the interview — before any test stub is written.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Compile the contract set in your head — simulate how the real application would run from the specs, and disprove (or confirm) it works before any source .py is written.
Author test stub files (.pyi) whose signatures express the domain, relationships, and compositions, as the first contract surface.
Funnel level 3 — identify building-block names and rough boundaries only, and run gap analysis.
Funnel level 1 — establish the big picture with seven broad questions, applying CIT, Laddering, and CI Perspective throughout.
Squash-merge the feature commits into dev, regenerate docstrings, and verify the whole suite plus whole-suite stubtest are clean.
Publish the delivered batch as release notes, a PR to main, or a tagged release.
| name | model-data-schema |
| description | Author the persistence schema as a binding contract from the captured external shapes and the interview — before any test stub is written. |
.cache/<session_id>/journal.md does not exist THEN render it from .templates/cache/journal.md.template (substitute <session_id>). The journal is the carry-over artifact for build-phase escalations, capture gaps, and the simulation walk; empty until those states write to it. Absence on a first pass is expected — never a deliberation point; the first pass IS the empty-journal pass. IF it exists THEN it carries build-phase escalations from the prior build cycle — read them and model the gaps it names first..cache/<session_id>/external-contracts.md, tests/cassettes/**, .cache/<session_id>/interview-notes.md, docs/glossary.md..cache/<session_id>/data-model.md as the schema spec the build-phase developer implements against — NOT a deferral, NOT a sketch. For every table record:
interview-notes.md;data-architect.md);needs-capture), never an ungrounded guess baked into the model. Anti-patterns to refuse, named in [[architecture/data-modeling]]: mirroring a code-class shape into a table, premature denormalization, an index without a query, a constraint the spec does not require..cache/<session_id>/journal.md (service, the missing case) and fire needs-capture. Do NOT invent the shape — the model is grounded in captures, not guesses.