Skip to content

Commit 54e0c9f

Browse files
brettheapoz-agent
andcommitted
chore: add openspec project config for Spec Kit discovery
Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent ce94da3 commit 54e0c9f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

openspec/config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# openspec/config.yaml
2+
3+
context: |
4+
CRITICAL: This project uses Spec Kit. Do NOT assume the default OpenSpec path.
5+
Before running any OpenSpec command, you must determine the correct folder:
6+
1. List folders in `specs/`.
7+
2. Identify the current Git branch and recently modified files (`git diff --name-only HEAD~1`).
8+
3. Match these clues against your current task description.
9+
4. If a match is found in `specs/`, ALWAYS use it as your `OPENSPEC_DIR`.
10+
11+
rules:
12+
all:
13+
- "If you find a high-probability match in `specs/`, set `OPENSPEC_DIR` to that path."
14+
- "Heuristic: If I'm on branch 'feat/auth' and `specs/user-authentication` exists, that is the target."
15+
- "If no folder exists and this is a NEW feature, create `specs/<feature-name>` first."

0 commit comments

Comments
 (0)