Skip to content
Skills Library
Science & research · Automation

nerv-init

/nerv-init

Set up a new bioinformatics sequencing project (bulk RNA-seq, scRNA-seq, or other assays) in an empty folder or one that already holds raw data. Looks at the folder first, runs a short interview, then generates the folder skeleton, a concise AGENTS.md/CLAUDE.md with hard rules, per-folder READMEs, and git, and takes in the raw data with its provenance as read-only deliveries. Use when the user wants to start, bootstrap, or scaffold a new analysis project.

Repository
Seq-Unit-01 ↗
Licence
MIT
Last repository change
03.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
41
Scripts
4
HTML comments
1
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 4 scripts in this package. Review them before installing, as Claude may execute them.
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Scripts: scripts/scaffold.py, scripts/sync_ratio.py, templates/engines/scripts/workflow/run_all.sh, templates/languages/python/tests/test_smoke.py

What it does and when to use it

Set up a new bioinformatics sequencing project (bulk RNA-seq, scRNA-seq, or other assays) in an empty folder or one that already holds raw data. Looks at the folder first, runs a short interview, then generates the folder skeleton, a concise AGENTS.md/CLAUDE.md with hard rules, per-folder READMEs, and git, and takes in the raw data with its provenance as read-only deliveries. Use when the user wants to start, bootstrap, or scaffold a new analysis project.

Original author description

Set up a new bioinformatics sequencing project (bulk RNA-seq, scRNA-seq, or other assays) in an empty folder or one that already holds raw data. Looks at the folder first, runs a short interview, then generates the folder skeleton, a concise AGENTS.md/CLAUDE.md with hard rules, per-folder READMEs, and git, and takes in the raw data with its provenance as read-only deliveries. Use when the user wants to start, bootstrap, or scaffold a new analysis project.

How it works

  1. Rules
  2. Flow
  3. "Other" assay
Original SKILL.md headings · 78 lines, 1,561 words
SKILL.md preview
---
name: nerv-init
description: Set up a new bioinformatics sequencing project (bulk RNA-seq, scRNA-seq, or other assays) in an empty folder or one that already holds raw data. Looks at the folder first, runs a short interview, then generates the folder skeleton, a concise AGENTS.md/CLAUDE.md with hard rules, per-folder READMEs, and git, and takes in the raw data with its provenance as read-only deliveries. Use when the user wants to start, bootstrap, or scaffold a new analysis project.
---

# nerv-init: bootstrap a sequencing project

NERV builds the base the Evas launch from; this skill builds the base an analysis project grows from.

## Rules

- Write nothing before the user confirms the planned tree.
- Never overwrite existing files. If the scaffold reports conflicts, show them and ask how to proceed (different directory, or the user moves the files).
- Move only the data paths the confirmed plan lists, and remove only source folders those moves left empty. Do not move, rename, or delete any other user file.
- Do not add folders the user did not ask for (KISS/YAGNI).

## Flow

1. **Explore.** List the target two levels deep, skipping `.git` and the installed skill copies (`.claude/skills`, `.agents`, `skills-lock.json`). Look at file names and sizes, and read provider readmes (GEO, ENA, or sequencing-core notes). Until the user has said the data is not sensitive, open no data or metadata table, not even its header row: a wide table's header can hold sample identifiers. Classify each item as raw data, a reference (genome FASTA, annotation GTF/GFF), or other. Other files stay where they are. A top-level `data/` (or any skeleton folder) is a conflict the dry run reports; ask the user to rename or move it first. Run `git config user.name` and `git config user.email` in the target to learn the identity the commit will use.
2. **Interview.** Ask the questions in `references/interview.md` in one message. First propose the answers the files settle, such as the assay and whether the inputs are reads or precomputed counts, and say which files settled each one. Ask only the rest, proposing the defaults (Snakemake engine, Python, local compute, not sensitive, project question `TBD`). Ask the assay when the files don't show it; never guess it.
3. **Plan.** Build the answers JSON and run a dry run, passing the JSON on stdin. `<skill-dir>` is the folder containing this SKILL.md:
   ```
   python <skill-dir>/scripts/scaffold.py --answers - --target . --dry-run
   ```
   Use `python3` if `python` is not available. If the result's `status` is `conflict`, show its `conflicts` list and stop to ask how to proceed. If it is `planned`, show an annotated top-level tree:
   - each top-level folder from `files`, with a one-line purpose;
   - each data move or copy as `from → to`, such as `input_data/GSE141713/ → data/raw/GSE141713/`, and reference files going to `data/reference/`;
   - the add-ons that apply (assay, engine, and language layers). Take them from your answers, using the table "How answers map to the generated project" in `references/interview.md`; do not guess them from file names.

   Show the full file list only if the user asks for it. Name the git identity the commit will use ("Commit as Ana <ana@lab.org>"). If either value is missing, ask for a name and email in the same message.
4. **Confirm.** Wait for an explicit yes. Adjust the answers and repeat step 3 if the user changes anything.
5. **Scaffold.** Run the same command without `--dry-run`. It creates the tree, `.gitignore`, `.gitattributes` (LF line endings), `git init`, and copies the doc-sync report to `.nerv/scripts/`.
6. **Data intake.** For each delivery (raw files received together) in the confirmed plan:
   - **Verify provider checksums first.** If the delivery has checksum files (`*.md5`, `md5sum.txt`, `MD5.txt`, `*.sha256`), verify them where the data sits, before moving or copying. On a mismatch, stop this delivery: name the mismatched files and leave them outside `data/raw/`.
   - **Place it.** Folder name: the accession the data's own files state (`GSE141713`), else the folder it arrived in, else today's date. Move raw data found inside the project folder into `data/raw/<delivery>/`; copy raw data the user points to outside it, leave the original in place, and check each copy's SHA-256 against its source. Files stay as received: no unzipping or renaming. References go to `data/reference/`.
   - **Large copies.** If a copy would take long or use a lot of disk space, ask first. Offer a move instead only when the source is on the project's volume, where a move is a rename; never move data off another volume or a shared drive.
   - **Clean up.** Remove a source folder only if the moves left it empty, with a non-recursive remove (`rmdir`); never `rm -r` or `Remove-Item -Recurse`.
   - **Record provenance** in the table in `data/README.md`: each file's path, SHA-256 (any tool the shell offers; long hashes may run in the background), the date received, and its source. Write "supplied locally" plus the original path; name an accession only if the data states it, and never claim a download URL you did not use.
   - **Make the delivery read-only** with the command for your shell, from `data/README.md` ("Adding a delivery"). Leave `data/raw/` itself writable.
   - **Sample sheet** (not for sensitive data). Rewrite `config/samples.tsv` from the sample metadata: one row per sample, a `sample_id` column, and only columns the metadata supports. Never invent one, such as `batch`. Add FASTQ columns (`fastq_1`, `fastq_2`, paths under `data/raw/<delivery>/`) only for reads. For a count matrix, add `counts: <path>` to `config/config.yaml`.
   - **Reference fields.** Fill the `reference` fields in `config/config.yaml` that the data's own files state, such as the organism from a provider readme. Leave the others empty; never guess a genome build or annotation.
   - **Sensitive data.** Still verify, place, record checksums, and make the delivery read-only, but read no data or metadata contents and leave `config/samples.tsv` as the template for the user to fill.
   - **Replacing a file later** in a read-only delivery: ask first, make only that delivery writable, and make it read-only again after recording the new file.

   If exploration found no raw data, skip this step; step 9 asks for the data.
7. **Write the prose.** Replace every `<!-- nerv: ... -->` comment with project-specific text:
   - The project question in `AGENTS.md` and `README.md` comes from the `question` answer. If it is `TBD`, write `TBD`; never invent a question.
   - `AGENTS.md`: the one-line project question. Keep the file about 60 lines and never above 200; move detail into folder READMEs and link it.
   - `README.md`: what the project answers and its status.
   - Each folder README: fill "Conventions" and "Current state" for this assay, engine, and language, describing the data actually present. Keep all four sections.
   - Do not copy folder details into `AGENTS.md`; it only points to them.
8. **Commit.** Never invent an identity or set it globally.
   - If the scaffold result's `git_identity` is `missing` and the user gave a name and email, set them for this project only, as two separate commands in the project, and repeat back what you set:
     ```
     git config user.name "<name>"
     git config user.email "<email>"
     ```
     If the user gave none, or git is unavailable, skip the rest of this step.
   - List what changed: `git status --porcelain --untracked-files=all`. Compare the paths with the result's `files`; the generated files include `data/README.md`, `config/samples.tsv`, and `config/config.yaml` as intake filled them. Expected extras are the installed skill copies: the `skills` folders under `.claude` and `.agents`, and `skills-lock.json`.
   - If any other path is new or changed (including changes the user had already staged), list those paths and ask whether to include them. Wait for the answer.
   - Stage and commit by explicit path, as two separate commands, where `<paths>` is the generated files, the skill copies that `git status` listed (leave out any that don't exist, or `git add` fails), and any paths the user approved:
     ```
     git add -- <paths>
     git commit -m "nerv-init scaffold" -- <paths>
     ```
     The paths after `--` keep declined or already-staged paths out of the commit. If the user declines the other paths, still commit the rest.
   - Sensitive data: before committing, say that `data/README.md` lists the raw file names, which can be identifiers, and ask whether to commit it. If the user declines, leave it out of `<paths>`.
   - If `git add` or `git commit` fails, show git's error to the user and continue; do not retry with a different identity.
9. **Summarize.** Report the created tree, the deliveries taken in and made read-only, and the commit: its short hash, or one sentence on why there is none (git is unavailable, or git has no identity for the project). Then show the user every entry of `next_steps` from the scaffold result, in order and word for word. Do not drop or shorten any of them. After them:
   - If an empty `reference` field blocks the project's next run, name it in one line.
   - Sensitive data: say in one line that the user fills `config/samples.tsv`, because you did not read the metadata.
   - If no raw data was found, ask the user to put the raw files, as received, in `data/raw/<delivery>/` or give their path; when they say the data is in, run step 6 for it, then commit the updated `data/README.md`, `config/samples.tsv`, and `config/config.yaml` as in step 8.
   - End by asking what the user wants to compare or test.

## "Other" assay

The scaffold creates only the shared skeleton. Using `assay_description`, adapt the READMEs yourself:
- `config/README.md`: the assay's key parameters (e.g. peak caller settings for ATAC-seq, variant filters for WGS) and where they live in `config/config.yaml`.
- `data/README.md`: expected raw formats and any assay-specific reference files (e.g. blacklists, known-sites VCFs).
- `scripts/README.md` and `results/README.md`: the main analysis steps and outputs.
- Add files only when the user asks or the assay cannot work without them; record any addition in that folder's "Last major change".
Files in this package (41)
  • SKILL.md 10 KB
  • references/interview.md 4 KB
  • scripts/scaffold.py 10 KB
  • scripts/sync_ratio.py 3 KB
  • templates/addons/bulk-rnaseq/config/README.md.append 1 KB
  • templates/addons/bulk-rnaseq/config/design.yaml 1 KB
  • templates/addons/bulk-rnaseq/data/README.md.append 1 KB
  • templates/addons/bulk-rnaseq/results/README.md.append 1 KB
  • templates/addons/bulk-rnaseq/scripts/README.md.append 1 KB
  • templates/addons/scrnaseq/config/README.md.append 1 KB
  • templates/addons/scrnaseq/config/qc_thresholds.tsv 1 KB
  • templates/addons/scrnaseq/docs/README.md.append 1 KB
  • templates/addons/scrnaseq/docs/integration-log.md 1 KB
  • templates/addons/scrnaseq/notebooks/README.md.append 1 KB
  • templates/addons/scrnaseq/results/README.md.append 1 KB
  • templates/base/AGENTS.md.tmpl 2 KB
  • templates/base/CLAUDE.md 1 KB
  • templates/base/README.md.tmpl 1 KB
  • templates/base/config/README.md 1 KB
  • templates/base/config/config.yaml 1 KB
  • templates/base/config/samples.tsv 1 KB
  • templates/base/data/README.md 2 KB
  • templates/base/data/processed/.gitkeep 1 KB
  • templates/base/data/raw/.gitkeep 1 KB
  • templates/base/data/reference/.gitkeep 1 KB
  • templates/base/docs/README.md 1 KB
  • templates/base/docs/principles.md 2 KB
  • templates/base/envs/README.md 1 KB
  • templates/base/envs/workflow.yaml.tmpl 1 KB
  • templates/base/notebooks/README.md 1 KB
  • templates/base/results/README.md 1 KB
  • templates/base/scripts/README.md 1 KB
  • templates/base/tests/README.md 1 KB
  • templates/base/workflow/README.md 1 KB
  • templates/engines/scripts/workflow/README.md.append 1 KB
  • templates/engines/scripts/workflow/run_all.sh 1 KB
  • templates/engines/snakemake/workflow/README.md.append 1 KB
  • templates/engines/snakemake/workflow/Snakefile 1 KB
  • templates/engines/snakemake/workflow/rules/common.smk 1 KB
  • templates/languages/python/tests/test_smoke.py 1 KB
  • templates/languages/r/tests/test_smoke.R 1 KB

Versions

The database has no other skills named nerv-init.

Database snapshot: 13.11.2026 · package version 8c8b61df6bd5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 84init
    Initialize a new project with a standard directory structure, template files, and a git repository. Use this skill whenever the user starts a new project, types /init, asks to "set up a new project", "initialize a repo", "scaffold a project", or wants to create the standard…
  • 100sync-ratio
    Check which project folders changed significantly without a matching README update, and draft the README updates. Use when the user asks to sync, refresh, or check folder READMEs/docs, or after a large change in a project set up with nerv-init.
  • 100fastqc-report-interpreter
    Use when analyzing FASTQC quality reports from sequencing data, identifying quality issues in NGS datasets, or troubleshooting sequencing problems. Interprets quality metrics and provides actionable recommendations for RNA-seq, DNA-seq, and ChIP-seq data.
  • 100local-scrna-seq-qc-af2a2316
    Process, quality-control, annotate, and visualize single-cell or single-nucleus RNA-seq datasets across tissues and species. Use when Codex needs to build, adapt, or review a general scRNA-seq QC pipeline; choose dataset-appropriate cell-level filters from QC distributions; run…
  • 95gokegg-analysis
    Use when performing GO and KEGG enrichment on a gene list from bulk RNA-seq or microarray studies, then generating a combined GO/KEGG dot chart. NOT for single-cell RNA-seq, methylation data, or non-expression data.
  • 95single-cell-encode
    Find and work with ENCODE single-cell genomics data including scRNA-seq and scATAC-seq. Use when the user asks about single-cell experiments, cell type resolution, clustering from ENCODE data, deconvolution of bulk signals using single-cell references, or comparing single-cell…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.