AGENT SKILL
新项目初始化
bootstrap_project
暂无简介
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-12
- Stars
- ★ 0
- Forks
- 0
03 SKILL.md 正文
Skill: bootstrap_project
Purpose
Turn a fresh clone of this template into a named, working project with one
governed flow. Works identically from Claude Code, OpenCode, Codex,
Antigravity, or Copilot: the heavy lifting is system-enforced by
make init and the read-only gates, not by model behavior.
Required Input
- New package name (lowercase snake_case, e.g.
churn_predictor). Ask for it if not provided; do not invent one. - Optional: whether the project tracks the upstream template
(
TEMPLATE_REPOoverride formake template-remote-setup).
Execution Rules
- Confirm the clone is uninitialized:
src/ml_python_base/must still exist and the git tree must be clean. If the package was already renamed, stop — this skill is post-clone only. - Preview first when the user wants to inspect the change:
python3 scripts/init_project.py --name <name> --dry-run. - Run
make init NAME=<name>. It renames the package, rewrites references (preserving the upstream template URL needed bydocs/template-sync.md), creates.envfrom.env.example, then chainsmake install,make sync-skills,make template-remote-setup, andmake ci. - If the user tracks a different template fork, pass it through:
make init NAME=<name> TEMPLATE_REPO=git@github.com:org/fork.git. - Ask the user to review
.env(model endpoints/keys are machine-specific; defaults point at localhost). Never commit.env. - Verify the exit gate:
make cimust be green before declaring success. If it is red, fix locally withmake fix/make format— never weaken the checks. - Hand the diff to the user for review; the user commits the initialization as a
single commit (agents do not commit — see the
git-actionspolicy).
Output Format
- The executed commands and their outcomes (including the
make ciresult). - Anything that needs the user's hand:
.envvalues, template fork URL, GitHub remote for the new project. - Suggested next step: ideate with
brainstorm_quick(scoped work) or the externalbrainstormingskill (design-gated work), thenplan_and_execute_feature.
Governance References (Mandatory)
.github/architecture.md.github/standards.md.github/domain-boundaries.mddocs/project-init.md(mechanism details and caveats)docs/template-sync.md(staying in sync with the upstream template)
04 同仓库更多 Skills
实施计划编写
writing-plans
当你已有多步骤任务的规格说明或需求时,在动手编写代码之前使用。
★ 0
清晰简洁写作
writing-clearly-and-concisely
暂无简介
★ 0
代码变更验证
verify_changes
暂无简介
★ 0
模块结构验证
validate_module_structure
暂无简介
★ 0
Git Worktree 隔离工作区
using-git-worktrees
当开始需要与当前工作区隔离的功能开发工作时,或在执行实施计划之前使用——通过原生工具或 git worktree 回退方案确保存在隔离的工作区。
★ 0
UI/UX 设计优化
ui-ux-pro-max
暂无简介
★ 0