-
Notifications
You must be signed in to change notification settings - Fork 1k
Enhance proposal guidelines in slash-command-templates.ts #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
091d1fc
34a9ed9
a39b562
f80e99a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,8 @@ const baseGuardrails = `**Guardrails** | |
| - Keep changes tightly scoped to the requested outcome. | ||
| - Refer to \`openspec/AGENTS.md\` (located inside the \`openspec/\` directory—run \`ls openspec\` or \`openspec update\` if you don't see it) if you need additional OpenSpec conventions or clarifications.`; | ||
|
|
||
| const proposalGuardrails = `${baseGuardrails}\n- Identify any vague or ambiguous details and ask the necessary follow-up questions before editing files.`; | ||
| const proposalGuardrails = `${baseGuardrails}\n- Identify any vague or ambiguous details and ask the necessary follow-up questions before editing files. | ||
| - Do not write any code during the proposal stage. Only create design documents (proposal.md, tasks.md, design.md, and spec deltas). Implementation happens in the apply stage after approval.`; | ||
|
|
||
| const proposalSteps = `**Steps** | ||
| 1. Review \`openspec/project.md\`, run \`openspec list\` and \`openspec list --specs\`, and inspect related code or docs (e.g., via \`rg\`/\`ls\`) to ground the proposal in current behaviour; note any gaps that require clarification. | ||
|
|
@@ -14,7 +15,8 @@ const proposalSteps = `**Steps** | |
| 4. Capture architectural reasoning in \`design.md\` when the solution spans multiple systems, introduces new patterns, or demands trade-off discussion before committing to specs. | ||
| 5. Draft spec deltas in \`changes/<id>/specs/<capability>/spec.md\` (one folder per capability) using \`## ADDED|MODIFIED|REMOVED Requirements\` with at least one \`#### Scenario:\` per requirement and cross-reference related capabilities when relevant. | ||
| 6. Draft \`tasks.md\` as an ordered list of small, verifiable work items that deliver user-visible progress, include validation (tests, tooling), and highlight dependencies or parallelizable work. | ||
| 7. Validate with \`openspec validate <id> --strict\` and resolve every issue before sharing the proposal.`; | ||
| 7. Validate with \`openspec validate <id> --strict\` and resolve every issue before sharing the proposal. | ||
|
||
| Remember: This is a design phase. Do not write any code.`; | ||
|
|
||
| const proposalReferences = `**Reference** | ||
| - Use \`openspec show <id> --json --deltas-only\` or \`openspec show <spec> --type spec\` to inspect details when validation fails. | ||
|
|
@@ -23,7 +25,7 @@ const proposalReferences = `**Reference** | |
|
|
||
| const applySteps = `**Steps** | ||
| Track these steps as TODOs and complete them one by one. | ||
| 1. Read \`changes/<id>/proposal.md\`, \`design.md\` (if present), and \`tasks.md\` to confirm scope and acceptance criteria. | ||
| 1. Read \`openspec/project.md\` to understand project conventions, then read \`changes/<id>/proposal.md\`, \`design.md\` (if present), and \`tasks.md\` to confirm scope and acceptance criteria. | ||
|
||
| 2. Work through tasks sequentially, keeping edits minimal and focused on the requested change. | ||
| 3. Confirm completion before updating statuses—make sure every item in \`tasks.md\` is finished. | ||
| 4. Update the checklist after all work is done so each task is marked \`- [x]\` and reflects reality. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jax-max How has this updated instruction been working for you? Do you feel like this has COMPLETELY stopped the agent from writing code?
Will try it out, but keen to hear your experience first?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mainly asking to just get a sense of whether this actually works, i'm ok with the change itself, because I agree that it's a problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TabishB Hi there! Our team (not only me) has noticed that code automatically starts being written during the proposal phase. We’ve checked the system prompt of the tool being used and found no issues—it’s a rather odd problem.
Adding a clarifying note here might theoretically help a bit, but the LLM will probably still not behave as intended, haha.
We’re wondering if you’ve encountered this issue before?