cocsi-mg/eevee/worker-execution-strategies
Claude Code and agent skill by cocsi-mg/eevee
- community
Checking that the SKILL.md file is still in the repository.
Add or modify a worker type (e.g. a new language/framework runner, or a database-backed variant) in assignment-runner. Use when touching WorkerType enum, worker/strategies/*.strategy.ts, worker-definition.json, or WorkerService/SchedulingService wiring.
Install
npx vskill@latest install cocsi-mg/eevee/worker-execution-strategiesSKILL.md
The same SKILL.md was published earlier as cocsi-mg/eevee/worker-execution-strategies.
Worker Execution Strategies
Each worker type (node-default, node-teraorm, nest.js+postgres, python-default, cypress variants, grpc, ...) is a strategy class under assignment-runner/src/worker/strategies/. The strategy is the single place that knows how to turn a CreateWorkerDto into a Kubernetes Job.
Class hierarchy
Concrete strategies (node-default-jest.strategy.ts, node-nestjs-postgresql-jest.strategy.ts, python-default.strategy.ts, etc.) implement:
buildExecutionJobCommand(createWorkerData)— the command run inside the
worker container.
buildJobCommand(...)— deprecated, kept for backward compatibility only.buildWorkerPayload(createWorkerData, dependencies)— what gets base64
encoded into WORKER_DEFINITION_B64_ENV_NAME for the bootstrap container.
processLogResult(log)— parses worker stdout/stderr into a
WorkerResponse (score, pass/fail, details). See worker-log-parsers.ts for shared regex helpers — output must contain a Tests: X passed, Y total-shaped line.
buildJobOptions(encodedDefinition, initSqlScript?)(optional override) —
additional init containers / volumes beyond the bootstrap default.
Adding a new worker type
- Add the type to
WorkerTypeenum
(assignment-runner/src/worker/enum/worker-type.enum.ts, and keep platform-api/src/worker in sync if it has its own copy).
- Add a Dockerfile under
images/<family>/<name>/(or extend an existing
base image).
- Create a strategy class extending
BootstrapInitContainerStrategy(or
PostgresqlContainerStrategy only if you are keeping the legacy sidecar pattern — prefer the new harness design for anything database-backed).
- Register the strategy wherever strategies are mapped by
WorkerType
(check worker.service.ts / worker.module.ts providers).
- If the assignment/template system needs to validate compatibility, update
AssignmentModule/TemplateModule in platform-api.
Gotchas
- Files are injected into the worker via base64-encoded env vars
(WORKER_DEFINITION_B64_ENV_NAME), not files copied at build time — long student submissions can hit shell/env size limits.
restartPolicy: 'Always'on an init container is what makes Kubernetes
treat it as a long-lived sidecar (K8s 1.28+ sidecar containers feature). The legacy cluster this repo targets does not reliably support that — see postgresql-worker-harness spec before adding any new sidecar-shaped init container.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/worker-execution-strategies/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cocsi-mg/eevee/worker-execution-strategies)