Skip to content
Back to skills

Configuration Data

ASecurity

"Route Snakemake configuration, sample metadata, schema validation,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
toolspythonshelldebugging

Works with

  • cli

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill configuration-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Configuration Data?

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

Security grade badge for Configuration Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-configuration-data-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-configuration-data-arex-skill)

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: configuration-data
description: "Route Snakemake configuration, sample metadata, schema validation,
  pathvars, envvars, YTE, PEP, and data-driven helper tasks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Configuration Data

Use this sub-skill when a Snakemake task involves `configfile`, CLI config overrides, profile-provided config, JSON/YAML config loading, `config` mutation, sample tables, `snakemake.utils.validate`, PEP metadata, `envvars`, `pathvars`, YTE-templated YAML, or data-driven helpers such as `lookup`, `branch`, `evaluate`, `collect`, `subpath`, and `exists`.

## Route by Need

- Config sources, precedence, CLI quoting, profiles, YTE, `envvars`, `pathvars`, PEP, and helper patterns: read [configuration-reference.md](references/configuration-reference.md).
- JSON Schema validation for dictionaries, pandas tables, Polars tables, defaults, and relative `$ref`: read [data-validation.md](references/data-validation.md).
- Common failures and diagnostic signals for invalid config, schema errors, optional dependencies, pathvar cycles, and helper misuse: read [troubleshooting.md](references/troubleshooting.md).
- Standalone preflight for config/sample schemas before a full run: use [validate_config_schema.py](scripts/validate_config_schema.py).

## Fast Workflow

1. Inventory every config source: Snakefile `configfile`, included files, CLI `--configfile`, CLI `--config`, profiles, workflow profile, and any top-level Python `update_config(config, ...)`.
2. Resolve precedence before editing rules: later config files recursively extend earlier files, `--config` wins over config files, and `--replace-workflow-config` discards workflow-defined config keys not provided by CLI config files.
3. Validate early, before rule definitions consume values: `from snakemake.utils import validate`; then `validate(config, "schemas/config.schema.yaml")` and validate any sample tables.
4. Keep secrets out of config files: assert names with `envvars:` and pass required values explicitly through `params` rather than assuming shell commands receive them.
5. Run `snakemake --cores 1 --dry-run --printshellcmds` after config/pathvar/schema changes. Do not add `--reason`; it is not a valid Snakemake 9.23.1 flag.

## Boundaries

- Route rule graph syntax, wildcard design, module structure, and rule directives to `../workflow-authoring/SKILL.md`; this sub-skill only owns the data/config semantics feeding them.
- Route command execution strategy, profile selection, cores, dry-runs, and executor flags to `../execution-cli/SKILL.md`; this sub-skill covers only config-related CLI arguments.
- Route storage-provider setup to deployment/storage guidance; this sub-skill only notes that `exists()` respects Snakemake storage settings.
- Route report rendering and metadata display to debugging/reporting guidance unless the issue is config data feeding report metadata.

Files in this skill

  • SKILL.md2.9 KB
  • references/configuration-reference.md10.2 KB
  • references/data-validation.md4.3 KB
  • references/troubleshooting.md5.8 KB
  • scripts/validate_config_schema.py4.9 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.