spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

[Feature] Implement Mandatory "Discovery Gate" to Prevent Redundant File Creation

Open MAshrafAi opened this issue 10 months ago • 2 comments

Agents often generate brand-new files for features that already exist in the codebase (e.g., creating WorkflowEditor.tsx when WorkflowCanvas.tsx is already present). This leads to code duplication, broken routing, and high technical debt.

The current speckit.plan.md and speckit.specify.md workflows do not explicitly force the AI agent to perform a global search of the @src directory before defining new technical designs. The agent defaults to "creation" rather than "refactoring."

MAshrafAi avatar Jan 08 '26 11:01 MAshrafAi

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jun 08 '26 01:06 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar Jul 09 '26 00:07 github-actions[bot]