project-generation-cli
Use the Cookiecutter Data Science ccds CLI to create projects, pin template versions, run noninteractive generation, and diagnose generation failures.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- project-generation-cli
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use the Cookiecutter Data Science ccds CLI to create projects, pin template versions, run noninteractive generation, and diagnose generation failures.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md5.1 KB
- 参考文档references/troubleshooting.md5.0 KB
- 参考文档references/workflows.md5.1 KB
- 脚本scripts/bake_ccds_project.py8.0 KB
03 SKILL.md 正文
Project Generation CLI
Use this sub-skill when the task is to install or run Cookiecutter Data Science (CCDS), generate a new data-science project, choose ccds CLI flags, pin a template version, or debug a generation failure.
Route elsewhere
- For exact CCDS option semantics, valid option combinations, nested prompt behavior, dependency-file generation, and hook effects, read
../template-options-and-hooks/. - For using the generated project after it exists—Makefile rules, data layout, environment managers, scaffold modules, docs, tests, linting, or validation—read
../generated-project-workflows/.
Read or run these bundled files
- Read references/cli-reference.md for install commands,
ccdsflags, version pinning, replay/config behavior, and v1 guidance. - Read references/workflows.md for interactive, noninteractive, custom-output, and version-pinned generation recipes.
- Read references/troubleshooting.md when
ccdsis missing, the wrong template/version is used, output directories collide, hooks are disabled, checkout/network fails, or extra context is malformed. - Run scripts/bake_ccds_project.py when you need a safe noninteractive bake through the installed CCDS package. It writes to a temporary parent by default and prints the generated project path.
Minimal package check
A user can normally install CCDS with one of:
pipx install cookiecutter-data-science
# or, when pipx is unavailable:
python -m pip install cookiecutter-data-science
Then verify the command is available:
ccds --help
CCDS v2 requires Python 3.9+. The package exposes the ccds console script and wraps Cookiecutter so that the default template is the public CCDS template and the default checkout is tied to the installed CCDS package version.
Generation decision flow
- Pick an output parent, not a precreated project directory. Run
ccdsfrom the parent directory where the new project folder should be created, or pass-o/--output-dir <parent>. - Choose the template version. Use the installed package default for stable released behavior. Use
-c master, another branch, a tag, or a commit only when the task explicitly needs unreleased or historical template content. - Choose interactive or noninteractive mode. Interactive
ccdsis safest for humans. Use--no-inputonly when you have a complete context and understand default-first-choice behavior. - Allow hooks unless intentionally inspecting raw templates. CCDS uses hooks to write dependency files, prune docs/tests/scaffold paths, update Python version metadata, and apply custom configuration. Disabling hooks changes the generated project contract.
- Inspect and validate the result. Route to
../generated-project-workflows/and use its validation script before running dependency installation, cloud sync, or environment-manager commands.
Common trigger phrases
Stay in this sub-skill for requests like:
- “Create a new CCDS project.”
- “Use
ccdswith--no-input.” - “Generate from the master branch instead of the released template.”
- “Why did
cookiecutter-data-scienceuse v2.3.0?” - “The
ccdscommand is missing / my output directory already exists / replay used old answers.”
Route to sibling sub-skills when the user asks what an option means, why a file was generated or removed, or how to run make requirements inside an already-generated project.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).