cocsi-mg/eevee/worker-execution-strategies

Claude Code and agent skill by cocsi-mg/eevee

Trust tier 3
  • community
Source check pending

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-strategies

SKILL.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

text
WorkerExecutionStrategy (interface, worker-execution-strategy.ts)
└── BootstrapInitContainerStrategy (bootstrap-init-container.strategy.ts)
│ adds the shared emptyDir volume + `eevee-worker-bootstrap` init
│ container that materializes student files before the worker runs
└── PostgresqlContainerStrategy (postgresql-container.strategy.ts)
adds `postgres-db` + optional `seed-database` init containers
(⚠️ see [postgresql-worker-harness spec](../../specs/postgresql-worker-harness.md)
— this pattern is being replaced, do not copy it for new database workers)

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

  1. Add the type to WorkerType enum

(assignment-runner/src/worker/enum/worker-type.enum.ts, and keep platform-api/src/worker in sync if it has its own copy).

  1. Add a Dockerfile under images/<family>/<name>/ (or extend an existing

base image).

  1. 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).

  1. Register the strategy wherever strategies are mapped by WorkerType

(check worker.service.ts / worker.module.ts providers).

  1. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cocsi-mg/eevee/worker-execution-strategies/badge)](https://verified-skill.com/skills/cocsi-mg/eevee/worker-execution-strategies)

Something wrong with this skill or its page? Tell us.