feat(skills): machine-wide gate for heavy test runs
Parallel yolo/nightshift/blitz sessions each ran the full suite and OOMed the box. gate.sh caps concurrency, memory and build parallelism; skills now run scoped checks in the loop and one gated full run per push. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015YUXS63P1WCdC6bEKWcnAE
This commit is contained in:
@@ -37,6 +37,15 @@ imports = [ inputs.agent-skills.homeModules.default ];
|
||||
|
||||
`recursive = true` links files individually, so machine-local skills can coexist in the same dir. `nixos-rebuild switch` to apply/update.
|
||||
|
||||
## Shared machine, many sessions
|
||||
|
||||
Several autonomous runs share one box. `skills/linear-common/scripts/gate.sh` is a machine-wide semaphore for heavy commands (full test suites, whole-project builds): bounded slots, memory + CPU cap via a systemd user scope, pinned build/test parallelism. Skills run scoped checks in the inner loop and put only the once-per-push full suite through the gate; exit 75 means it never ran and CI takes over. Policy lives in `linear-common/COMMON.md` under "Local verification budget".
|
||||
|
||||
```sh
|
||||
~/.claude/skills/linear-common/scripts/gate.sh --status
|
||||
AGENT_GATE_SLOTS=3 AGENT_GATE_MEM_MAX=4G ~/.claude/skills/linear-common/scripts/gate.sh -- cargo test
|
||||
```
|
||||
|
||||
## Adding a skill
|
||||
|
||||
Drop a new `skills/<name>/SKILL.md` (+ optional `scripts/`, `references/`, `assets/`). Commit. Non-Nix: re-run `bin/link.sh`. Nix: rebuild.
|
||||
@@ -49,5 +58,5 @@ Drop a new `skills/<name>/SKILL.md` (+ optional `scripts/`, `references/`, `asse
|
||||
| `yolo` | quick ship; optional `land` handoff |
|
||||
| `land` | drive an open PR to green + merged (canonical CI/review loop) |
|
||||
| `blitz` | drive a whole milestone to done |
|
||||
| `linear-common` | shared config/setup/worktree conventions (dependency of work/yolo/blitz) |
|
||||
| `linear-common` | shared config/setup/worktree conventions + local verification budget (dependency of work/yolo/blitz/nightshift) |
|
||||
| `crit`, `humanizer`, `impeccable`, `improve-codebase-architecture` | misc |
|
||||
|
||||
Reference in New Issue
Block a user