Skip to content
Back to skills

Snakemake Toy Workflow Starter

ASecurity

Use this skill to run a tiny Snakemake workflow through the repo-managed Snakemake prefix and inspect deterministic toy outputs.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythondocumentation

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill snakemake-toy-workflow-starter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Snakemake Toy Workflow Starter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Snakemake Toy Workflow Starter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-snakemake-toy-workflow-starter/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-snakemake-toy-workflow-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: snakemake-toy-workflow-starter
description: Use this skill to run a tiny Snakemake workflow through the repo-managed Snakemake prefix and inspect deterministic toy outputs.
---

## Purpose
Provide a small, readable Snakemake workflow that can be executed locally, inspected, and adapted into larger scientific pipelines.

## When to use
- You need a seed workflow layout for scientific pipeline work.
- You want a tiny example before adapting a larger pipeline.

## When not to use
- You need production-grade workflow packaging or containerization.

## Inputs
- `examples/data/input.txt`
- `examples/config.yaml`

## Outputs
- `results/copied.txt`
- `results/summary.json`
- Optional run summary JSON from the wrapper script

## Requirements
- The repo-local Snakemake runtime at `slurm/envs/snakemake`
- Local filesystem write access for a scratch workspace

## Procedure
1. Review `examples/Snakefile` and `examples/config.yaml`.
2. Run `python3 skills/reproducible-workflows/snakemake-toy-workflow-starter/scripts/check_workflow_layout.py`.
3. Run `python3 skills/reproducible-workflows/snakemake-toy-workflow-starter/scripts/run_snakemake_workflow.py --workspace scratch/snakemake-toy-workflow --summary-out scratch/snakemake-toy-workflow/run_summary.json`.
4. Inspect `results/copied.txt`, `results/summary.json`, and the wrapper summary JSON.

## Validation
- Layout script succeeds.
- `snakemake --version` works from the repo-managed prefix.
- The workflow completes with `--cores 1`.
- The summary JSON reports the copied toy content and a stable checksum.

## Failure modes and fixes
- Missing Snakemake: recreate `slurm/envs/snakemake`.
- Wrong working directory: pass absolute or repo-relative paths when invoking Snakemake.
- Stale workspace contents: rerun through the wrapper, which reseeds a clean workspace.

## Safety and limits
- This is a small local workflow only.
- It verifies local execution, not cluster submission or containerized workflow deployment.

## Examples
- `python3 .../check_workflow_layout.py`
- `python3 .../run_snakemake_workflow.py --workspace scratch/snakemake-toy-workflow --summary-out scratch/snakemake-toy-workflow/run_summary.json`

## Provenance
- Snakemake documentation: https://snakemake.readthedocs.io/en/stable/
- Snakemake installation guide: https://snakemake.readthedocs.io/en/stable/getting_started/installation.html
- Snakemake tutorial: https://snakemake.readthedocs.io/en/stable/tutorial/tutorial.html

## Related skills
- `slurm-job-debug-template`
- `scanpy-qc-starter`
- `nextflow-hello-workflow`
- `nf-core-pipeline-list`

Files in this skill

  • SKILL.md2.5 KB
  • assets/README.md78 B
  • assets/latest-results/copied.txt32 B
  • assets/latest-results/summary.json161 B
  • assets/snakemake_run_summary.json569 B
  • examples/README.md398 B
  • examples/Snakefile841 B
  • examples/config.yaml94 B
  • examples/data/input.txt32 B
  • metadata.yaml1.2 KB
  • refs.md291 B
  • scripts/check_workflow_layout.py660 B
  • scripts/run_snakemake_workflow.py3.7 KB
  • tests/README.md368 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…