| name | example-call-chain |
| description | Call-chain tracing skill template. Guides creation of project-specific call-chain skills for tracing API data flow, verifying type matching, and checking endpoint correctness. |
| model_tier | L1 |
| skill_tier | functional |
| version | 1.0.0 |
| status | active |
็ตไธๅ่ๅจๅ
จ่บซใ โโ้พ่ช็ใ่ชๆฅๅพ็งๅถๆๆ่งฆใ
ๆนไธ่กไปฃ็ ไนๅๅ
็ฅ้่ฐๅจ่ฐ็จๅฎใ่ฟไธๆฏ้กพ่๏ผๆฏๅธธ่ฏใ
Call-Chain Tracing Skill Template
Positioning: Functional tier skill โ provides structured call-chain tracing methodology for verifying data flow correctness. Orchestrated by delegation (planning) and skill-builder-guide (meta).
Trigger Conditions
- Tracing API call chains, data flow, request lifecycle
- "How does data flow from X to Y"
- "What calls what in this endpoint"
- Verifying type matching across layers
- Creating project-specific call-chain skills
Related Skills
1. Tracing Method
Step 1: Identify entry point
โโ API endpoint / event handler / scheduled task / message consumer
โโ Record: input types, validation rules
Step 2: Trace through layers
โโ Entry layer โ Business layer โ Data layer โ External calls
โโ Record at each layer: method name, parameter types, return type
Step 3: Verify final call
โโ SQL query / external API call / message publish / cache write
โโ Check: parameters correctly assembled, types match
Step 4: Error path check
โโ Exceptions caught at each layer?
โโ Error response includes correct status code?
2. Call-Chain Template
## {Endpoint Name} Call Chain
{Caller}
โ {HTTP method} {path}
โผ
{Controller}.{method}({param}: {type})
โ โ calls {Service}.{method}({param}: {type})
โผ
{Service}.{method}({param}: {type})
โ โ business logic: {summary}
โ โ calls {Repository}.{method}({query})
โผ
{Repository}.{method}({query})
โ โ {SQL / external API / message}
โผ
{Database / External Service}
3. Type Matching Checklist
| # | Layer Transition | Check | Status |
|---|
| 1 | Request โ Controller | Param types match DTO | โ
/โ |
| 2 | Controller โ Service | Service param = DTO or derived type | โ
/โ |
| 3 | Service โ Repository | Query params match Prisma/SQL types | โ
/โ |
| 4 | Service โ External | API contract types match | โ
/โ |
| 5 | Service โ Response | Return type matches API schema | โ
/โ |
4. Customization
When generating a project-specific call-chain skill, map the project's actual layer names to the tracing template. Include project-specific external API call signatures, error handling patterns, and one worked example of a real endpoint's full chain.
Architecture-specific tracing patterns (CLI, event-driven, frontend, layered backend): references/tracing-patterns.md.
Handoff
After completing this skill, recommend the next skill based on output characteristics:
| Condition | Recommend |
|---|
| New change requirement found | {project}-change-model |
5. Model Tier
L1 โ Sonnet / functional tier: Requires code-level tracing and type-compatibility reasoning. File lookups delegated to L0 โ Haiku.