Scaffolding
dotnet/efcore
Implementation details for EF Core scaffolding (reverse engineering).
Scaffold a new Bactopia subworkflow that orchestrates existing modules.
$ npx skills add bactopia/bactopia --skill add-subworkflow -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install bactopia/bactopia add-subworkflow --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-subworkflow .claude/skills/add-subworkflow && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .claude/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflowType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add bactopia/bactopia --skill add-subworkflow -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install bactopia/bactopia add-subworkflow --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/add-subworkflow .agents/skills/add-subworkflow && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .agents/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bactopia/bactopia --skill add-subworkflow -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install bactopia/bactopia add-subworkflow --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/add-subworkflow .cursor/skills/add-subworkflow && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .cursor/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/bactopia/bactopia.git --path .agents/skills/add-subworkflow--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add bactopia/bactopia --skill add-subworkflow -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install bactopia/bactopia add-subworkflow --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/add-subworkflow .gemini/skills/add-subworkflow && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .gemini/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install bactopia/bactopia add-subworkflowInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add bactopia/bactopia --skill add-subworkflow -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/add-subworkflow .github/skills/add-subworkflow && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .github/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add bactopia/bactopia --skill add-subworkflow -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install bactopia/bactopia add-subworkflow --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/bactopia/bactopia.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/add-subworkflow .opencode/skills/add-subworkflow && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-subworkflow" agent skill from https://github.com/bactopia/bactopia/tree/master/.agents/skills/add-subworkflow into .opencode/skills/add-subworkflow/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-subworkflow", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-subworkflowScaffold a new Bactopia subworkflow that orchestrates existing modules.
Add Subworkflow is an agent skill from bactopia/bactopia. Scaffold a new Bactopia subworkflow that orchestrates existing modules. Creates main.nf with GroovyDoc and test files. Use when asked to add a new subworkflow, create a subworkflow, or wire up modules into a subworkflow.
Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: A flexible pipeline for complete analysis of bacterial genomes. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 29fb741. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bashFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Subworkflow loads about 2.6k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 932 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from bactopia/bactopia at commit 29fb741, republished under its MIT licence (© bactopia). 932 words, ~2,645 tokens.
.claude/skills/add-subworkflow/SKILL.md (or your agent's skills folder).Scaffold a Bactopia subworkflow that orchestrates one or more existing modules. Subworkflows are glue -- they wire modules together, aggregate results, and provide a clean interface for workflows.
modules/.agents/docs/standards/04-subworkflow-documentation.md for documentation standardsThis skill is interactive -- ask the user early and often, especially before creating files.
AskUserQuestion popups (up to 4 questions per batch).
Mark the recommended option with "(Recommended)" at the end of its label and place it first.A subworkflow is a single main.nf file plus tests:
subworkflows/{tool}/
main.nf # Workflow definition with GroovyDoc
tests/
main.nf.test # nf-test specification
main.nf.test.snap # Snapshot (generated by nf-test)
nextflow.config # Includes ALL module.configs used by this subworkflow
nf-test.config # Standard nf-test config
.nftignore # Exclude unstable files from snapshotsNo module.config or schema.json -- those belong to modules only.
Goal: Determine which modules to orchestrate and how, using interactive prompts.
Important: Use the AskUserQuestion tool for structured choices throughout this phase.
Present up to 4 questions per batch. Mark the recommended option with "(Recommended)"
at the end of its label and place it first in the options list.
Ask the user which modules this subworkflow uses. Get the module paths (e.g., modules/nohuman/run, modules/mlst).
main.nf to understand its inputs and outputs.@subworkflows tag (not @modules) for those includes.Run the lookup command if package info is needed:
bash .agents/skills/add-bactopia-tool/scripts/run-bactopia-scaffold.sh lookup {package_name} --bactopia-path . --prettyDetermine the input type from the primary module's inputs, then run test-data discovery:
bash .agents/skills/add-bactopia-tool/scripts/run-bactopia-scaffold.sh test-data --input-type {input_type} --bactopia-path . --prettyThis returns species/accession combinations already used by similar modules, with
pre-computed test_data_path, test_uncompressed_path, test_species, and
test_sample_id values. Use the returned paths directly in the scaffold config
(Phase 2) -- do NOT construct paths manually. Subworkflow tests use the
compressed path (test_data_path).
Batch 1: Design choices (AskUserQuestion, up to 3 questions)
Question 1 -- Aggregation strategy:
Question 2 -- Test data species: Present top 3-4 species from the test-data discovery results. Recommend species that exercise the tool's functionality. Include the accession in each option's description.
Question 3 -- Aggregation field (if CSVTK_CONCAT or dedicated_summary selected):
Which output field should be aggregated? (e.g., tsv, report, csv)
What format? (tsv or csv)
Present the following for confirmation (derive from module main.nf and lookup):
@output GroovyDoc tags)Final confirmation (AskUserQuestion, 1 question)
After presenting the summary, ask:
Goal: Generate the 5 subworkflow files using bactopia-scaffold.
Construct the JSON config from the design decisions. Write it to /tmp/scaffold-config.json:
{
"tool": "{tool_name}",
"display_name": "{DisplayName}",
"description": "{One-sentence description}",
"process_name": "{TOOL_NAME}",
"package": "{package_name}",
"version": "{version}",
"build": "{build}",
"home_url": "{github_url}",
"input_type": "assembly",
"has_database": false,
"handles_gz": false,
"layout": "flat",
"resource_label": "process_low",
"version_command": "{version_command}",
"citation_key": "{citation_key}",
"keywords": ["{keyword1}", "{keyword2}"],
"aggregation": {
"strategy": "csvtk_concat",
"field": "{output_field}",
"format": "{tsv|csv}"
},
"outputs": [
{"name": "{field}", "extension": "{ext}", "description": "{desc}"}
],
"parameters": [],
"container_refs": {
"toolName": "{from lookup}",
"docker": "{from lookup}",
"image": "{from lookup}"
},
"test_species": "{species}",
"test_sample_id": "{sample_id}",
"test_data_path": "{compressed_path}",
"test_uncompressed_path": "{uncompressed_path}"
}For database-dependent subworkflows, also include:
{
"database": {
"param_name": "{tool}_db",
"test_path": "datasets/{tool}/{db_file}"
}
}Run the scaffold command:
bash .agents/skills/add-bactopia-tool/scripts/run-bactopia-scaffold.sh subworkflow --config /tmp/scaffold-config.json --bactopia-path . --prettyThe command creates 5 files:
subworkflows/{tool}/main.nfsubworkflows/{tool}/tests/main.nf.testsubworkflows/{tool}/tests/nextflow.configsubworkflows/{tool}/tests/nf-test.configsubworkflows/{tool}/tests/.nftignoreGoal: Review generated files and make tool-specific adjustments.
Subworkflow main.nf -- review and customize:
@input GroovyDoc should match the subworkflow's take channel name@subworkflows tag and adjust includes@modules tag should use underscore-delimited directory keys: csvtk_concat, {tool}Test nextflow.config -- verify it includes ALL module.configs for processes in the subworkflow:
csvtk/concat/module.config if using CSVTK_CONCATTest main.nf.test -- verify:
Run the linter to catch structural issues before proceeding:
bash .agents/skills/add-bactopia-tool/scripts/run-bactopia-lint.sh {tool} --bactopia-path .This runs bactopia-lint scoped to the new subworkflow (and module if it exists).
Fix any FAILs before moving on. Common issues:
data/citations.ymlUpdate data/citations.yml -- add the tool citation entry in alphabetical order
(if not already present from a prior /add-module run):
{tool}:
name: "{ToolName}"
link: "{github_url}"
description: "{One-sentence description}"
cite: "{Full citation text}"List all created files with full paths.
Remind the user to run these follow-up steps in order:
/run-tests {tool} subworkflow --generate -- generate snapshots and verify the subworkflow test passes (new subworkflows have no existing snapshots)/add-bactopia-tool if this is a standalone bactopia-toolThe --generate flag is required because newly scaffolded subworkflows have no
snapshot files yet. Without it, nf-test will fail immediately on missing
snapshots.
The scaffold generates one of three patterns based on the aggregation.strategy:
| Strategy | Pattern | Include | Emit |
|---|---|---|---|
csvtk_concat | CSVTK_CONCAT aggregation | gatherCsvtk from plugin | sample_outputs + run_outputs |
dedicated_summary | Tool's own summary command | gatherFields from plugin | sample_outputs + run_outputs |
none | No aggregation | No plugin | sample_outputs + Channel.empty() |
CSVTK_CONCAT is the default and most common (~80% of subworkflows).
Multi-module subworkflows (e.g., snippy + snpdists + gubbins): The scaffold generates a single-module pattern. For complex orchestration, generate the scaffold then manually adjust the includes and channel wiring.
Composite subworkflows that call other subworkflows: Add @subworkflows tag manually and adjust includes to point to ../../subworkflows/{name}/main instead of ../../modules/{name}/main.
Test data paths are discovered dynamically from existing module tests using:
bash .agents/skills/add-bactopia-tool/scripts/run-bactopia-scaffold.sh test-data --input-type {type} --bactopia-path . --prettyThis scans modules/*/tests/main.nf.test for paths matching the input type and returns
pre-computed template variables. Always use the discovered paths -- never construct test
data paths manually. The output includes test_data_path (compressed, for subworkflow
tests), test_uncompressed_path (for module tests), test_species, and test_sample_id.
Supported input types: assembly, reads, assembly_reads, proteins, gff, genbank.
© bactopia, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/add-subworkflow of bactopia/bactopia.
Open the folder on GitHubat commit 29fb741
Add Subworkflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Subworkflow this skillbactopia/bactopia | 522 | — | ~2.6k | Automated safety check: Pass | MIT | |
| Scaffoldingdotnet/efcore | 15k | — | ~165 | Automated safety check: Pass | MIT | |
| Team Agent Orchestrationaffaan-m/ECC | 275k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Module Scaffolderaiskillstore/marketplace | 430 | — | ~846 | Automated safety check: Notes | None | |
| Scaffold Elementremotion-dev/remotion | 62k | — | ~202 | Automated safety check: Pass | Custom licence | |
| Orca Orchestrationstablyai/orca | 87k | — | ~916 | Automated safety check: Pass | MIT |
dotnet/efcore
Implementation details for EF Core scaffolding (reverse engineering).
affaan-m/ECC
Run team-based orchestration for agent squads: work items with owners and scope, agent Kanban state, branch isolation, control pane visibility, and merge gates.
aiskillstore/marketplace
Scaffolds new feature modules in DevPrep AI following the 6-folder architecture with proper TypeScript interfaces, path aliases, and quality standards.
remotion-dev/remotion
Scaffold a new Remotion Element for development in the docs Remotion Studio.
stablyai/orca
Coordinate supervised Orca workers: threaded messages, blocking ask/reply, task dispatch, worker_done/escalation waits, task DAGs, decision gates, coordinator…
ruvnet/ruflo
Agent skill for orchestrator-task - invoke with $agent-orchestrator-task
bactopia/bactopia
Scaffold a complete Bactopia Tool across all three tiers -- module, subworkflow, and workflow entry point under workflows/bactopia-tools/.
bactopia/bactopia
Propagate the Bactopia and nf-bactopia versions declared in versions.yml into the hand-maintained files that carry a literal version (conf/testbase.config, CITATION.cff, bin/bactopia…
bactopia/bactopia
Regenerate nextflow.config and nextflowschema.json for Bactopia workflows by running bactopia-merge-schemas.
bactopia/bactopia
Show a live snapshot of the Bactopia project state — component counts, GroovyDoc coverage, nf-test coverage, and structural issues.
bactopia/bactopia
Audit whether Bactopia is ready for a version release and produce a GO / NO-GO recommendation report.
bactopia/bactopia
Review citation integrity across data/citations.yml and @citation tags using bactopia-citations --validate.
Scaffold a new Bactopia subworkflow that orchestrates existing modules. Add Subworkflow is an agent skill from bactopia/bactopia. Scaffold a new Bactopia subworkflow that orchestrates existing modules.
Add Subworkflow fits situations like: asked to add a new subworkflow; create a subworkflow; wire up modules into a subworkflow.
Run `npx skills add bactopia/bactopia --skill add-subworkflow -a claude-code`. Or copy the skill folder (.agents/skills/add-subworkflow in bactopia/bactopia) into .claude/skills/add-subworkflow in your project. Claude Code loads it when a task matches its description.
Run `npx skills add bactopia/bactopia --skill add-subworkflow -a codex`. Or copy the skill folder (.agents/skills/add-subworkflow in bactopia/bactopia) into .agents/skills/add-subworkflow in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add bactopia/bactopia --skill add-subworkflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-subworkflow, .gemini/skills/add-subworkflow, .github/skills/add-subworkflow and .opencode/skills/add-subworkflow in your project.
Going by SKILL.md and its folder, Add Subworkflow needs the command-line tools its instructions call (bash). Our summary lists: Docker.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Subworkflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Subworkflow: Scaffolding (dotnet/efcore, 15k stars), Team Agent Orchestration (affaan-m/ECC, 275k stars), Module Scaffolder (aiskillstore/marketplace, 430 stars) and Scaffold Element (remotion-dev/remotion, 62k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
bactopia (a GitHub organization) maintains it in bactopia/bactopia, which has 522 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on August 5, 2026.
Source: bactopia/bactopia on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.