Add openspec-quality-gate skill to prevent AI code generation hallucinations caused by upstream spec gaps
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 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時間
- マージ済み PR(30日)
- 58
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンapproved
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
Fission-AI/OpenSpec#2289 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 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)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン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 日以内に返信