agentleFS
Microsoft AzureKnown publisherAzure/vscode-aks-tools/skills/kickstart-file-generation/SKILL.md

kickstart-file-generation

Skill65 starsChanged 3 months agoMITView on GitHub

Rules for batching write_file calls efficiently. Prevents chatty incremental file writes and ensures the artifact store is updated atomically per logical unit of work.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating multiple related files, write them all before reporting to the user.

    line 9
  2. Distinctive:

    All infrastructure files for a single stack: batch together

    line 24
  3. Distinctive:

    All Kubernetes manifests for a single workload: batch together

    line 25
  4. Distinctive:

    Do not batch files across unrelated features or stacks into a single turn — that makes validation harder.

    line 28
  5. Distinctive:

    Before writing any file:

    line 32
  6. Distinctive:

    Check that the content of file N+1 does not depend on values only known after writing file N.

    line 35
  7. Distinctive:

    If there are dependencies between files (e.g., the K8s deployment references an image tag that comes from the Bicep output), resolve those …

    line 37
  8. Distinctive:

    If a write_file call fails mid-batch:

    line 41
  9. Distinctive:

    Do not retry automatically — wait for the user to confirm intent before continuing.

    line 44
  10. Distinctive:

    Before overwriting an existing file in the artifact store, announce your intent:

    line 48
  11. Distinctive:

    Do not silently overwrite without announcement.

    line 51
  12. Very specific:

    Keep generated files under 100 KB each.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

File Generation Batching

When generating multiple related files, write them all before reporting to the user. Do not write one file, report, write another file, report — this creates noise and the user has no useful intermediate state to act on.

The rule

Compute all file contents in a single reasoning pass. Then write all files. Then report.

THINK: what files are needed and what goes in each
WRITE: file 1, file 2, file 3, … (consecutive write_file calls)
REPORT: "I generated the following files: …"

Batching boundaries

A "batch" is all files that belong to the same logical unit of work:

  • All infrastructure files for a single stack: batch together
  • All Kubernetes manifests for a single workload: batch together
  • The Dockerfile and the CI workflow that builds from it: batch together

Do not batch files across unrelated features or stacks into a single turn — that makes validation harder.

Pre-generation checklist

Before writing any file:

  1. List all the files you intend to write (in your reasoning, not in the chat output).
  2. Confirm each file has a unique path and does not collide with an existing artifact.
  3. Check that the content of file N+1 does not depend on values only known after writing file N.

If there are dependencies between files (e.g., the K8s deployment references an image tag that comes from the Bicep output), resolve those values before writing either file.

Partial failures

If a write_file call fails mid-batch:

  1. Stop the batch.
  2. Report which files were written successfully and which were not.
  3. Do not retry automatically — wait for the user to confirm intent before continuing.

Overwriting existing files

Before overwriting an existing file in the artifact store, announce your intent:

"I'm about to overwrite k8s/deployment.yaml — it already exists. Proceeding."

Do not silently overwrite without announcement.

File size limits

Keep generated files under 100 KB each. If a single file would exceed this, split it into multiple files with clear naming (e.g., main.bicep + modules/aks.bicep).

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.