agentleFS
kai-schedulerkai-scheduler/KAI-Scheduler/.agents/skills/snapshots/SKILL.md

snapshots

Skill1.6k starsChanged 3 months agoApache-2.0View on GitHub

Use when investigating KAI Scheduler behavior with captured cluster state, especially to replay scheduler decisions on specific refs or compare behavior across versions.

2 other projects use a version of this.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 2 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 3 mentionsJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 4 mentionsOct 2026: 13 mentionsNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the kai-scheduler/KAI-Scheduler repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about kai-scheduler/KAI-Scheduler

The biggest 5 of 28 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 28

Talked about on GitHub (28 times).

On GitHub · 28

23 more on GitHub
  • Other versions2 projects use a version of this.

    Word for word · 1

    1. NVIDIA/KAI-Scheduler★ 1.6k100% same

    Edited · 0

    None found.

    Wrote their own version · 1

    1. systemind-team/AICOO-Skills★ 35same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when investigating KAI Scheduler behavior with captured cluster state, especially for reproducing scheduling bugs, comparing …

    line 13
  2. Distinctive:

    Run scripts from the repository root:

    line 25
  3. Very specific:

    If capture fails, verify the scheduler pod is running, verify the scheduler ConfigMap includes - name: snapshot, and verify the scheduler …

    line 50
  4. Very specific:

    Use --verbosity 2 first. Compare timing from action timestamps inside the logs, not whole-command wall clock, because builds and verbosity …

    line 52
  5. Very specific:

    If a version appears stuck, stop waiting indefinitely and keep the partial log as evidence.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Snapshots

Use this skill when investigating KAI Scheduler behavior with captured cluster state, especially for reproducing scheduling bugs, comparing behavior across KAI versions, or gathering evidence for issues like kai-scheduler/KAI-Scheduler#1517.

Facts

  • docs/plugins/snapshot.md is the source of truth for capture.
  • The snapshot endpoint is /get-snapshot on plugin port 8081, not the scheduler --listen-address port. In the observed clusters here, remote 8080 returned 404 while remote 8081 worked.
  • Snapshot files are ZIP archives containing snapshot.json, even when named .gzip.
  • cmd/snapshot-tool/main.go rebuilds fake clients from snapshot.json and replays the configured scheduler actions.
  • Replay is a simulation of scheduler behavior, not a full cluster reproduction.

Commands

Run scripts from the repository root:

.agents/skills/snapshots/scripts/capture-snapshot.sh --output snapshots/issue-123.gzip
.agents/skills/snapshots/scripts/inspect-snapshot.sh snapshots/issue-123.gzip
.agents/skills/snapshots/scripts/run-snapshot.sh --snapshot snapshots/issue-123.gzip --verbosity 8
.agents/skills/snapshots/scripts/run-snapshot.sh --ref v0.14.2 --snapshot snapshots/issue-123.gzip
.agents/skills/snapshots/scripts/compare-snapshot-refs.sh --snapshot snapshots/issue-123.gzip --refs main,v0.14.2
  • capture-snapshot.sh: port-forward the scheduler and download /get-snapshot. Default target is deployment/kai-scheduler-default in namespace kai-scheduler on local/remote port 8081. The script inherits KUBECONFIG, for example:
KUBECONFIG=$HOME/.kube/engine-scale-test \
  .agents/skills/snapshots/scripts/capture-snapshot.sh --output snapshots/example.gzip
  • inspect-snapshot.sh: validate that the archive contains snapshot.json and print top-level structure. Run this before replaying user-provided artifacts.
  • run-snapshot.sh: build snapshot-tool with make build-go SERVICE_NAME=snapshot-tool and replay on the current checkout, or use --ref to switch to one Git ref, replay, and restore the original branch or commit. For large snapshots, start with --verbosity 2. For reruns, prefer --no-build --tool bin/snapshot-tool-amd64. If a ref-based run is interrupted hard enough that the shell trap does not execute, the repo can stay detached; check with git status --short --branch and restore with git switch <branch>.
  • compare-snapshot-refs.sh: run the same snapshot against several git refs and save one log per ref plus summary.tsv.

Workflow

  1. Capture or receive the snapshot. Avoid committing snapshot artifacts unless the user explicitly asks.
  2. Inspect the archive and confirm it contains snapshot.json.
  3. If capture fails, verify the scheduler pod is running, verify the scheduler ConfigMap includes - name: snapshot, and verify the scheduler logs contain Snapshot plugin registering get-snapshot.
  4. Replay on the reported KAI version first, aligned to the exact tag or commit.
  5. Use --verbosity 2 first. Compare timing from action timestamps inside the logs, not whole-command wall clock, because builds and verbosity can dominate.
  6. Replay on candidate fixed or regressed refs only after the reported version is understood.
  7. If a version appears stuck, stop waiting indefinitely and keep the partial log as evidence. In the runs here, v0.14.0 completed reclaim materially faster than v0.13.0, while v0.14.4 appeared to stall in reclaim past an interactive timeout.
  8. Report refs, commands, log paths, action timings, errors, and whether the issue reproduced.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.