executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
command-wrappersGuides agents using pysam samtools and bcftools command wrappers, PysamDispatcher calls, stdout/stderr capture, usage messages, aliases, and SamtoolsError troubleshooting.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task asks to run bundled samtools or bcftools functionality from Python with pysam.samtools, pysam.bcftools, or top-level pysam aliases such as pysam.view, pysam.sort, pysam.index, pysam.idxstats, or pysam.faidx.
references/command-reference.md for the dispatcher contract, command inventory, aliases, return types, and error model.references/workflows.md for translating shell samtools/bcftools commands into safe Python calls.references/troubleshooting.md for SamtoolsError, stdout/stderr capture, save_stdout, binary output, invalid arguments, and notebook capture issues.scripts/command_wrapper_smoke.py for a source-free JSON smoke helper that checks dispatchers and safe commands when a working pysam install is available.This sub-skill owns bundled command invocation through pysam.utils.PysamDispatcher: pysam.samtools.*, pysam.bcftools.*, top-level samtools aliases imported into pysam, catch_stdout, save_stdout, split_lines, raw, usage(), get_messages(), and pysam.SamtoolsError.
Use sibling sub-skills instead for object-level AlignmentFile/AlignedSegment workflows, VariantFile/VariantRecord workflows, tabix/FASTA object APIs, or build/install troubleshooting.
save_stdout=... for stdout-to-file, or command-native -o plus catch_stdout=False for commands that write files.catch_stdout=False when the command writes binary data or owns stdout redirection; otherwise pysam may capture data the command expected to write elsewhere.dispatcher.usage() before guessing required arguments, and catch pysam.SamtoolsError around user-supplied command inputs.get_messages() for captured stderr warnings or diagnostics.pysam.samtools.cram_size maps to samtools cram-size, and pysam.samtools.fqimport maps to samtools import.