スキル一覧に戻る
danielmiessler

prompting

by danielmiessler

promptingは、other分野における実用的なスキルです。複雑な課題への対応力を強化し、業務効率と成果の質を改善します。

5,521🍴 871📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: Prompting description: Meta-prompting system for dynamic prompt generation using templates, standards, and patterns. USE WHEN meta-prompting, template generation, prompt optimization, or programmatic prompt composition.

Prompting - Meta-Prompting & Template System

Invoke when: meta-prompting, template generation, prompt optimization, programmatic prompt composition, creating dynamic agents, generating structured prompts from data.

Overview

The Prompting skill owns ALL prompt engineering concerns:

  • Standards - Anthropic best practices, Claude 4.x patterns, empirical research
  • Templates - Handlebars-based system for programmatic prompt generation
  • Tools - Template rendering, validation, and composition utilities
  • Patterns - Reusable prompt primitives and structures

Workflow Routing

WorkflowTriggerFile
RenderTemplate"render template", "generate from template"CLI tool
ValidateTemplate"validate template", "check template syntax"CLI tool
ApplyStandards"review prompt", "optimize prompt"Reference Standards.md

Core Components

1. Standards.md

Complete prompt engineering documentation based on:

  • Anthropic's Claude 4.x Best Practices (November 2025)
  • Context engineering principles
  • 1,500+ academic papers on prompt optimization

2. Templates/

Five core primitives for programmatic prompt generation:

PrimitivePurpose
ROSTERAgent/skill definitions from data
VOICEPersonality calibration settings
STRUCTUREMulti-step workflow patterns
BRIEFINGAgent context handoff
GATEValidation checklists

3. Tools/

RenderTemplate.ts - Core rendering engine

bun run $PAI_DIR/skills/Prompting/Tools/RenderTemplate.ts \
  --template Primitives/Briefing.hbs \
  --data path/to/data.yaml \
  --output path/to/output.md

ValidateTemplate.ts - Template syntax checker

bun run $PAI_DIR/skills/Prompting/Tools/ValidateTemplate.ts \
  --template Primitives/Briefing.hbs

Examples

Example 1: Generate agent roster

User: "Generate a roster from my agents.yaml"
-> Uses RenderTemplate with Roster.hbs
-> Outputs formatted agent definitions

Example 2: Create briefing for research agent

User: "Brief the research agent on this task"
-> Uses RenderTemplate with Briefing.hbs
-> Generates complete agent context handoff

Example 3: Validate template syntax

User: "Check my new template for errors"
-> Uses ValidateTemplate
-> Reports syntax issues, missing variables

Best Practices

  1. Separation of Concerns - Templates for structure, YAML for content
  2. Keep Templates Simple - Business logic in TypeScript, not templates
  3. DRY Principle - Extract repeated patterns into partials
  4. Validate Before Rendering - Check all required variables exist

References

  • Standards.md - Complete prompt engineering guide
  • Templates/README.md - Template system overview
  • Tools/RenderTemplate.ts - Implementation details

スコア

総合スコア

80/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 1000以上

+15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

レビュー

💬

レビュー機能は近日公開予定です