agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/environment-preflight/SKILL.md

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.

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
  1. Very specific:

    If free space is below the threshold, STOP immediately and instruct the user to free up space with concrete guidance (for example: "Drive …

    line 17
  2. Distinctive:

    Verify at least 4 GB of free/available memory.

    line 19
  3. Distinctive:

    If below 4 GB, STOP and instruct the user to close memory-heavy applications before continuing.

    line 20
  4. Distinctive:

    Before Phase 1: verify baseline tools (git, active shell) are available.

    line 22
  5. Very specific:

    Before Phase 6: read docs/project/STACK.md and check every required runtime, package manager, compiler, and SDK (for example Node.js …

    line 23
  6. Very specific:

    Before Phase 6 (or before launching dev/test servers), verify that required ports (for example 3000, 5173, 8080, or ports specified in …

    line 25
  7. Very specific:

    Document check timestamp, phase (pre-phase-1 or pre-phase-6), target platform, free disk space, free RAM, verified toolchains and versions, …

    line 27
  8. Very specific:

    If any check fails, record FAIL in docs/project/PREFLIGHT.md, output a clear, actionable error explaining what failed and how to fix it, …

    line 30

≈ “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.

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

Environment Preflight

Trigger

Mandatory before Phase 1 (Planning) and before Phase 6 (Implementation).

Process

  1. Check Free Disk Space:
    • Determine target platform from docs/project/STACK.md (or default to at least 10 GB before Phase 1 if STACK.md does 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.").
  2. 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.
  3. Check Required Toolchains in PATH:
    • Before Phase 1: verify baseline tools (git, active shell) are available.
    • Before Phase 6: read docs/project/STACK.md and 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 in PATH.
  4. Check Required Ports:
    • Before Phase 6 (or before launching dev/test servers), verify that required ports (for example 3000, 5173, 8080, or ports specified in docs/project/ARCHITECTURE.md) are available and not occupied by other processes.
  5. Write docs/project/PREFLIGHT.md:
    • Document check timestamp, phase (pre-phase-1 or pre-phase-6), target platform, free disk space, free RAM, verified toolchains and versions, checked ports, and overall PASS / FAIL status.
    • Preserve any existing snapshot-rollback commit log entries already recorded in docs/project/PREFLIGHT.md.
  6. Abort on Any Failure:
    • If any check fails, record FAIL in docs/project/PREFLIGHT.md, output a clear, actionable error explaining what failed and how to fix it, and abort the workflow immediately.

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.md written with PASS status 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.

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.