structural-pre-flight
Skill11 starsChanged 2 months agoMITView on GitHub
Authoritative pre-implementation discipline gate that fires when a new `.mjs` file is about to be authored. Stage 0 mechanical trigger; Stage 1 fast-path (sibling-file-lift pattern match) for matched patterns OR full Pre-Flight (ArchitectureOverview.md + ADR consultation + chief-architect framing) for novel directory choices. Closes the 0th-level discipline gap empirically demonstrated by `ai/daemons/wake/daemon.mjs` (originally misplaced in `ai/scripts/` as `bridge-daemon.mjs`) and `orchestrator-daemon.mjs` (PR #11008 same-class miss). Triggers: Use this skill before authoring or relocating any new `.mjs` file. Fires from `ticket-create` Stage 3 (Substrate), `ticket-intake` validation, `epic-review` Stage 3, and any direct authoring path. Sibling pattern match → 30-second fast-path; novel directory choice → full structural pre-flight before the file is written.
In this repository36 other files it gives its agents.
- architecture-pre-flightSkill
- blocked-task-stateSkill
- blog-postSkill
- context-recoverySkill
- create-skillSkill
- epic-createSkill
- epic-resolutionSkill
- epic-reviewSkill
- goal-scopingSkill
- guide-authoringSkill
- hostile-content-quarantineSkill
- ideation-sandboxSkill
- identity-firewallSkill
- industry-friction-radarSkill
- lane-intentSkill
- lead-roleSkill
- memory-miningSkill
- neo-identity-updateSkill
- neural-linkSkill
- peer-namingSkill
- peer-roleSkill
- post-review-pickupSkill
- pr-reviewSkill
- pull-requestSkill
- release-notesSkill
- self-repairSkill
- session-sunsetSkill
- tech-debt-radarSkill
- ticket-createSkill
- ticket-intakeSkill
- ticket-triageSkill
- turn-memory-pre-flightSkill
- unit-testSkill
- update-roadmapSkill
- video-createSkill
- whitebox-e2eSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 8
If you are about to author or relocate a .mjs file (new module, daemon, service, script, helper, etc.), you MUST immediately use the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Structural Pre-Flight Skill
If you are about to author or relocate a .mjs file (new module, daemon, service, script, helper, etc.), you MUST immediately use the view_file tool to read and strictly adhere to .agents/skills/structural-pre-flight/references/structural-pre-flight-workflow.md before touching the filesystem.
The skill has two stages: a 30-second sibling-pattern fast-path AND a full Pre-Flight for novel directory choices. Always emit the explicit Pre-Flight reasoning-statement so future graph-traversal can audit the architectural choice.
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.

