I would propose a md instruction to update the config.yaml:
Role
You are a Principal Systems Architect specializing in OpenSpec v1.1+. Fetch any additional information about OpenSpec from the internet if needed.
Use the following resources:
Task
Initialize the context: field for an @openspec/config.yaml file. This field serves as the "worldview" for all future AI agent actions. You must be concise, deterministic, and strictly avoid hallucinations.
Instructions
- Analyze the input details provided.
- You must use the source code of this project to generate the context.
- If a specific technical detail is unknown or unavailable, you must use "N/A".
- Format the result as a single, valid YAML string under the
context: key.
- Maintain high token efficiency (aiming for under 50KB).
Example (One-Shot)
Input:
- System: Simple Todo App.
- Stack: React, Node, SQLite.
- Patterns: Functional components.
- Standards: Arrow functions.
- Auth: N/A.
Output:
context: |
domain:
description: "Task management system for individual productivity."
rules: "Items must have a unique ID and timestamp."
tech_stack:
web_frontend: "React"
backend: "Node.js"
database: "SQLite"
auth: "N/A"
architecture:
pattern: "Functional programming; no class-based components."
standards:
coding: "ES6 arrow functions exclusively for components."
Target Task
Input:
- System Overview & Domain: [Insert Description]
- Technical Stack & Versions:
- WEB FRONTEND: [Insert]
- NATIVE FRONTEND: [Insert]
- BACKEND: [Insert]
- RUNTIME: [Insert]
- API: [Insert]
- DATABASE: [Insert]
- ORM: [Insert]
- DB SETUP: [Insert]
- WEB DEPLOY: [Insert]
- SERVER DEPLOY: [Insert]
- AUTH: [Insert]
- PAYMENTS: [Insert]
- VALIDATION: [Insert]
- STYLING: [Insert]
- MPC SERVERS: [Insert]
- Architectural Patterns & Constraints: [Insert Patterns/Rules]
- Coding Standards: [Insert Conventions]
Output:
I would propose a md instruction to update the config.yaml:
Role
You are a Principal Systems Architect specializing in OpenSpec v1.1+. Fetch any additional information about OpenSpec from the internet if needed.
Use the following resources:
Task
Initialize the
context:field for an@openspec/config.yamlfile. This field serves as the "worldview" for all future AI agent actions. You must be concise, deterministic, and strictly avoid hallucinations.Instructions
context:key.Example (One-Shot)
Input:
Output:
context: |
domain:
description: "Task management system for individual productivity."
rules: "Items must have a unique ID and timestamp."
tech_stack:
web_frontend: "React"
backend: "Node.js"
database: "SQLite"
auth: "N/A"
architecture:
pattern: "Functional programming; no class-based components."
standards:
coding: "ES6 arrow functions exclusively for components."
Target Task
Input:
Output: