From 920b79546e62ce7716bc21487d0030f65ac28a31 Mon Sep 17 00:00:00 2001 From: Sasha Dagayev Date: Fri, 6 Nov 2026 15:10:03 -0500 Subject: [PATCH 1/3] Add skills for onboarding compute to Nextflow Platform Add onboard-aws-batch, onboard-google-batch, onboard-azure-batch, onboard-slurm and onboard-lsf. Each walks through the cloud or cluster prerequisites, the Platform credential and the compute environment, then verifies with a test run via launch-workflow. launch-workflow and ce-credentials-setup now route to them. Bump version to 0.3.0. Ported from nextflow-io/agent-skills, which is archived. Co-Authored-By: Claude Opus 5.5 --- .claude-plugin/marketplace.json | 2 +- .claude-plugin/plugin.json | 2 +- .codex-plugin/plugin.json | 2 +- AGENTS.md | 1 + README.md | 4 +- skills/ce-credentials-setup/SKILL.md | 2 + skills/launch-workflow/SKILL.md | 11 ++ skills/onboard-aws-batch/SKILL.md | 163 ++++++++++++++++++++++ skills/onboard-azure-batch/SKILL.md | 179 +++++++++++++++++++++++++ skills/onboard-google-batch/SKILL.md | 193 +++++++++++++++++++++++++++ skills/onboard-lsf/SKILL.md | 165 +++++++++++++++++++++++ skills/onboard-slurm/SKILL.md | 142 ++++++++++++++++++++ sources.json | 2 +- 13 files changed, 862 insertions(+), 6 deletions(-) create mode 100644 skills/onboard-aws-batch/SKILL.md create mode 100644 skills/onboard-azure-batch/SKILL.md create mode 100644 skills/onboard-google-batch/SKILL.md create mode 100644 skills/onboard-lsf/SKILL.md create mode 100644 skills/onboard-slurm/SKILL.md diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 42bb31f..c6fce60 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -13,7 +13,7 @@ "name": "nextflow", "source": "./", "description": "Build, migrate, test, debug, and run Nextflow pipelines with Nextflow Platform, Wave, and nf-core.", - "version": "0.2.2", + "version": "0.3.0", "author": { "name": "Seqera", "url": "https://seqera.io" diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 954f2bb..533e318 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "nextflow", - "version": "0.2.2", + "version": "0.3.0", "description": "Build, migrate, test, debug, and run Nextflow pipelines with Nextflow Platform, Wave, and nf-core.", "icon": "./assets/nextflow-uploaded-logo.png", "author": { diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index 98f7d7c..1c13844 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "nextflow", - "version": "0.2.2", + "version": "0.3.0", "description": "Build, migrate, test, debug, and run Nextflow pipelines with Nextflow Platform, Wave, and nf-core.", "author": { "name": "Seqera", diff --git a/AGENTS.md b/AGENTS.md index 219f29e..d6e8736 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,4 +20,5 @@ A Claude Code and Codex plugin of agent skills ([Agent Skills spec](https://agen When changing one of these, update every skill that repeats it: - Nextflow version requirements: 26.04+ for `nextflow module`, `auth` and `launch`; 26.10+ for workflow modules and `nextflow lint` type checking. Stated in `install-nextflow`, `run-module`, `launch-workflow`, `migrate-nextflow-code` and the `build-nextflow-pipeline` create-workflow reference. +- Compute onboarding shared by `onboard-slurm` and `onboard-lsf`: the connection-method table, credential steps (SSH, managed identity, Tower Agent) and work-directory group permissions. All five `onboard-*` skills share the workspace step, the never-handle-secrets rule and the hand-off to `launch-workflow`; the backend routing list appears in `launch-workflow` and `ce-credentials-setup`. - Registry module guidance shared by `run-module` and the create-workflow reference: the `kind=Workflow` registry query, untyped workflow module handling, and the Wave+Conda config block. diff --git a/README.md b/README.md index a786172..5251ae0 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Build, migrate, test, debug and run [Nextflow](https://www.nextflow.io) pipelines with Claude or Codex, connected to [Nextflow Platform](https://seqera.io), Wave containers and nf-core. -The plugin bundles 28 skills and the hosted Seqera MCP server (`https://mcp.seqera.io/mcp`). +The plugin bundles 33 skills and the hosted Seqera MCP server (`https://mcp.seqera.io/mcp`). ## Install @@ -83,7 +83,7 @@ MCP configuration. | Convert to Nextflow | `build-nextflow-pipeline` (Python, R and notebook playbooks), `migrate-from-snakemake`, `audit-conversion-readiness`, `nextflow-schema` (parameter triage), `find-alternative-tools` | | Migrate and modernise | `migrate-nextflow-code`, `nextflow-schema` (schema migration), `nf-plugin-development`, `nf-plugin-legacy-migration`, `maintain-nf-core-pipeline` | | Test and debug | `nf-test` (authoring and failure repair), `repair-workflow` (including static diagnostics), `debug-local-run`, `debug-seqera-failed-run`, `nextflow-history` (history, cache and narrative recaps), `nf-data-lineage`, `nf-docker-scripts` | -| Nextflow Platform | `launch-workflow` (with shared MCP connection reference), `ce-credentials-setup`, `seqera-data-links`, `seqerakit` | +| Nextflow Platform | `launch-workflow` (with shared MCP connection reference), `ce-credentials-setup`, `onboard-aws-batch`, `onboard-google-batch`, `onboard-azure-batch`, `onboard-slurm`, `onboard-lsf`, `seqera-data-links`, `seqerakit` | | General | `nextflow-development`, `install-nextflow` | ## Licensing diff --git a/skills/ce-credentials-setup/SKILL.md b/skills/ce-credentials-setup/SKILL.md index 11b9f1d..0892bf5 100644 --- a/skills/ce-credentials-setup/SKILL.md +++ b/skills/ce-credentials-setup/SKILL.md @@ -39,6 +39,8 @@ Load this skill when the user wants to: Read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) connection reference for discovery and authentication. This skill owns provider prerequisites and compute readiness. +For end-to-end onboarding of a specific backend — cloud or cluster prerequisites, the credential, the compute environment and a test run — use the dedicated skill: `onboard-aws-batch`, `onboard-google-batch`, `onboard-azure-batch`, `onboard-slurm` or `onboard-lsf`. This skill stays the quick reference for Seqera Compute, Kubernetes and CE troubleshooting. + ## General Workflow 1. **Identify platform** — ask which cloud/cluster (seqera-compute, aws-batch, k8s, etc.) diff --git a/skills/launch-workflow/SKILL.md b/skills/launch-workflow/SKILL.md index 8f801c0..64d8b18 100644 --- a/skills/launch-workflow/SKILL.md +++ b/skills/launch-workflow/SKILL.md @@ -65,6 +65,17 @@ Selecting the compute environment: 3. If only one is available, propose it and ask for confirmation. 4. Confirm the selected compute environment with the user before launching. +If no suitable compute environment exists, onboard one first with the matching skill: + +| Target | Skill | +|--------|-------| +| AWS Batch | `onboard-aws-batch` | +| Google Cloud Batch | `onboard-google-batch` | +| Azure Batch | `onboard-azure-batch` | +| Slurm cluster | `onboard-slurm` | +| IBM Spectrum LSF cluster | `onboard-lsf` | +| Seqera Compute or Kubernetes | `ce-credentials-setup` | + ## Step 3: Ensure the Pipeline Is in a Remote Git Repository Nextflow Platform launches pipelines from a remote Git URL — it cannot launch directly from a local path. Verify the pipeline directory is a Git repository connected to a remote on GitHub (or a compatible host like GitLab or Bitbucket). diff --git a/skills/onboard-aws-batch/SKILL.md b/skills/onboard-aws-batch/SKILL.md new file mode 100644 index 0000000..dc59274 --- /dev/null +++ b/skills/onboard-aws-batch/SKILL.md @@ -0,0 +1,163 @@ +--- +name: onboard-aws-batch +description: Onboard an AWS account to Nextflow Platform as an AWS Batch compute environment. Use when the user wants to connect AWS to Seqera, set up an AWS Batch compute environment, create the IAM policy/role or credentials Seqera needs for AWS, or run pipelines on AWS through Seqera. +--- + +## Using this skill + +For Nextflow Platform operations, read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) reference. Any `platform_*` names below describe API operations: discover their exact names and parameter schemas with `search_seqera_api`, then invoke `call_seqera_api`. The host manages OAuth for the connected MCP server. + +# Onboard AWS Batch to Nextflow Platform + +Set up everything Nextflow Platform needs to run Nextflow pipelines on AWS Batch: an S3 work bucket, an IAM policy and role (or user), a Seqera AWS credential, and an AWS Batch compute environment (CE). + +Source docs: https://docs.seqera.io/platform-cloud/compute-envs/aws-batch. If anything below disagrees with the live docs, the docs win. + +## Main Flow + +1. **Pick the Platform workspace** the CE will live in. +2. **Gather decisions** — region, work directory storage, Forge vs Manual, Spot vs On-Demand, credential mode. +3. **Prepare AWS** — S3 bucket, IAM policy, IAM role (or user). +4. **Create the Platform credential.** +5. **Create the compute environment.** +6. **Verify** — CE reaches `AVAILABLE`, then run a test pipeline. + +Before running any command that **creates or changes** AWS resources, show the user the exact command and wait for a yes. + +## Step 1: Pick the Platform Workspace + +Find the workspace with the Platform API. Use `search_seqera_api` to find the exact operation names (e.g. query "list workspaces", "list credentials", "create compute environment"), then `call_seqera_api`: + +``` +call_seqera_api(service: "platform", api_name: "", parameters: {}) +``` + +Ask the user which organization/workspace to use and record its `workspaceId`. Every later credential and CE call takes it. Check existing CEs (`platform_list_compute_envs`) — if a working AWS Batch CE already exists, ask whether a new one is really needed. + +## Step 2: Gather Decisions + +Ask the user (propose the recommended default for each): + +| Decision | Options | Recommended | +|---|---|---| +| Region | any AWS region | where their data lives | +| Work directory | S3 bucket, EFS, or FSx for Lustre | **S3** (EFS/FSx are incompatible with Studios) | +| Config mode | **Batch Forge** (Seqera creates Batch CEs, queues, roles) or **Manual** (existing Batch queues) | Forge | +| Provisioning | Spot or On-Demand | Spot for cost, On-Demand for reliability | +| Max CPUs | total vCPUs Seqera may provision at once | start small (e.g. 256), raise later | +| Credential mode | **Role** (assume-role, no static keys) or **Keys** (IAM user access key) | **Role** | +| Wave + Fusion v2 | on/off | **on** (needed for Fargate head job, Graviton, fast S3 I/O) | + +Check the AWS CLI is installed and logged in to the right account: + +```bash +aws --version +aws sts get-caller-identity +``` + +Confirm the account ID with the user. If the CLI isn't set up, the user can do the AWS steps in the console instead — give them the same values. + +## Step 3: Prepare AWS + +### 3a. S3 work bucket + +Create it in the **same region** as the CE: + +```bash +aws s3api create-bucket --bucket --region \ + --create-bucket-configuration LocationConstraint= # omit this line for us-east-1 +``` + +Offer a lifecycle rule that deletes intermediate files under the work prefix after N days (docs suggest 30). Work directories grow fast in production. + +### 3b. IAM policy + +Write the policy to a local file (e.g. `seqera-forge-policy.json`) and create it as a **managed** policy. Inline user policies cap at 2048 characters and the full policy won't fit. + +**Forge mode** — use the full policy from the docs. Get the current version from the docs page (download link: `https://docs.seqera.io/assets/files/aws-batch-full-policy-21552c5a558545c07707257a720b6167.json` — if it 404s, copy it from the "IAM" section of the AWS Batch page). It grants: + +- `batch:*` management on `TowerForge-*` compute environments and job queues, plus `Describe*` and job submit/cancel/terminate +- `ec2:` launch template management and `Describe*` (for dropdowns) +- `iam:PassRole` conditioned on `batch.amazonaws.com`, `ec2.amazonaws.com`, `ecs-tasks.amazonaws.com` +- `iam:` role and instance-profile management on `TowerForge-*` +- `logs:` read access, `s3:Get*`/`List*`/`PutObject`, `ssm:GetParameters` on `/aws/service/ecs/*` +- optional FSx, EFS, Secrets Manager (`tower-*`), `ec2:GetConsoleOutput`, and lineage SNS/S3 (`seqera-lineage-*`) statements + +Forge-created resources always start with `TowerForge-`; that prefix can't be changed, so leave the resource scoping on it. + +**Manual mode** — minimum Batch permissions: `batch:DescribeJobs`, `batch:DescribeJobDefinitions`, `batch:RegisterJobDefinition`, `batch:SubmitJob`, `batch:CancelJob`, `batch:TagResource`, `batch:TerminateJob`, plus `batch:DescribeJobQueues` (only for the queue dropdown), `logs:` read access, and S3 access on the work bucket. + +Offer to tighten the S3 statement to the work bucket (and any input/output buckets) instead of `*`. Studios and Data Explorer need read/write on each bucket they use. + +```bash +aws iam create-policy --policy-name seqera-forge-policy --policy-document file://seqera-forge-policy.json +``` + +### 3c. IAM role (Role mode — recommended) + +Role mode uses no static keys. Seqera assumes the role with an **External ID** that Seqera generates when you create the credential, so the order matters: + +1. Create the credential in Nextflow Platform first in Role mode (Step 4) — or start it in the UI — to get the External ID. +2. Create the role with the trust policy shown in the docs/Seqera UI. It trusts Seqera's platform role and requires `sts:ExternalId` to equal the generated value; it also allows `sts:TagSession`. **Copy the trusted principal ARN from the docs or the Platform credential form — don't type it from memory.** +3. Attach the policy: + ```bash + aws iam create-role --role-name seqera-platform-role --assume-role-policy-document file://seqera-trust-policy.json + aws iam attach-role-policy --role-name seqera-platform-role --policy-arn arn:aws:iam:::policy/seqera-forge-policy + ``` + +### 3c (alternative). IAM user (Keys mode) + +```bash +aws iam create-user --user-name seqera-platform +aws iam attach-user-policy --user-name seqera-platform --policy-arn arn:aws:iam:::policy/seqera-forge-policy +``` + +The **user** creates the access key (IAM > Users > seqera-platform > Security credentials > Create access key, CLI use case). Don't run `aws iam create-access-key` yourself — its output contains the secret key. + +## Step 4: Create the Platform Credential + +- **Role mode** — the credential holds no secret, so you may create it via the API: provider `aws`, the role ARN as `assumeRoleArn`. Look up the exact request body with `search_seqera_api` ("create credentials"). Read back the generated External ID and put it in the trust policy (Step 3c). +- **Keys mode** — the credential holds a secret. Ask the user to add it in Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **AWS** > paste Access key and Secret key (optionally an Assume role ARN). Never ask them to paste keys into the chat. + +Then list credentials and record the new `credentialsId`. + +## Step 5: Create the Compute Environment + +Look up the create-CE request schema with `search_seqera_api` ("create compute environment", platform `aws-batch`). Build the config from Step 2 and **show it to the user before submitting**. Key fields: + +| Field | Value | +|---|---| +| Name | e.g. `aws-batch--spot` (alphanumeric, `-`, `_`) | +| Platform | `aws-batch` | +| Credentials | `credentialsId` from Step 4 | +| Region | from Step 2; must match bucket / EFS / FSx | +| Work directory | `s3:///work` (or EFS/FSx mount path ending in `/work`) | +| Wave / Fusion v2 | enabled (Fusion requires Wave) | +| Fast instance storage | with Fusion v2, use NVMe instance types (e.g. `c6id`, `m6id`, `r6id`) | +| Forge: type | `SPOT` or `EC2` (On-Demand); Seqera adds an On-Demand queue for the head job when Spot | +| Forge: max CPUs | from Step 2 | +| Forge: Fargate head job | optional; requires Fusion v2 and Spot; not with EFS/FSx | +| Forge: GPU | NVIDIA only; also set GPU instance types in Advanced options | +| Manual: head queue / compute queue | existing Batch job queue names | +| Head job CPUs / memory | memory in MiB, minimum 3584 (4096 with Fargate) | +| VPC / subnets / security groups | blank uses defaults; private subnets need NAT for Studios and image pulls | +| Dispose resources | on (deletes Forge resources when the CE is deleted) | + +The UI path is workspace > **Compute Environments** > **Add compute environment** > **AWS Batch**, if the user would rather fill the form. + +## Step 6: Verify + +1. Poll the CE (describe compute env) until status is `AVAILABLE`. `ERRORED` includes a message — common causes: missing `iam:PassRole`, wrong External ID in the trust policy, bucket in a different region, the 50-job-queue-per-account Batch quota. +2. Run a test pipeline. Hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +3. If jobs sit in `RUNNABLE`, check Max CPUs, instance types available in the region, and EC2 vCPU quotas (Spot and On-Demand quotas are separate). + +## Critical Rules + +1. **CONFIRM before changing AWS** — show every create/attach/delete command and wait for the user's yes. +2. **NEVER handle secrets** — don't ask for, print, or pass access keys through the chat or the API. The user enters secret-bearing credentials in the Seqera UI. Prefer Role mode, which has none. +3. **MATCH regions** — bucket, EFS/FSx, and CE must be in the same region. +4. **USE a managed policy**, not an inline user policy (2048-character limit). +5. **KEEP the `TowerForge-` scoping** in Forge policies; the prefix is fixed. +6. **COPY trust policy principals and policy JSON from the docs or Seqera UI** — never reconstruct account IDs from memory. +7. **SHOW the CE config** to the user before creating it. +8. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. diff --git a/skills/onboard-azure-batch/SKILL.md b/skills/onboard-azure-batch/SKILL.md new file mode 100644 index 0000000..98b74c7 --- /dev/null +++ b/skills/onboard-azure-batch/SKILL.md @@ -0,0 +1,179 @@ +--- +name: onboard-azure-batch +description: Onboard an Azure subscription to Nextflow Platform as an Azure Batch compute environment. Use when the user wants to connect Azure to Seqera, set up an Azure Batch compute environment, create the Batch account, storage account, Entra service principal, managed identity, or credentials Seqera needs for Azure, or run pipelines on Azure through Seqera. +--- + +## Using this skill + +For Nextflow Platform operations, read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) reference. Any `platform_*` names below describe API operations: discover their exact names and parameter schemas with `search_seqera_api`, then invoke `call_seqera_api`. The host manages OAuth for the connected MCP server. + +# Onboard Azure Batch to Nextflow Platform + +Set up everything Nextflow Platform needs to run Nextflow pipelines on Azure Batch: a resource group, a Storage account with a Blob container, a Batch account with enough quota, a Seqera Azure credential, and an Azure Batch compute environment (CE). + +Source docs: https://docs.seqera.io/platform-cloud/compute-envs/azure-batch. If anything below disagrees with the live docs, the docs win. + +## Main Flow + +1. **Pick the Platform workspace** the CE will live in. +2. **Gather decisions** — region, credential type, Forge vs Manual, VM sizes, networking. +3. **Prepare Azure** — resource group, Storage account and container, Batch account, quotas, (optional) service principal and managed identity. +4. **Create the Platform credential.** +5. **Create the compute environment.** +6. **Verify** — CE reaches `AVAILABLE`, then run a test pipeline. + +Before running any command that **creates or changes** Azure resources, show the user the exact command and wait for a yes. + +## Step 1: Pick the Platform Workspace + +Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces", "list credentials", "create compute environment"), then `call_seqera_api`. Ask which organization/workspace to use and record its `workspaceId`. Check existing CEs (`platform_list_compute_envs`) first. + +## Step 2: Gather Decisions + +| Decision | Options | Recommended | +|---|---|---| +| Region | any region with Azure Batch | near the data; Storage and Batch must match | +| Credential | **Access keys** (Batch + Storage keys) or **Entra service principal** | **Entra** — required for VNet/subnet and managed identities | +| Config mode | **Batch Forge** (Seqera creates head and worker pools) or **Manual** (existing pool) | Forge | +| VM size | e.g. `Standard_E16d_v5` | E-series `d` sizes (local temp disk) for Fusion | +| VMs count | max VMs with autoscale | start small, matches your vCPU quota | +| Networking | default or a VNet subnet | default unless policy requires a VNet | +| Wave + Fusion v2 | on/off | **on** | + +The two credential types are not interchangeable: a CE created with one can't switch to the other. + +Check the Azure CLI: + +```bash +az version +az account show +``` + +Confirm the subscription with the user. + +## Step 3: Prepare Azure + +### 3a. Resource group, Storage account, container + +```bash +az group create --name --location +az storage account create --name --resource-group --location \ + --sku Standard_LRS --kind StorageV2 --allow-shared-key-access true --public-network-access Enabled +az storage container create --name --account-name --auth-mode login +``` + +Requirements from the docs: storage account key access **enabled**, public access from all networks (Forge can't create compute with restricted networking, and disabling public access isn't supported), Microsoft-managed encryption keys only. + +### 3b. Batch account + +```bash +az batch account create --name --resource-group --location \ + --storage-account +``` + +It must use pool allocation mode **Batch service** (the default) and allow **Shared Key** authentication. + +### 3c. Quotas + +New Batch accounts often can't create VMs until quota is raised. Check: + +```bash +az batch account show --name --resource-group \ + --query "{pools:poolQuota, jobs:activeJobAndJobScheduleQuota, dedicatedCores:dedicatedCoreQuota, lowPriCores:lowPriorityCoreQuota, perFamily:dedicatedCoreQuotaPerVmFamilyEnforced}" +``` + +Needs: +- **Pools** — Forge creates two per CE (`tower-pool--head` and `-worker`). +- **Active jobs** — each running Nextflow process uses one Batch job per pipeline run. +- **Dedicated vCPUs for the chosen VM family** — at least the concurrent CPUs you want. + +If too low, the user raises them in the portal: Batch account > **Quotas** > **Request quota increase**. This can take a support ticket and some time. + +### 3d. Entra service principal (Entra credential only) + +```bash +az ad sp create-for-rbac --name seqera-platform --skip-assignment +``` + +This prints a client secret. **Don't run it yourself** — have the user run it in their own terminal (or create the app registration in the portal) and keep the secret out of the chat. Then assign roles with the app's client ID (`az ad sp list --display-name seqera-platform --query "[].appId" -o tsv`): + +```bash +az role assignment create --assignee --role "Storage Blob Data Contributor" \ + --scope $(az storage account show -n -g --query id -o tsv) +az role assignment create --assignee --role "Azure Batch Data Contributor" \ + --scope $(az batch account show -n -g --query id -o tsv) +``` + +Plus, only when used: +- **Network Contributor** (or a custom role with `Microsoft.Network/virtualNetworks/subnets/join/action`) on the VNet, if the CE uses a Subnet ID. +- **Managed Identity Operator** on each managed identity attached to pools. + +### 3e. Managed identity (optional, Entra only) + +Lets pool nodes reach Storage and ACR without keys. Needs Nextflow 24.06.0-edge or later. + +```bash +az identity create --name seqera-pool-identity --resource-group --location +az role assignment create --assignee --role "Storage Blob Data Contributor" --scope +az role assignment create --assignee --role AcrPull --scope # if using ACR +``` + +Record its client ID and resource ID. A misconfigured identity fails the run — Seqera won't fall back to keys. + +## Step 4: Create the Platform Credential + +Both Azure credential types contain secrets (account keys or a client secret), so **the user enters them in Nextflow Platform**: workspace > **Credentials** > **Add credentials** > Provider **Azure**: + +- **Shared key** tab — Batch account name + key (Batch account > Keys), Blob Storage account name + key (Storage account > Access keys). +- **Entra** tab — Batch account name, Blob Storage account name, Tenant ID, Client ID, Client secret. + +Give them the account names to fill in. Never ask for keys or secrets in the chat. Then list credentials and record the `credentialsId`. Warn them not to rotate the storage key in Nextflow Platform after the CE is created. + +## Step 5: Create the Compute Environment + +Look up the create-CE schema with `search_seqera_api` (platform `azure-batch`). Build the config and **show it to the user before submitting**. + +**Forge mode:** + +| Field | Value | +|---|---| +| Name | e.g. `azure-batch-` | +| Platform | `azure-batch` | +| Credentials | `credentialsId` from Step 4 | +| Region | e.g. `eastus` | +| Work directory | `az:///work` | +| Wave / Fusion v2 | enabled; for production use `Standard_E16d_v5` or larger with ≥200 GB local temp disk; no Premium SSDv2/Ultra disks for Fusion | +| VMs type | default `Standard_D4_v3`; pick a `d` size | +| VMs count | max VMs under autoscale | +| Autoscale | on (scales 0 → VMs count) | +| Head VM type / CPUs / memory | optional; memory in MiB, minimum 3584 | +| Subnet ID | optional, Entra only: `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/` | +| Managed identity | head and worker pool client ID + resource ID (resource IDs required for Forge) | +| Container registry credentials | ACR in the same region, if private images | +| Dispose resources | on (deletes pools when the CE is deleted) | +| Max wallclock time | default `7d`, up to 180 days | +| Token duration | SAS lifetime — must exceed the longest expected run | +| Job cleanup | defaults: delete tasks on completion, terminate jobs on completion | + +**Manual mode** — the user creates a pool first (portal: Batch account > Pools > Add) following https://docs.seqera.io/platform-cloud/enterprise/advanced-topics/manual-azure-batch-setup. Key pool settings: image `microsoft-dsvm` / `ubuntu-hpc` / `2204`, Docker-compatible container config, autoscale, task slots = vCPUs, and — without Fusion — a start task that installs `azcopy` on every node. Then set Config mode **Manual** and the **Compute pool name**. + +Environment variables can't be edited after creation; use Seqera pipeline secrets for secrets. + +UI path: workspace > **Compute Environments** > **Add compute environment** > **Azure Batch**. + +## Step 6: Verify + +1. Poll the CE until status is `AVAILABLE`. On `ERRORED`, read the message — typical causes: no vCPU/pool quota, Storage public access disabled, missing Network Contributor on the VNet, access-key credential used with a Subnet ID. +2. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +3. If pool nodes fail to start or tasks can't pull images, check outbound access from the subnet to container registries (quay.io, docker.io), Azure Storage, and Seqera. + +## Critical Rules + +1. **CONFIRM before changing Azure** — show every create/assign command and wait for the user's yes. +2. **NEVER handle secrets** — account keys and client secrets go straight from the user into the Seqera UI, never through the chat or the API. Don't run commands that print secrets. +3. **MATCH regions** — Storage account and Batch account in the same region. +4. **CHECK quota before creating the CE** — new Batch accounts often have none. +5. **USE Entra** when a VNet subnet or managed identity is needed; access keys support neither. +6. **KEEP Storage public network access and shared key access enabled** for Forge. +7. **SHOW the CE config** to the user before creating it. +8. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. diff --git a/skills/onboard-google-batch/SKILL.md b/skills/onboard-google-batch/SKILL.md new file mode 100644 index 0000000..69b7aca --- /dev/null +++ b/skills/onboard-google-batch/SKILL.md @@ -0,0 +1,193 @@ +--- +name: onboard-google-batch +description: Onboard a Google Cloud project to Nextflow Platform as a Google Cloud Batch compute environment. Use when the user wants to connect GCP to Seqera, set up a Google Batch compute environment, create the service accounts, IAM roles, Workload Identity Federation, or credentials Seqera needs for Google Cloud, or run pipelines on GCP through Seqera. +--- + +## Using this skill + +For Nextflow Platform operations, read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) reference. Any `platform_*` names below describe API operations: discover their exact names and parameter schemas with `search_seqera_api`, then invoke `call_seqera_api`. The host manages OAuth for the connected MCP server. + +# Onboard Google Cloud Batch to Nextflow Platform + +Set up everything Nextflow Platform needs to run Nextflow pipelines on Google Cloud Batch: enabled APIs, a GCS work bucket, service accounts with the right roles, a Seqera Google credential, and a Google Cloud Batch compute environment (CE). + +Source docs: https://docs.seqera.io/platform-cloud/compute-envs/google-cloud-batch. If anything below disagrees with the live docs, the docs win. + +## Main Flow + +1. **Pick the Platform workspace** the CE will live in. +2. **Gather decisions** — project, location, credential type, Spot, Fusion. +3. **Prepare Google Cloud** — APIs, bucket, service accounts and roles. +4. **Create the Platform credential** — Workload Identity Federation (recommended) or a service account key. +5. **Create the compute environment.** +6. **Verify** — CE reaches `AVAILABLE`, then run a test pipeline. + +Before running any command that **creates or changes** GCP resources, show the user the exact command and wait for a yes. + +## Step 1: Pick the Platform Workspace + +Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces", "list credentials", "create compute environment"), then `call_seqera_api`. Ask which organization/workspace to use and record its `workspaceId`. Check existing CEs (`platform_list_compute_envs`) first — if a working Google Batch CE already exists, ask whether a new one is needed. + +## Step 2: Gather Decisions + +| Decision | Options | Recommended | +|---|---|---| +| Project | existing or new, billing enabled | dedicated project | +| Location | a region where the Batch API is available | near the data; the bucket and compute can be in any region | +| Credential | **Workload Identity Federation** (no key) or **service account JSON key** | **WIF** for production | +| Service accounts | one SA for everything, or separate credential SA and head job SA | separate for production, one is fine to start | +| Spot | on/off | on for cost; Nextflow 24.10+ defaults to 0 Spot retries on Google, so set `maxRetries` | +| Wave + Fusion v2 | on/off | **on** | + +Check the gcloud CLI: + +```bash +gcloud --version +gcloud auth list +gcloud config get-value project +``` + +Confirm the project with the user. If gcloud isn't set up, the user can follow along in the console with the same values. + +## Step 3: Prepare Google Cloud + +### 3a. Enable APIs + +```bash +gcloud services enable batch.googleapis.com compute.googleapis.com storage-api.googleapis.com --project +``` + +### 3b. Work bucket + +Regional, Standard class, uniform access, public access prevention on: + +```bash +gcloud storage buckets create gs:// --project --location \ + --default-storage-class STANDARD --uniform-bucket-level-access --public-access-prevention +``` + +### 3c. Service accounts + +Don't use the default Compute Engine service account — it has `roles/editor`. + +```bash +gcloud iam service-accounts create seqera-platform --project --display-name "Nextflow Platform" +gcloud iam service-accounts create seqera-head-job --project --display-name "Seqera head job" # skip if using one SA +``` + +**Credential SA** (submits and monitors the head job, lists buckets, reads logs): + +| Role | Scope | +|---|---| +| `roles/batch.jobsEditor` | project | +| `roles/logging.viewer` | project | +| `roles/iam.serviceAccountUser` | on the head job SA | +| `roles/storage.bucketViewer` | project (Seqera needs `storage.buckets.list`, which bucket-level grants can't give) | +| `roles/storage.objectViewer` | work bucket and any bucket that receives reports | +| `roles/secretmanager.admin` | project — only if pipelines use Seqera secrets | + +**Head job SA** (runs the Nextflow head job and tasks): + +| Role | Scope | +|---|---| +| `roles/batch.agentReporter` | project | +| `roles/batch.jobsEditor` | project | +| `roles/logging.logWriter` | project | +| `roles/iam.serviceAccountUser` | on itself | +| `roles/storage.objectUser` | work bucket and publish bucket | +| `roles/storage.objectViewer` | input-data buckets | +| `roles/storage.bucketViewer` | work and input buckets — **required with Fusion** (`storage.buckets.get`) | +| `roles/secretmanager.secretAccessor` | project — only with Seqera secrets | +| `roles/serviceusage.serviceUsageConsumer` | project — only with requester-pays buckets | + +With one SA, grant both lists to it. If the project needs no access restrictions, `roles/storage.admin` on the project replaces the storage rows for both. + +Project-level grant pattern: + +```bash +gcloud projects add-iam-policy-binding \ + --member "serviceAccount:" --role +``` + +Bucket-level and SA-level grants: + +```bash +gcloud storage buckets add-iam-policy-binding gs:// --member "serviceAccount:" --role +gcloud iam service-accounts add-iam-policy-binding --member "serviceAccount:" --role roles/iam.serviceAccountUser +``` + +The person creating the CE also needs `roles/batch.jobsEditor` and `roles/iam.serviceAccountViewer` on the project, and `roles/iam.serviceAccountUser` on the head job SA. + +### 3d. Workload Identity Federation (recommended) + +Seqera Cloud's OIDC issuer is `https://cloud.seqera.io/api`. For Seqera Enterprise, ask the user for their instance's API URL. + +```bash +gcloud iam workload-identity-pools create seqera-pool --project --location global --display-name "Seqera" +gcloud iam workload-identity-pools providers create-oidc seqera-provider --project \ + --location global --workload-identity-pool seqera-pool \ + --issuer-uri "https://cloud.seqera.io/api" \ + --attribute-mapping "google.subject=assertion.sub" +gcloud iam service-accounts add-iam-policy-binding --project \ + --role roles/iam.workloadIdentityUser \ + --member "principalSet://iam.googleapis.com/projects//locations/global/workloadIdentityPools/seqera-pool/*" +``` + +Leave allowed audiences empty to use GCP's default, or set a custom one and use the same value as the Seqera Token audience. For Data Explorer to view files with the same credential, also grant the SA `roles/iam.serviceAccountTokenCreator` on itself. + +Discuss whether to narrow the `principalSet` to specific subjects before running it — `/*` trusts every token from that issuer that the pool accepts. + +## Step 4: Create the Platform Credential + +- **WIF** — no secret, so you may create it via the API (look up the body with `search_seqera_api`, provider `google`). Fields: Service account email; Workload Identity Provider `projects//locations/global/workloadIdentityPools/seqera-pool/providers/seqera-provider`; Token audience (only if you set a custom one). +- **Service account key** — the key is a secret. The user creates it (IAM > Service accounts > Keys > Add key > JSON) and pastes it into Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **Google**. Seqera only accepts `"type": "service_account"` files. Don't run `gcloud iam service-accounts keys create` yourself and never read the key file. + +List credentials and record the `credentialsId`. + +## Step 5: Create the Compute Environment + +Look up the create-CE schema with `search_seqera_api` (platform `google-batch`). Build the config and **show it to the user before submitting**: + +| Field | Value | +|---|---| +| Name | e.g. `google-batch-` | +| Platform | `google-batch` | +| Credentials | `credentialsId` from Step 4 | +| Location | region from Step 2 | +| Work directory | `gs:///work` | +| Wave / Fusion v2 | enabled (Fusion requires Wave; uses a 375 GB local SSD per task by default) | +| Spot | from Step 2 | +| Service account email | head job SA (recommended for production) | +| VPC + Subnet | set together; required for Use private address and network tags | +| Head job CPUs / memory | memory in MiB, minimum 3584 — size it (below) | +| Instance type | optional default machine type; per-process `machineType` overrides it | +| Boot disk size / image | optional | + +Head job sizing — the default is too small for production, and a head job that runs out of memory fails the whole pipeline: + +| Pipeline size | CPUs | Memory | +|---|---|---| +| up to 100 tasks | 2 | 4 GB | +| 100–500 tasks | 4 | 8 GB | +| 500+ tasks | 8 | 16 GB (+ head job env var `NXF_JVM_ARGS="-Xms4g -Xmx12g"`) | + +Environment variables can't be edited after the CE is created — put secrets in Nextflow Platform pipeline secrets, not CE env vars. + +UI path: workspace > **Compute Environments** > **Add compute environment** > **Google Cloud Batch**. + +## Step 6: Verify + +1. Poll the CE until status is `AVAILABLE`. On `ERRORED`, read the message. +2. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +3. WIF failures at run time — check in order: SA roles, `workloadIdentityUser` binding, issuer URL matches exactly, token audience matches. +4. Jobs that never start usually mean a regional CPU/SSD quota or a machine type unavailable in the location. + +## Critical Rules + +1. **CONFIRM before changing GCP** — show every create/bind command and wait for the user's yes. +2. **NEVER handle secrets** — don't create, read, or paste service account keys. The user adds key-based credentials in the Seqera UI. Prefer WIF, which has no key. +3. **DON'T use the default Compute Engine SA** — it has `roles/editor`. +4. **GRANT `storage.buckets.list` at project level** for the credential SA, and `storage.buckets.get` when Fusion is on. +5. **SIZE the head job** for the pipeline; the default is not enough for production. +6. **SHOW the CE config** to the user before creating it. +7. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. diff --git a/skills/onboard-lsf/SKILL.md b/skills/onboard-lsf/SKILL.md new file mode 100644 index 0000000..399c2c0 --- /dev/null +++ b/skills/onboard-lsf/SKILL.md @@ -0,0 +1,165 @@ +--- +name: onboard-lsf +description: Onboard an IBM Spectrum LSF HPC cluster to Nextflow Platform as an LSF compute environment. Use when the user wants to connect an IBM LSF (Load Sharing Facility) cluster to Seqera, set up SSH, managed identity, or Tower Agent credentials for it, configure LSF queues and memory settings (unit for limits, per-job memory limit, per-task reserve) in Nextflow Platform, or run pipelines on LSF through Seqera. +--- + +## Using this skill + +For Nextflow Platform operations, read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) reference. Any `platform_*` names below describe API operations: discover their exact names and parameter schemas with `search_seqera_api`, then invoke `call_seqera_api`. The host manages OAuth for the connected MCP server. + +# Onboard an IBM Spectrum LSF Cluster to Nextflow Platform + +Connect an IBM Spectrum LSF cluster to Nextflow Platform so it can submit the Nextflow head job to the cluster, which then submits tasks with `bsub`. You'll check the cluster, read its memory settings, choose how Seqera connects to it, create the Platform credential, and create an LSF compute environment (CE). + +Source docs: https://docs.seqera.io/platform-cloud/compute-envs/hpc (shared page for Slurm, IBM LSF, PBS Pro, Grid Engine, Moab). If anything below disagrees with the live docs, the docs win. + +## Main Flow + +1. **Pick the Platform workspace** the CE will live in. +2. **Choose the connection method** — SSH, managed identity, or Tower Agent. +3. **Check the cluster** — scheduler access, Nextflow, queues, memory settings, directories, network. +4. **Create the Platform credential.** +5. **Create the compute environment.** +6. **Verify** — run a test pipeline. + +Run cluster commands only where the user can see them (their terminal or an SSH session they've set up). Before anything that changes the cluster (creating directories, editing `authorized_keys`, changing permissions), show the command and wait for a yes. + +## Step 1: Pick the Platform Workspace + +Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces", "list credentials", "create compute environment"), then `call_seqera_api`. Ask which organization/workspace to use and record its `workspaceId`. Check existing CEs (`platform_list_compute_envs`) first. + +## Step 2: Choose the Connection Method + +| Method | How it works | Use when | +|---|---|---| +| **Managed identity** | Seqera SSHes to the login node as **each user's own** Linux account | multiple users; you want per-user accounting and fair-share. Created by an org owner. | +| **SSH credential** | Seqera SSHes to the login node with **one shared** key | a single user or a service account | +| **Tower Agent** | An agent on the cluster opens an outbound connection to Seqera; no inbound SSH | the login node isn't reachable from the internet | + +SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform (check Seqera's published IP addresses with the cluster admins). Tower Agent only needs outbound HTTPS. + +## Step 3: Check the Cluster + +On the login node: + +```bash +lsid # LSF version and cluster name +bqueues -w # queues and their state +bjobs -u $USER +nextflow -version # must be on PATH in a non-interactive login shell +java -version # Java 17+ for current Nextflow +curl -sI https://api.cloud.seqera.io | head -1 # outbound to Seqera (use the Enterprise URL if self-hosted) +``` + +Requirements: +- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use `the `install-nextflow` skill` on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or load it via a module in the CE's pre-run script. +- **Compute nodes can submit jobs.** The head job runs on a compute node and calls `bsub` itself: + ```bash + bsub -q -I 'bsub -V && bjobs' + ``` +- **Outbound HTTPS from the head job's node** to Seqera, so Nextflow can report progress. +- **Shared filesystem** visible from login and compute nodes for the work and launch directories. + +### Memory settings + +LSF sites differ in how memory limits are interpreted, and Nextflow has to request memory the way the cluster expects. Read the cluster config: + +```bash +badmin showconf mbd | grep -E 'LSF_UNIT_FOR_LIMITS|LSB_JOB_MEMLIMIT|RESOURCE_RESERVE_PER_TASK' +# or, if badmin isn't allowed: +grep -E 'LSF_UNIT_FOR_LIMITS|LSB_JOB_MEMLIMIT' $LSF_ENVDIR/lsf.conf +grep -E 'RESOURCE_RESERVE_PER_TASK' $LSF_ENVDIR/lsbatch/*/configdir/lsb.resources 2>/dev/null +``` + +Map them to the CE fields: + +| Seqera CE field | LSF setting | Value | +|---|---|---| +| **Unit for memory limits** | `LSF_UNIT_FOR_LIMITS` | the same unit (`KB` is the LSF default, `MB`, `GB`, …) | +| **Per job memory limits** | `LSB_JOB_MEMLIMIT=Y` | on if `Y` — memory is a limit for the whole job, not per slot | +| **Per task reserve** | `RESOURCE_RESERVE_PER_TASK=Y` | on if `Y` — memory reservation is per task (slot) | + +These correspond to Nextflow's `executor.perJobMemLimit` and `executor.perTaskReserve` settings. Getting them wrong makes jobs either request far too much memory (stuck pending) or get killed for exceeding limits. If the values can't be read, ask the cluster admins. + +Pick with the user: +- **Head queue** — queue for the long-running Nextflow head job (low CPU, long run limit; check `bqueues -l ` for `RUNLIMIT`). +- **Compute queue** — default queue for tasks (pipelines can override per process with `queue`). +- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. It must exist already. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. +- **Launch directory** — optional; defaults to the work directory. + +For **managed identities**, every user must share a Linux group that can write the work directory: + +```bash +chgrp -R +chmod -R g+wxs +setfacl -Rdm g::rwX +``` + +## Step 4: Create the Platform Credential + +All three hold or derive from a secret the user controls, so the **user** creates them in Nextflow Platform. Guide them step by step; never ask for a private key or token in the chat. + +**SSH credential** +1. The user generates a key pair (ideally with a passphrase) and adds the public key to `~/.ssh/authorized_keys` on the cluster: + ```bash + ssh-keygen -t ed25519 -f ~/.ssh/seqera_hpc + ssh-copy-id -i ~/.ssh/seqera_hpc.pub @ + ``` +2. Workspace > **Credentials** > **Add credentials** > Provider **SSH** > paste the private key (including the `BEGIN`/`END` lines) and passphrase. + +The key is shared by everyone in the workspace — all runs use that one cluster identity. + +**Managed identity** (organization owner) +1. Organization > **Managed identities** > **Add managed identity** > Provider **IBM LSF**, Hostname (login node FQDN), Port (default 22). +2. Each user adds their own Linux username, SSH private key, and passphrase on that managed identity. Users show as "Missing" until they do. + +**Tower Agent** +1. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**. Choose a connection ID; toggle **Shared agent** if all workspace members should use it. +2. Copy the run snippet from the credential's **Usage** section. On the cluster, the user runs the agent with a Seqera access token in `TOWER_ACCESS_TOKEN` and the same connection ID, optionally `--work-dir=`. +3. The agent must stay running (e.g. in `tmux`, `screen`, or a systemd user service). If it stops, launches fail. + +List credentials and record the `credentialsId`. + +## Step 5: Create the Compute Environment + +Look up the create-CE schema with `search_seqera_api` (platform `lsf-platform`). Build the config and **show it to the user before submitting**: + +| Field | Value | +|---|---| +| Name | e.g. `lsf-` | +| Platform | IBM LSF | +| Credentials | `credentialsId` from Step 4 | +| Work directory | absolute path from Step 3 | +| Launch directory | optional | +| Login hostname | login node hostname or IP (SSH only; managed identity gets it from the identity; not used with Tower Agent) | +| Username / port | SSH credential, if the schema has them: cluster username and SSH port (default 22) | +| Head queue name | head queue | +| Compute queue name | compute queue | +| Unit for memory limits / Per job memory limits / Per task reserve | from the memory settings table | +| Nextflow queue size | max jobs Nextflow keeps submitted at once — match the cluster's per-user job limit | +| Head job submit options | `bsub` options for the head job, e.g. `-W 168:00 -n 2 -R "rusage[mem=8GB]"` (adjust the mem value to the cluster's unit); optionally applied to compute jobs; can't be overridden at launch | +| Pre-run script | e.g. `module load nextflow java` if Nextflow comes from environment modules | +| Environment variables | e.g. `NXF_OPTS=-Xms1g -Xmx6g` for the head job | + +Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it in the CE's global Nextflow config, e.g. `apptainer.enabled = true`. + +UI path: workspace > **Compute Environments** > **Add compute environment** > **IBM LSF**. + +## Step 6: Verify + +1. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +2. If the run never starts: SSH to the login node with the same key/user and check `bjobs -u `; confirm the head queue accepts jobs and `nextflow` is on `PATH`. +3. Jobs stuck `PEND` with a memory reason (`bjobs -p`): the memory unit or per-job/per-task settings don't match the cluster. +4. Tasks killed with `TERM_MEMLIMIT`: same settings, or the process memory directive is too low. +5. If the run starts but Seqera shows no progress: outbound HTTPS from compute nodes to Seqera is blocked. + +## Critical Rules + +1. **CONFIRM before changing the cluster** — show every command that writes files, keys, or permissions, and wait for the user's yes. +2. **NEVER handle secrets** — SSH private keys, passphrases, and access tokens go from the user straight into Nextflow Platform or their own terminal, never through the chat. +3. **READ the cluster's memory settings** (`LSF_UNIT_FOR_LIMITS`, `LSB_JOB_MEMLIMIT`, `RESOURCE_RESERVE_PER_TASK`) and set the three CE memory fields to match — never guess them. +4. **CHECK that compute nodes can run `bsub`** — the head job submits tasks from inside the cluster. +5. **CHECK `nextflow` is on PATH** for non-interactive shells, or load it in the pre-run script. +6. **CREATE the work directory first** — Seqera and the agent don't create it. +7. **SHOW the CE config** to the user before creating it. +8. **VERIFY** — the CE is only onboarded once a test pipeline succeeds. diff --git a/skills/onboard-slurm/SKILL.md b/skills/onboard-slurm/SKILL.md new file mode 100644 index 0000000..a68d32e --- /dev/null +++ b/skills/onboard-slurm/SKILL.md @@ -0,0 +1,142 @@ +--- +name: onboard-slurm +description: Onboard a Slurm HPC cluster to Nextflow Platform as a Slurm compute environment. Use when the user wants to connect a Slurm cluster to Seqera, set up SSH, managed identity, or Tower Agent credentials for an HPC cluster, configure Slurm partitions as Seqera head and compute queues, or run pipelines on Slurm through Seqera. +--- + +## Using this skill + +For Nextflow Platform operations, read the [MCP connection](../launch-workflow/references/seqera-mcp/README.md) reference. Any `platform_*` names below describe API operations: discover their exact names and parameter schemas with `search_seqera_api`, then invoke `call_seqera_api`. The host manages OAuth for the connected MCP server. + +# Onboard a Slurm Cluster to Nextflow Platform + +Connect a Slurm cluster to Nextflow Platform so it can submit the Nextflow head job to the cluster, which then submits tasks with `sbatch`. You'll check the cluster, choose how Seqera connects to it, create the Platform credential, and create a Slurm compute environment (CE). + +Source docs: https://docs.seqera.io/platform-cloud/compute-envs/hpc (shared page for Slurm, IBM LSF, PBS Pro, Grid Engine, Moab). If anything below disagrees with the live docs, the docs win. + +## Main Flow + +1. **Pick the Platform workspace** the CE will live in. +2. **Choose the connection method** — SSH, managed identity, or Tower Agent. +3. **Check the cluster** — scheduler access, Nextflow, partitions, directories, network. +4. **Create the Platform credential.** +5. **Create the compute environment.** +6. **Verify** — run a test pipeline. + +Run cluster commands only where the user can see them (their terminal or an SSH session they've set up). Before anything that changes the cluster (creating directories, editing `authorized_keys`, changing permissions), show the command and wait for a yes. + +## Step 1: Pick the Platform Workspace + +Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces", "list credentials", "create compute environment"), then `call_seqera_api`. Ask which organization/workspace to use and record its `workspaceId`. Check existing CEs (`platform_list_compute_envs`) first. + +## Step 2: Choose the Connection Method + +| Method | How it works | Use when | +|---|---|---| +| **Managed identity** | Seqera SSHes to the login node as **each user's own** Linux account | multiple users; you want per-user accounting and fair-share. Created by an org owner. | +| **SSH credential** | Seqera SSHes to the login node with **one shared** key | a single user or a service account | +| **Tower Agent** | An agent on the cluster opens an outbound connection to Seqera; no inbound SSH | the login node isn't reachable from the internet | + +SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform (check Seqera's published IP addresses with the cluster admins). Tower Agent only needs outbound HTTPS. + +## Step 3: Check the Cluster + +On the login node: + +```bash +sinfo -s # partitions and their state +sbatch --version +squeue -u $USER +nextflow -version # must be on PATH in a non-interactive login shell +java -version # Java 17+ for current Nextflow +curl -sI https://api.cloud.seqera.io | head -1 # outbound to Seqera (use the Enterprise URL if self-hosted) +``` + +Requirements: +- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use `the `install-nextflow` skill` on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or by loading it via a module in the CE's pre-run script. +- **Compute nodes can submit jobs.** The head job runs on a compute node and calls `sbatch` itself. Check the partition allows that: + ```bash + sbatch -p --wrap 'sbatch --version && squeue -u $USER' + ``` +- **Outbound HTTPS from the head job's node** to Seqera, so Nextflow can report progress. +- **Shared filesystem** visible from login and compute nodes for the work and launch directories. + +Pick with the user: +- **Head queue** — partition for the long-running Nextflow head job (low CPU, long wall time). +- **Compute queue** — default partition for tasks (pipelines can override per process with `queue`). +- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. It must exist already. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. +- **Launch directory** — optional; defaults to the work directory. + +For **managed identities**, every user must share a Linux group that can write the work directory: + +```bash +chgrp -R +chmod -R g+wxs +setfacl -Rdm g::rwX +``` + +## Step 4: Create the Platform Credential + +All three hold or derive from a secret the user controls, so the **user** creates them in Nextflow Platform. Guide them step by step; never ask for a private key or token in the chat. + +**SSH credential** +1. The user generates a key pair (ideally with a passphrase) and adds the public key to `~/.ssh/authorized_keys` on the cluster: + ```bash + ssh-keygen -t ed25519 -f ~/.ssh/seqera_hpc + ssh-copy-id -i ~/.ssh/seqera_hpc.pub @ + ``` +2. Workspace > **Credentials** > **Add credentials** > Provider **SSH** > paste the private key (including the `BEGIN`/`END` lines) and passphrase. + +The key is shared by everyone in the workspace — all runs use that one cluster identity. + +**Managed identity** (organization owner) +1. Organization > **Managed identities** > **Add managed identity** > Provider **Slurm**, Hostname (login node FQDN), Port (default 22). +2. Each user adds their own Linux username, SSH private key, and passphrase on that managed identity. Users show as "Missing" until they do. + +**Tower Agent** +1. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**. Choose a connection ID; toggle **Shared agent** if all workspace members should use it. +2. Copy the run snippet from the credential's **Usage** section. On the cluster, the user runs the agent with a Seqera access token in `TOWER_ACCESS_TOKEN` and the same connection ID, optionally `--work-dir=`. +3. The agent must stay running (e.g. in `tmux`, `screen`, or a systemd user service). If it stops, launches fail. + +List credentials and record the `credentialsId`. + +## Step 5: Create the Compute Environment + +Look up the create-CE schema with `search_seqera_api` (platform `slurm-platform`). Build the config and **show it to the user before submitting**: + +| Field | Value | +|---|---| +| Name | e.g. `slurm-` | +| Platform | Slurm | +| Credentials | `credentialsId` from Step 4 | +| Work directory | absolute path from Step 3 | +| Launch directory | optional | +| Login hostname | login node hostname or IP (SSH only; managed identity gets it from the identity; not used with Tower Agent) | +| Username / port | SSH credential, if the schema has them: cluster username and SSH port (default 22) | +| Head queue name | head partition | +| Compute queue name | compute partition | +| Nextflow queue size | max jobs Nextflow keeps submitted at once — match the cluster's per-user limit (`sacctmgr show assoc user=$USER format=MaxSubmit`) | +| Head job submit options | `sbatch` options for the head job, e.g. `--time=7-00:00:00 --mem=8G --cpus-per-task=2`; optionally applied to compute jobs too; can't be overridden at launch | +| Pre-run script | e.g. `module load nextflow java` if Nextflow comes from environment modules | +| Environment variables | e.g. `NXF_OPTS=-Xms1g -Xmx6g` for the head job | + +Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it in the CE's global Nextflow config, e.g. `apptainer.enabled = true`. + +UI path: workspace > **Compute Environments** > **Add compute environment** > **Slurm Workload Manager**. + +## Step 6: Verify + +1. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +2. If the run never starts: SSH to the login node with the same key/user and check `squeue -u `; confirm the head partition accepts jobs and `nextflow` is on `PATH`. +3. If the head job starts but tasks don't: the head partition's nodes can't run `sbatch`, or the queue size exceeds `MaxSubmit`. +4. If the run starts but Seqera shows no progress: outbound HTTPS from compute nodes to Seqera is blocked. + +## Critical Rules + +1. **CONFIRM before changing the cluster** — show every command that writes files, keys, or permissions, and wait for the user's yes. +2. **NEVER handle secrets** — SSH private keys, passphrases, and access tokens go from the user straight into Nextflow Platform or their own terminal, never through the chat. +3. **CHECK that compute nodes can run `sbatch`** — the head job submits tasks from inside the cluster. +4. **CHECK `nextflow` is on PATH** for non-interactive shells, or load it in the pre-run script. +5. **CREATE the work directory first** — Seqera and the agent don't create it. +6. **USE managed identities** when more than one person will run pipelines and per-user accounting matters. +7. **SHOW the CE config** to the user before creating it. +8. **VERIFY** — the CE is only onboarded once a test pipeline succeeds. diff --git a/sources.json b/sources.json index ea1670d..7d0b108 100644 --- a/sources.json +++ b/sources.json @@ -40,7 +40,7 @@ "path": "skills/ce-credentials-setup/SKILL.md", "source": "portal/backend/src/skills/ce-credentials-setup/SKILL.md", "source_sha256": "179ed50da55eb509086eaf9e3228d063bd4d8334c0f8fff38c0f31e0e327e4e9", - "bundled_sha256": "f08f46ce58afa13ca971bd974578a388fa6e86851b8263ce2c1db5acb34e27e1", + "bundled_sha256": "222b38b620effb7a3032212159902e20b690935fd754dbcd41718f2b60fba4df", "override": true }, { From 4810d0c15986ea64b7f451bbbf021656b1c2e70d Mon Sep 17 00:00:00 2001 From: Sasha Dagayev Date: Fri, 6 Nov 2026 15:20:32 -0500 Subject: [PATCH 2/3] Fact-check onboarding skills against Seqera docs and API spec Checked every claim against the seqeralabs/docs source and the Platform OpenAPI spec. Main corrections: - AWS: role first, then Role-mode credential with useExternalId=true, then write the External ID back with update-assume-role-policy; state the Seqera Cloud trust principal; accurate policy summary - Google: always set the head job service account (key credentials fall back to the default SA); workspace-scoped WIF principal; Fusion disk and Spot retry details - Azure: tokenDuration defaults to 12h; subnets default to private IPs and need NAT; correct per-family quota query; job cleanup defaults - Slurm/LSF: managed identities use managedIdentityId, not credentialsId; full Tower Agent setup; read RESOURCE_RESERVE_PER_TASK from lsf.conf/lsb.params - All: API field names alongside UI labels, INVALID status, fixed broken skill references Co-Authored-By: Claude Opus 5.5 --- skills/onboard-aws-batch/SKILL.md | 74 ++++++++++++----------- skills/onboard-azure-batch/SKILL.md | 84 ++++++++++++++------------ skills/onboard-google-batch/SKILL.md | 57 ++++++++++-------- skills/onboard-lsf/SKILL.md | 88 ++++++++++++++++------------ skills/onboard-slurm/SKILL.md | 81 ++++++++++++++----------- 5 files changed, 218 insertions(+), 166 deletions(-) diff --git a/skills/onboard-aws-batch/SKILL.md b/skills/onboard-aws-batch/SKILL.md index dc59274..4f2482a 100644 --- a/skills/onboard-aws-batch/SKILL.md +++ b/skills/onboard-aws-batch/SKILL.md @@ -74,18 +74,18 @@ Offer a lifecycle rule that deletes intermediate files under the work prefix aft Write the policy to a local file (e.g. `seqera-forge-policy.json`) and create it as a **managed** policy. Inline user policies cap at 2048 characters and the full policy won't fit. -**Forge mode** — use the full policy from the docs. Get the current version from the docs page (download link: `https://docs.seqera.io/assets/files/aws-batch-full-policy-21552c5a558545c07707257a720b6167.json` — if it 404s, copy it from the "IAM" section of the AWS Batch page). It grants: +**Forge mode** — use the full policy from the docs. Its source file is `https://raw.githubusercontent.com/seqeralabs/docs/master/platform-cloud/docs/compute-envs/_policies/aws-batch-full-policy.json` (the same file as the **Download** link on the AWS Batch docs page). It grants: -- `batch:*` management on `TowerForge-*` compute environments and job queues, plus `Describe*` and job submit/cancel/terminate -- `ec2:` launch template management and `Describe*` (for dropdowns) -- `iam:PassRole` conditioned on `batch.amazonaws.com`, `ec2.amazonaws.com`, `ecs-tasks.amazonaws.com` -- `iam:` role and instance-profile management on `TowerForge-*` +- Batch create/update/delete/tag on `TowerForge-*` compute environments and job queues; `DescribeComputeEnvironments`, `DescribeJobDefinitions`, `DescribeJobQueues`, `DescribeJobs` on `*`; cancel/register/submit/tag/terminate on job definitions, `TowerForge-*` queues and jobs +- `ec2:` launch template management, plus specific `ec2:Describe…` actions (VPCs, subnets, security groups, images, instance types, key pairs) for the form dropdowns +- `iam:PassRole` on `*`, limited to `batch.amazonaws.com`, `ec2.amazonaws.com`, `ecs-tasks.amazonaws.com`. If you scope it to role ARNs, include `TowerForge-*` and the Fargate/execution roles, and keep `ecs-tasks.amazonaws.com` — otherwise head job definition creation fails +- optional `iam:` role and instance-profile management on `TowerForge-*` — needed only when Forge creates the roles - `logs:` read access, `s3:Get*`/`List*`/`PutObject`, `ssm:GetParameters` on `/aws/service/ecs/*` - optional FSx, EFS, Secrets Manager (`tower-*`), `ec2:GetConsoleOutput`, and lineage SNS/S3 (`seqera-lineage-*`) statements -Forge-created resources always start with `TowerForge-`; that prefix can't be changed, so leave the resource scoping on it. +Forge-created resources always start with `TowerForge-`; that prefix can't be changed, so leave the resource scoping on it. If the user tightens the policy, Forge still needs `batch:DescribeJobQueues` and `batch:DescribeComputeEnvironments`. -**Manual mode** — minimum Batch permissions: `batch:DescribeJobs`, `batch:DescribeJobDefinitions`, `batch:RegisterJobDefinition`, `batch:SubmitJob`, `batch:CancelJob`, `batch:TagResource`, `batch:TerminateJob`, plus `batch:DescribeJobQueues` (only for the queue dropdown), `logs:` read access, and S3 access on the work bucket. +**Manual mode** — minimum Batch permissions: `batch:DescribeJobs`, `batch:DescribeJobDefinitions`, `batch:RegisterJobDefinition`, `batch:SubmitJob`, `batch:CancelJob`, `batch:TagResource`, `batch:TerminateJob`, plus `batch:DescribeJobQueues` (only for the queue dropdown), `logs:` read access, and S3 access on the work bucket. Manual mode also needs the Batch queues, Batch compute environments, instance/execution roles, and a launch template or AMI with the AWS CLI installed, created first per https://docs.seqera.io/platform-cloud/enterprise/advanced-topics/manual-aws-batch-setup. Offer to tighten the S3 statement to the work bucket (and any input/output buckets) instead of `*`. Studios and Data Explorer need read/write on each bucket they use. @@ -95,15 +95,20 @@ aws iam create-policy --policy-name seqera-forge-policy --policy-document file:/ ### 3c. IAM role (Role mode — recommended) -Role mode uses no static keys. Seqera assumes the role with an **External ID** that Seqera generates when you create the credential, so the order matters: +Role mode uses no static keys. Platform generates an **External ID** when you save a Role-mode credential, and that credential needs the role ARN, so the order is: -1. Create the credential in Nextflow Platform first in Role mode (Step 4) — or start it in the UI — to get the External ID. -2. Create the role with the trust policy shown in the docs/Seqera UI. It trusts Seqera's platform role and requires `sts:ExternalId` to equal the generated value; it also allows `sts:TagSession`. **Copy the trusted principal ARN from the docs or the Platform credential form — don't type it from memory.** -3. Attach the policy: +1. Write the trust policy from the docs (AWS Batch page, "IAM role-based credential creation") with `` left as a placeholder. For Seqera Cloud it trusts `arn:aws:iam::161471496260:role/SeqeraPlatformCloudAccessRole` with `sts:AssumeRole` (conditioned on `sts:ExternalId`) and `sts:TagSession`. Copy the JSON from the docs rather than retyping it; Enterprise installs trust their own Platform role instead. +2. Create the role and attach the policy: ```bash aws iam create-role --role-name seqera-platform-role --assume-role-policy-document file://seqera-trust-policy.json aws iam attach-role-policy --role-name seqera-platform-role --policy-arn arn:aws:iam:::policy/seqera-forge-policy ``` +3. Create the Role-mode credential with that role ARN (Step 4) and read back the generated External ID. +4. Put the External ID into the trust policy and apply it: + ```bash + aws iam update-assume-role-policy --role-name seqera-platform-role --policy-document file://seqera-trust-policy.json + ``` + Until this is done, Platform can't assume the role. Pre-flight checks can't detect a missing External ID — it shows up at first launch. ### 3c (alternative). IAM user (Keys mode) @@ -116,8 +121,8 @@ The **user** creates the access key (IAM > Users > seqera-platform > Security cr ## Step 4: Create the Platform Credential -- **Role mode** — the credential holds no secret, so you may create it via the API: provider `aws`, the role ARN as `assumeRoleArn`. Look up the exact request body with `search_seqera_api` ("create credentials"). Read back the generated External ID and put it in the trust policy (Step 3c). -- **Keys mode** — the credential holds a secret. Ask the user to add it in Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **AWS** > paste Access key and Secret key (optionally an Assume role ARN). Never ask them to paste keys into the chat. +- **Role mode** — the credential holds no secret, so you may create it via the API (`platform_create_credentials`; confirm the body with `search_seqera_api`): query `workspaceId=&useExternalId=true`, body `provider: "aws"`, `keys: {"mode": "role", "assumeRoleArn": ""}`. Without `useExternalId=true` no External ID is generated. Then describe the credential and read `keys.externalId` for Step 3c.4. +- **Keys mode** — the credential holds a secret. Ask the user to add it in Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **AWS** (or the CE form's **Credentials** drop-down > **+**), **AWS credential mode: Keys**, then paste Access key and Secret key. If they also set **Assume role**, the optional **Generate External ID** switch appears; the IAM user then needs `sts:AssumeRole` on that role and the role must trust the user. Never ask them to paste keys into the chat. Then list credentials and record the new `credentialsId`. @@ -125,30 +130,33 @@ Then list credentials and record the new `credentialsId`. Look up the create-CE request schema with `search_seqera_api` ("create compute environment", platform `aws-batch`). Build the config from Step 2 and **show it to the user before submitting**. Key fields: -| Field | Value | -|---|---| -| Name | e.g. `aws-batch--spot` (alphanumeric, `-`, `_`) | -| Platform | `aws-batch` | -| Credentials | `credentialsId` from Step 4 | -| Region | from Step 2; must match bucket / EFS / FSx | -| Work directory | `s3:///work` (or EFS/FSx mount path ending in `/work`) | -| Wave / Fusion v2 | enabled (Fusion requires Wave) | -| Fast instance storage | with Fusion v2, use NVMe instance types (e.g. `c6id`, `m6id`, `r6id`) | -| Forge: type | `SPOT` or `EC2` (On-Demand); Seqera adds an On-Demand queue for the head job when Spot | -| Forge: max CPUs | from Step 2 | -| Forge: Fargate head job | optional; requires Fusion v2 and Spot; not with EFS/FSx | -| Forge: GPU | NVIDIA only; also set GPU instance types in Advanced options | -| Manual: head queue / compute queue | existing Batch job queue names | -| Head job CPUs / memory | memory in MiB, minimum 3584 (4096 with Fargate) | -| VPC / subnets / security groups | blank uses defaults; private subnets need NAT for Studios and image pulls | -| Dispose resources | on (deletes Forge resources when the CE is deleted) | +| Field | API field | Value | +|---|---|---| +| Name | `name` | e.g. `aws-batch--spot` (alphanumeric, `-`, `_`) | +| Platform | `platform` | `aws-batch` | +| Credentials | `credentialsId` | from Step 4 | +| Region | `region` | from Step 2; must match bucket / EFS / FSx | +| Work directory | `workDir` | `s3:///work` (or EFS/FSx mount path ending in `/work`) | +| Wave / Fusion v2 | `waveEnabled`, `fusion2Enabled` | enabled (Fusion requires Wave) | +| Fast instance storage | `nvnmeStorageEnabled` (sic) | Forge + Fusion v2 only; leave Instance types empty so Platform picks NVMe families, or list NVMe types; never `optimal` | +| Forge: type | `forge.type` | `SPOT` or `EC2` (On-Demand); Platform adds an On-Demand queue for the head job when Spot | +| Forge: max CPUs | `forge.maxCpus` | from Step 2 | +| Forge: instance types | `forge.instanceTypes` | optional, up to 20 | +| Forge: Fargate head job | `forge.fargateHeadEnabled` | optional; requires Wave + Fusion v2 and Spot; not with EFS/FSx; Studios not supported; use EC2 for GPU, custom AMI, or >16 vCPUs | +| Forge: Graviton | `forge.arm64Enabled` | optional; requires Fargate head job (so Spot), Wave and Fusion v2; not with GPUs | +| Forge: GPU | `forge.gpuEnabled` | NVIDIA only; also set GPU instance types | +| Forge: EFS / FSx | `forge.efsId`/`efsMount`/`efsCreate`, `forge.fsxMount`/`fsxSize` | only if not using S3 | +| Forge: VPC / subnets / security groups | `forge.vpcId`, `forge.subnets`, `forge.securityGroups` | blank uses the region's defaults; private subnets need a NAT gateway (or equivalent) for outbound access, which Studios requires | +| Forge: dispose resources | `forge.disposeOnDeletion` | on (deletes Forge resources when the CE is deleted) | +| Manual: head queue / compute queue | `headQueue`, `computeQueue` | existing Batch job queue names; `cliPath` if the AWS CLI isn't at the default path | +| Head job CPUs / memory | `headJobCpus`, `headJobMemoryMb` | MiB, minimum 3584 (4096 with Fargate; Fargate needs a valid CPU/memory combination); empty means 3584 (or 4096) MiB per CPU; also caps Studio session size | The UI path is workspace > **Compute Environments** > **Add compute environment** > **AWS Batch**, if the user would rather fill the form. ## Step 6: Verify -1. Poll the CE (describe compute env) until status is `AVAILABLE`. `ERRORED` includes a message — common causes: missing `iam:PassRole`, wrong External ID in the trust policy, bucket in a different region, the 50-job-queue-per-account Batch quota. -2. Run a test pipeline. Hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +1. Poll the CE (describe compute env) until status is `AVAILABLE`. `ERRORED` or `INVALID` carries a message — common causes: missing `iam:PassRole`, the credential lacking read/write on the work directory, bucket in a different region, the 50-job-queue-per-account Batch quota. A missing External ID in the trust policy passes pre-flight checks and only fails at launch. +2. Run a test pipeline: hand off to the `launch-workflow` skill with `https://github.com/nextflow-io/hello` on the new CE. 3. If jobs sit in `RUNNABLE`, check Max CPUs, instance types available in the region, and EC2 vCPU quotas (Spot and On-Demand quotas are separate). ## Critical Rules @@ -158,6 +166,6 @@ The UI path is workspace > **Compute Environments** > **Add compute environment* 3. **MATCH regions** — bucket, EFS/FSx, and CE must be in the same region. 4. **USE a managed policy**, not an inline user policy (2048-character limit). 5. **KEEP the `TowerForge-` scoping** in Forge policies; the prefix is fixed. -6. **COPY trust policy principals and policy JSON from the docs or Seqera UI** — never reconstruct account IDs from memory. +6. **FINISH the trust policy** — create the role, then the credential, then write the generated External ID back into the trust policy. Copy trust policy and IAM policy JSON from the docs; never retype account IDs. 7. **SHOW the CE config** to the user before creating it. 8. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. diff --git a/skills/onboard-azure-batch/SKILL.md b/skills/onboard-azure-batch/SKILL.md index 98b74c7..2efdff1 100644 --- a/skills/onboard-azure-batch/SKILL.md +++ b/skills/onboard-azure-batch/SKILL.md @@ -40,7 +40,7 @@ Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces | Networking | default or a VNet subnet | default unless policy requires a VNet | | Wave + Fusion v2 | on/off | **on** | -The two credential types are not interchangeable: a CE created with one can't switch to the other. +The two credential types authenticate differently and don't share access; pick one per CE up front (Entra if you need a subnet or managed identity). Check the Azure CLI: @@ -62,6 +62,8 @@ az storage account create --name --resource-group --location az storage container create --name --account-name --auth-mode login ``` +`--auth-mode login` needs the signed-in user to hold Storage Blob Data Contributor on the account; otherwise create the container in the portal (Storage account > **+ Container**). + Requirements from the docs: storage account key access **enabled**, public access from all networks (Forge can't create compute with restricted networking, and disabling public access isn't supported), Microsoft-managed encryption keys only. ### 3b. Batch account @@ -71,7 +73,11 @@ az batch account create --name --resource-group --location ``` -It must use pool allocation mode **Batch service** (the default) and allow **Shared Key** authentication. +For Batch Forge it must use pool allocation mode **Batch service** (the default); Manual pools can also use User Subscription. It must allow **Shared Key** authentication — check with: + +```bash +az batch account show -n -g --query allowedAuthenticationModes +``` ### 3c. Quotas @@ -79,20 +85,22 @@ New Batch accounts often can't create VMs until quota is raised. Check: ```bash az batch account show --name --resource-group \ - --query "{pools:poolQuota, jobs:activeJobAndJobScheduleQuota, dedicatedCores:dedicatedCoreQuota, lowPriCores:lowPriorityCoreQuota, perFamily:dedicatedCoreQuotaPerVmFamilyEnforced}" + --query "{pools:poolQuota, jobs:activeJobAndJobScheduleQuota, dedicatedCores:dedicatedCoreQuota, lowPriCores:lowPriorityCoreQuota, perFamilyEnforced:dedicatedCoreQuotaPerVmFamilyEnforced, perFamily:dedicatedCoreQuotaPerVmFamily}" ``` +If `perFamilyEnforced` is true, check the entry for the chosen series (e.g. `standardEDv5Family`). + Needs: - **Pools** — Forge creates two per CE (`tower-pool--head` and `-worker`). - **Active jobs** — each running Nextflow process uses one Batch job per pipeline run. - **Dedicated vCPUs for the chosen VM family** — at least the concurrent CPUs you want. -If too low, the user raises them in the portal: Batch account > **Quotas** > **Request quota increase**. This can take a support ticket and some time. +The docs' suggested starting quotas: **Pools per Batch account** 50, **Active jobs and job schedules per Batch account** 100, and dedicated vCPUs for the series (e.g. **EDv5 Series** 192). If too low, the user raises them in the portal: Batch account > **Quotas** > **Request quota increase** > Quota type **Batch**. This can take a support ticket and some time. ### 3d. Entra service principal (Entra credential only) ```bash -az ad sp create-for-rbac --name seqera-platform --skip-assignment +az ad sp create-for-rbac --name seqera-platform # assigns no role by default ``` This prints a client secret. **Don't run it yourself** — have the user run it in their own terminal (or create the app registration in the portal) and keep the secret out of the chat. Then assign roles with the app's client ID (`az ad sp list --display-name seqera-platform --query "[].appId" -o tsv`): @@ -106,11 +114,14 @@ az role assignment create --assignee --role "Azure Batch Data Contri Plus, only when used: - **Network Contributor** (or a custom role with `Microsoft.Network/virtualNetworks/subnets/join/action`) on the VNet, if the CE uses a Subnet ID. -- **Managed Identity Operator** on each managed identity attached to pools. +- **Managed Identity Operator** on each managed identity attached to pools — without it Platform can't attach the identity: + ```bash + az role assignment create --assignee --role "Managed Identity Operator" --scope + ``` ### 3e. Managed identity (optional, Entra only) -Lets pool nodes reach Storage and ACR without keys. Needs Nextflow 24.06.0-edge or later. +Lets pool nodes reach Storage and ACR without keys; recommended with Entra. Needs Nextflow 24.06.0-edge or later. One identity can serve both pools, or use separate head and worker identities to keep worker RBAC narrower. ```bash az identity create --name seqera-pool-identity --resource-group --location @@ -127,7 +138,7 @@ Both Azure credential types contain secrets (account keys or a client secret), s - **Shared key** tab — Batch account name + key (Batch account > Keys), Blob Storage account name + key (Storage account > Access keys). - **Entra** tab — Batch account name, Blob Storage account name, Tenant ID, Client ID, Client secret. -Give them the account names to fill in. Never ask for keys or secrets in the chat. Then list credentials and record the `credentialsId`. Warn them not to rotate the storage key in Nextflow Platform after the CE is created. +Give them the account names to fill in. Never ask for keys or secrets in the chat. Then list credentials and record the `credentialsId`. In the API, Shared key credentials have provider `azure` and Entra credentials `azure_entra` (not `azure-cloud`). Warn them not to rotate the storage key in Nextflow Platform after the CE is created. ## Step 5: Create the Compute Environment @@ -135,27 +146,27 @@ Look up the create-CE schema with `search_seqera_api` (platform `azure-batch`). **Forge mode:** -| Field | Value | -|---|---| -| Name | e.g. `azure-batch-` | -| Platform | `azure-batch` | -| Credentials | `credentialsId` from Step 4 | -| Region | e.g. `eastus` | -| Work directory | `az:///work` | -| Wave / Fusion v2 | enabled; for production use `Standard_E16d_v5` or larger with ≥200 GB local temp disk; no Premium SSDv2/Ultra disks for Fusion | -| VMs type | default `Standard_D4_v3`; pick a `d` size | -| VMs count | max VMs under autoscale | -| Autoscale | on (scales 0 → VMs count) | -| Head VM type / CPUs / memory | optional; memory in MiB, minimum 3584 | -| Subnet ID | optional, Entra only: `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/` | -| Managed identity | head and worker pool client ID + resource ID (resource IDs required for Forge) | -| Container registry credentials | ACR in the same region, if private images | -| Dispose resources | on (deletes pools when the CE is deleted) | -| Max wallclock time | default `7d`, up to 180 days | -| Token duration | SAS lifetime — must exceed the longest expected run | -| Job cleanup | defaults: delete tasks on completion, terminate jobs on completion | - -**Manual mode** — the user creates a pool first (portal: Batch account > Pools > Add) following https://docs.seqera.io/platform-cloud/enterprise/advanced-topics/manual-azure-batch-setup. Key pool settings: image `microsoft-dsvm` / `ubuntu-hpc` / `2204`, Docker-compatible container config, autoscale, task slots = vCPUs, and — without Fusion — a start task that installs `azcopy` on every node. Then set Config mode **Manual** and the **Compute pool name**. +| Field | API field | Value | +|---|---|---| +| Name | `name` | e.g. `azure-batch-` | +| Platform | `platform` | `azure-batch` | +| Credentials | `credentialsId` | from Step 4 | +| Region | `region` | e.g. `eastus` | +| Work directory | `workDir` | `az:///work` | +| Wave / Fusion v2 | `waveEnabled`, `fusion2Enabled` | enabled; for production use `Standard_E16d_v5` or larger with ≥200 GB local temp disk; no Premium SSDv2/Ultra disks for Fusion | +| VMs type | `forge.vmType` | set it explicitly — pick a `d` size such as `Standard_E16d_v5` (the docs list `Standard_D4_v3` as the default, the API spec `Standard_D4s_v3`) | +| VMs count | `forge.vmCount` | max VMs under autoscale | +| Autoscale | `forge.autoScale` | on (scales 0 → VMs count) | +| Head job CPUs / memory | `headJobCpus`, `headJobMemoryMb` | optional; memory in MiB, minimum 3584 | +| Subnet ID | `subnetId` | optional, Entra only: `/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/`. With a subnet, Forge pools default to **no public IPs** (`usePrivateAddress: true`), so the subnet needs outbound connectivity such as a NAT gateway; set `usePrivateAddress: false` to keep public IPs | +| Managed identity | head: `managedIdentityClientId` + `managedIdentityHeadResourceId`; worker: `managedIdentityPoolClientId` + `managedIdentityPoolResourceId` | resource IDs required for Forge | +| Container registry credentials | `forge.containerRegIds` | ACR in the same region, if private images | +| Dispose resources | `forge.disposeOnDeletion` | on (deletes pools when the CE is deleted) | +| Max wallclock time | `jobMaxWallClockTime` | default `7d`, up to 180 days | +| Token duration | `tokenDuration` | **default `12h`** — set it at least as long as the longest expected run (e.g. match Max wallclock `7d`) | +| Job cleanup | `deleteJobsOnCompletionEnabled`, `deleteTasksOnCompletion`, `terminateJobsOnCompletion` | defaults: delete jobs **off**, delete tasks **on**, terminate jobs **on** | + +**Manual mode** — use it for low-priority/spot nodes or custom images (Forge creates dedicated nodes only). The user creates a pool first (portal: Batch account > Pools > Add) following https://docs.seqera.io/platform-cloud/compute-envs/azure-batch#create-a-nextflow-compatible-azure-batch-pool. Key pool settings: image `microsoft-dsvm` / `ubuntu-hpc` / `2204`, Docker-compatible container config, autoscale with a 5-minute evaluation interval, task slots = vCPUs, and — without Fusion — a start task that installs `azcopy` on every node (resource file `https://nf-xpack.seqera.io/azcopy/linux_amd64_10.8.0/azcopy` saved as `azcopy`). Manual mode doesn't attach a subnet, so set the VNet/subnet on the pool itself. Then set Config mode **Manual**, the **Compute pool name**, and the **Managed identity client ID** if the pool has a user-assigned identity. Manual CEs use a **Jobs cleanup policy** (Always / Never / On success) instead of the Forge toggles. Environment variables can't be edited after creation; use Seqera pipeline secrets for secrets. @@ -163,9 +174,9 @@ UI path: workspace > **Compute Environments** > **Add compute environment** > ** ## Step 6: Verify -1. Poll the CE until status is `AVAILABLE`. On `ERRORED`, read the message — typical causes: no vCPU/pool quota, Storage public access disabled, missing Network Contributor on the VNet, access-key credential used with a Subnet ID. -2. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. -3. If pool nodes fail to start or tasks can't pull images, check outbound access from the subnet to container registries (quay.io, docker.io), Azure Storage, and Seqera. +1. Poll the CE until status is `AVAILABLE`. On `ERRORED` or `INVALID`, read the message (for `INVALID`, check the credential record — rotating the Batch or Storage key in Azure invalidates a Shared key credential). Typical causes: no vCPU/pool/job quota, Storage public access disabled, missing Network Contributor on the VNet, missing Managed Identity Operator on the identity, no outbound path (NAT) from a private subnet. +2. Run a test pipeline: hand off to the `launch-workflow` skill with `https://github.com/nextflow-io/hello` on the new CE. +3. If pool nodes fail to start or tasks can't pull images, check outbound access from the subnet to container registries (quay.io, docker.io), Azure Storage, and Seqera (e.g. via a NAT gateway on the subnet). ## Critical Rules @@ -173,7 +184,8 @@ UI path: workspace > **Compute Environments** > **Add compute environment** > ** 2. **NEVER handle secrets** — account keys and client secrets go straight from the user into the Seqera UI, never through the chat or the API. Don't run commands that print secrets. 3. **MATCH regions** — Storage account and Batch account in the same region. 4. **CHECK quota before creating the CE** — new Batch accounts often have none. -5. **USE Entra** when a VNet subnet or managed identity is needed; access keys support neither. -6. **KEEP Storage public network access and shared key access enabled** for Forge. -7. **SHOW the CE config** to the user before creating it. -8. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. +5. **SET Token duration** to cover the longest run — the `12h` default cuts off longer pipelines. +6. **USE Entra** when a VNet subnet or managed identity is needed; access keys support neither. +7. **KEEP Storage public network access and shared key access enabled** for Forge. +8. **SHOW the CE config** to the user before creating it. +9. **VERIFY** — the CE is only onboarded once it is `AVAILABLE` and a test pipeline succeeds. diff --git a/skills/onboard-google-batch/SKILL.md b/skills/onboard-google-batch/SKILL.md index 69b7aca..2dafc72 100644 --- a/skills/onboard-google-batch/SKILL.md +++ b/skills/onboard-google-batch/SKILL.md @@ -36,7 +36,7 @@ Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces | Location | a region where the Batch API is available | near the data; the bucket and compute can be in any region | | Credential | **Workload Identity Federation** (no key) or **service account JSON key** | **WIF** for production | | Service accounts | one SA for everything, or separate credential SA and head job SA | separate for production, one is fine to start | -| Spot | on/off | on for cost; Nextflow 24.10+ defaults to 0 Spot retries on Google, so set `maxRetries` | +| Spot | on/off | on for cost; since Nextflow 24.10 Spot reclamations aren't retried on Google by default, so configure a retry strategy (`errorStrategy = 'retry'` with `maxRetries`). Reclaimed tasks exit with code 50001 | | Wave + Fusion v2 | on/off | **on** | Check the gcloud CLI: @@ -100,6 +100,8 @@ gcloud iam service-accounts create seqera-head-job --project --display | `roles/secretmanager.secretAccessor` | project — only with Seqera secrets | | `roles/serviceusage.serviceUsageConsumer` | project — only with requester-pays buckets | +`roles/storage.bucketViewer` is a Beta role. If the org forbids Beta roles, use a custom role with `storage.buckets.get` and `storage.buckets.list`. Without `storage.buckets.get`, Fusion reports the bucket as not found rather than as a permission error. + With one SA, grant both lists to it. If the project needs no access restrictions, `roles/storage.admin` on the project replaces the storage rows for both. Project-level grant pattern: @@ -120,7 +122,9 @@ The person creating the CE also needs `roles/batch.jobsEditor` and `roles/iam.se ### 3d. Workload Identity Federation (recommended) -Seqera Cloud's OIDC issuer is `https://cloud.seqera.io/api`. For Seqera Enterprise, ask the user for their instance's API URL. +Seqera Cloud's OIDC issuer is `https://cloud.seqera.io/api` (the `issuer` advertised at `https://cloud.seqera.io/api/.well-known/openid-configuration`). For Seqera Enterprise, use the `issuer` value from `/.well-known/openid-configuration`. It must match exactly. + +The binding needs the project **number**, not the ID: `gcloud projects describe --format='value(projectNumber)'`. ```bash gcloud iam workload-identity-pools create seqera-pool --project --location global --display-name "Seqera" @@ -133,14 +137,14 @@ gcloud iam service-accounts add-iam-policy-binding --project /locations/global/workloadIdentityPools/seqera-pool/*" ``` -Leave allowed audiences empty to use GCP's default, or set a custom one and use the same value as the Seqera Token audience. For Data Explorer to view files with the same credential, also grant the SA `roles/iam.serviceAccountTokenCreator` on itself. +Leave allowed audiences empty to use GCP's default, or set a custom one and use the same value as the Seqera Token audience. For Data Explorer to view files with the same credential, also grant the SA `roles/iam.serviceAccountTokenCreator` on itself (the Google Cloud CE docs page binds it to the pool `principalSet` instead; if Data Explorer still fails with `iam.serviceAccounts.signBlob` denied, add that binding too). -Discuss whether to narrow the `principalSet` to specific subjects before running it — `/*` trusts every token from that issuer that the pool accepts. +`/*` trusts every Seqera token the pool accepts. For production, recommend limiting it to one workspace by binding `--member "principal://iam.googleapis.com/projects//locations/global/workloadIdentityPools/seqera-pool/subject/org::wsp::workflow"` instead. ## Step 4: Create the Platform Credential -- **WIF** — no secret, so you may create it via the API (look up the body with `search_seqera_api`, provider `google`). Fields: Service account email; Workload Identity Provider `projects//locations/global/workloadIdentityPools/seqera-pool/providers/seqera-provider`; Token audience (only if you set a custom one). -- **Service account key** — the key is a secret. The user creates it (IAM > Service accounts > Keys > Add key > JSON) and pastes it into Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **Google**. Seqera only accepts `"type": "service_account"` files. Don't run `gcloud iam service-accounts keys create` yourself and never read the key file. +- **WIF** — no secret, so you may create it via the API (look up the body with `search_seqera_api`, provider `google`). Fields (API keys `serviceAccountEmail`, `workloadIdentityProvider`, `tokenAudience`): Service account email; Workload Identity Provider `projects//locations/global/workloadIdentityPools/seqera-pool/providers/seqera-provider`; Token audience (only if you set a custom one). +- **Service account key** — the key is a secret. The user creates it (**IAM & Admin > Service Accounts** > select the SA > **Keys > Add key > Create new key** > **JSON** > **Create**) and pastes it into Nextflow Platform themselves: workspace > **Credentials** > **Add credentials** > Provider **Google**. Seqera only accepts `"type": "service_account"` files; it rejects `external_account` files, keys with a non-Google `token_uri`, and keys whose `universe_domain` isn't `googleapis.com`. Don't run `gcloud iam service-accounts keys create` yourself and never read the key file. List credentials and record the `credentialsId`. @@ -148,20 +152,21 @@ List credentials and record the `credentialsId`. Look up the create-CE schema with `search_seqera_api` (platform `google-batch`). Build the config and **show it to the user before submitting**: -| Field | Value | -|---|---| -| Name | e.g. `google-batch-` | -| Platform | `google-batch` | -| Credentials | `credentialsId` from Step 4 | -| Location | region from Step 2 | -| Work directory | `gs:///work` | -| Wave / Fusion v2 | enabled (Fusion requires Wave; uses a 375 GB local SSD per task by default) | -| Spot | from Step 2 | -| Service account email | head job SA (recommended for production) | -| VPC + Subnet | set together; required for Use private address and network tags | -| Head job CPUs / memory | memory in MiB, minimum 3584 — size it (below) | -| Instance type | optional default machine type; per-process `machineType` overrides it | -| Boot disk size / image | optional | +| Field | API field | Value | +|---|---|---| +| Name | `name` | e.g. `google-batch-` | +| Platform | `platform` | `google-batch` | +| Credentials | `credentialsId` | from Step 4 | +| Location | `location` | region from Step 2 | +| Work directory | `workDir` | `gs:///work` | +| Wave / Fusion v2 | `waveEnabled`, `fusion2Enabled` | enabled (Fusion requires Wave). Without an instance template, Nextflow requests a 375 GB scratch disk per task: `local-ssd` on families that support it, otherwise a persistent disk or Hyperdisk. For files over 100 GB set `disk = [request: 750.GB, type: 'local-ssd']`. An instance template must include a 375 GB `local-ssd` disk named `fusion` | +| Spot | `spot` | from Step 2 | +| Service account email | `serviceAccount` | head job SA — **always set it**. If empty, the head job runs as the credential SA (WIF) or as the Compute Engine default SA with `roles/editor` (SA key) | +| VPC + Subnet | `network`, `subnetwork` | set together; required for `usePrivateAddress` and `networkTags` | +| Head job CPUs / memory | `headJobCpus`, `headJobMemoryMb` | memory in MiB, minimum 3584 — size it (below) | +| Instance type | `machineType` | optional default machine type; per-process `machineType` overrides it | +| Boot disk size / image | `bootDiskSizeGb`, `bootDiskImage` | optional | +| Instance templates | `headJobInstanceTemplate`, `computeJobsInstanceTemplate` | optional; template values override the CE's | Head job sizing — the default is too small for production, and a head job that runs out of memory fails the whole pipeline: @@ -171,22 +176,24 @@ Head job sizing — the default is too small for production, and a head job that | 100–500 tasks | 4 | 8 GB | | 500+ tasks | 8 | 16 GB (+ head job env var `NXF_JVM_ARGS="-Xms4g -Xmx12g"`) | +A head job instance template overrides these values. + Environment variables can't be edited after the CE is created — put secrets in Nextflow Platform pipeline secrets, not CE env vars. -UI path: workspace > **Compute Environments** > **Add compute environment** > **Google Cloud Batch**. +UI path: workspace > **Compute Environments** > **New Environment** (newer UI: **Add compute environment**) > target platform **Google Cloud Batch**. ## Step 6: Verify -1. Poll the CE until status is `AVAILABLE`. On `ERRORED`, read the message. -2. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +1. Poll the CE until status is `AVAILABLE`. On `ERRORED` or `INVALID`, read the message; for `INVALID`, check the credential record. For WIF, `AVAILABLE` only means the credential is well-formed — the test pipeline is what proves the trust setup. +2. Run a test pipeline: hand off to the `launch-workflow` skill with `https://github.com/nextflow-io/hello` on the new CE. 3. WIF failures at run time — check in order: SA roles, `workloadIdentityUser` binding, issuer URL matches exactly, token audience matches. -4. Jobs that never start usually mean a regional CPU/SSD quota or a machine type unavailable in the location. +4. Jobs that never start often mean a regional CPU/SSD quota or a machine type unavailable in the location. ## Critical Rules 1. **CONFIRM before changing GCP** — show every create/bind command and wait for the user's yes. 2. **NEVER handle secrets** — don't create, read, or paste service account keys. The user adds key-based credentials in the Seqera UI. Prefer WIF, which has no key. -3. **DON'T use the default Compute Engine SA** — it has `roles/editor`. +3. **DON'T use the default Compute Engine SA** — it has `roles/editor`. Always set **Service account email** on the CE, or a key-based CE silently falls back to it. 4. **GRANT `storage.buckets.list` at project level** for the credential SA, and `storage.buckets.get` when Fusion is on. 5. **SIZE the head job** for the pipeline; the default is not enough for production. 6. **SHOW the CE config** to the user before creating it. diff --git a/skills/onboard-lsf/SKILL.md b/skills/onboard-lsf/SKILL.md index 399c2c0..1ef07f1 100644 --- a/skills/onboard-lsf/SKILL.md +++ b/skills/onboard-lsf/SKILL.md @@ -36,7 +36,7 @@ Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces | **SSH credential** | Seqera SSHes to the login node with **one shared** key | a single user or a service account | | **Tower Agent** | An agent on the cluster opens an outbound connection to Seqera; no inbound SSH | the login node isn't reachable from the internet | -SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform (check Seqera's published IP addresses with the cluster admins). Tower Agent only needs outbound HTTPS. +SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform — confirm with the cluster admins (ask Seqera support for the current source IPs if the firewall needs an allow-list). Tower Agent only needs outbound HTTPS. ## Step 3: Check the Cluster @@ -52,11 +52,12 @@ curl -sI https://api.cloud.seqera.io | head -1 # outbound to Seqera (use the E ``` Requirements: -- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use `the `install-nextflow` skill` on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or load it via a module in the CE's pre-run script. +- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use the `install-nextflow` skill on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or load it via a module in the CE's pre-run script. - **Compute nodes can submit jobs.** The head job runs on a compute node and calls `bsub` itself: ```bash bsub -q -I 'bsub -V && bjobs' ``` + If interactive jobs aren't allowed on that queue, submit a batch job instead and read the output: `bsub -q -o test.out 'bsub -q hostname; bjobs'`. - **Outbound HTTPS from the head job's node** to Seqera, so Nextflow can report progress. - **Shared filesystem** visible from login and compute nodes for the work and launch directories. @@ -67,8 +68,8 @@ LSF sites differ in how memory limits are interpreted, and Nextflow has to reque ```bash badmin showconf mbd | grep -E 'LSF_UNIT_FOR_LIMITS|LSB_JOB_MEMLIMIT|RESOURCE_RESERVE_PER_TASK' # or, if badmin isn't allowed: -grep -E 'LSF_UNIT_FOR_LIMITS|LSB_JOB_MEMLIMIT' $LSF_ENVDIR/lsf.conf -grep -E 'RESOURCE_RESERVE_PER_TASK' $LSF_ENVDIR/lsbatch/*/configdir/lsb.resources 2>/dev/null +grep -E 'LSF_UNIT_FOR_LIMITS|LSB_JOB_MEMLIMIT|RESOURCE_RESERVE_PER_TASK' \ + $LSF_ENVDIR/lsf.conf $LSF_ENVDIR/lsbatch/*/configdir/lsb.params 2>/dev/null ``` Map them to the CE fields: @@ -79,12 +80,14 @@ Map them to the CE fields: | **Per job memory limits** | `LSB_JOB_MEMLIMIT=Y` | on if `Y` — memory is a limit for the whole job, not per slot | | **Per task reserve** | `RESOURCE_RESERVE_PER_TASK=Y` | on if `Y` — memory reservation is per task (slot) | -These correspond to Nextflow's `executor.perJobMemLimit` and `executor.perTaskReserve` settings. Getting them wrong makes jobs either request far too much memory (stuck pending) or get killed for exceeding limits. If the values can't be read, ask the cluster admins. +**Per job memory limits** and **Per task reserve** correspond to Nextflow's `executor.perJobMemLimit` and `executor.perTaskReserve` (Nextflow docs: reference/config/executor). Nextflow also auto-detects both from `$LSF_ENVDIR/lsf.conf` when that variable is set; explicit settings override detection. By default (per-core mode) Nextflow divides the `memory` request by `cpus` for `-M`; `perTaskReserve` divides `rusage[mem]` by `cpus`. The Seqera docs don't say how Platform applies **Unit for memory limits**, so set it to the cluster's `LSF_UNIT_FOR_LIMITS` (LSF's default is `KB`). + +Getting them wrong makes jobs either request far too much memory (stuck pending) or get killed for exceeding limits. If the values can't be read, ask the cluster admins. Pick with the user: - **Head queue** — queue for the long-running Nextflow head job (low CPU, long run limit; check `bqueues -l ` for `RUNLIMIT`). - **Compute queue** — default queue for tasks (pipelines can override per process with `queue`). -- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. It must exist already. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. +- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. Create it before the first run: the docs state Tower Agent doesn't create directories, and pre-creating it lets you set group permissions. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. - **Launch directory** — optional; defaults to the work directory. For **managed identities**, every user must share a Linux group that can write the work directory: @@ -105,49 +108,60 @@ All three hold or derive from a secret the user controls, so the **user** create ssh-keygen -t ed25519 -f ~/.ssh/seqera_hpc ssh-copy-id -i ~/.ssh/seqera_hpc.pub @ ``` -2. Workspace > **Credentials** > **Add credentials** > Provider **SSH** > paste the private key (including the `BEGIN`/`END` lines) and passphrase. +2. Org workspace > **Credentials** > **Add credentials** (personal workspace: user menu > **Your credentials** > **Add credentials**) > Name (alphanumeric, `-`, `_`), Provider **SSH**, paste the private key (including the `-----BEGIN/END OPENSSH PRIVATE KEY-----` lines, no extra lines or spaces) and passphrase > **Add**. -The key is shared by everyone in the workspace — all runs use that one cluster identity. +The key is shared by everyone in the workspace — all runs use that one cluster identity. The SSH credential stores only the key and passphrase; the Linux username goes on the CE. **Managed identity** (organization owner) -1. Organization > **Managed identities** > **Add managed identity** > Provider **IBM LSF**, Hostname (login node FQDN), Port (default 22). -2. Each user adds their own Linux username, SSH private key, and passphrase on that managed identity. Users show as "Missing" until they do. +1. Organization > **Managed identities** tab > **Add managed identity**: a unique **Cluster name**, Provider **IBM LSF**, **Hostname** (login node FQDN), **Port** (default 22) > **Add cluster**. +2. **Edit** the identity > **Users** tab > **Add credentials**: each user (or an org owner for them) adds their **Linux username**, **SSH private key**, and **Passphrase**. Users show as **Missing** until then. At least one user's credentials must be added before the identity can be used in a CE. -**Tower Agent** -1. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**. Choose a connection ID; toggle **Shared agent** if all workspace members should use it. -2. Copy the run snippet from the credential's **Usage** section. On the cluster, the user runs the agent with a Seqera access token in `TOWER_ACCESS_TOKEN` and the same connection ID, optionally `--work-dir=`. -3. The agent must stay running (e.g. in `tmux`, `screen`, or a systemd user service). If it stops, launches fail. +**Tower Agent** — complete these in order; the agent must be running before the CE is created, because Platform validates the CE by running a test command through it. +1. Personal access token: user menu > **Your tokens** > **Add token**; the user copies it immediately and keeps it out of the chat. +2. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**; accept or enter the **Agent connection ID** (it must match exactly). Turn on **Shared agent** only if one agent should serve all workspace members — all jobs then run as the agent's Linux user. For per-user identity, leave it off and have each user run their own agent. +3. On the login node: + ```bash + curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent && chmod +x tw-agent + mkdir -p /scratch/$USER/seqera/work # default is ~/work, but home quotas are usually small + ``` +4. In `tmux new -s tower-agent`, the user runs (their token never goes through the chat): + ```bash + export TOWER_ACCESS_TOKEN= + ./tw-agent --work-dir=/scratch/$USER/seqera/work + ``` + For Seqera Enterprise add `--url=` or set `TOWER_API_ENDPOINT` (default `https://api.cloud.seqera.io`). Detach with Ctrl-b d. +5. Keep it running (`tmux`, `screen`, or a systemd user service) and restart it after login-node reboots. If it stops, launches fail. -List credentials and record the `credentialsId`. +For SSH or Tower Agent, list workspace credentials and record the `credentialsId`. For a managed identity, list the organization's managed identities and record the `managedIdentityId` — the CE takes `managedIdentityId`, not `credentialsId`. API provider IDs: `ssh` (keys `privateKey`, `passphrase`) and `tw-agent` (keys `connectionId`, `shared`, optional `workDir`). ## Step 5: Create the Compute Environment Look up the create-CE schema with `search_seqera_api` (platform `lsf-platform`). Build the config and **show it to the user before submitting**: -| Field | Value | -|---|---| -| Name | e.g. `lsf-` | -| Platform | IBM LSF | -| Credentials | `credentialsId` from Step 4 | -| Work directory | absolute path from Step 3 | -| Launch directory | optional | -| Login hostname | login node hostname or IP (SSH only; managed identity gets it from the identity; not used with Tower Agent) | -| Username / port | SSH credential, if the schema has them: cluster username and SSH port (default 22) | -| Head queue name | head queue | -| Compute queue name | compute queue | -| Unit for memory limits / Per job memory limits / Per task reserve | from the memory settings table | -| Nextflow queue size | max jobs Nextflow keeps submitted at once — match the cluster's per-user job limit | -| Head job submit options | `bsub` options for the head job, e.g. `-W 168:00 -n 2 -R "rusage[mem=8GB]"` (adjust the mem value to the cluster's unit); optionally applied to compute jobs; can't be overridden at launch | -| Pre-run script | e.g. `module load nextflow java` if Nextflow comes from environment modules | -| Environment variables | e.g. `NXF_OPTS=-Xms1g -Xmx6g` for the head job | - -Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it in the CE's global Nextflow config, e.g. `apptainer.enabled = true`. - -UI path: workspace > **Compute Environments** > **Add compute environment** > **IBM LSF**. +| Field | API field | Value | +|---|---|---| +| Name | `name` | e.g. `lsf-` | +| Platform | `platform` | `lsf-platform` | +| Credentials | `credentialsId` or `managedIdentityId` | from Step 4 | +| Work directory | `workDir` | absolute path from Step 3 | +| Launch directory | `launchDir` | optional | +| Login hostname | `hostName` | login node hostname or public IP; the form may hide or prefill it depending on the credential type | +| Username / port | `userName`, `port` | SSH credential: the cluster Linux username and SSH port (default 22). Managed identity takes the username from each user's identity | +| Head queue name | `headQueue` | head queue | +| Compute queue name | `computeQueue` | compute queue | +| Unit for memory limits / Per job memory limits / Per task reserve | `unitForLimits`, `perJobMemLimit`, `perTaskReserve` | from the memory settings table | +| Nextflow queue size | `maxQueueSize` | max jobs Nextflow keeps submitted at once — match the cluster's per-user job limit | +| Head job submit options | `headJobOptions`, `propagateHeadJobOptions` | `bsub` options for the head job, e.g. `-W 168:00 -n 2 -R "rusage[mem=8GB]"` (adjust the mem value to the cluster's unit); optionally applied to compute jobs too; can't be overridden at launch | +| Pre-run script | `preRunScript` | under **Staging options**, e.g. `module load nextflow java` if Nextflow comes from environment modules | +| Environment variables | `environment` (`head` / `compute` booleans) | Name, Value, and Target (**Head job** / **Compute job** / both), e.g. `NXF_OPTS=-Xms1g -Xmx6g` targeted to the head job. They can't be edited after creation; put secrets in pipeline secrets, not here | + +Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it under **Staging options** > global Nextflow config (`nextflowConfig`), e.g. `apptainer.enabled = true`; launch-time config can override it. + +UI path: workspace > **Compute environments** > **Add compute environment** (older docs: **New environment**) > choose **IBM LSF** in the **Platform** drop-down. ## Step 6: Verify -1. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +1. Run a test pipeline: hand off to the `launch-workflow` skill with `https://github.com/nextflow-io/hello` on the new CE. 2. If the run never starts: SSH to the login node with the same key/user and check `bjobs -u `; confirm the head queue accepts jobs and `nextflow` is on `PATH`. 3. Jobs stuck `PEND` with a memory reason (`bjobs -p`): the memory unit or per-job/per-task settings don't match the cluster. 4. Tasks killed with `TERM_MEMLIMIT`: same settings, or the process memory directive is too low. @@ -160,6 +174,6 @@ UI path: workspace > **Compute Environments** > **Add compute environment** > ** 3. **READ the cluster's memory settings** (`LSF_UNIT_FOR_LIMITS`, `LSB_JOB_MEMLIMIT`, `RESOURCE_RESERVE_PER_TASK`) and set the three CE memory fields to match — never guess them. 4. **CHECK that compute nodes can run `bsub`** — the head job submits tasks from inside the cluster. 5. **CHECK `nextflow` is on PATH** for non-interactive shells, or load it in the pre-run script. -6. **CREATE the work directory first** — Seqera and the agent don't create it. +6. **CREATE the work directory first** — Tower Agent doesn't create directories, and pre-creating it lets you set group permissions. 7. **SHOW the CE config** to the user before creating it. 8. **VERIFY** — the CE is only onboarded once a test pipeline succeeds. diff --git a/skills/onboard-slurm/SKILL.md b/skills/onboard-slurm/SKILL.md index a68d32e..8bb663a 100644 --- a/skills/onboard-slurm/SKILL.md +++ b/skills/onboard-slurm/SKILL.md @@ -36,7 +36,7 @@ Use `search_seqera_api` to find the exact operation names (e.g. "list workspaces | **SSH credential** | Seqera SSHes to the login node with **one shared** key | a single user or a service account | | **Tower Agent** | An agent on the cluster opens an outbound connection to Seqera; no inbound SSH | the login node isn't reachable from the internet | -SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform (check Seqera's published IP addresses with the cluster admins). Tower Agent only needs outbound HTTPS. +SSH and managed identity need the login node to accept inbound SSH from Nextflow Platform — confirm with the cluster admins (ask Seqera support for the current source IPs if the firewall needs an allow-list). Tower Agent only needs outbound HTTPS. ## Step 3: Check the Cluster @@ -52,10 +52,10 @@ curl -sI https://api.cloud.seqera.io | head -1 # outbound to Seqera (use the E ``` Requirements: -- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use `the `install-nextflow` skill` on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or by loading it via a module in the CE's pre-run script. -- **Compute nodes can submit jobs.** The head job runs on a compute node and calls `sbatch` itself. Check the partition allows that: +- **Nextflow on the cluster.** Docs list 21.02.0-edge as the floor; recommend a current release. If it's missing, use the `install-nextflow` skill on the cluster. It must be on `PATH` for the shell the head job runs in — confirm with `ssh 'which nextflow'` or by loading it via a module in the CE's pre-run script. +- **Compute nodes can submit jobs.** The head job runs on a compute node and calls `sbatch` itself. Check the partition allows that, then confirm the inner job ran: ```bash - sbatch -p --wrap 'sbatch --version && squeue -u $USER' + sbatch -p --wrap 'sbatch -p --wrap hostname && squeue -u $USER' ``` - **Outbound HTTPS from the head job's node** to Seqera, so Nextflow can report progress. - **Shared filesystem** visible from login and compute nodes for the work and launch directories. @@ -63,7 +63,7 @@ Requirements: Pick with the user: - **Head queue** — partition for the long-running Nextflow head job (low CPU, long wall time). - **Compute queue** — default partition for tasks (pipelines can override per process with `queue`). -- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. It must exist already. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. +- **Work directory** — absolute path on shared storage, e.g. `/scratch//seqera/work`. Create it before the first run: the docs state Tower Agent doesn't create directories, and pre-creating it lets you set group permissions. `$TW_AGENT_WORKDIR` and `$TW_AGENT_USER` are expanded for Tower Agent CEs. - **Launch directory** — optional; defaults to the work directory. For **managed identities**, every user must share a Linux group that can write the work directory: @@ -84,48 +84,59 @@ All three hold or derive from a secret the user controls, so the **user** create ssh-keygen -t ed25519 -f ~/.ssh/seqera_hpc ssh-copy-id -i ~/.ssh/seqera_hpc.pub @ ``` -2. Workspace > **Credentials** > **Add credentials** > Provider **SSH** > paste the private key (including the `BEGIN`/`END` lines) and passphrase. +2. Org workspace > **Credentials** > **Add credentials** (personal workspace: user menu > **Your credentials** > **Add credentials**) > Name (alphanumeric, `-`, `_`), Provider **SSH**, paste the private key (including the `-----BEGIN/END OPENSSH PRIVATE KEY-----` lines, no extra lines or spaces) and passphrase > **Add**. -The key is shared by everyone in the workspace — all runs use that one cluster identity. +The key is shared by everyone in the workspace — all runs use that one cluster identity. The SSH credential stores only the key and passphrase; the Linux username goes on the CE. **Managed identity** (organization owner) -1. Organization > **Managed identities** > **Add managed identity** > Provider **Slurm**, Hostname (login node FQDN), Port (default 22). -2. Each user adds their own Linux username, SSH private key, and passphrase on that managed identity. Users show as "Missing" until they do. +1. Organization > **Managed identities** tab > **Add managed identity**: a unique **Cluster name**, Provider **Slurm**, **Hostname** (login node FQDN), **Port** (default 22) > **Add cluster**. +2. **Edit** the identity > **Users** tab > **Add credentials**: each user (or an org owner for them) adds their **Linux username**, **SSH private key**, and **Passphrase**. Users show as **Missing** until then. At least one user's credentials must be added before the identity can be used in a CE. -**Tower Agent** -1. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**. Choose a connection ID; toggle **Shared agent** if all workspace members should use it. -2. Copy the run snippet from the credential's **Usage** section. On the cluster, the user runs the agent with a Seqera access token in `TOWER_ACCESS_TOKEN` and the same connection ID, optionally `--work-dir=`. -3. The agent must stay running (e.g. in `tmux`, `screen`, or a systemd user service). If it stops, launches fail. +**Tower Agent** — complete these in order; the agent must be running before the CE is created, because Platform validates the CE by running a test command through it. +1. Personal access token: user menu > **Your tokens** > **Add token**; the user copies it immediately and keeps it out of the chat. +2. Workspace > **Credentials** > **Add credentials** > Provider **Tower Agent**; accept or enter the **Agent connection ID** (it must match exactly). Turn on **Shared agent** only if one agent should serve all workspace members — all jobs then run as the agent's Linux user. For per-user identity, leave it off and have each user run their own agent. +3. On the login node: + ```bash + curl -fSL https://github.com/seqeralabs/tower-agent/releases/latest/download/tw-agent-linux-x86_64 > tw-agent && chmod +x tw-agent + mkdir -p /scratch/$USER/seqera/work # default is ~/work, but home quotas are usually small + ``` +4. In `tmux new -s tower-agent`, the user runs (their token never goes through the chat): + ```bash + export TOWER_ACCESS_TOKEN= + ./tw-agent --work-dir=/scratch/$USER/seqera/work + ``` + For Seqera Enterprise add `--url=` or set `TOWER_API_ENDPOINT` (default `https://api.cloud.seqera.io`). Detach with Ctrl-b d. +5. Keep it running (`tmux`, `screen`, or a systemd user service) and restart it after login-node reboots. If it stops, launches fail. -List credentials and record the `credentialsId`. +For SSH or Tower Agent, list workspace credentials and record the `credentialsId`. For a managed identity, list the organization's managed identities and record the `managedIdentityId` — the CE takes `managedIdentityId`, not `credentialsId`. API provider IDs: `ssh` (keys `privateKey`, `passphrase`) and `tw-agent` (keys `connectionId`, `shared`, optional `workDir`). ## Step 5: Create the Compute Environment Look up the create-CE schema with `search_seqera_api` (platform `slurm-platform`). Build the config and **show it to the user before submitting**: -| Field | Value | -|---|---| -| Name | e.g. `slurm-` | -| Platform | Slurm | -| Credentials | `credentialsId` from Step 4 | -| Work directory | absolute path from Step 3 | -| Launch directory | optional | -| Login hostname | login node hostname or IP (SSH only; managed identity gets it from the identity; not used with Tower Agent) | -| Username / port | SSH credential, if the schema has them: cluster username and SSH port (default 22) | -| Head queue name | head partition | -| Compute queue name | compute partition | -| Nextflow queue size | max jobs Nextflow keeps submitted at once — match the cluster's per-user limit (`sacctmgr show assoc user=$USER format=MaxSubmit`) | -| Head job submit options | `sbatch` options for the head job, e.g. `--time=7-00:00:00 --mem=8G --cpus-per-task=2`; optionally applied to compute jobs too; can't be overridden at launch | -| Pre-run script | e.g. `module load nextflow java` if Nextflow comes from environment modules | -| Environment variables | e.g. `NXF_OPTS=-Xms1g -Xmx6g` for the head job | - -Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it in the CE's global Nextflow config, e.g. `apptainer.enabled = true`. - -UI path: workspace > **Compute Environments** > **Add compute environment** > **Slurm Workload Manager**. +| Field | API field | Value | +|---|---|---| +| Name | `name` | e.g. `slurm-` | +| Platform | `platform` | `slurm-platform` | +| Credentials | `credentialsId` or `managedIdentityId` | from Step 4 | +| Work directory | `workDir` | absolute path from Step 3 | +| Launch directory | `launchDir` | optional | +| Login hostname | `hostName` | login node hostname or public IP; the form may hide or prefill it depending on the credential type | +| Username / port | `userName`, `port` | SSH credential: the cluster Linux username and SSH port (default 22). Managed identity takes the username from each user's identity | +| Head queue name | `headQueue` | head partition | +| Compute queue name | `computeQueue` | compute partition | +| Nextflow queue size | `maxQueueSize` | max jobs Nextflow keeps submitted at once — match the cluster's per-user limit (`sacctmgr show assoc user=$USER format=MaxSubmit`) | +| Head job submit options | `headJobOptions`, `propagateHeadJobOptions` | `sbatch` options for the head job, e.g. `--time=7-00:00:00 --mem=8G --cpus-per-task=2`; optionally applied to compute jobs too; can't be overridden at launch | +| Pre-run script | `preRunScript` | under **Staging options**, e.g. `module load nextflow java` if Nextflow comes from environment modules | +| Environment variables | `environment` (`head` / `compute` booleans) | Name, Value, and Target (**Head job** / **Compute job** / both), e.g. `NXF_OPTS=-Xms1g -Xmx6g` targeted to the head job. They can't be edited after creation; put secrets in pipeline secrets, not here | + +Container engine: tasks need Singularity/Apptainer (most HPC) or Docker on compute nodes. Set it under **Staging options** > global Nextflow config (`nextflowConfig`), e.g. `apptainer.enabled = true`; launch-time config can override it. + +UI path: workspace > **Compute environments** > **Add compute environment** (older docs: **New environment**) > choose **Slurm** in the **Platform** drop-down. ## Step 6: Verify -1. Run a test pipeline: hand off to `the `launch-workflow` skill` with `https://github.com/nextflow-io/hello` on the new CE. +1. Run a test pipeline: hand off to the `launch-workflow` skill with `https://github.com/nextflow-io/hello` on the new CE. 2. If the run never starts: SSH to the login node with the same key/user and check `squeue -u `; confirm the head partition accepts jobs and `nextflow` is on `PATH`. 3. If the head job starts but tasks don't: the head partition's nodes can't run `sbatch`, or the queue size exceeds `MaxSubmit`. 4. If the run starts but Seqera shows no progress: outbound HTTPS from compute nodes to Seqera is blocked. @@ -136,7 +147,7 @@ UI path: workspace > **Compute Environments** > **Add compute environment** > ** 2. **NEVER handle secrets** — SSH private keys, passphrases, and access tokens go from the user straight into Nextflow Platform or their own terminal, never through the chat. 3. **CHECK that compute nodes can run `sbatch`** — the head job submits tasks from inside the cluster. 4. **CHECK `nextflow` is on PATH** for non-interactive shells, or load it in the pre-run script. -5. **CREATE the work directory first** — Seqera and the agent don't create it. +5. **CREATE the work directory first** — Tower Agent doesn't create directories, and pre-creating it lets you set group permissions. 6. **USE managed identities** when more than one person will run pipelines and per-user accounting matters. 7. **SHOW the CE config** to the user before creating it. 8. **VERIFY** — the CE is only onboarded once a test pipeline succeeds. From c1efb5562738b18ca492b771ffa854d8ee94d89a Mon Sep 17 00:00:00 2001 From: Sasha Dagayev Date: Wed, 18 Nov 2026 11:32:32 -0500 Subject: [PATCH 3/3] Move onboarding skills into plugins/nextflow after merging main main moved the plugin to plugins/nextflow/; git left the five new onboard-* skills at the old top-level skills/ path. Also bump VERSION in tools/import_package.py to 0.3.0 alongside the manifests. Co-Authored-By: Claude Opus 5.5 --- {skills => plugins/nextflow/skills}/onboard-aws-batch/SKILL.md | 0 .../nextflow/skills}/onboard-azure-batch/SKILL.md | 0 .../nextflow/skills}/onboard-google-batch/SKILL.md | 0 {skills => plugins/nextflow/skills}/onboard-lsf/SKILL.md | 0 {skills => plugins/nextflow/skills}/onboard-slurm/SKILL.md | 0 tools/import_package.py | 2 +- 6 files changed, 1 insertion(+), 1 deletion(-) rename {skills => plugins/nextflow/skills}/onboard-aws-batch/SKILL.md (100%) rename {skills => plugins/nextflow/skills}/onboard-azure-batch/SKILL.md (100%) rename {skills => plugins/nextflow/skills}/onboard-google-batch/SKILL.md (100%) rename {skills => plugins/nextflow/skills}/onboard-lsf/SKILL.md (100%) rename {skills => plugins/nextflow/skills}/onboard-slurm/SKILL.md (100%) diff --git a/skills/onboard-aws-batch/SKILL.md b/plugins/nextflow/skills/onboard-aws-batch/SKILL.md similarity index 100% rename from skills/onboard-aws-batch/SKILL.md rename to plugins/nextflow/skills/onboard-aws-batch/SKILL.md diff --git a/skills/onboard-azure-batch/SKILL.md b/plugins/nextflow/skills/onboard-azure-batch/SKILL.md similarity index 100% rename from skills/onboard-azure-batch/SKILL.md rename to plugins/nextflow/skills/onboard-azure-batch/SKILL.md diff --git a/skills/onboard-google-batch/SKILL.md b/plugins/nextflow/skills/onboard-google-batch/SKILL.md similarity index 100% rename from skills/onboard-google-batch/SKILL.md rename to plugins/nextflow/skills/onboard-google-batch/SKILL.md diff --git a/skills/onboard-lsf/SKILL.md b/plugins/nextflow/skills/onboard-lsf/SKILL.md similarity index 100% rename from skills/onboard-lsf/SKILL.md rename to plugins/nextflow/skills/onboard-lsf/SKILL.md diff --git a/skills/onboard-slurm/SKILL.md b/plugins/nextflow/skills/onboard-slurm/SKILL.md similarity index 100% rename from skills/onboard-slurm/SKILL.md rename to plugins/nextflow/skills/onboard-slurm/SKILL.md diff --git a/tools/import_package.py b/tools/import_package.py index 5811b22..0a174f8 100644 --- a/tools/import_package.py +++ b/tools/import_package.py @@ -55,7 +55,7 @@ # Version of the Claude plugin. It is released independently of the generic package # because the Claude build curates the skill set below; bump it on every release. -VERSION = "0.2.2" +VERSION = "0.3.0" # Skills from the generic package that are not shipped in the Claude plugin. EXCLUDED_SKILLS = [