generated-project-workflows
Guide agents working inside generated Cookiecutter Data Science projects through layout, Makefile workflows, environment-manager commands, scaffold modules, validation, and common failures.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- generated-project-workflows
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guide agents working inside generated Cookiecutter Data Science projects through layout, Makefile workflows, environment-manager commands, scaffold modules, validation, and common failures.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/environment-managers.md8.9 KB
- 参考文档references/makefile-reference.md7.5 KB
- 参考文档references/project-layout.md7.1 KB
- 参考文档references/scaffold-reference.md7.0 KB
- 参考文档references/troubleshooting.md6.0 KB
- 脚本scripts/validate_generated_project.py9.3 KB
03 SKILL.md 正文
Generated Project Workflows
Use this sub-skill when you are already working inside a project generated by Cookiecutter Data Science (CCDS) and need to understand or modify its runtime workflow. CCDS 2.3.0 generates a data-science project whose exact files and commands depend on selected options for environment manager, dependency file, testing, linting, docs, cloud storage, license, and code scaffold.
Scope
This sub-skill covers generated-project operation after a project exists:
- Directory layout and the purpose of
data/raw,data/external,data/interim,data/processed,docs,models,notebooks,references,reports/figures, the package module,pyproject.toml,setup.cfg, tests,.env,.gitignore, andMakefile. - CCDS project opinions: raw data is immutable, analysis is a DAG, most data stays out of source control, notebooks are for exploration/communication, reusable code belongs in package modules, secrets/config go in
.env, and Make is the task runner. - Generated Makefile commands such as
requirements,clean,lint,format,test,sync_data_down,sync_data_up,create_environment,data, andhelp. - Environment-manager-specific commands for
conda,virtualenv,pipenv,uv,pixi,poetry, andnone. - Generated code scaffold modules when
include_code_scaffold=Yes, and the empty-package result wheninclude_code_scaffold=No. - Option-dependent docs, tests, linting, cloud sync, validation, and troubleshooting.
Route elsewhere
- If the task is to choose CCDS answers before project generation, route to
../template-options-and-hooks/. - If the task is to run the
ccdsCLI or reason about Cookiecutter CLI flags, route to../project-generation-cli/.
Bundled references and script
- Read references/project-layout.md when you need to map generated paths to their intended purpose or audit option-dependent files.
- Read references/makefile-reference.md before running, editing, or debugging generated
Makefilerules. - Read references/environment-managers.md when dependencies, environment creation, activation, or valid environment-manager/dependency-file pairings matter.
- Read references/scaffold-reference.md before editing the generated package scaffold or deciding how to refactor notebook code into reusable modules.
- Read references/troubleshooting.md when validation, environment setup, linting, tests, cloud sync, or scaffold imports fail.
- Run scripts/validate_generated_project.py for a read-only structural validation of a generated project; pass explicit expectations when known, or use the default
autodetectors for option-dependent features.
Operating procedure
- Confirm you are at the generated project root: it should have
Makefile,README.md,pyproject.toml,.env,.gitignore, data subdirectories, and one importable package directory containing__init__.py. - Identify option-dependent features rather than assuming one fixed tree: docs may be
mkdocsornone, tests may bepytest,unittest, ornone, linting may berufforflake8+black+isort, code scaffold may be present or absent, and cloud sync rules only appear when storage was configured. - Use
makeormake helpto list available rules before invoking them.make requirements,make create_environment,make lint,make format,make test,make data, and sync rules are generated conditionally. - Do not mutate raw data in place. Move data through a reproducible DAG from
data/rawordata/externaltodata/interimand finallydata/processed, with reports and figures underreports/. - Keep credentials and machine-specific configuration in
.env; do not commit.envor bulk data unless the project has explicitly changed the default policy. - Prefer editing package modules for reusable logic and notebooks for exploration/communication. After dependency installation, the package is intended to be used as an editable local package.
- Validate changes with the bundled read-only validator and then with the project's own available
makerules only when the required manager CLIs, credentials, and network access are intentionally available.
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).