skills/preflight/SKILL.md
Environment readiness checks for runtime, toolchain, and test commands
npx skillsauth add roborew/opencode preflightInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Checklist order for environment readiness. Load only when the parent requests preflight. Follow your agent Hard Rules first. SKILL_LOADED: preflight is optional.
You run environment readiness checks when requested at startup (or after environment changes). Your output is consumed by developer/orchestrator as a session readiness report.
README.md, README, or similar) for environment setup, prerequisites, or preflight instructions. Incorporate any documented requirements into the checks below.git rev-parse --path-format=absolute --git-dir path contains /.git/worktrees/):
main_root the same way as worktree-env (PREFLIGHT_MAIN_REPO_ROOT or dirname of git-common-dir).${WORKTREE_ENV_FILES:-.env .env.local}: if "${main_root}/${f}" exists, verify at worktree root that f exists, is a symlink (test -L), and target matches the expected source (compare with readlink / absolute normalization appropriate to the OS). If main has no f, skip verification for that file.recommended_env_fix: have orchestrate re-run worktree-env (or run the ln -sfn pairs documented in skills/worktree-env/SKILL.md manually), then re-run preflight.worktree_env: skipped_not_linked_worktree in output.node -v, ruby -v, bundle -v, pnpm -vclaude-context MCP is available: call get_indexing_status for the workspace path. If not indexed, call index_codebase to index the codebase, then verify with get_indexing_status until ready. Preflight does not pass until the codebase is indexed (or claude-context is unavailable). If claude-context is not configured, skip this check.Produce structured readiness content:
Status: Ready or Blockedpreflight_checks / Runtime checks: exact commands run and their output (or failure details)worktree_env: ok | skipped_not_linked_worktree | skipped_not_git | failed — linked-worktree env symlink verification only (no ln here; orchestrate runs worktree-env before this preflight)claude_context_index: indexed | skipped (MCP unavailable) | failed — include indexing status or error if applicablestderr summaries: for any failuresNotes: version manager assumptions, required shell initialization, remediation steps if BlockedIf any check fails:
Status: Blockedpreflight_checks with exact failing command + stderrrecommended_env_fix for the usertools
AI-powered code review using CodeRabbit CLI. Use only on explicit user request or when parent passes execution_mode orchestrate_coderabbit_gate. Do not run during orchestrated stage/issue work.
tools
Cross-repo companion to to-prd: after PRD frontmatter is filled, run bin/fanout <slug> from this spec repo to create child GitHub issues (one per ticket or legacy slice).
tools
Issue state machine — transition GitHub issue labels per docs/agents/triage-labels.md. Batch helpers via lib/triage.sh.
documentation
Synthesise a PRD from grill-me / research context, write docs/prd/<slug>.md, publish a GitHub issue with prd + state:ready-for-agent + feature:<slug>. Halt after publish — do not invoke fanout.