skills/k3sc/SKILL.md
k3sc Go binary. Claude agent operator, CLI, and TUI. Use when developing k3sc features, fixing bugs, adding commands, or modifying the operator/scanner/controller.
npx skillsauth add abix-/claude-blueprints k3scInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Go binary that manages Claude Code agents as k8s pods. One binary serves as both the in-cluster operator and the Windows CLI.
C:\code\k3scmastercd /c/code/k3sc && go build -o k3sc.exe .cd /c/code/k3sc && go test ./...cd /c/code/k3sc && go vet ./...cmd/ # cobra subcommands (one file per command)
internal/
operator/ # controller + scanner (runs in-cluster)
controller.go # reconciles AgentJob CRDs through state machine
scanner.go # polls GitHub, creates AgentJobs, orphan cleanup, usage-limit
types.go # AgentJob CRD types, TaskPhase enum
github/ # GitHub API client (issues, labels, PRs)
k8s/ # k8s client helpers (pods, jobs, logs, templates)
dispatch/ # slot allocation, template loading
tui/ # bubbletea TUI for `k3sc top`
config/ # ~/.k3sc.yaml config loading
types/ # shared types (Repo, AgentPod, TaskInfo)
format/ # output formatting helpers
image/ # Dockerfile + entrypoint for agent pods
manifests/ # k8s manifests (CRD, operator deployment, job template)
The operator runs as a k8s deployment (k3sc operator). Two components:
Scanner (scanner.go): goroutine polling GitHub on a timer (2min base, exponential backoff to 1hr).
ready + needs-review)Controller (controller.go): reconciles AgentJob CRDs through phases:
Pending -> Assigned -> Running -> Succeeded/Failed -> (Reported)
ready -> claude-{letter} -> needs-review -> claude-{letter} -> needs-human
Label transitions in handleCompleted:
ready (OriginState) -> needs-reviewneeds-review -> needs-humanready -> ready (retry, max 3)needs-review -> needs-human (escalate, don't loop)OriginState is captured when the scanner creates the AgentJob from the issue's current label state.
k3sc cargo-lock <subcommand> [args] wraps cargo with a file lock so concurrent agents don't clobber shared target dirs.
--manifest-path (inserts before -- for test/run)run and test build first under lock, then execute-- (test filters, app args)$CARGO_TARGET_DIR/.cargo-build.lockgo build -o k3sc.exe .GOOS=linux GOARCH=amd64 go build -o image/k3sc .kubectl rollout restart deployment k3sc-operator -n claude-agentsk3sc rotate-auth updates the claude-secrets k8s secret from local auth files. Use when agent pods fail with 401/expired credentials.
Sources:
~/.claude/.credentials.json (OAuth token)~/.gh-token~/.codex/auth.jsonFlow when tokens expire:
claude auth login (browser OAuth for Claude)k3sc rotate-auth (patches k8s secret, tokens never exposed to agents)Secrets are passed to kubectl via stdin. Never in process args or shell history.
~/.k3sc.yaml merged with defaults*_test.go)go test ./... must pass before commitdevelopment
YAML standards for config files, Ansible playbooks, k8s manifests, GitHub Actions, docker-compose, and any project config. Built from the YAML 1.2 spec, yamllint defaults, and the practical pitfalls (Norway problem, type coercion, anchor gotchas).
development
--- name: ueforge description: ueforge framework: the base layer every UE4SS Rust mod in the Grounded2Mods workspace builds on. Authoritative on the composition model (Effect/Trigger/Skill), the Def/Registry/Instance/Controller pattern, hot reload, discovery, hardening doctrine, and the five framework modules (rpg, stacks, difficulty, inventory, damage). Use when writing or modifying code under `ueforge/` in [abix-/Grounded2Mods](https://github.com/abix-/Grounded2Mods), or when promoting a patte
tools
TypeScript and JavaScript standards. Sourced from [abix-/chromium-extensions](https://github.com/abix-/chromium-extensions) (Hush + filter-anything-everywhere). Use when writing TS/JS, including browser extension bootstrap shims, MV3 service workers, and small web frontends.
development
--- name: schedule1 description: Modding Schedule 1 (TVGS, IL2CPP Unity + MelonLoader + Harmony). Authoritative on Schedule 1 game specifics: engine type, MelonLoader/Il2CppInterop references, eMployee mod root-cause findings, vanilla CookRoutine + StartMixingStationBehaviour internals, certainty-tracking discipline. Mod code lives in [`abix-/Schedule1Mods`](https://github.com/abix-/Schedule1Mods) (the `EmployeeReset` sidecar is the current shipped mod). Not for playing the game. user-invocable: