Project templates

Starter projects I use for new work. Each one sets up the code layout, tests and CI, and the guard rails that let AI coding agents (Claude Code, Codex, Cursor and others) help without pushing to main, touching secrets or raw data, or calling something "done" before the checks pass. Pick the template that matches your project, then follow its steps.

Which template should I use?

If you are…Use
I'm starting a new sequencing project and waiting for data FAIR research project
I need a custom analysis pipeline Snakemake workflow
I'm building a reusable command-line tool Python command-line tool
I'm building a web app or portal with login Django web app

Working with coding agents (all templates)

Every template includes the same agent kit. Do these once per project; after that, ask your agent for changes in plain language and review its pull requests.

Step 1
Install the guard rails once
bash scripts/install_agent_kit.sh

Puts the Claude Code settings, Codex hooks, CI workflows, Dependabot and pre-commit config in place. The generators run this for you.

Step 2
Let the agent read the rules

AGENTS.md holds the project rules for every coding agent; CLAUDE.md imports it for Claude Code. Task runbooks live in .agents/skills/.

Step 3
Check the hooks loaded
/hooks

Run /hooks once in Claude Code. In Codex, trust the project hooks when prompted. Hooks block risky actions and ask you before pushes, deploys and installs.

Step 4
Use one definition of done
bash .agent/done.sh

The same checks run when an agent says it is finished, in CI, and by you. Paste its output into every pull request.

The templates

FAIR research project

Start a new sequencing project the right way, before your data arrive.

Repository: github.com/byee4/fair-research-project-template

Best for

Graduate students and lab members starting a new bulk RNA-seq, spatial transcriptomics, eCLIP or single-cell project on TSCC and/or AWS.

What you get
  • An agent-led project interview that asks about your assay, replicates and data sources
  • Assay modules that pin a maintained community pipeline (nf-core, Skipper)
  • A FAIR sample sheet with ontology IDs, validated on every edit
  • Output contracts, checksummed raw data and RO-Crate provenance
  • A claims file that keeps conclusions as strong as the evidence, and no stronger
First week
  • Finish docs/experimental_design.md with your PI before any data arrive.
  • List every expected sample in config/samples.tsv and validate it.
  • Build a small real test dataset as described in modules/<assay>/README.md.
How to use it
  1. Get the template and set it up
    git clone <repo> my-project && cd my-project
    bash scripts/setup.sh
  2. Run the project interview
    # open your coding agent in this folder and say:
    I'm starting a new project.
  3. No agent? Install a module yourself
    python3 scripts/init_project.py --list
    python3 scripts/init_project.py --assay bulk-rnaseq --variant polyA-stranded \
      --pipeline nf-core/rnaseq --version <exact release> --organism NCBITaxon:9606
  4. Write the design and list your samples
    # fill in docs/experimental_design.md with your PI, then:
    python3 scripts/validate_samplesheet.py config/samples.tsv
Assay modules
AssayDefault pipeline
Bulk RNA-seqnf-core/rnaseq
Spatial (Visium, Visium HD, Xenium, MERSCOPE, CosMx)nf-core/spatialvi, nf-core/sopa
eCLIP / CLIP-seqYeoLab Skipper, Mudskipper
Single-cell / single-nucleus RNA-seqnf-core/scrnaseq
Agent skills included
project-interviewdata-intakeship-change

Snakemake workflow

A small, reproducible Snakemake pipeline you can grow one rule at a time.

Repository: github.com/byee4/snakemake-project-template

Best for

Custom analysis pipelines when no community pipeline fits your data.

What you get
  • A rule/config layout with a working example rule
  • A locked uv environment and per-rule conda environments
  • Lint, dry-run and tests wired into CI
  • Guard rails: agents can't edit results/ or submit cluster jobs without you
First week
  • Replace workflow/rules/report.smk with your first real stage.
  • Point config/config.yaml at your inputs; keep large data out of Git.
  • Add a cluster profile under profiles/ for TSCC; a human submits cluster runs.
How to use it
  1. Create a project from the template
    python3 scripts/create_project.py ../my-workflow \
      --slug my-workflow --name "My workflow"
  2. Set up and check it
    cd ../my-workflow
    make setup
    make dry-run
    make test
  3. Add your first stage
    # ask your agent: "add a rule for <step>" (uses the add-rule skill)
    bash .agent/done.sh
Agent skills included
add-ruleship-change

Python command-line tool

A packaged Python CLI with tests, CI and one-step releases to PyPI.

Repository: github.com/byee4/python-project-template

Best for

Reusable tools and utilities you want to install with pip, uv, conda or Docker.

What you get
  • A src/ layout with a thin Click CLI over pure, tested logic
  • pytest and ruff, run in CI on several Python versions
  • PyPI publishing through GitHub trusted publishing (no stored tokens)
  • Docker and conda recipes
First week
  • Put new behavior in core.py with a unit test, then a thin command in cli.py.
  • Set up PyPI trusted publishing once (see docs/deployment.md).
How to use it
  1. Create a project from the template
    python3 scripts/create_project.py ../my-cli \
      --slug my-cli --name "My CLI"
  2. Set up and try it
    cd ../my-cli
    make setup
    make test
    my-cli hello World
  3. Add a command
    # ask your agent: "add a command that ..." (uses the add-command skill)
    bash .agent/done.sh
  4. Release
    # ask your agent to cut a release (uses the release skill),
    # then publish a GitHub Release to trigger PyPI upload
Agent skills included
add-commandreleaseship-change

Django web app

A Django site with Globus login, an LLM chat app, and test/prod deploys on AWS.

Repository: github.com/byee4/django-eb-template

Best for

Lab web apps and portals that need restricted login and a deploy pipeline.

What you get
  • Globus authentication with an identity/group allowlist
  • A streaming chat app backed by an OpenAI-compatible LLM API
  • Audit logging of every write action
  • Local (.venv or Docker) development and Elastic Beanstalk test + prod environments
First week
  • Register a Globus app and add the callback URL (docs/globus_setup.md).
  • Keep your own identity in the allowlist so you don't lock yourself out.
  • Deploy to test first; smoke-test login and chat before prod.
How to use it
  1. Get the template and configure secrets
    git clone https://github.com/byee4/django-eb-template my-app && cd my-app
    cp .env.example .env    # fill in each value; README explains where to get it
  2. Install the agent guard rails
    bash scripts/install_agent_kit.sh
  3. Run it locally
    scripts/bootstrap_local.sh      # or: scripts/bootstrap_docker.sh
    # open http://localhost:8000/
  4. Deploy (you run these, not the agent)
    scripts/one_time_setup.sh
    scripts/deploy.sh test
    scripts/deploy.sh prod
Agent skills included
deployship-change

Questions or want access to a private template? Email Brian.