一键导入
code-reuse
Writing new code — inventory-first, module-vs-script placement, no-new-files, STOP triggers for duplication
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Writing new code — inventory-first, module-vs-script placement, no-new-files, STOP triggers for duplication
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Before writing new code — search existing implementations, topical audits, READMEs, file-header caveats
After implementing — update file headers, README, topical audits; note duplication
Navigate and debug OrbitalWar / SpaceCraft — design, truss sim, combat, radiosity, orbits; hub to docs and tests
Diagnostic plots/visualizations — shared utilities, output paths, plot style conventions
Dedicated documentation work — OKF format, topical audits, extract-overview and inline-doc workflows
Building C++ (FireCore/SPFF) — build dirs, cmake targets, ASAN vs opt modes
| name | code-reuse |
| description | Writing new code — inventory-first, module-vs-script placement, no-new-files, STOP triggers for duplication |
| trigger | {"glob":["**/*.py","**/*.js","**/*.mjs","**/*.cpp","**/*.h","**/*.cl","**/scripts/**","**/test*/**"]} |
Before writing ANY new function, search the codebase for existing implementations. This is a blocking step — do not skip it. See also doc-read-navigate skill for where to search.
pyBall/, cpp/common/, web/common_js/): Export reusable functions. This is the ONLY place reusable logic lives.tests/*.py, scripts/*.mjs, *.sh): Thin wrappers that import from modules and orchestrate. May contain only test-specific glue (logging, file I/O, test case wiring).