用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tractorjuice/arckit-codex --skill arckit-traceability命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | arckit-traceability |
| description | Generate requirements traceability matrix from requirements to design to tests |
You are helping an enterprise architect create a comprehensive traceability matrix that traces requirements through design to implementation and testing.
$ARGUMENTS
Note: Before generating, scan
projects/for existing project directories. For each project, list allARC-*.mdartifacts, checkexternal/for reference documents, and check000-global/for cross-project policies. If no external docs exist but they would improve output, ask the user.
Identify the project: The user should specify a project name or number
Artifacts pre-extracted by hook:
Note: The Traceability Pre-processor Hook has already:
- Extracted all requirement IDs with categories, priorities, and descriptions from REQ files
- Scanned all ADRs, vendor HLD/DLD files, and HLDR/DLDR reviews for requirement ID references
- Computed coverage analysis: covered vs orphan requirements, coverage by category and priority
- Detected existing TRAC version for version numbering
Use the hook's pre-extracted data directly. Do NOT re-read REQ, ADR, or review files for requirement IDs.
You may still need to Read vendor HLD/DLD files for component/module names (the hook extracted req ID references but not detailed component descriptions).
If the hook data is not present, fall back to reading all artifacts manually.
Read the template (with user override support):
.arckit/templates-custom/traceability-matrix-template.md exists in the project root.arckit/templates/traceability-matrix-template.md (default).arckit/templates/_partials/RENDERING.md and resolve the <!-- DOC-CONTROL-HEADER --> marker in the template before writing. Do not hand-write the Document Control table: the partial RENDERING.md selects is the only source of the 14 standard fields and of the classification ladder.Tip: Users can customize templates with
$arckit-customize traceability
Read external documents (if needed):
projects/000-global/external/ if relevant.arckit/references/citation-instructions.md. Place inline citation markers (e.g., [PP-C1]) next to findings informed by source documents and populate the "External References" section in the template.Build the traceability matrix:
For each requirement (BR, FR, NFR, INT, DR) from the hook's requirements table:
Step 1: Requirement Details (pre-extracted by hook)
Step 2: Design Mapping
Step 3: Implementation Mapping
Step 4: Test Coverage
Step 5: Status
For each test case:
Use the hook's pre-computed data directly:
Analyze coverage metrics:
Use the hook's COVERAGE SUMMARY table directly — it already provides:
Do NOT recalculate these metrics. Enrich them with additional context:
Apply these thresholds when flagging gaps:
Risk Assessment:
Flag high-risk gaps:
Generate Traceability Report:
Create comprehensive report with:
Executive Summary:
Detailed Traceability Matrix: Large table with columns: | Req ID | Requirement | Priority | HLD Component | DLD Module | Implementation | Tests | Status |
Gap Analysis:
Coverage Metrics:
Action Items:
Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks plus the TRAC per-type checks pass. Fix any failures before proceeding.
Write output:
projects/{project-dir}/ARC-{PROJECT_ID}-TRAC-v${VERSION}.md - Full traceability matrix including coverage metrics and gap analysis (all in one document)CRITICAL - Show Summary Only: After writing the file, show ONLY a brief summary with coverage metrics and key gaps. Do NOT output the full traceability matrix content in your response, as matrices can be 800+ lines with detailed requirement-to-test mappings.
CRITICAL - Auto-Populate Document Control Fields:
Before completing the document, populate ALL document control fields in the header:
The hook provides the existing TRAC version and a suggested next version. Use these directly:
ARC-{PROJECT_ID}-TRAC-v{VERSION} (e.g., ARC-001-TRAC-v1.0)Auto-populated fields (populate these automatically):
[PROJECT_ID] → Extract from project path (e.g., "001" from "projects/001-project-name")[VERSION] → Determined version from Step 0[DATE] / [YYYY-MM-DD] → Current date in YYYY-MM-DD format[DOCUMENT_TYPE_NAME] → "Requirements Traceability Matrix"ARC-[PROJECT_ID]-TRAC-v[VERSION] → Construct using format from Step 1[COMMAND] → "arckit.traceability"{ARCKIT_VERSION} → Use the ArcKit Version from the hook's Project section (do NOT search for VERSION files)User-provided fields (extract from project metadata or user input):
[PROJECT_NAME] → Full project name from project metadata or user input[OWNER_NAME_AND_ROLE] → Document owner (prompt user if not in metadata)_partials/RENDERING.md fixes the ladder from the artefact's own regime; ${default_classification} applies only where that regime falls through to user config.Calculated fields:
[YYYY-MM-DD] for Next Review Date → Current date + 30 days (requirements, research, risks)[YYYY-MM-DD] for Next Review Date → Phase gate dates (Alpha/Beta/Live for compliance docs)Pending fields (leave as [PENDING] until manually updated):
[REVIEWER_NAME] → [PENDING][APPROVER_NAME] → [PENDING][DISTRIBUTION_LIST] → Default to "Project Team, Architecture Team" or [PENDING]| 1.0 | {DATE} | ArcKit AI | Initial creation from `$arckit-traceability` command | [PENDING] | [PENDING] |
The footer should be populated with:
**Generated by**: ArcKit `$arckit-traceability` command
**Generated on**: {DATE} {TIME} GMT
**ArcKit Version**: {ARCKIT_VERSION}
**Project**: {PROJECT_NAME} (Project {PROJECT_ID})
**AI Model**: [Use actual model name, e.g., "Claude Sonnet 5 (session default)"]
**Generation Context**: [Brief note about source documents used]
## Document Control
<!-- DOC-CONTROL-HEADER -->
<!-- Resolved at command-execution time per _partials/RENDERING.md. -->
## Revision History
| Version | Date | Author | Changes | Approved By | Approval Date |
|---------|------|--------|---------|-------------|---------------|
| 1.0 | 2025-10-29 | ArcKit AI | Initial creation from `$arckit-traceability` command | [PENDING] | [PENDING] |
User: $arckit-traceability Generate traceability matrix for payment gateway project
You should:
projects/001-payment-gateway/ARC-001-TRAC-v1.0.md< or > (e.g., < 3 seconds, > 99.9% uptime) to prevent markdown renderers from interpreting them as HTML tags or emoji