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.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- vscode-aks-tools-release-prSkill
- kickstart-acr-integrationSkill
- kickstart-bicep-authoringSkill
- kickstart-cluster-statusSkill
- kickstart-collaborator-voiceSkill
- kickstart-configure-infraSkill
- kickstart-deploySkill
- kickstart-designSkill
- kickstart-discoverSkill
- kickstart-generateSkill
- kickstart-github-pr-conventionsSkill
- kickstart-handoffSkill
- kickstart-phase-accelerationSkill
- kickstart-pim-activationSkill
- kickstart-reviewSkill
- kickstart-safeguard-checklistSkill
- kickstart-samplesSkill
- kickstart-security-hardeningSkill
- kickstart-workload-identitySkill
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
- Distinctive: line 9
When generating multiple related files, write them all before reporting to the user.
- Distinctive: line 24
All infrastructure files for a single stack: batch together
- Distinctive: line 25
All Kubernetes manifests for a single workload: batch together
- Distinctive: line 28
Do not batch files across unrelated features or stacks into a single turn — that makes validation harder.
- Distinctive: line 32
Before writing any file:
- Distinctive: line 35
Check that the content of file N+1 does not depend on values only known after writing file N.
- Distinctive: line 37
If there are dependencies between files (e.g., the K8s deployment references an image tag that comes from the Bicep output), resolve those …
- Distinctive: line 41
If a write_file call fails mid-batch:
- Distinctive: line 44
Do not retry automatically — wait for the user to confirm intent before continuing.
- Distinctive: line 48
Before overwriting an existing file in the artifact store, announce your intent:
- Distinctive: line 51
Do not silently overwrite without announcement.
- Very specific: line 55
Keep generated files under 100 KB each.
≈ “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.
Files
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:
- List all the files you intend to write (in your reasoning, not in the chat output).
- Confirm each file has a unique path and does not collide with an existing artifact.
- 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:
- Stop the batch.
- Report which files were written successfully and which were not.
- 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).
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
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.

