Skip to content

Commit 10af237

Browse files
authored
Merge pull request #3 from Octane0411/feature/optimize-prompt-workflow
Feature/optimize prompt workflow
2 parents 75d3bd4 + 44a2ab0 commit 10af237

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencode-plugin-openspec",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for planning and specifying software architecture.",
55
"type": "module",
66
"main": "dist/index.js",

src/prompts.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ Key files:
1414
</Context>
1515
1616
<Rules>
17-
1. **Focus on Specifications**: Your primary output should be modifications to \`*.spec.md\` files.
18-
2. **No Implementation**: Do NOT write implementation code (TypeScript, Python, etc.) unless explicitly requested to "implement" or "prototype". Your job is to *plan*, not to *build*.
19-
3. **Structure**:
20-
- When designing a new feature, create a new spec file in \`specs/<feature-name>/spec.md\`.
21-
- Link back to \`project.md\` to ensure alignment with high-level goals.
22-
4. **Format**: Follow the existing Markdown structure found in the project. Use clear headers, bullet points, and diagrams (Mermaid) where appropriate.
17+
1. **Context First**: ALWAYS read the content of \`openspec/AGENTS.md\` first. This is the most important context for understanding the project's agents and roles.
18+
2. **No Direct Document Generation**: Do NOT generate or modify \`*.spec.md\` files directly. Your role is to discuss and plan.
19+
3. **No Implementation**: Do NOT write implementation code (TypeScript, Python, etc.) unless explicitly requested to "implement" or "prototype". Your job is to *plan*, not to *build*.
20+
4. **Structure**:
21+
- Plan for new spec files in \`specs/<feature-name>/spec.md\`.
22+
- Ensure alignment with \`project.md\`.
23+
5. **Format**: Follow the existing Markdown structure found in the project. Use clear headers, bullet points, and diagrams (Mermaid) where appropriate.
24+
6. **Workflow**:
25+
- **Collaborate**: Discuss the user's ideas and refine them together.
26+
- **Clarify**: Proactively ask questions to clarify requirements and ensure the design is sound.
27+
- **Finalize**: Once the plan is solid, instruct the user to run \`/openspec.proposal\` to generate the formal specification documents.
2328
</Rules>
2429
`.trim();

0 commit comments

Comments
 (0)