agentleFS
gfargogfargo/pixelkiln/docs/AGENTS.md

pixelkiln

AGENTS.md4 starsChanged 3 months agoMITView on GitHub

PixelKiln includes an agent skill for tools that support the open SKILL.md format. It tells an agent to plan before spending, cap every paid run, restore before regenerating, stop for human selection, and keep provenance through packaging. From any project directory: Then ask your agent to use $pixelkiln while working with a PixelKiln manifest. The skill is provider-neutral and does not contain credentials or make provider calls by itself. With the skill loaded, an agent should: 1. Find and validate…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 1 is distinctive, and 9 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.

  • 9

    Very specific

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

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

    Run doctor --dry-run and plan before paid work.

    line 25
  2. Very specific:

    Follow the plan's exact resume command for recoverable paid work: poll, pick, fetch, or restore.

    line 27
  3. Very specific:

    Leave artwork selection in the local pick page unless the user gives a specific selection rule.

    line 31
  4. Very specific:

    When a style declares quality, run manifest-mode pixelkiln refine.

    line 34
  5. Very specific:

    Commit the manifest, lockfile, generated output, and artifact companions, but never credentials or .pixelkiln/ caches.

    line 39
  6. Distinctive:

    Prefer a version-pinned recipe when one matches the provider and task.

    line 41
  7. Very specific:

    When an asset declares revision, treat a blocked parent or mask as a hard dependency.

    line 43
  8. Very specific:

    When the person wants an earlier result back, use pixelkiln history and restore --generation.

    line 46
  9. Very specific:

    Treat a PixelLab plan figure as unmeasured when its route is Mock only, Schema only, or Unknown in the validation ledger, and say so before …

    line 54
  10. Very specific:

    Read spend from the lockfile's billed, never from the difference between two balance readings: a provider balance can be shared with other …

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md 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
AGENTS.md

Agent workflows

PixelKiln includes an agent skill for tools that support the open SKILL.md format. It tells an agent to plan before spending, cap every paid run, restore before regenerating, stop for human selection, and keep provenance through packaging.

Install the skill

From any project directory:

npx skills add gfargo/pixelkiln@pixelkiln

Then ask your agent to use $pixelkiln while working with a PixelKiln manifest. The skill is provider-neutral and does not contain credentials or make provider calls by itself.

What the skill tells an agent to do

With the skill loaded, an agent should:

  1. Find and validate pixelkiln.manifest.json.
  2. Run doctor --dry-run and plan before paid work.
  3. Report actionable, recoverable, and cost totals for each provider and unit.
  4. Follow the plan's exact resume command for recoverable paid work: poll, pick, fetch, or restore. Do not submit it again.
  5. Pass an explicit --budget within the amount the user authorized; use one provider=amount ceiling for every paid provider in a mixed run.
  6. Leave artwork selection in the local pick page unless the user gives a specific selection rule. Treat a ComfyUI frame set as one choice. Never keep only its best-looking members.
  7. When a style declares quality, run manifest-mode pixelkiln refine; its fixerPython can pin the project-local interpreter. Leave approval to a named human reviewing the exact PNG, and require refine check before packaging. The rule is provider-neutral; ComfyUI still needs its extra prompt-coverage and composition review.
  8. Commit the manifest, lockfile, generated output, and artifact companions, but never credentials or .pixelkiln/ caches.
  9. Prefer a version-pinned recipe when one matches the provider and task. Verify the installed workflow, and verify models when their local root is known.
  10. When an asset declares revision, treat a blocked parent or mask as a hard dependency. Generate, fetch, refine, and approve the parent explicitly; never bypass the gate or approve it for the user.
  11. When the person wants an earlier result back, use pixelkiln history and restore --generation; a regeneration keeps what it replaced, and a restore costs nothing. Never spend to recover something the lockfile kept.
  12. Answer "what has this project made?" with pixelkiln gallery --json, or open pixelkiln gallery for the person. Leave --edit, --budget, and the in-browser editor to them: an agent changes the manifest directly and spends only through gen. For a hand touch-up, pixelkiln edit --no-open prepares the edit file beside the generation without opening anything.
  13. Treat a PixelLab plan figure as unmeasured when its route is Mock only, Schema only, or Unknown in the validation ledger, and say so before spending.
  14. Read spend from the lockfile's billed, never from the difference between two balance readings: a provider balance can be shared with other work.

The skill guides the workflow; PixelKiln remains the deterministic execution layer. This separation keeps agent reasoning out of polling, hashing, downloads, state transitions, and output placement.

Providers, PixelLab MCP, and PixelKiln

The official PixelLab MCP server gives an agent direct PixelLab creation tools, plus pixelart_workbench for linting, scoring, shading, and repairing art that already exists (MCP-only; see Set up PixelLab). It is complementary to PixelKiln, not a replacement:

LayerResponsibility
PixelLab MCPAgent-facing access to PixelLab generation capabilities.
PixelKiln skillAgent guidance for safe project-level operations.
PixelKiln library/CLIBudgets, state, provenance, review, recovery, audit, and packaging.
PixelLab adapterThe current production and live-tested generation backend: stills, tiles, UI panels and elements, objectPro objects, controlled revisions, and the character family (four engines, states, loops, mirrors, portraits, outfits, adoption).
Retro Diffusion adapterExperimental backend; authenticated paid single-still lifecycle plus mocked advanced-workflow tests.
ComfyUI adapterExperimental self-hosted still, controlled-revision, and atomic frame-set backend; PixelKiln automates lineage and mechanical quality checks while a person retains visual approval.
Scenario adapterExperimental hosted still-image backend with reference-image edits and cross-style chains; BFL Flux 2 Dev quote, paid generation, human review, and durable recovery live-tested, plus ten more models, six tool models, and a real game's art run once each.

PixelKiln's core is provider-neutral, but PixelLab remains the only production adapter. Retro Diffusion generation support is experimental. Paid RD Fast and RD Plus single-candidate stills have passed from quote through validated download and recovery. Multi-candidate, tileset, GIF, and spritesheet workflows still need representative live smoke tests. Scenario has a live-tested BFL Flux 2 Dev profile, and ten more models, six tool models, edits, and chains have each run live once; any other model's schema is unverified. See provider comparison before choosing a provider for a new project or a large environment asset. Once chosen, follow Set up PixelLab, Set up Retro Diffusion, Set up ComfyUI, or Set up Scenario.

The installed skill keeps the shared safety workflow in SKILL.md and loads a focused reference only when needed: PixelLab, Retro Diffusion, ComfyUI, Scenario, or a project that uses more than one. In a mixed manifest, the top-level provider is the default and each style may override it. Plans, confirmations, and budgets stay separate by provider and unit. See Mixed-provider projects for the complete contract.

Recommended first prompt

Use $pixelkiln to inspect this project's manifest, run the free checks and plan,
then tell me the exact budget required for each provider before generating anything.

For command details, continue with the CLI reference. For recovery and account-level operations, read Recovery and account safety before making changes.

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.