rseng-project-scaffolding
Skill20 starsChanged 4 months agoMITView on GitHub
Covers starting research software projects from maintained templates and keeping them in sync: choosing a generator (Copier, cookiecutter), scaffolding a Python package, retrofitting template structure, pulling template upgrades into generated projects, and picking a pyproject build backend. Use when the user starts a new research software codebase, asks for a template or boilerplate, wants a src/ layout or pyproject.toml scaffold, mentions copier or cookiecutter, or chooses between setuptools, hatchling, poetry or PDM. For hand-rolled layout see rseng-code-quality; for the management side see rseng-project-kickoff.
In this repository67 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rseng-agent-securitySkill
- rseng-ai-declarationSkill
- rseng-archivingSkill
- rseng-big-data-processingSkill
- rseng-ci-cdSkill
- rseng-citation-hygieneSkill
- rseng-citation-metadataSkill
- rseng-code-qualitySkill
- rseng-code-reviewSkill
- rseng-community-governanceSkill
- rseng-community-metricsSkill
- rseng-contributor-onboardingSkill
- rseng-data-management-plansSkill
- rseng-data-managementSkill
- rseng-debuggingSkill
- rseng-defensive-codingSkill
- rseng-dependency-managementSkill
- rseng-discoverySkill
- rseng-documentationSkill
- rseng-fact-checkingSkill
- rseng-fairguardSkill
- rseng-fair-mlSkill
- rseng-fair-softwareSkill
- rseng-gpu-computingSkill
- rseng-green-computingSkill
- rseng-honestySkill
- rseng-hpc-computingSkill
- rseng-human-verificationSkill
- rseng-language-guidesSkill
- rseng-legacy-codeSkill
- rseng-lessons-learnedSkill
- rseng-license-complianceSkill
- rseng-licensingSkill
- rseng-maintenance-sustainabilitySkill
- rseng-management-planningSkill
- rseng-notebooksSkill
- rseng-numerical-accuracySkill
- rseng-open-science-practicesSkill
- rseng-open-source-migrationSkill
- rseng-pair-programmingSkill
- rseng-performance-profilingSkill
- rseng-project-kickoffSkill
- rseng-project-trackingSkill
- rseng-provenanceSkill
- rseng-publishing-releasingSkill
- rseng-quality-frameworkSkill
- rseng-regulatory-complianceSkill
- rseng-reproducibilitySkill
- rseng-reproducible-environmentsSkill
- rseng-research-integritySkill
- rseng-science-communicationSkill
- rseng-scientific-file-formatsSkill
- rseng-scientific-visualizationSkill
- rseng-securitySkill
- rseng-software-designSkill
- rseng-software-metricsSkill
- rseng-software-peer-reviewSkill
- rseng-software-publishingSkill
- rseng-software-reuseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Prefer a template maintained by a research software community over a generic one: it will encode citation files, FAIR practices and …
- Distinctive: line 73
When scaffolding by hand or answering template questions:
- Very specific: line 91
Delete generated options the project will not use rather than letting them rot.
- Distinctive: line 114
Check whether any of these applies before moving on:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project scaffolding from templates
Starting from a maintained community template gives a research software project the whole quality baseline - packaging, tests, CI, linting, citation files, docs - in one step, encoded the way its community actually practices it. The skill here is threefold: pick the right generator, generate (or retrofit) honestly, and keep the project in sync as the template evolves.
Choosing a generator
- Copier: templates are versioned;
copier updatecan replay template improvements into an already-generated project later. Prefer it when the template supports it - staying current is the hard part of template use, and Copier is built for it. - cookiecutter: widest ecosystem of templates; generation is one-shot (no built-in update path), so treat the result as a starting point you own from day one.
Prefer a template maintained by a research software community over a generic one: it will encode citation files, FAIR practices and research-specific CI that generic templates omit.
The NLeSC python-template (reference implementation)
The Netherlands eScience Center's Copier template (https://github.com/NLeSC/python-template, Apache-2.0, actively maintained) is a strong default for research Python packages:
pipx install copier
copier copy https://github.com/nlesc/python-template.git path/to/project
copier update # later: pull template improvements- Three profiles: Minimum (essentials), Recommended (curated defaults), or fully custom - match the profile to the software tier (analysis code -> Minimum; shared tools -> Recommended).
- It can also retrofit structure onto EXISTING code: run
copier copyinto the existing directory and reconcile. - What it encodes (Recommended): src/ layout, setuptools +
setuptools-scm build backend, pytest with branch coverage, tox matrix
following the SPEC 0 version policy (three most recent Python
minors), ruff as single linter/formatter/import-sorter, type checking
(Pyright default, Mypy optional), pre-commit, EditorConfig,
CITATION.cff plus a cffconvert CI check, Zenodo DOI instructions,
Sphinx docs with Read the Docs, SonarCloud analysis, changelog,
community files, and a
next_steps.ymlworkflow that opens onboarding issues for the manual setup steps (Zenodo, SonarCloud, Read the Docs). - Expect opinionated defaults (line length 79, SonarCloud rather than
other coverage services); accept them unless the project has a
reason not to - fighting a template forfeits
copier update.
Choosing a build backend
When scaffolding by hand or answering template questions:
- setuptools + setuptools-scm: the template's default; version derived from git tags; battle-tested.
- hatchling: modern, minimal configuration; good default for new hand-rolled packages.
- poetry / PDM: bring their own dependency workflow; choose them only when the team wants that workflow, not just a build backend.
Whatever the choice, keep all tool configuration in pyproject.toml sections rather than scattered dotfiles where the tools support it.
After scaffolding
Generation is the start, not the finish:
- Work through the template's onboarding steps (the NLeSC template opens them as GitHub issues) instead of leaving badges broken.
- Delete generated options the project will not use rather than letting
them rot; record the answers file (.copier-answers.yml) in git so
copier updateworks. - Route the per-practice follow-ups to the sibling skills: tests (rseng-testing), CI (rseng-ci-cd), docs (rseng-documentation), citation (rseng-citation-metadata), releases (rseng-publishing-releasing), FAIR posture (rseng-fair-software, rseng-fairguard).
Working with this skill
This skill is source-independent: its authority is the template and generator documentation linked below, not a bundled content source.
Learn more (verified):
- https://github.com/NLeSC/python-template - the template
- https://research-software-directory.org/software/nlesc-python-template - its Research Software Directory entry
- https://copier.readthedocs.io/en/stable/ - Copier documentation
<!-- related-skills:begin -->Related skills
Check whether any of these applies before moving on:
- rseng-ci-cd - generated workflow files need understanding
- rseng-citation-metadata - template ships CITATION.cff and cffconvert check
- rseng-dependency-management - keeping generated tooling current
- rseng-fair-software - templates encode the FAIR baseline
- rseng-project-kickoff - management-side project start
- rseng-publishing-releasing - packaging and release setup follow-up
<!-- related-skills:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

