[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EGBTHXTVEP292WDTHB4S5P":3,"skill-same:01M7EGBTHXTVEP292WDTHB4S5P":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":49},"01M7EGBTHXTVEP292WDTHB4S5P","bio-workflow-management-snakemake-workflows",null,"Authors reproducible bioinformatics pipelines with Snakemake - rules wired by output-file pattern, wildcards and expand() for sample fan-out, checkpoints for runtime-unknown outputs, resource\u002Fretry escalation, and conda\u002Fcontainer software deployment on HPC and cloud. Use when deciding rule-based (Snakemake) vs channel\u002Fdataflow (Nextflow) authoring; wiring rules by OUTPUT-file pattern rather than imperative order; using wildcards + expand() for sample fan-out and constraining them to stop silent mis-routing; adding checkpoints when the set of outputs is unknown until a step runs (dynamic DAG); diagnosing why a job reran (or did not) under the mtime-plus-provenance trigger set; escalating memory on retry for OOM-killed jobs; and porting a Snakemake 7 `--cluster`\u002Fremote-provider command to the Snakemake 8+ executor-plugin and storage-plugin model (snakemake-executor-plugin-slurm) with `--software-deployment-method`.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-workflow-management-snakemake-workflows\ndescription: Authors reproducible bioinformatics pipelines with Snakemake - rules wired by output-file pattern, wildcards and expand() for sample fan-out, checkpoints for runtime-unknown outputs, resource\u002Fretry escalation, and conda\u002Fcontainer software deployment on HPC and cloud. Use when deciding rule-based (Snakemake) vs channel\u002Fdataflow (Nextflow) authoring; wiring rules by OUTPUT-file pattern rather than imperative order; using wildcards + expand() for sample fan-out and constraining them to stop silent mis-routing; adding checkpoints when the set of outputs is unknown until a step runs (dynamic DAG); diagnosing why a job reran (or did not) under the mtime-plus-provenance trigger set; escalating memory on retry for OOM-killed jobs; and porting a Snakemake 7 `--cluster`\u002Fremote-provider command to the Snakemake 8+ executor-plugin and storage-plugin model (snakemake-executor-plugin-slurm) with `--software-deployment-method`.\ntool_type: python\nprimary_tool: Snakemake\ngoal_approach_exempt: true\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"workflow-management\u002Fsnakemake-workflows\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: Snakemake 8.0+, Python 3.11+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nNote: Snakemake 8 (Jan 2024) removed `--cluster`, `--drmaa`, and the `*RemoteProvider` classes from core and moved them to pip-installable EXECUTOR plugins (`--executor slurm`, package `snakemake-executor-plugin-slurm`) and STORAGE plugins (`storage.s3(...)`, `snakemake-storage-plugin-s3`). `--use-conda`\u002F`--use-singularity` became `--software-deployment-method` \u002F `--sdm conda apptainer`. A Snakemake 7 command line does not run unchanged on 8\u002F9. Run `snakemake --version` FIRST and branch all execution guidance on 7 vs 8\u002F9.\n\n# Snakemake Workflows\n\n**\"Build a reproducible bioinformatics pipeline with Snakemake\"** -> Declare each step as a rule that says \"a file matching THIS output pattern is produced FROM those inputs\", let the engine resolve the DAG backward from requested targets, fan out over samples with wildcards, and pin the software environment so the result reproduces next year.\n- Python: Snakefile `rule`\u002F`checkpoint` blocks with `expand()`, `wildcards`, `config`, `resources`, and `conda:`\u002F`container:` (Snakemake)\n\n## The governing principle: Snakemake is pull\u002Fgoal-oriented - it builds a STATIC DAG backward from requested target files\n\nSnakemake is a pull, make-like engine. An author does NOT describe a forward flow of data. Each `rule` is a pattern-matched recipe (\"a file that looks like THIS can be produced FROM that\"), and the engine takes the requested target files and works BACKWARD, unifying wildcards by string-matching output filename patterns, until it reaches files already on disk. The whole plan - a static DAG - is computed at parse time, before a single job runs (Köster & Rahmann 2012 *Bioinformatics* 28:2520-2522). Almost every Snakemake bug a biologist hits is a downstream consequence of this one model:\n\n- Rules are wired by OUTPUT-FILE PATTERN, not call order. A missing or typo'd output path silently drops a rule from the DAG - there is no error, the job just never runs. Debugging \"why didn't it run\" means tracing the backward dependency from the target, not reading top-to-bottom.\n- Because the plan is fully known up front, `snakemake -n` (dry run), `--dag`, and `--report` are first-class. This is the payoff of the static model. Nextflow's reactive-dataflow model (processes connected by asynchronous channels, DAG emerges at runtime) has no true dry-run - hold both models in mind and most \"why did\u002Fdidn't it run\" questions answer themselves.\n- Data-dependent branching is impossible in the base model. If the NUMBER or identity of outputs is unknown until a step runs (split into one file per detected cluster, scatter over however many contigs an assembler emits), the static DAG cannot represent it -> that is exactly what CHECKPOINTS exist for. A biologist who thinks \"the pipeline decides at runtime how many chunks\" is fighting the paradigm and needs a checkpoint, not a clever `run:` block.\n- A workflow manager buys reproducible LOGIC and nothing else automatically. The DAG being deterministic says nothing about tool versions. A rule with no `conda:`\u002F`container:` runs against whatever is on `$PATH`; \"reproducible\" is unearned until the software environment is pinned (Grüning et al. 2018 *Cell Syst* 6:631-635). Pin containers by DIGEST and conda by LOCKFILE - see Software Deployment below.\n\n## Decision: Snakemake vs Nextflow (pick by team and infrastructure, not benchmarks)\n\n| Dimension | Snakemake | Nextflow | Best when |\n|-----------|-----------|----------|-----------|\n| Model | pull\u002Fmake, static DAG at parse time | push\u002Freactive dataflow, dynamic DAG | Snakemake: the plan must be visible before committing an allocation |\n| Language | Python DSL (real Python + pandas in the Snakefile) | Groovy DSL | Snakemake: Python-native lab, file-pattern logic |\n| Dry run \u002F DAG viz | first-class (`-n`, `--dag`, `--report`) | no true dry-run (`-stub`\u002F`-preview` check wiring only) | Snakemake: HPC where a bad plan is expensive |\n| Data-dependent branching | needs checkpoints (escape hatch) | native (channels) | Nextflow: shape depends on runtime data |\n| Community pipelines | Workflow Catalog \u002F wrappers (smaller) | nf-core (large, curated) | Nextflow: run a maintained pipeline as-is |\n| Sweet spot | single-lab reproducible research, HPC, tight Python integration | cloud\u002Fproduction, multi-institution, nf-core stacks | choose by the ecosystem to integrate with |\n\nReuse before authoring: for a mainstream analysis (RNA-seq, variant calling, ATAC-seq), a curated community pipeline already encodes years of QC and edge cases. Adopting one means RUNNING it (e.g. nf-core\u002Frnaseq via workflow-management\u002Fnf-core-pipelines), not authoring Groovy - so a Python-shop preference for Snakemake only decides the authoring case, not whether to build at all. Author from scratch only for a novel method or an unsupported combination of steps.\n\n## Decision: rerun triggers - why a job reran, or did not\n\nSince Snakemake 7.8 the default is NOT pure mtime. A rerun fires on a SET of triggers: `{mtime, params, input, code, software-env}` (Mölder et al. 2021 *F1000Research* 10:33). This surprises everyone upgrading from old Snakemake.\n\n| Want | Use |\n|------|-----|\n| classic Make behavior, minimize surprise reruns | `--rerun-triggers mtime` |\n| max reproducibility (default) | all five triggers |\n| ignore a stable reference's timestamp | `ancient(\"ref.fa\")` on that input |\n| mark results current without recompute | `--touch` |\n| force specific rules | `--forcerun rule` \u002F `-R` |\n| see what WOULD rerun and why | `snakemake -n -R` \u002F `--list-changes code` |\n\nThe `code` trigger catches shell\u002Fscript\u002Frun body changes - reformatting whitespace or editing a comment counts as a code change and reruns the job. On very large DAGs or multi-TB inputs the provenance triggers add a hashing\u002Fstat storm; `--rerun-triggers mtime` skips it.\n\n## Decision: run vs script vs shell vs notebook vs wrapper\n\n| Situation | Pick | Why |\n|-----------|------|-----|\n| call a CLI tool (samtools, bwa) | `shell:` | subprocess, conda\u002Fcontainer-isolated |\n| reusable Python\u002FR analysis needing isolation | `script:` | separate process, `snakemake` object injected |\n| standard tool, do not want to write shell | `wrapper:` (PINNED tag) | maintained, ships its own env |\n| exploratory, want a re-runnable notebook | `notebook:` | params injected, `--edit-notebook` |\n| trivial in-Snakefile glue only | `run:` | NEVER heavy work |\n\n`run:` executes IN the main Snakemake process - it shares the interpreter and GIL, cannot be conda\u002Fcontainer-isolated (the `conda:` directive is disallowed with `run:`), blocks the scheduler, and an OOM in it takes down the whole workflow. Move anything beyond trivial glue to `script:`.\n\n## Decision: execution backend (Snakemake 8\u002F9)\n\n| Target | Command |\n|--------|---------|\n| laptop\u002Fworkstation | `snakemake --cores N --sdm conda` |\n| SLURM (native) | `pip install snakemake-executor-plugin-slurm` then `--executor slurm --jobs N --default-resources` |\n| SLURM (legacy sbatch string) | `pip install snakemake-executor-plugin-cluster-generic` then `--executor cluster-generic --cluster-generic-submit-cmd \"sbatch ...\"` |\n| S3\u002FGCS I\u002FO | `pip install snakemake-storage-plugin-s3` then `--default-storage-provider s3 --default-storage-prefix s3:\u002F\u002F...\u002F` |\n| thousands of tiny jobs | add `group:` \u002F `--group-components` to collapse scheduler overhead |\n\nPorting a v7 `--cluster \"sbatch --account=X --partition=Y --mem=Z --time=T\"` command: for the native `slurm` executor, map those sbatch flags to resource keys (`slurm_account`, `slurm_partition`, `mem_mb`, `runtime` in minutes) set per-rule in `resources:` or globally via `--default-resources`; for a drop-in port keep the old string under `cluster-generic` (its own plugin, above). `--cores` = local cores; `--jobs`\u002F`-j` = number of concurrent cluster\u002Fcloud jobs (in v8 these are separate). Profiles are versioned: the file is `config\u002Fconfig.v8+.yaml`, every long option becomes a YAML key.\n\n## Rules, wildcards, and expand\n\n`expand()` returns a LIST of strings by combinatorial substitution - it does NOT touch the filesystem. Use it to enumerate targets in `rule all`.\n\n```python\nconfigfile: 'config\u002Fconfig.yaml'\nSAMPLES = config['samples']\n\nrule all:                                              # the requested targets; the DAG is built backward from here\n    input:\n        expand('results\u002F{sample}.bam', sample=SAMPLES)\n\nrule align:\n    input:\n        r1 = 'data\u002F{sample}_R1.fq.gz',\n        r2 = 'data\u002F{sample}_R2.fq.gz',\n        index = 'ref\u002Fgenome.fa'\n    output:\n        bam = 'aligned\u002F{sample}.bam'                   # this OUTPUT PATTERN, matched against the target, wires the rule in\n    threads: 8\n    log:\n        'logs\u002Falign\u002F{sample}.log'\n    shell:\n        'bwa mem -t {threads} {input.index} {input.r1} {input.r2} | '\n        'samtools sort -@ {threads} -o {output.bam} 2> {log}'\n```\n\n## Wildcard constraints - stop silent mis-routing\n\nWildcards are greedy regex string-unification (`{sample}` compiles to `.+`), not typed parameters. An unconstrained wildcard swallows path separators and adjacent tokens: `data\u002F{sample}.txt` matches `data\u002Fa\u002Fb.txt` as `sample=a\u002Fb`, and `{a}.{b}.txt` on `101.B.normal.txt` has no unique parse. The failure is silent mis-routing, not an error. Constrain whenever a value can contain `\u002F`, `.`, or `_`, or a filename has multiple variable tokens.\n\n```python\nwildcard_constraints:\n    sample = '[^\u002F]+',                                  # no path separators\n    chrom = r'\\d+|X|Y|MT'                              # only real chromosome tokens\n\n# two rules whose output patterns can both produce a requested file raise AmbiguousRuleException;\n# prefer non-overlapping constraints to disambiguate, and fall back to `ruleorder: a > b` only if needed.\n```\n\n## Checkpoints - the ONLY data-dependent-DAG mechanism\n\n**Goal:** produce downstream jobs for a set of files whose number and identity are unknown until a step runs (split a FASTA into one file per detected cluster; scatter over an assembler's contigs).\n\n**Approach:** declare the producing step a `checkpoint` with a `directory()` output; in an input function on the AGGREGATING rule, call `checkpoints.\u003Cname>.get(**wildcards)` FIRST - its exception is what forces the engine to run the checkpoint and RE-EVALUATE the DAG - then `glob_wildcards` the checkpoint's declared output dir and `expand()` the real targets.\n\n```python\ncheckpoint split_fasta:\n    input:\n        'data\u002Fall.fasta'\n    output:\n        directory('split\u002F{sample}')                    # directory() because the file set is unknowable at parse time\n    shell:\n        'split_by_cluster.py {input} split\u002F{wildcards.sample}'\n\ndef gather_clusters(wildcards):\n    # .get() RAISES until the checkpoint has run; that exception drives DAG re-evaluation.\n    # Omitting it globs at parse time (empty), so the aggregation silently gets zero inputs - the classic bug.\n    ckpt_dir = checkpoints.split_fasta.get(**wildcards).output[0]\n    ids = glob_wildcards(f'{ckpt_dir}\u002F{{id}}.fasta').id\n    return expand('processed\u002F{sample}\u002F{id}.done', sample=wildcards.sample, id=ids)\n\nrule aggregate:                                         # the input function MUST be attached to the rule that consumes the set\n    input:\n        gather_clusters\n    output:\n        'results\u002F{sample}_summary.txt'\n    shell:\n        'cat {input} > {output}'\n```\n\nPoint `glob_wildcards` at the checkpoint's declared `directory()` output (a fresh dir) so stale files do not leak into the glob. Prefer one scatter->gather to chains of nested checkpoints.\n\n## Resources, escalating retries, and grouping\n\nResource callables differ by directive: `resources` is `callable(wildcards [, input] [, threads] [, attempt])`; `threads` is `callable(wildcards [, input])` only; getting the signature wrong is a top error source. `runtime` is in MINUTES. `attempt` starts at 1 and increments per retry - the canonical fix for OOM-killed jobs.\n\n```python\nrule call_variants:\n    input:\n        bam = 'aligned\u002F{sample}.bam'\n    output:\n        'results\u002F{sample}.vcf'\n    threads: 4\n    retries: 3                                          # or global --retries 3\n    resources:\n        mem_mb = lambda wildcards, attempt: 8000 * attempt,   # 8 GB, doubling to 16\u002F24 on OOM restart\n        runtime = 240                                   # MINUTES, not seconds; SLURM wall-time\n    log:\n        'logs\u002Fcall\u002F{sample}.log'\n    shell:\n        'variant_caller --threads {threads} {input.bam} > {output} 2> {log}'\n```\n\nFor thousands of tiny jobs on HPC, per-job scheduler latency dominates: assign rules a `group:` (or `--group-components rule=N`) so they submit as one job. `temp('x.bam')` deletes an intermediate once all consumers are done (huge for disk); `ancient('ref.fa')` excludes an input from mtime-based rerun decisions.\n\n## Software deployment - the layer that makes it reproducible\n\nA clean DAG over unpinned tools is not reproducible. The engine gives layer 1 (logic); the author must pin the software environment. Declare `conda:` (a pinnable file) or `container:` per rule, and activate deployment at run time.\n\n```python\nrule fastqc:\n    input:\n        'data\u002F{sample}.fq.gz'\n    output:\n        'qc\u002F{sample}_fastqc.html'\n    conda:\n        'envs\u002Fqc.yaml'                                  # a FILE (pinnable), not a bare named env\n    container:\n        # PIN BY DIGEST, never a mutable tag - :latest or a re-pushed :0.7.17 silently changes the tool and busts the cache\n        'docker:\u002F\u002Fquay.io\u002Fbiocontainers\u002Ffastqc@sha256:\u003Cdigest>'\n    shell:\n        'fastqc {input} -o qc\u002F'\n```\n\n```bash\nsnakemake --sdm conda --cores 8                         # build per-rule conda envs (was --use-conda in v7)\nsnakemake --sdm apptainer --cores 8                     # run each rule in its container (was --use-singularity)\nsnakemake --sdm conda apptainer --cores 8               # containerized conda: build the env INSIDE the pinned image\n```\n\nA bare `environment.yml` with `samtools` (no version) resolves differently over time; pin exact builds with a lockfile (conda-lock) for bit-reproducibility. `--containerize` auto-generates a Dockerfile baking all conda envs into one image. Between-workflow caching (`cache: True` + `SNAKEMAKE_OUTPUT_CACHE`) reuses results across workflows but ONLY for deterministic rules - a nondeterministic tool poisons the shared cache with wrong results silently.\n\n## Modularization and reuse\n\n`include: 'rules\u002Fx.smk'` is textual inclusion sharing one namespace. For genuine composition of published workflows, use the module system (`module other: snakefile: '...'; use rule * from other as other_*`), which can import, prefix, and override rules. `wrapper: 'v5.0.2\u002Fbio\u002Fbwa\u002Fmem'` pulls a maintained, conda-shipping wrapper - PIN the leading version tag; an unpinned wrapper drifts silently.\n\n```python\ninclude: 'rules\u002Fqc.smk'\ninclude: 'rules\u002Falign.smk'\n\nrule all:\n    input:\n        rules.qc_all.input,\n        rules.call_all.input\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| A rule silently never runs | its output pattern does not match any requested target (typo\u002Fpath); the DAG dropped it | trace backward from `rule all`; run `snakemake -n` and inspect the DAG; fix the output path |\n| Wildcard captures too much \u002F wrong sample | unconstrained greedy `.+` swallowed a delimiter or path separator | add `wildcard_constraints` (e.g. `sample='[^\u002F]+'`) |\n| Aggregation after a split has zero inputs | forgot `checkpoints.X.get()`, or globbed at parse time, or input function on the wrong rule | call `.get(**wildcards)` first, glob the checkpoint's `directory()` output, attach the function to the consumer |\n| Everything reruns after a cosmetic edit | the `code` trigger - editing the shell\u002Fscript body (even whitespace) counts | expected under provenance triggers; use `--rerun-triggers mtime` to opt out |\n| Expected a rerun, got none | old mtime mental model, or output is newer than input | check triggers; `--forcerun rule` \u002F `-R` |\n| `--cluster`\u002F`S3RemoteProvider` errors on v8 | removed from core in Snakemake 8 | install the executor\u002Fstorage plugin; use `--executor slurm` and `storage.s3(...)` |\n| OOM-killed job (exit 137) | static `mem_mb` too low for the largest sample | `retries` + `mem_mb=lambda wildcards, attempt: base*attempt` |\n| Per-job scheduler meltdown on HPC | thousands of tiny jobs, submission overhead dominates | `group:` \u002F `--group-components` to batch into one submission |\n| `MissingOutputException` on NFS\u002FLustre | networked filesystem lags after a job finishes | raise `--latency-wait` |\n| Workflow refuses to continue after a killed job (\"Incomplete files\") | a job died mid-write (SLURM kill, node crash), so its outputs are flagged incomplete | re-run with `--rerun-incomplete` (`--ri`); this is Snakemake's crash-resume, distinct from the rerun triggers |\n| Heavy `run:` block hangs the workflow | runs in the main process, shares the GIL, no isolation | move to `script:` |\n| \"Reproducible\" but results differ on a colleague's cluster | no `--sdm`, or a mutable `:latest` container tag | declare `conda:`\u002F`container:`, pin by digest + conda lockfile |\n\n## Related Skills\n\n- workflow-management\u002Fnextflow-pipelines - The reactive-dataflow alternative; author here when the DAG must emerge from runtime data\n- workflow-management\u002Fnf-core-pipelines - Run a curated community Nextflow pipeline instead of authoring from scratch\n- workflows\u002Frnaseq-to-de - End-to-end RNA-seq-to-differential-expression pipeline this engine can orchestrate\n- read-qc\u002Fquality-reports - The QC step a pipeline wraps as an early rule\n- read-alignment\u002Fbwa-alignment - The alignment tool invoked inside a Snakemake `shell:` rule\n\n## References\n\n- Köster J, Rahmann S. 2012. Snakemake - a scalable bioinformatics workflow engine. *Bioinformatics* 28(19):2520-2522.\n- Mölder F, Jablonski KP, Letcher B, et al. 2021. Sustainable data analysis with Snakemake. *F1000Research* 10:33.\n- Grüning B, Chilton J, Köster J, et al. 2018. Practical computational reproducibility in the life sciences. *Cell Systems* 6(6):631-635.\n- Di Tommaso P, Chatzou M, Floden EW, et al. 2017. Nextflow enables reproducible computational workflows. *Nature Biotechnology* 35(4):316-319.\n","## Version Compatibility\n\nReference examples tested with: Snakemake 8.0+, Python 3.11+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\nNote: Snakemake 8 (Jan 2024) removed `--cluster`, `--drmaa`, and the `*RemoteProvider` classes from core and moved them to pip-installable EXECUTOR plugins (`--executor slurm`, package `snakemake-executor-plugin-slurm`) and STORAGE plugins (`storage.s3(...)`, `snakemake-storage-plugin-s3`). `--use-conda`\u002F`--use-singularity` became `--software-deployment-method` \u002F `--sdm conda apptainer`. A Snakemake 7 command line does not run unchanged on 8\u002F9. Run `snakemake --version` FIRST and branch all execution guidance on 7 vs 8\u002F9.\n\n# Snakemake Workflows\n\n**\"Build a reproducible bioinformatics pipeline with Snakemake\"** -> Declare each step as a rule that says \"a file matching THIS output pattern is produced FROM those inputs\", let the engine resolve the DAG backward from requested targets, fan out over samples with wildcards, and pin the software environment so the result reproduces next year.\n- Python: Snakefile `rule`\u002F`checkpoint` blocks with `expand()`, `wildcards`, `config`, `resources`, and `conda:`\u002F`container:` (Snakemake)\n\n## The governing principle: Snakemake is pull\u002Fgoal-oriented - it builds a STATIC DAG backward from requested target files\n\nSnakemake is a pull, make-like engine. An author does NOT describe a forward flow of data. Each `rule` is a pattern-matched recipe (\"a file that looks like THIS can be produced FROM that\"), and the engine takes the requested target files and works BACKWARD, unifying wildcards by string-matching output filename patterns, until it reaches files already on disk. The whole plan - a static DAG - is computed at parse time, before a single job runs (Köster & Rahmann 2012 *Bioinformatics* 28:2520-2522). Almost every Snakemake bug a biologist hits is a downstream consequence of this one model:\n\n- Rules are wired by OUTPUT-FILE PATTERN, not call order. A missing or typo'd output path silently drops a rule from the DAG - there is no error, the job just never runs. Debugging \"why didn't it run\" means tracing the backward dependency from the target, not reading top-to-bottom.\n- Because the plan is fully known up front, `snakemake -n` (dry run), `--dag`, and `--report` are first-class. This is the payoff of the static model. Nextflow's reactive-dataflow model (processes connected by asynchronous channels, DAG emerges at runtime) has no true dry-run - hold both models in mind and most \"why did\u002Fdidn't it run\" questions answer themselves.\n- Data-dependent branching is impossible in the base model. If the NUMBER or identity of outputs is unknown until a step runs (split into one file per detected cluster, scatter over however many contigs an assembler emits), the static DAG cannot represent it -> that is exactly what CHECKPOINTS exist for. A biologist who thinks \"the pipeline decides at runtime how many chunks\" is fighting the paradigm and needs a checkpoint, not a clever `run:` block.\n- A workflow manager buys reproducible LOGIC and nothing else automatically. The DAG being deterministic says nothing about tool versions. A rule with no `conda:`\u002F`container:` runs against whatever is on `$PATH`; \"reproducible\" is unearned until the software environment is pinned (Grüning et al. 2018 *Cell Syst* 6:631-635). Pin containers by DIGEST and conda by LOCKFILE - see Software Deployment below.\n\n## Decision: Snakemake vs Nextflow (pick by team and infrastructure, not benchmarks)\n\n| Dimension | Snakemake | Nextflow | Best when |\n|-----------|-----------|----------|-----------|\n| Model | pull\u002Fmake, static DAG at parse time | push\u002Freactive dataflow, dynamic DAG | Snakemake: the plan must be visible before committing an allocation |\n| Language | Python DSL (real Python + pandas in the Snakefile) | Groovy DSL | Snakemake: Python-native lab, file-pattern logic |\n| Dry run \u002F DAG viz | first-class (`-n`, `--dag`, `--report`) | no true dry-run (`-stub`\u002F`-preview` check wiring only) | Snakemake: HPC where a bad plan is expensive |\n| Data-dependent branching | needs checkpoints (escape hatch) | native (channels) | Nextflow: shape depends on runtime data |\n| Community pipelines | Workflow Catalog \u002F wrappers (smaller) | nf-core (large, curated) | Nextflow: run a maintained pipeline as-is |\n| Sweet spot | single-lab reproducible research, HPC, tight Python integration | cloud\u002Fproduction, multi-institution, nf-core stacks | choose by the ecosystem to integrate with |\n\nReuse before authoring: for a mainstream analysis (RNA-seq, variant calling, ATAC-seq), a curated community pipeline already encodes years of QC and edge cases. Adopting one means RUNNING it (e.g. nf-core\u002Frnaseq via workflow-management\u002Fnf-core-pipelines), not authoring Groovy - so a Python-shop preference for Snakemake only decides the authoring case, not whether to build at all. Author from scratch only for a novel method or an unsupported combination of steps.\n\n## Decision: rerun triggers - why a job reran, or did not\n\nSince Snakemake 7.8 the default is NOT pure mtime. A rerun fires on a SET of triggers: `{mtime, params, input, code, software-env}` (Mölder et al. 2021 *F1000Research* 10:33). This surprises everyone upgrading from old Snakemake.\n\n| Want | Use |\n|------|-----|\n| classic Make behavior, minimize surprise reruns | `--rerun-triggers mtime` |\n| max reproducibility (default) | all five triggers |\n| ignore a stable reference's timestamp | `ancient(\"ref.fa\")` on that input |\n| mark results current without recompute | `--touch` |\n| force specific rules | `--forcerun rule` \u002F `-R` |\n| see what WOULD rerun and why | `snakemake -n -R` \u002F `--list-changes code` |\n\nThe `code` trigger catches shell\u002Fscript\u002Frun body changes - reformatting whitespace or editing a comment counts as a code change and reruns the job. On very large DAGs or multi-TB inputs the provenance triggers add a hashing\u002Fstat storm; `--rerun-triggers mtime` skips it.\n\n## Decision: run vs script vs shell vs notebook vs wrapper\n\n| Situation | Pick | Why |\n|-----------|------|-----|\n| call a CLI tool (samtools, bwa) | `shell:` | subprocess, conda\u002Fcontainer-isolated |\n| reusable Python\u002FR analysis needing isolation | `script:` | separate process, `snakemake` object injected |\n| standard tool, do not want to write shell | `wrapper:` (PINNED tag) | maintained, ships its own env |\n| exploratory, want a re-runnable notebook | `notebook:` | params injected, `--edit-notebook` |\n| trivial in-Snakefile glue only | `run:` | NEVER heavy work |\n\n`run:` executes IN the main Snakemake process - it shares the interpreter and GIL, cannot be conda\u002Fcontainer-isolated (the `conda:` directive is disallowed with `run:`), blocks the scheduler, and an OOM in it takes down the whole workflow. Move anything beyond trivial glue to `script:`.\n\n## Decision: execution backend (Snakemake 8\u002F9)\n\n| Target | Command |\n|--------|---------|\n| laptop\u002Fworkstation | `snakemake --cores N --sdm conda` |\n| SLURM (native) | `pip install snakemake-executor-plugin-slurm` then `--executor slurm --jobs N --default-resources` |\n| SLURM (legacy sbatch string) | `pip install snakemake-executor-plugin-cluster-generic` then `--executor cluster-generic --cluster-generic-submit-cmd \"sbatch ...\"` |\n| S3\u002FGCS I\u002FO | `pip install snakemake-storage-plugin-s3` then `--default-storage-provider s3 --default-storage-prefix s3:\u002F\u002F...\u002F` |\n| thousands of tiny jobs | add `group:` \u002F `--group-components` to collapse scheduler overhead |\n\nPorting a v7 `--cluster \"sbatch --account=X --partition=Y --mem=Z --time=T\"` command: for the native `slurm` executor, map those sbatch flags to resource keys (`slurm_account`, `slurm_partition`, `mem_mb`, `runtime` in minutes) set per-rule in `resources:` or globally via `--default-resources`; for a drop-in port keep the old string under `cluster-generic` (its own plugin, above). `--cores` = local cores; `--jobs`\u002F`-j` = number of concurrent cluster\u002Fcloud jobs (in v8 these are separate). Profiles are versioned: the file is `config\u002Fconfig.v8+.yaml`, every long option becomes a YAML key.\n\n## Rules, wildcards, and expand\n\n`expand()` returns a LIST of strings by combinatorial substitution - it does NOT touch the filesystem. Use it to enumerate targets in `rule all`.\n\n```python\nconfigfile: 'config\u002Fconfig.yaml'\nSAMPLES = config['samples']\n\nrule all:                                              # the requested targets; the DAG is built backward from here\n    input:\n        expand('results\u002F{sample}.bam', sample=SAMPLES)\n\nrule align:\n    input:\n        r1 = 'data\u002F{sample}_R1.fq.gz',\n        r2 = 'data\u002F{sample}_R2.fq.gz',\n        index = 'ref\u002Fgenome.fa'\n    output:\n        bam = 'aligned\u002F{sample}.bam'                   # this OUTPUT PATTERN, matched against the target, wires the rule in\n    threads: 8\n    log:\n        'logs\u002Falign\u002F{sample}.log'\n    shell:\n        'bwa mem -t {threads} {input.index} {input.r1} {input.r2} | '\n        'samtools sort -@ {threads} -o {output.bam} 2> {log}'\n```\n\n## Wildcard constraints - stop silent mis-routing\n\nWildcards are greedy regex string-unification (`{sample}` compiles to `.+`), not typed parameters. An unconstrained wildcard swallows path separators and adjacent tokens: `data\u002F{sample}.txt` matches `data\u002Fa\u002Fb.txt` as `sample=a\u002Fb`, and `{a}.{b}.txt` on `101.B.normal.txt` has no unique parse. The failure is silent mis-routing, not an error. Constrain whenever a value can contain `\u002F`, `.`, or `_`, or a filename has multiple variable tokens.\n\n```python\nwildcard_constraints:\n    sample = '[^\u002F]+',                                  # no path separators\n    chrom = r'\\d+|X|Y|MT'                              # only real chromosome tokens\n\n# two rules whose output patterns can both produce a requested file raise AmbiguousRuleException;\n# prefer non-overlapping constraints to disambiguate, and fall back to `ruleorder: a > b` only if needed.\n```\n\n## Checkpoints - the ONLY data-dependent-DAG mechanism\n\n**Goal:** produce downstream jobs for a set of files whose number and identity are unknown until a step runs (split a FASTA into one file per detected cluster; scatter over an assembler's contigs).\n\n**Approach:** declare the producing step a `checkpoint` with a `directory()` output; in an input function on the AGGREGATING rule, call `checkpoints.\u003Cname>.get(**wildcards)` FIRST - its exception is what forces the engine to run the checkpoint and RE-EVALUATE the DAG - then `glob_wildcards` the checkpoint's declared output dir and `expand()` the real targets.\n\n```python\ncheckpoint split_fasta:\n    input:\n        'data\u002Fall.fasta'\n    output:\n        directory('split\u002F{sample}')                    # directory() because the file set is unknowable at parse time\n    shell:\n        'split_by_cluster.py {input} split\u002F{wildcards.sample}'\n\ndef gather_clusters(wildcards):\n    # .get() RAISES until the checkpoint has run; that exception drives DAG re-evaluation.\n    # Omitting it globs at parse time (empty), so the aggregation silently gets zero inputs - the classic bug.\n    ckpt_dir = checkpoints.split_fasta.get(**wildcards).output[0]\n    ids = glob_wildcards(f'{ckpt_dir}\u002F{{id}}.fasta').id\n    return expand('processed\u002F{sample}\u002F{id}.done', sample=wildcards.sample, id=ids)\n\nrule aggregate:                                         # the input function MUST be attached to the rule that consumes the set\n    input:\n        gather_clusters\n    output:\n        'results\u002F{sample}_summary.txt'\n    shell:\n        'cat {input} > {output}'\n```\n\nPoint `glob_wildcards` at the checkpoint's declared `directory()` output (a fresh dir) so stale files do not leak into the glob. Prefer one scatter->gather to chains of nested checkpoints.\n\n## Resources, escalating retries, and grouping\n\nResource callables differ by directive: `resources` is `callable(wildcards [, input] [, threads] [, attempt])`; `threads` is `callable(wildcards [, input])` only; getting the signature wrong is a top error source. `runtime` is in MINUTES. `attempt` starts at 1 and increments per retry - the canonical fix for OOM-killed jobs.\n\n```python\nrule call_variants:\n    input:\n        bam = 'aligned\u002F{sample}.bam'\n    output:\n        'results\u002F{sample}.vcf'\n    threads: 4\n    retries: 3                                          # or global --retries 3\n    resources:\n        mem_mb = lambda wildcards, attempt: 8000 * attempt,   # 8 GB, doubling to 16\u002F24 on OOM restart\n        runtime = 240                                   # MINUTES, not seconds; SLURM wall-time\n    log:\n        'logs\u002Fcall\u002F{sample}.log'\n    shell:\n        'variant_caller --threads {threads} {input.bam} > {output} 2> {log}'\n```\n\nFor thousands of tiny jobs on HPC, per-job scheduler latency dominates: assign rules a `group:` (or `--group-components rule=N`) so they submit as one job. `temp('x.bam')` deletes an intermediate once all consumers are done (huge for disk); `ancient('ref.fa')` excludes an input from mtime-based rerun decisions.\n\n## Software deployment - the layer that makes it reproducible\n\nA clean DAG over unpinned tools is not reproducible. The engine gives layer 1 (logic); the author must pin the software environment. Declare `conda:` (a pinnable file) or `container:` per rule, and activate deployment at run time.\n\n```python\nrule fastqc:\n    input:\n        'data\u002F{sample}.fq.gz'\n    output:\n        'qc\u002F{sample}_fastqc.html'\n    conda:\n        'envs\u002Fqc.yaml'                                  # a FILE (pinnable), not a bare named env\n    container:\n        # PIN BY DIGEST, never a mutable tag - :latest or a re-pushed :0.7.17 silently changes the tool and busts the cache\n        'docker:\u002F\u002Fquay.io\u002Fbiocontainers\u002Ffastqc@sha256:\u003Cdigest>'\n    shell:\n        'fastqc {input} -o qc\u002F'\n```\n\n```bash\nsnakemake --sdm conda --cores 8                         # build per-rule conda envs (was --use-conda in v7)\nsnakemake --sdm apptainer --cores 8                     # run each rule in its container (was --use-singularity)\nsnakemake --sdm conda apptainer --cores 8               # containerized conda: build the env INSIDE the pinned image\n```\n\nA bare `environment.yml` with `samtools` (no version) resolves differently over time; pin exact builds with a lockfile (conda-lock) for bit-reproducibility. `--containerize` auto-generates a Dockerfile baking all conda envs into one image. Between-workflow caching (`cache: True` + `SNAKEMAKE_OUTPUT_CACHE`) reuses results across workflows but ONLY for deterministic rules - a nondeterministic tool poisons the shared cache with wrong results silently.\n\n## Modularization and reuse\n\n`include: 'rules\u002Fx.smk'` is textual inclusion sharing one namespace. For genuine composition of published workflows, use the module system (`module other: snakefile: '...'; use rule * from other as other_*`), which can import, prefix, and override rules. `wrapper: 'v5.0.2\u002Fbio\u002Fbwa\u002Fmem'` pulls a maintained, conda-shipping wrapper - PIN the leading version tag; an unpinned wrapper drifts silently.\n\n```python\ninclude: 'rules\u002Fqc.smk'\ninclude: 'rules\u002Falign.smk'\n\nrule all:\n    input:\n        rules.qc_all.input,\n        rules.call_all.input\n```\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| A rule silently never runs | its output pattern does not match any requested target (typo\u002Fpath); the DAG dropped it | trace backward from `rule all`; run `snakemake -n` and inspect the DAG; fix the output path |\n| Wildcard captures too much \u002F wrong sample | unconstrained greedy `.+` swallowed a delimiter or path separator | add `wildcard_constraints` (e.g. `sample='[^\u002F]+'`) |\n| Aggregation after a split has zero inputs | forgot `checkpoints.X.get()`, or globbed at parse time, or input function on the wrong rule | call `.get(**wildcards)` first, glob the checkpoint's `directory()` output, attach the function to the consumer |\n| Everything reruns after a cosmetic edit | the `code` trigger - editing the shell\u002Fscript body (even whitespace) counts | expected under provenance triggers; use `--rerun-triggers mtime` to opt out |\n| Expected a rerun, got none | old mtime mental model, or output is newer than input | check triggers; `--forcerun rule` \u002F `-R` |\n| `--cluster`\u002F`S3RemoteProvider` errors on v8 | removed from core in Snakemake 8 | install the executor\u002Fstorage plugin; use `--executor slurm` and `storage.s3(...)` |\n| OOM-killed job (exit 137) | static `mem_mb` too low for the largest sample | `retries` + `mem_mb=lambda wildcards, attempt: base*attempt` |\n| Per-job scheduler meltdown on HPC | thousands of tiny jobs, submission overhead dominates | `group:` \u002F `--group-components` to batch into one submission |\n| `MissingOutputException` on NFS\u002FLustre | networked filesystem lags after a job finishes | raise `--latency-wait` |\n| Workflow refuses to continue after a killed job (\"Incomplete files\") | a job died mid-write (SLURM kill, node crash), so its outputs are flagged incomplete | re-run with `--rerun-incomplete` (`--ri`); this is Snakemake's crash-resume, distinct from the rerun triggers |\n| Heavy `run:` block hangs the workflow | runs in the main process, shares the GIL, no isolation | move to `script:` |\n| \"Reproducible\" but results differ on a colleague's cluster | no `--sdm`, or a mutable `:latest` container tag | declare `conda:`\u002F`container:`, pin by digest + conda lockfile |\n\n## Related Skills\n\n- workflow-management\u002Fnextflow-pipelines - The reactive-dataflow alternative; author here when the DAG must emerge from runtime data\n- workflow-management\u002Fnf-core-pipelines - Run a curated community Nextflow pipeline instead of authoring from scratch\n- workflows\u002Frnaseq-to-de - End-to-end RNA-seq-to-differential-expression pipeline this engine can orchestrate\n- read-qc\u002Fquality-reports - The QC step a pipeline wraps as an early rule\n- read-alignment\u002Fbwa-alignment - The alignment tool invoked inside a Snakemake `shell:` rule\n\n## References\n\n- Köster J, Rahmann S. 2012. Snakemake - a scalable bioinformatics workflow engine. *Bioinformatics* 28(19):2520-2522.\n- Mölder F, Jablonski KP, Letcher B, et al. 2021. Sustainable data analysis with Snakemake. *F1000Research* 10:33.\n- Grüning B, Chilton J, Köster J, et al. 2018. Practical computational reproducibility in the life sciences. *Cell Systems* 6(6):631-635.\n- Di Tommaso P, Chatzou M, Floden EW, et al. 2017. Nextflow enables reproducible computational workflows. *Nature Biotechnology* 35(4):316-319.\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29,"goal_approach_exempt":30},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","python","2026-09-20","workflow-management\u002Fsnakemake-workflows\u002FSKILL.md","Snakemake","GPTomics\u002FbioSkills",true,"main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":30},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflow-management-snakemake-workflows",{"tool":43,"command":44},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflow-management-snakemake-workflows",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-workflow-management-snakemake-workflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows\u002FSKILL.md",[50,56,60],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Frnaseq_snakefile","OTHER","其他",3125,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows\u002Fexamples\u002Frnaseq_snakefile",{"path":57,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":58,"sourceHtmlUrl":59},"examples\u002Fscripts\u002Frun_deseq2.R",1163,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows\u002Fexamples\u002Fscripts\u002Frun_deseq2.R",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"usage-guide.md","REFERENCE","参考文档",6511,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-workflow-management-snakemake-workflows\u002Fusage-guide.md",[67,75,82,89,96,103],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":74},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":74},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":74},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":74},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":74},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]