derive-source-stubs
Derive the source stub files (.pyi) from the reviewed tests — every type the tests reference gets a definition.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Derive the source stub files (.pyi) from the reviewed tests — every type the tests reference gets a definition.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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 | derive-source-stubs |
| description | Derive the source stub files (.pyi) from the reviewed tests — every type the tests reference gets a definition. |
.cache/<session_id>/journal.md (always present — bootstrapped at plan entry by model-data-schema). IF it carries escalation findings from build THEN adjust the source stubs of the contracts it names; otherwise skip..env; secrets in ~/.secrets/<project>.env (out-of-workspace), loaded with dotenv_values() into a frozen typed Settings, never into os.environ. A Settings model is optional and, if warranted, is a normal source stub.sqlite:///path URL form) and state it in the stub so every consumer agrees per [[software-craft/source-stubs]].