openspec-workspace-gates
Installation
SKILL.md
OpenSpec Workspace Gates
Internal shared skill for OPSX workflows. It establishes an OpenSpec project root and verifies native-skill prerequisites before the host starts its workflow-specific orchestration.
1. Locate the project root
Use this priority order and stop at the first unique result:
- The current working directory contains
openspec/. - Walk upward from the current edit file and use the first ancestor containing
openspec/. - Scan direct children of the current working directory for
openspec/.- One match: use it.
- Multiple matches: list candidates and wait for the user to select one.
- No match: stop and ask the user to enter an initialized OpenSpec project or run
openspec init.
Output 【工程定位结果】目标工程根:<absolute path>. Run subsequent OpenSpec paths, CLI commands, and native-skill delegation from that root; if changing the working directory is unavailable, use absolute paths.