一键导入
spec-write-it
Generate required integration test cases to cover integrations with all external services. These tests will be run in a real env with real services.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate required integration test cases to cover integrations with all external services. These tests will be run in a real env with real services.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Define a normative Functional Requirement (FR) with complete specification.
Define a normative Non-Functional Requirement (NFR) or quality constraint.
Write an authoritative Stakeholder Requirement (StR).
Write or format an ISO-compatible User Story (US) artifact.
Review requirements for quality, consistency, and completeness.
Convert ISO spec requirements (StR, FR, NFR) into a TDD-based project plan with dependency analysis, parallel execution tracks, quality gates, and task decomposition. Creates /plan/plan.md and /plan/tasks/.
| name | spec-write-it |
| description | Generate required integration test cases to cover integrations with all external services. These tests will be run in a real env with real services. |
Use this skill to specify integration test cases that verify connectivity and behavior with external services. These tests run in real environments (e.g., KIND cluster) against actual service dependencies.
Each test case is a separate file. Sequential numbering within the service spec.
ISO 29148 supports bidirectional traceability across system boundaries. You can reference requirements from other service specs:
catalog-service/FR-001: Reference to another service's functional requirementconfig-service/NFR-002: Reference to another service's non-functional requirementThis is best practice for integration verification where your test validates behavior defined in another service's specification.
IT-XXX.assets/integration-test-template.mdspec/integration/IT-XXX-description.mdspec/integration/IT-XXX-description.mdspecs/<category>/<component>/spec/integration/IT-XXX-description.md[!CAUTION] Integration tests are ALWAYS REAL by default. Nothing is mocked unless the spec explicitly says so. An IT that only checks imports or constructs models without exercising real behavior is a GAP.
Every IT specification MUST include acceptance criteria from BOTH categories:
Verify the real, non-mocked environment is correctly established:
Verify REAL OUTPUT from REAL SERVICES — not mocked return values:
| Real (Required) | Not Real (GAP) |
|---|---|
| POST to API endpoint, assert response body | assert MyModel is not None |
| Query database after write, verify rows changed | MyModel(field="value") without DB |
| Publish event, consume from real bus, verify payload | assert EventSchema is not None |
| GET /health, verify HTTP 200 with status body | assert app is not None |
| Load config from file, call API, verify behavior | assert config.key == "value" |
| Connect WebSocket, send message, read response | assert MessageType.TEXT exists |
ScenarioChatModel),
invoke via real API, verify tool calls executed and results returned.Every IT file MUST begin with YAML frontmatter:
---
id: IT-XXX
title: "<Title>"
artifact_type: IT
status: DRAFT # DRAFT | APPROVED | IMPLEMENTED | VERIFIED | DEPRECATED
relationships: # Required: FR/StR/NFR references
- target: "ix://org/repo/FR-XXX"
type: "verifies"
cardinality: "1:1"
---