Skip to content

Composition Patterns

Organize combination patterns and design guidelines for MCP × Skill × Agent.

日本語

About This Document

While MCPs and Skills have value individually, there is value that emerges only through combination. This document defines 4 composition patterns and organizes the design guidelines, trigger contexts, and use cases for each.

For the MCP construction strategy, see mcp-roadmap.md. For the Skill construction strategy, see skill-roadmap.md.

4 Composition Patterns

PatternCompositionCore ConceptDifficulty
MCP + Skill1 MCP + 1 SkillData retrieval + Judgment criteria★★☆
MCPsMultiple MCPsData integration & comparison★★☆
SkillsMultiple SkillsKnowledge layering★☆☆
MCPs + SkillsMultiple MCPs + Multiple SkillsComplete workflow★★★

Pattern 1: MCP + Skill

A composition where "raw data" retrieved by MCP from external sources is evaluated using "judgment criteria" held by Skills. The basic form of hybrid composition.

Design Principle

MCP returns "what is written," and Skill determines "whether it is good or bad." This separation is important.

Concrete Examples

Electronic Signature Act Compliance Check

ElementRole
hourei-mcpRetrieve Electronic Signature Act article text (MCP)
rfcxml-mcpRetrieve RFC 3161 technical requirements (MCP)
E-Signature Act SkillMapping criteria between legal and technical requirements (Skill)

OAuth/JWT Implementation Review

ElementRole
rfcxml-mcpRetrieve RFC 6749 (OAuth 2.0) / RFC 7519 (JWT) specifications
OAuth/JWT SkillToken management best practices, implementation patterns

Design Guidelines

  • Write Skills independent of MCP output: Avoid implementation-dependent descriptions like "look at the article_text field in hourei-mcp's JSON response." Instead, use abstract descriptions like "verify whether the legal text contains the following requirements"
  • Make Skill judgment criteria verifiable: Clearly define the 3 states: "compliant," "non-compliant," and "cannot determine (additional information needed)"

Candidate List

ThemeMCPSkillStatus
Electronic Signature Acthourei-mcp + rfcxml-mcpImplementation guidelines⚡ MCP side already available
Personal Information Protection Acthourei-mcpCompliance checklist⚡ MCP side already available
Electronic Books Preservation Acthourei-mcpStorage requirements check⚡ MCP side already available
GDPRRegulatory text MCP (planned)DPIA checklist🔲 Not started
OWASPVulnerability DB MCP (planned)Security review criteria🔲 Not started
OAuth/JWTrfcxml-mcpImplementation patterns⚡ MCP side already available

Pattern 2: MCPs (Multi-MCP Coordination)

A composition that integrates, compares, and verifies data retrieved from multiple MCPs. There are already proven examples in workflows/patterns.md.

Design Principle

Proven Combinations

CombinationUse CaseTrack Record
deepl-mcp + xcomet-mcpTranslation → Quality evaluation → Re-translation180-page technical document translated in 1 day / $12
rfcxml-mcp + w3c-mcpIntegrated reference of RFC specs + Web API definitionsWebSocket specification verification workflow
rfcxml-mcp + hourei-mcpTechnical specification × Legal text mappingElectronic Signature Act × RFC 3161 correspondence table
pdf-spec-mcp + pdf-reader-mcpPDF specification reference + Actual file verificationPDF/UA conformance verification

Design Guidelines

  • Clarify whether order-dependent or parallelizable: deepl → xcomet is order-dependent; rfcxml + w3c is parallelizable
  • The Agent layer handles data integration logic: MCPs only return raw data. Integration and judgment are the Agent's role

Pattern 3: Skills (Multi-Skill Combination)

A composition that simultaneously triggers multiple Skills according to the context (development phase).

Design Principle

Context-Based Skill Sets

Design Guidelines

  • Define priority order among Skills: In the Code Review set, evaluate in order: SOLID (principles) → Clean Code (style) → Refactoring (improvements)
  • "Primary source of definition" rule: For concepts with overlapping scope (e.g., SRP), designate one Skill as the primary source and the other as reference
  • Entire sets can be meta-Skill-ized: It is possible to define "Code Review Set" itself as a single Skill that internally references the three Skills

Pattern 4: MCPs + Skills (Full Integration)

The most complex but most powerful composition where multiple MCPs and multiple Skills cooperate.

Design Principle

Concrete Examples

Security Audit Workflow

LayerElementRole
MCPrfcxml-mcpRetrieve RFC 6455/6749 specification requirements
MCPw3c-mcpRetrieve WebSocket API definition
SkillOWASP SkillVulnerability judgment criteria
SkillOAuth SkillAuthentication implementation best practices

Specification Compliance Quality Gate

Glossary-Integrated Translation Workflow (Production Example)

deepl-glossary-translation is a production example of Pattern 4. Three MCPs and a Skill collaborate to translate the PDF specification (ISO 32000-2) into Japanese with consistent terminology.

LayerComponentRole
MCPpdf-spec-mcpExtract 71 terms structurally from spec
MCPdeepl-mcpGlossary management & translation
MCPxcomet-mcpQuality score & error detection
Skilldeepl-glossary-translation5-step workflow procedure definition

What this Skill defines is the knowledge of "which MCP to call, in what order, with what parameters" — not the tools themselves. See Skill Showcase and Workflow Pattern 9 for details.

Design Guidelines

  • Agent orchestration is key: The Agent layer determines which MCPs to call first and when to reference which Skills
  • Parallelize MCP calls: Independent MCP calls should be executed in parallel to efficiently use the context window
  • Skill trigger timing: Clarify whether to judge collectively after data retrieval or to judge incrementally

Pattern Selection Guide

Accumulating Results

Practical results from each pattern are recorded in outputs.md. Include the following information.

ItemContent
Pattern UsedWhich of the 4 patterns
ComponentsMCPs and Skills used
InputWhat was targeted
ResultsQuantitative outcomes (time, cost, quality scores, etc.)
LearningsImprovements and suggestions for next time

Released under the MIT License.