Agent skill
doc-itest-autopilot
Automated ITEST generation and review orchestration for integration contract and interaction validation
Install this agent skill to your Project
npx add-skill https://github.com/vladm3105/aidoc-flow-framework/tree/main/.claude/skills/doc-itest-autopilot
Metadata
Additional technical details for this skill
- tags
-
sdd-workflow layer-10-artifact automation-workflow itest
- custom fields
-
{ "layer": 10, "version": "1.0", "priority": "primary", "last_updated": "2026-02-27", "artifact_type": "ITEST", "skill_category": "automation-workflow", "development_status": "active", "upstream_artifacts": [ "CTR", "SYS", "SPEC" ], "downstream_artifacts": [ "TASKS" ], "architecture_approaches": [ "ai-agent-based" ] } - versioning policy
- tracks ITEST-MVP-TEMPLATE schema_version
SKILL.md
doc-itest-autopilot
Purpose
Automate ITEST lifecycle for subtype-specific workflows:
- generate ITEST from upstream context,
- validate and audit outputs,
- hand off to fixer when required.
Input Contract (IPLAN-004 Standard)
- Supported modes:
--ref <path>--prompt "<text>"--iplan <path|IPLAN-NNN>
- Precedence:
--iplan > --ref > --prompt - IPLAN resolution order:
- Use explicit file path when it exists
- Resolve
work_plans/IPLAN-NNN*.md - Resolve
governance/plans/IPLAN-NNN*.md - If multiple matches exist, fail with disambiguation request
- Merge conflict rule:
- Objective/scope conflicts between primary and supplemental sources are blocking and require user clarification.
Execution Modes
Generate/Find Mode
Input:
ITEST-NN(self type): review existingCTR-NN,SYS-NN, orSPEC-NN: generate if missing, else review existingITEST-NN
Audit/Fix Mode
- Run
doc-itest-audit - If fail or below threshold, run
doc-itest-fixer - Re-run audit until pass or max iteration reached
Orchestration Flow
1) Resolve target ITEST document
2) Generate or load ITEST
3) Run doc-itest-audit
4) If needed, run doc-itest-fixer
5) Re-audit
6) Emit status and next-step recommendation
Naming and Contract Rules
- Primary audit output:
ITEST-NN.A_audit_report_vNNN.md - Legacy-compatible review output:
ITEST-NN.R_review_report_vNNN.md - Fix report:
ITEST-NN.F_fix_report_vNNN.md
All reports are stored beside parent ITEST in nested folder.
Document Type Contract (MANDATORY)
When generating ITEST document instances, the autopilot MUST:
-
Read
instance_document_typefrom template:- Source:
ai_dev_ssd_flow/10_TSPEC/ITEST/ITEST-MVP-TEMPLATE.yaml - Field:
metadata.instance_document_type: "itest-document"
- Source:
-
Set
document_typein generated document frontmatter:yamlcustom_fields: document_type: itest-document # NOT "template" artifact_type: ITEST layer: 10 test_type_code: 41 -
Validation: Generated documents MUST have
document_type: itest-document- Templates have
document_type: template - Instances have
document_type: itest-document - Schema validates both values
- Templates have
Error Handling: If instance_document_type is missing from template, default to itest-document.
Canonical References
ai_dev_ssd_flow/10_TSPEC/ITEST/ITEST-MVP-TEMPLATE.mdai_dev_ssd_flow/10_TSPEC/ITEST/ITEST-MVP-TEMPLATE.mdai_dev_ssd_flow/10_TSPEC/ITEST/ITEST_MVP_SCHEMA.yamlai_dev_ssd_flow/10_TSPEC/scripts/validate_itest.py
Coexistence Rules with doc-tspec-autopilot
Use doc-itest-autopilot when ITEST-only scope is required.
Route to doc-tspec-autopilot when cross-subtype orchestration is required.
Fallback:
- If unresolved subtype blockers persist, escalate to
doc-tspec-autopilotwhile preserving report compatibility (.A_preferred,.R_legacy).
Example Invocations
/doc-itest-autopilot ITEST-01
/doc-itest-autopilot CTR-01
/doc-itest-autopilot SYS-01
/doc-itest-autopilot SPEC-01
Quality Gate
Pass when:
- ITEST structure matches 6-section contract,
- required tags are complete,
- contract compliance and interaction checks are present,
- audit status is PASS and score meets configured threshold.
Related Skills
doc-itestdoc-itest-validatordoc-itest-reviewerdoc-itest-fixerdoc-itest-auditdoc-tspec-autopilot(fallback for mixed subtype workflows)
Version History
| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-02-27 | Initial ITEST autopilot skill with generate/find plus audit-fix orchestration, versioned report contracts, and TSPEC coexistence routing |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
doc-spec-reviewer
Comprehensive content review and quality assurance for SPEC documents - validates YAML structure, REQ coverage, interface definitions, and identifies issues requiring manual attention
doc-prd-fixer
Automated fix skill that reads review reports and applies fixes to PRD documents - handles broken links, element IDs, missing files, and iterative improvement
doc-procspec-autopilot
Automated PROCSPEC (Process Specification) generation from REQ - generates specifications for SOPs, runbooks, playbooks, and operational procedures
doc-riskspec-autopilot
Automated RISKSPEC (Risk Specification) generation from REQ - generates specifications for risk matrices, impact assessments, and mitigation plans
doc-ptest-autopilot
Automated PTEST generation and review orchestration for performance category and threshold validation
doc-adr-autopilot
Automated ADR generation pipeline from BRD Architecture Decision Requirements - analyzes topics, generates Context-Decision-Consequences records
Didn't find tool you were looking for?