implement-from-stub
Write the minimum production code to turn the target's tests green, implementing the .py from its fixed .pyi.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write the minimum production code to turn the target's tests green, implementing the .py from its fixed .pyi.
用 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 | implement-from-stub |
| description | Write the minimum production code to turn the target's tests green, implementing the .py from its fixed .pyi. |
load_dotenv() from the workspace .env; secrets via dotenv_values() from ~/.secrets/<project>.env — read once into a frozen typed Settings, never into os.environ. IF an auth-dependent test fails on credentials THEN stop and ask the user with suggestions — do not investigate the secret.if typing.TYPE_CHECKING: so stubtest does not pull heavy runtime deps for type-only references.