用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/generative-computing/mellea-skills-compiler --skill mellea-fy-fixtures命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | mellea-fy-fixtures |
| description | # Melleafy Step 4: Fixture Generation |
| metadata | {"user-invocable":true,"disable-model-invocation":true} |
Version: 4.2.1 | Prereq: Step 3 complete (skeleton emitted with finalised run_pipeline signature) | Produces: fixtures_emission.json
Schema: Output
intermediate/fixtures_emission.jsonMUST conform toschemas/fixtures_emission.schema.json
Output path rule (Rule OUT-4): Step 4 produces ONLY
intermediate/fixtures_emission.jsonin the intermediate directory. This JSON file contains fixture specifications that will be used by downstream processes. DO NOT generate any Python source files — nofixtures/directory, no.pyfiles, no__init__.py. The fixture source code generation is handled by a separate process outside this skill.
CRITICAL: This step generates ONLY the JSON specification file.
Step 4 generates fixture specifications for 5–8 test fixtures covering ≥3 C-categories. The output is a single JSON file conforming to the schema.
Rule 4-1 — JSON-only fixture specification: Generate all fixture specifications in a single JSON object conforming to
schemas/fixtures_emission.schema.json. The invocation receives therun_pipelinesignature, the element mapping summary, and the C-category coverage requirement, and returns one JSON object — not Python source. This skill's output is ONLY the JSON file. Do not generate Python fixture files, do not create afixtures/directory, do not write__init__.pyor individual fixture modules.
The keys in every fixture's inputs object MUST be identical to the parameter names of the run_pipeline function in pipeline.py. This is not optional. A fixture with {"text": "..."} for a pipeline that expects run_pipeline(user_query=...) will fail at runtime with a TypeError. Before emitting JSON, verify the exact parameter names from the generated pipeline function. The schema cannot enforce this — it's the model's responsibility to match.
The model emits one JSON object saved as intermediate/fixtures_emission.json. This is the only output of Step 4.
JSON output (conforms to fixtures_emission.schema.json):
{
"fixtures": [
{
"id": "positive_case",
"description": "Critical priority ticket — should escalate to L2 immediately",
"inputs": {
"ticket_text": "URGENT: Production database is returning 500 errors for all queries.",
"priority": "critical"
}
},
{
"id": "clean_case",
"description": "Routine request — should route to standard support queue",
"inputs": {
"ticket_text": "Can you update my email address in the portal?",
"priority": "normal"
}
}
],
"coverage_doc": "Fixture coverage:\n C1 Identity: all fixtures\n C2 Operating rules: positive_case\n C6 Tools: positive_case"
Generate at least one fixture per category. Not all categories apply to every skill — use judgment:
| Category | Purpose | When to include |
|---|---|---|
| Positive case | Clear input triggering the skill's primary behaviour | Always |
| Clean/negative case | Input where the skill finds nothing or produces minimal output | Always |
| Edge case (structural) | Empty input, very short, very long, missing optional fields | Always |
| Edge case (domain) | Input at the boundary of the skill's scope | When the skill has meaningful domain boundaries |
| Mixed case | Combination of positive and negative signals | For analysis/diagnosis archetypes |
| Out-of-scope case | Input the skill should explicitly decline | When the spec defines "When NOT to Use" |
Fixtures must collectively exercise ≥3 dependency categories (C1–C9). This is R16's fixture coverage threshold. Document which categories each fixture exercises in the description field.
Example — a ticket-triage skill with C1 (persona), C2 (operating rules), and C6 (tool calls):
"some input here"description field states the expected behaviour, not just what the input isload_from_disk with bundled fixture dataThe schema (fixtures_emission.schema.json) and intermediate/fixtures_emission.json together enforce most of the contract structurally. The model is responsible only for content correctness:
minItems/maxItems in the schema)coverage_doc)inputs keys match the generated run_pipeline signature exactly (model self-check; verify against pipeline.py before emitting JSON)inputs value (not placeholder text)coverage_doc is populated with C-category coverage notes