Expand automated test suite: schema validation, pipeline contracts, graph integrity in CI
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
まず validate-manifest.py、validate-graph-integrity.py、manifest.yaml、および CI workflow を読んで、既存のチェックと validator の呼び出し方法を理解します。frontmatter、pipeline contract、cross-reference、dead component に対する検証範囲を定義し、その後、push と pull request で CI 上ですべてのチェックが正常に実行されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Summary
Expand PromptKit's automated test suite beyond the current validate-manifest.py to include frontmatter schema validation, pipeline contract chain validation, and graph integrity checking — all running in CI.
Motivation
GitHub Spec Kit has 13 pytest modules covering:
- Manifest validation and schema enforcement
- Agent config consistency (all supported agents have correct metadata)
- Template resolution priority ordering
- Extension/preset manifest schema validation
- Release artifact parity checking
PromptKit currently has:
- ✅
validate-manifest.py— checks manifest ↔ template protocol sync - ✅
validate-graph-integrity.py— exists but may not be in CI - ✅
self-audit-prompt.md— manual self-audit prompt - ❌ No frontmatter schema validation (required fields by component type)
- ❌ No pipeline contract chain validation
- ❌ No component cross-reference validation
Proposed Additions
1. Frontmatter schema validation
Validate that every component has the required frontmatter fields for its type:
- Persona:
name,description,domain,tone - Protocol:
name,type(guardrail|analysis|reasoning),description - Format:
name,type(format),description,produces - Template:
name,description,persona,protocols,format,params,input_contract,output_contract
2. Pipeline contract chain validation
For each pipeline in manifest.yaml, verify that stage N's output_contract matches stage N+1's input_contract. Catch broken chains before they reach users.
3. Graph integrity in CI
validate-graph-integrity.py already exists — add it to the CI workflow alongside validate-manifest.py so it runs on every push/PR.
4. Component cross-reference validation
- Every persona referenced by a template exists in
personas/ - Every protocol referenced by a template exists in
protocols/ - Every format referenced by a template exists in
formats/ - Every taxonomy referenced exists in
taxonomies/
5. Dead component detection
Flag components that exist in the repo but are not referenced by any template or pipeline.
Credit
The testing depth and structure is inspired by GitHub Spec Kit's test suite. See their tests/ directory and TESTING.md for their approach to structural validation and manual testing mapping rules.
- 主要言語
- JavaScript
- スター
- 105
- フォーク
- 23
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/PromptKit のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
microsoft/PromptKit の issue をすべて見る
似ている issue
-
curation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
amponce/archive-movie-browser#186 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
clerk/javascript#9852 ·
-
bug p1 tools
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100