Session Pre-flight Probe
Skill4 starsChanged 10 days agoApache-2.0View on GitHub
Probes environment health at session start, catching venv drift, git status, and broken tests.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- nseney1/Soma-Governanceword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- nseney1/Soma-Governance★ 4100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- Adaptive Review OrchestratorSkill
- Domain ResearcherSkill
- Genesis — Codebase Onboarding ReconnaissanceSkill
- Governance AuditorSkill
- incident-debugSkill
- performance-auditSkill
- post-mortemSkill
- readme-writerSkill
- refactoring-pilotSkill
- security-auditSkill
- Session MonitorSkill
- Spec SynthesizerSkill
- Staff Review ProtocolSkill
- Visual AnalystSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Run a quick scan of workspace root:
- Distinctive: line 99
When the preflight subagent reports back:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Session Pre-flight Probe
Role: Eliminate environment-class waste (VIRTUALENV_DRIFT, ENV_BLINDNESS, DIRTY_VCS_STAGING) by probing project health before writing any code.
When to Activate
Activate at session start when the workspace contains any of:
venv/,.venv/, orenv/(Python virtual environment)requirements.txt,pyproject.toml,setup.py(Python project)package.json(Node project)Makefilewith test/lint targets.git/directory- Imports of
pyautogui,xdotool,pygame(GUI automation)
Execution Protocol
Step 1: Detect Project Type
Run a quick scan of workspace root:
ls -1 venv/ .venv/ env/ 2>/dev/null | head -1 # Python venv
ls package.json 2>/dev/null # Node
grep -l 'pyautogui\|xdotool\|pygame' *.py **/*.py 2>/dev/null # GUI automationStep 2: Dispatch a Fast-Tier Preflight Subagent
Dispatch a ${SLOT.MODEL_FAST} read-only research subagent with the appropriate checklist below. The subagent must NOT modify any files.
Python Project Checklist
Execute these checks and report findings as a structured checklist:
1. VENV HEALTH
- Run: head -1 ./venv/bin/pip (or .venv/bin/pip)
- Run: cat ./venv/pyvenv.cfg | grep -E "home|command"
- PASS if shebang and pyvenv.cfg paths match $PWD
- FAIL if they point to a different directory (stale venv)
2. TEST SUITE
- Check if any of these exist: Makefile (with test target), pytest.ini,
setup.cfg [tool:pytest], pyproject.toml [tool.pytest]
- If found, run: make test (or pytest --co -q) to verify tests collect
- Report: test runner command, number of tests, pass/fail
- If no test suite found, report: "No test suite detected"
3. GIT STATE
- Run: git status --porcelain | wc -l
- Run: git log --oneline -3
- PASS if clean or <5 uncommitted files
- WARN if >5 uncommitted files or untracked data directories
4. GITIGNORE COVERAGE
- Run: git ls-files --others --ignored --exclude-standard | wc -l
- Check .gitignore covers: venv/, __pycache__/, *.pt, *.pth, data/,
models/, *.egg-info/, .env
- WARN if data/ or models/ directories exist but aren't gitignored
5. DEPENDENCY HEALTH
- Run: ./venv/bin/pip check 2>&1 | head -10
- PASS if "No broken requirements found"
- WARN if any dependency conflicts reportedGUI/Automation Addendum (append to Python checklist)
6. DISPLAY ENVIRONMENT
- Run: echo $DISPLAY
- Run: xdpyinfo 2>&1 | head -5 (or xrandr --query)
- PASS if DISPLAY is set and X11 responds
- FAIL if DISPLAY unset or Xlib errors
7. AUTOMATION LIBRARIES
- Run: ./venv/bin/python -c "import pyautogui; print(pyautogui.size())"
- Check for coordinate calibration files (config.py, hud_reader.py constants)
- WARN if no calibration data found for screen automationNode Project Checklist
1. Run: node --version && npm --version
2. Run: npm ls --depth=0 2>&1 | tail -5
3. Check: package.json has "test" script
4. Run: npm test --dry-run (or npm test if fast)
5. Git state: same as Python checklist items 3-4Step 3: Process Results
When the preflight subagent reports back:
- All PASS: Proceed with deliverable work. Log: "✅ Preflight clean"
- Any WARN: Note warnings but proceed. Inject a brief reminder in your working context.
- Any FAIL: Fix before writing code. Environment defects compound — a stale venv causes 40-120 steps of waste if discovered mid-session.
Cost Budget
| Component | Tokens | Time |
| Fast-tier subagent | ~500 | ~5s |
| Shell commands (5-7) | ~200 | ~3s |
| Result processing | ~100 | ~1s |
| Total | ~800 | <10s |
Anti-Patterns
- Don't skip preflight for "quick fixes" — the 5dd84eed session started as a "quick git setup" and burned 58 steps on venv drift
- Don't use
${SLOT.MODEL_STANDARD}or${SLOT.MODEL_HEAVY}for preflight —${SLOT.MODEL_FAST}is sufficient for read-only diagnostics - Don't let preflight modify files — it's a read-only probe; fixes are the orchestrator's job
- Don't run preflight on non-coding tasks — governance, documentation, and research sessions don't need it
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.

