← スキル一覧に戻る

musubix-traceability
by nahisaho
⭐ 8🍴 1📅 2026年1月24日
SKILL.md
name: musubix-traceability description: Guide for managing traceability between requirements, designs, code, and tests. Use this when asked to verify traceability, create traceability matrices, or perform impact analysis. license: MIT
MUSUBIX Traceability Skill
This skill guides you through maintaining full traceability across the development lifecycle.
Overview
MUSUBIX enforces Article V - Traceability: Complete bidirectional tracing between:
Requirements (REQ-*) ↔ Design (DES-*) ↔ Tasks (TSK-*) ↔ Code ↔ Tests
Traceability Matrix
Creating a Traceability Matrix
# Traceability Matrix
| 要件ID | 設計ID | タスクID | コード | テスト |
|--------|--------|---------|--------|--------|
| REQ-AUTH-001 | DES-AUTH-001 | TSK-001 | src/auth/auth-service.ts | auth.test.ts |
| REQ-AUTH-002 | DES-AUTH-001 | TSK-002 | src/auth/token-manager.ts | token.test.ts |
CLI Commands
# Generate traceability matrix
npx musubix trace matrix
# Impact analysis for a specific requirement
npx musubix trace impact REQ-AUTH-001
# Validate all traceability links
npx musubix trace validate
Traceability in Code
Adding Traceability Comments
/**
* AuthService - 認証サービス
* @requirement REQ-AUTH-001
* @design DES-AUTH-001
* @task TSK-001
*/
export class AuthService {
/**
* ユーザー認証
* @requirement REQ-AUTH-001
*/
async authenticate(credentials: Credentials): Promise<Result<Token, AuthError>> {
// Implementation
}
}
Test Traceability
/**
* @requirement REQ-AUTH-001
* @design DES-AUTH-001
*/
describe('AuthService', () => {
describe('authenticate', () => {
it('should return token for valid credentials', async () => {
// Test implementation
});
});
});
Impact Analysis
When a requirement changes, identify all affected artifacts:
flowchart LR
REQ[REQ-AUTH-001<br/>変更] --> DES[DES-AUTH-001<br/>設計]
DES --> TSK1[TSK-001<br/>タスク]
DES --> TSK2[TSK-002<br/>タスク]
TSK1 --> CODE1[auth-service.ts]
TSK2 --> CODE2[token-manager.ts]
CODE1 --> TEST1[auth.test.ts]
CODE2 --> TEST2[token.test.ts]
Impact Analysis Steps
- Identify changed requirement (REQ-*)
- Find linked designs (DES-*)
- Find linked tasks (TSK-*)
- Locate affected code files
- Identify tests to update
- Update all artifacts
Traceability Storage
storage/traceability/
├── matrix.json # Full traceability matrix
├── requirements-map.json # REQ -> DES mappings
├── design-map.json # DES -> TSK mappings
└── code-map.json # TSK -> Code mappings
Verification Checklist
Before completing any feature:
- All requirements have linked designs
- All designs have linked tasks
- All tasks have linked code
- All code has linked tests
- Traceability comments in code
- Matrix updated
MCP Tool
Use MCP tool for automated validation:
Tool: sdd_validate_traceability
Description: Validates bidirectional traceability across all artifacts
Related Skills
musubix-sdd-workflow- Full SDD workflowmusubix-ears-validation- Requirements validationmusubix-test-generation- Generate tests with traceability
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です