environment-preflight
Skill1 starsChanged 19 days agoMITView on GitHub
Verifies free disk space (10GB web / 20GB desktop-mobile), free RAM (4GB min), stack toolchains in PATH, and port availability before Phase 1 and Phase 6, writing docs/project/PREFLIGHT.md and aborting on failure.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- platform-cliSkill
- platform-desktopSkill
- platform-mobileSkill
- platform-pluginSkill
- platform-webSkill
- agentic-security-guardSkill
- architecture-guardSkill
- artifact-analyzerSkill
- boundary-guardSkill
- code-quality-gateSkill
- cognitive-load-auditorSkill
- context-groundingSkill
- copy-auditSkill
- cost-estimatorSkill
- dast-scannerSkill
- database-architectSkill
- design-auditSkill
- design-system-generatorSkill
- design-system-integratorSkill
- evidence-gated-blockingSkill
- human-in-the-loopSkill
- lessons-learnedSkill
- mcp-discoverySkill
- meta-judgeSkill
- ponytail-wrapperSkill
- prd-generatorSkill
- prompt-historySkill
- sast-scannerSkill
- sca-secret-scannerSkill
- security-context-managerSkill
- security-gateSkill
- security-hardeningSkill
- snapshot-rollbackSkill
- stack-advisorSkill
- task-breakdownSkill
- tech-spec-writerSkill
- test-suite-auditorSkill
- ui-interaction-authoritySkill
- viewport-qaSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If free space is below the threshold, STOP immediately and instruct the user to free up space with concrete guidance (for example: "Drive …
- Distinctive: line 19
Verify at least 4 GB of free/available memory.
- Distinctive: line 20
If below 4 GB, STOP and instruct the user to close memory-heavy applications before continuing.
- Distinctive: line 22
Before Phase 1: verify baseline tools (git, active shell) are available.
- Very specific: line 23
Before Phase 6: read docs/project/STACK.md and check every required runtime, package manager, compiler, and SDK (for example Node.js …
- Very specific: line 25
Before Phase 6 (or before launching dev/test servers), verify that required ports (for example 3000, 5173, 8080, or ports specified in …
- Very specific: line 27
Document check timestamp, phase (pre-phase-1 or pre-phase-6), target platform, free disk space, free RAM, verified toolchains and versions, …
- Very specific: line 30
If any check fails, record FAIL in docs/project/PREFLIGHT.md, output a clear, actionable error explaining what failed and how to fix it, …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Environment Preflight
Trigger
Mandatory before Phase 1 (Planning) and before Phase 6 (Implementation).
Process
- Check Free Disk Space:
- Determine target platform from
docs/project/STACK.md(or default to at least 10 GB before Phase 1 ifSTACK.mddoes not yet exist). - Minimum free space required: 10 GB for Web projects, 20 GB for Desktop or Mobile projects.
- If free space is below the threshold, STOP immediately and instruct the user to free up space with concrete guidance (for example:
"Drive C: has 2GB free. Move pnpm cache to D: or delete temp files.").
- Determine target platform from
- Check Available RAM:
- Verify at least 4 GB of free/available memory.
- If below 4 GB, STOP and instruct the user to close memory-heavy applications before continuing.
- Check Required Toolchains in PATH:
- Before Phase 1: verify baseline tools (
git, active shell) are available. - Before Phase 6: read
docs/project/STACK.mdand check every required runtime, package manager, compiler, and SDK (for example Node.js version,pnpm/npm, Rust/cargo, Go, Python, Flutter, C++ build tools). Verify each is installed and reachable inPATH.
- Before Phase 1: verify baseline tools (
- Check Required Ports:
- Before Phase 6 (or before launching dev/test servers), verify that required ports (for example
3000,5173,8080, or ports specified indocs/project/ARCHITECTURE.md) are available and not occupied by other processes.
- Before Phase 6 (or before launching dev/test servers), verify that required ports (for example
- Write
docs/project/PREFLIGHT.md:- Document check timestamp, phase (
pre-phase-1orpre-phase-6), target platform, free disk space, free RAM, verified toolchains and versions, checked ports, and overallPASS/FAILstatus. - Preserve any existing
snapshot-rollbackcommit log entries already recorded indocs/project/PREFLIGHT.md.
- Document check timestamp, phase (
- Abort on Any Failure:
- If any check fails, record
FAILindocs/project/PREFLIGHT.md, output a clear, actionable error explaining what failed and how to fix it, and abort the workflow immediately.
- If any check fails, record
Output Contract
docs/project/PREFLIGHT.md updated with all check measurements and an explicit PASS or FAIL status.
Checklist
- Free disk space meets minimum (10 GB Web / 20 GB Desktop or Mobile)
- Available RAM is at least 4 GB
- Required stack toolchains verified in
PATH - Required local ports verified available
docs/project/PREFLIGHT.mdwritten withPASSstatus before proceeding
Prohibitions
- Proceeding into Phase 1 or Phase 6 when any preflight check fails.
- Guessing or fabricating disk, RAM, toolchain, or port results without checking the environment.
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.

