Ships in af-cern-lxplus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
CRAB runs cmsRun (or wrapped non-cmsRun) payloads on the CMS grid from a CMSSW area on lxplus. Its limits are tight and enforced at submit time (sandbox ~120 MB, ~2.5–3 GB per core, ~45 h wall time), its failures are reported as numeric exit codes, and some states (SUBMITREFUSED, a FAILED scheduler, task expiry) can't be resubmitted and need a new or recovery task. Validate outputs, not exit codes.
Field notes collected by DickyChant from about 25 Claude Code sessions running CMS work at CERN (Oct–Nov 2026). Every item was hit in practice; where sessions disagreed, both observations are kept.
crab submit or crab resubmitsource /cvmfs/cms.cern.ch/cmsset_default.sh
cd CMSSW_X/src && eval $(scram runtime -sh)
source /cvmfs/cms.cern.ch/common/crab-setup.sh
export PYTHONNOUSERSITE=1 # stop ~/.local packages shadowing CRAB's
export X509_USER_PROXY=<proxy on AFS/EOS, chmod 600>
voms-proxy-info -timeleft; voms-proxy-info -actimeleft
[Errno 13] Permission denied: '/afs/.../.crab3.NNNN'. After the user runs kinit, resubmit only the SUBMIT FAILED tasks, found by grepping the submit log.python on EL9; ship a python→python3 shim. law 0.1.16 misreads CMSSW_14 as version 4.Argument list too long. Pass job tables as files, not arguments.inputs/*default.tgz in project dirs after submitting, to save quota.scriptExe chaining several steps broke the bookkeeping (exit 50115). Keep only the heavy step on the grid and harvest the rest with condor.RandomNumberGeneratorService.generator.initialSeed) and firstLuminosityBlock per job yourself.numCores=2, maxMemoryMB=5000.process.options.numberOfThreads == JobType.numCores in the PSet. For non-cmsRun payloads, generate a dummy PSet with N threads.maxJobRuntimeMin). A fit that can't finish there won't finish on resubmit either; change the method or split the work.T1_*,T2_*,T3_* plus a CERN blacklist) were SUBMITREFUSED with no reason. An explicit list of T1/T2 site names, taken from CRIC, was accepted. CRAB then drops sites on its own blacklist.rucio list-dataset-replicas cms:<DS>. On LPC, set RUCIO_ACCOUNT to the CERN username.crab resubmit --siteblacklist=X replaces the task's blacklist rather than adding to it, which is also a way to un-block a site.--sitewhitelist.Operation expired on input reads. Fix with crab resubmit --siteblacklist=<bad sites>.eos quota); 60328 is also stageout-related. Calibration-only runs need the framework's no-output switch, or every job fails at stageout.crab submit again. A failed submit can leave a stale crab_projects/crab_<name>/ with no .requestcache; remove it first.crab resubmit says "sent" but nothing reruns. Make a recovery task instead.requestName but the same outputPrimaryDataset/outputDatasetTag.crab report raises KeyError. Compute the real gap as the input lumiMask minus the lumis read back from the outputs, and submit a recovery task with that JSON. Before killing the stale task, check that no new outputs appeared.crab status in tight loops: one pass over hundreds of dirs takes minutes.--<Task>-no-poll), then rerun the same command to advance the chain: workspace (local) → snapshot (1 grid job) → per-parameter fits (N grid jobs) → merge (local). When the downstream merge reports "failed" right after submitting, that's expected.--print-status N (law) shows what is absent or present. Never run two submissions at once from the same checkout; one of them hung.More field notes, each from a real failure.
crab checkwrite --site=T2_CH_CERN --lfn=<area>, plus a group quota check;crab submit --dryrun unpacks the sandbox locally: with a big gridpack it put ~2.9 GB in crab_projects on AFS and filled the quota. Check fs lq first, or test with a small condor job instead.crab resubmit can't change numCores.crab resubmit --maxmemory 2500 works for ordinary jobs.crab report, then a new task with lumiMask = notFinishedLumis.json, ignoreLocality=True and a whitelist, writing to the same output tag (rounds rec1, rec2, …). crab report crashes on a task with no completed job.splitting = 'FileBased';Site.ignoreGlobalBlacklist forces a site.--siteblacklist stays allowed.T2_* whitelist made blacklisting useless when T2_CH_CERN nodes lacked /cvmfs (636 failures in the first minute): resubmit with an explicit whitelist.curl error (56) in stageout is a failed FTS pull from a site's dCache temp area, and plain retries keep failing; blacklist those sites. Inspect the FTS job with curl --cert $X509_USER_PROXY --key $X509_USER_PROXY https://fts3-cms.cern.ch:8446/jobs/<id>/files.*_FAILED_<id>) and submit again with the same tag and LFN. crab kill on a dead scheduler can return KILLFAILED.crab status byte-identical for days means an ASO stageout backlog, which is a case for CRAB support.crab resubmit fails ("Problems delegating My-proxy"). Use the Python API crabCommand('resubmit', ..., proxy=...). Client v3.260630 also needed a patch to forward the proxy in resubmit's nested status call.voms-proxy-init -voms cms -rfc -valid 192:00 --out <file>.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cms, crab, grid-submission, el9, exit-codes, proxy-delegation
npx claudepluginhub cms-ml/marketplace --plugin af-cern-lxplus4 skills in this plugin
/eos-xrootdUse when reading, writing, copying, verifying or deleting files on CERN EOS (eoscms, eosuser) or FNAL EOS (cmseos) from login nodes, batch or grid jobs: building root:// URLs, xrdcp/xrdfs/eos CLI commands, checksum-verified copies, FUSE vs xrootd in jobs, quota checks (eos quota, inode quota), bulk deletes and the CMS recycle bin, sharing via the www area, uproot over root://, or errors such as "MGM root://localhost not online/reachable", "Operation expired", "Redirect limit has been reached", "No servers are available to read the file", "[3021] Unable to get quota space" or being mapped to user nobody./lxplus-accessUse when driving lxplus (or cmslpc) over ssh from an agent or script: non-interactive ssh with Kerberos/GSSAPI, lxtunnel jumps and 2FA, pinning an lxplus9NN node, files vanishing from /tmp between calls, nohup or setsid processes killed at logout, expired or non-renewable Kerberos tickets, AFS quota or token problems, apptainer not seeing /eos/user, or errors such as "Permission denied (publickey,gssapi-with-mic)", "Could not resolve hostname lxplus.cern.ch.cern.ch", ".bashrc: Permission denied", "kex_exchange_identification: Connection closed" or "COMPILER: unbound variable"./lxplus-htcondorUse when writing a CERN HTCondor (lxbatch) submit file (.sub) or debugging CERN batch jobs, CPU or GPU: choosing between the standard schedd and EosSubmit, sizing request_memory/request_cpus/request_gpus, picking a +JobFlavour or +MaxRuntime, staging outputs to EOS with xrdcp, jobs sitting idle that never match, held jobs ("FILETRANSFER: plugin for type root not found", HoldReasonCode 12/13), jobs removed by SYSTEM_PERIODIC_REMOVE for wall time or disk, requirements overwritten by the schedd, Kerberos/EOS access inside jobs, DAGMan campaigns, or resubmitting missing outputs.Other plugins' skills for the same job