Add openspec-quality-gate skill to prevent AI code generation hallucinations caused by upstream spec gaps
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 43/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
Read the attached openspec-quality-gate.md proposal and compare it with the existing openspec-explore skill and the project’s skill conventions. Define how the proposed cross-validation, scoring, and dual outputs fit those conventions; the issue does not name implementation files or tests. Done means a built-in skill can identify specification gaps and produce the described human-readable and JSON reports.
由索引模型根据 Issue 内容生成。
描述
The problem, in one or two sentences
As we increasingly rely on AI agents (like Codex) to implement features based on OpenSpec, we've hit a critical "efficiency backlash." AI agents are exceptional at execution but lack the human "common sense interruption" mechanism.
If there is a mismatch between the Product Requirements (PRD), UI specs, and API documentation (e.g., UI requires a field the API doesn't provide), an AI agent will blindly generate hundreds of lines of complex React/UI code based on flawed assumptions. Fixing this highly coupled, AI-generated code post-generation is significantly harder than writing it from scratch. Garbage In, Garbage Out is amplified by AI.
Who this affects
everyone
Alternatives you considered
absence
Why it's worth the added complexity
OpenSpec focuses on specification-driven development. Right now, there is a gap between "drafting the spec" and "the AI building the spec." This skill bridges that gap, ensuring that the specification contract is mathematically sound before wasting token limits and developer time on broken implementations.
I have been testing this locally in my own workflow, and it successfully catches edge cases and API field omissions before they ever touch my codebase. I am happy to submit a PR with the skill definition if the maintainers are open to it.
What you have in mind
Title: [Proposal] Add openspec-quality-gate skill to prevent AI code generation hallucinations caused by upstream spec gaps
Description:
Background & Problem
As we increasingly rely on AI agents (like Codex) to implement features based on OpenSpec, we've hit a critical "efficiency backlash." AI agents are exceptional at execution but lack the human "common sense interruption" mechanism.
If there is a mismatch between the Product Requirements (PRD), UI specs, and API documentation (e.g., UI requires a field the API doesn't provide), an AI agent will blindly generate hundreds of lines of complex React/UI code based on flawed assumptions. Fixing this highly coupled, AI-generated code post-generation is significantly harder than writing it from scratch. Garbage In, Garbage Out is amplified by AI.
Proposed Solution
I propose adding a new built-in skill: openspec-quality-gate.
Similar to how openspec-explore acts as a "thinking partner" before a change, quality-gate acts as a strict shift-left Linter for logic and contracts right before the actual implementation phase.
How it Works
Cross-Validation: It takes the PRD, UI specs, and API schema as context and performs a strict cross-validation, grading both PRD and API on a 100-point scale.
Dual-Output Architecture:
Human-Readable: Outputs ASCII diagrams and markdown tables exposing exact mapping gaps (e.g., UI [Avatar] ---> API (Missing)), making it easy to hand back to PMs/Backend engineers.
Machine-Readable: Outputs a strict JSON object separated by a === JSON_REPORT_START === delimiter.
CI/CD Friendly: Because of the strict JSON output, developers can easily hook this into their local scripts to literally block the execution of code-generation commands if the api_score drops below 80.
Why this belongs in OpenSpec
OpenSpec focuses on specification-driven development. Right now, there is a gap between "drafting the spec" and "the AI building the spec." This skill bridges that gap, ensuring that the specification contract is mathematically sound before wasting token limits and developer time on broken implementations.
I have been testing this locally in my own workflow, and it successfully catches edge cases and API field omissions before they ever touch my codebase. I am happy to submit a PR with the skill definition if the maintainers are open to it.
- 主要语言
- TypeScript
- 星标
- 76k
- 派生
- 5.2k
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 58
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Fission-AI/OpenSpec 的其他 Issue
-
enhancement needs-triage
难度 2/5 1-3 小时 新手友好度 74/100
Fission-AI/OpenSpec#2337 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
Fission-AI/OpenSpec#2311 ·
维护者通常 1 天内回复
-
sync-specs skill overwrites an existing ADDED requirement, contradicting the CLI's no-op/conflict rule from #1376可能重新可做 @vaibhavdabas16 于 10 天前认领,目前没有进行中的 PR。 未关闭approved
难度 1/5 1 小时以内 新手友好度 86/100
Fission-AI/OpenSpec#2289 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 76/100
Fission-AI/OpenSpec#2208 · 2 条评论 ·
维护者通常 1 天内回复
-
Document the RFC 2119 keyword rule (attribution lost in docs rebuild) and its clarification update RFC 8174可能已有人在做 @sofiaali1521-cloud 于 5 天前认领。 未关闭documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
Fission-AI/OpenSpec#2200 · 5 条评论 ·
维护者通常 1 天内回复
查看 Fission-AI/OpenSpec 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
nicobailon/pi-subagents#3425 ·
维护者通常 1 天内回复
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area-a2a bug port python
难度 2/5 1-3 小时 新手友好度 68/100
strands-agents/harness-sdk#6697 · 1 条评论 ·
维护者通常 1 天内回复
-
api technical-debt
难度 2/5 1-3 小时 新手友好度 66/100
opencollective/opencollective#9235 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
openwatersio/slackwater#603 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复