Agent skill · AI & Agents

subagent-prompt-construction

Systematic methodology for constructing compact (<150 lines), expressive, Claude Code-integrated subagent prompts using lambda contracts and symbolic logic. Use when creating new specialized subagents for Claude Code with agent composition, MCP tool integration, or skill references. Validated with phase-planner-executor (V_instance=0.895).

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill yaleh-meta-cc-claude-skills-subagent-prompt-construction --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 2 KB
Bundled scripts: none
Version: 1.0
Path: skills/agent/yaleh-meta-cc-claude-skills-subagent-prompt-construction/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

λ(use_case, complexity) → subagent_prompt | ∧ require(need_orchestration(use_case) ∨ need_mcp_integration(use_case)) ∧ complexity ∈ {simple, moderate, complex} ∧ line_target = {simple: 30-60, moderate: 60-120, complex: 120-150} ∧ template = read(templates/subagent-template.md) ∧ patterns = read(reference/patterns.md) ∧ integration = read(reference/integration-patterns.md) ∧ apply(template, use_case, patterns, integration) → draft ∧ validate(|draft| ≤ 150 ∧ integration_score ≥ 0.50 ∧ clarity ≥ 0.80) ∧ examples/{phase-planner-executor.md} demonstrates orchestration ∧ reference/case-studies/* provides detailed analysis ∧ scripts/ provide validation and metrics automation ∧ output = {prompt: draft, metrics: validation_report} **Artifacts**: - **templates/**: Reusable subagent template (lambda contract structure) - **examples/**: Compact validated examples (≤150 lines each) - **reference/patterns.md**: Core patterns (orchestration, analysis, enhancement) - **reference/integration-patterns.md**: Claude Code feature integration (agents, MCP, skills) - **reference/symbolic-language.md**: Formal syntax reference (logic operators, quantifiers) - **reference/case-studies/**: Detailed analysis

What's inside
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the subagent-prompt-construction skill do?

Systematic methodology for constructing compact (<150 lines), expressive, Claude Code-integrated subagent prompts using lambda contracts and symbolic logic. Use when creating new specialized subagents for Claude Code with agent composition, MCP tool integration, or skill references. Validated with phase-planner-executor (V_instance=0.895).

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill yaleh-meta-cc-claude-skills-subagent-prompt-construction --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going