Subagent Prompt Construction

Construct compact Claude Code subagent prompts with MCP tool integration.

21|2|Updated Oct 8, 2025
One-click install
npx skills add https://github.com/yaleh/meta-cc --skill subagent-prompt-construction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Subagent Prompt Construction
Source: https://github.com/yaleh/meta-cc/tree/main/.claude/skills/subagent-prompt-construction
Command: npx skills add https://github.com/yaleh/meta-cc --skill subagent-prompt-construction

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a compact (<150 lines) structured method to construct Claude Code prompts with agent composition, MCP tool integration, and skill references.

Core Features & Use Cases

  • Orchestrated prompts: Compose multiple agents and MCP tools.
  • Compact prompts: Lambda-contract based, within 150 lines.
  • Reference content: Patterns, integration patterns, symbolic language.
  • Automation: Scripts to extract patterns and validate prompts.

Quick Start

Use the subagent template to craft a phase-planner-executor-like prompt for a simple workflow.

Frequently Asked Questions about Subagent Prompt Construction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I construct compact prompts for multi-agent Claude Code workflows?

Construct compact prompts by using a lambda-contract structure within a 150-line cap, defining explicit dependencies, organizing into three layers (orchestration, tool integration, skill references), and validating with automated tooling to ensure agent composition and MCP tool integration work correctly.

What's the best way to integrate MCP tools and multiple agents into a single prompt?

Use orchestrated prompt patterns that compose multiple agents and MCP tools together. The Skill provides reference patterns and integration templates that show how to structure agent composition, define tool contracts, and layer skill references so agents coordinate without exceeding the 150-line constraint.

How do I validate that my subagent prompts follow the required structure and constraints?

Validation scripts extract patterns from your prompts and check against functional requirements: strict 150-line limit, explicit dependency declarations, three-layer architecture compliance, and lambda contract correctness. Automated tooling flags violations before deployment.

Can I use skill references and symbolic logic in my Claude Code subagent prompts?

Yes. The Skill supports embedding skill references and symbolic logic as validated components within subagent prompts. Reference content and validation patterns ensure symbolic logic integrates correctly into the three-layer architecture without violating the 150-line compact constraint.

What preparation do I need before building a subagent prompt for orchestration scenarios?

Identify your MCP tools, list agent dependencies explicitly, define lambda contracts for each component interaction, and gather reference patterns for your use case (orchestration, analysis, enhancement, or validation). The Skill template guides setup for these scenarios.