Back to list
hongbietcode

prompting

by hongbietcode

Extensible Claude Code plugin with multi-agent debate capabilities.

2🍴 0📅 Jan 18, 2026

SKILL.md


name: prompting description: "PROACTIVE: This skill SHOULD BE USED AUTOMATICALLY when writing prompts, system prompts, crafting instructions for LLMs, or optimizing AI interactions. Triggers on: write prompt, system prompt, prompt engineering, optimize prompt, better prompt, prompt template, instruction design, context engineering, SKILL.md description, agent instructions. Use for CRAFTING LLM PROMPTS. Model-agnostic best practices for coding agents."

Prompting - Model-Agnostic Best Practices (Late 2025)

Optimal prompt standards for coding agents. Applies to all models (Claude, GPT, Gemini, Grok).

Paradigm: Context Engineering > Prompt Engineering. Focus on designing information systems, not "perfect wording". API-level configs (effort, reasoning_effort, thinking_level) are separate from prompt text.

Quick Reference (Use First)

Before writing/reviewing any prompt, verify:

[ ] Structure: Clear XML/Markdown sections (context → task → constraints → output)
[ ] Order: Long context BEFORE query (+30% quality)
[ ] Task: ONE atomic, explicit action
[ ] Output: Format defined (JSON schema, structure)
[ ] Positive: "Do X" instead of "Don't Y"
[ ] Reasoning: Zero-shot for reasoning models (no manual CoT)
[ ] Examples: Few-shot ONLY for format, not logic
[ ] Caching: Static content first, dynamic last
[ ] Simplicity: Start simple, add complexity only if needed (Stanford 8-word)

Decision Flow

Task Type?
│
├─ Simple (1 step) ────────────► Direct instruction, no CoT
│
├─ Complex reasoning
│   ├─ Reasoning model (o3/o4/GPT-5/Claude thinking)
│   │   └─► Zero-shot + explicit goal only
│   └─ Standard model
│       └─► Structured prompt + optional CoT
│
├─ Code generation ────────────► Define: language, framework, style
│                                Provide: context files, dependencies
│                                Specify: output format, tests
│
└─ Multi-step workflow ────────► Break into atomic tasks
                                 Use Orchestrator-Worker pattern
                                 Include verification steps

Core Structure Template

<context>
  [Background, project details - place LONG documents here]
</context>
<task>
  [ONE specific action required]
</task>
<constraints>
  [Boundaries, limitations]
</constraints>
<output_format>
  [Exact format: JSON schema, markdown structure]
</output_format>

For system prompts (coding agents):

<role>[Expert domain]</role>
<capabilities>[Tools, what agent CAN do]</capabilities>
<constraints>[Security rules, boundaries]</constraints>
<workflow>[Step-by-step process]</workflow>
<output_standards>[Code style, testing requirements]</output_standards>

Key Principles

PrincipleDo ThisAvoid This
StructureXML/Markdown sectionsWall of text
ContextLong docs BEFORE queryQuery before context (-30%)
Specificity"Dashboard with filtering, export, real-time""Create dashboard"
Instructions"Return only JSON""Don't add explanations"
Reasoning modelsZero-shot, explicit goalManual "think step-by-step"
ExamplesFew-shot for FORMAT onlyFew-shot for logic (hurts reasoning)
CachingStatic first, dynamic lastDynamic content first

Technique Selection

TechniqueUse WhenAvoid When
Extended ThinkingComplex math, multi-step planningPattern recognition, simple tasks (can HURT -36%)
Atom of ThoughtsParallelizable problemsCreative writing
Tree of ThoughtsMultiple valid pathsSimple queries
ReActTool use, external dataPure reasoning
Self-ConsistencyHigh-stakes decisionsSpeed-critical
Role ReversalNeed +40% accuracyQuick drafts

See details: references/techniques.md

Context Stack (Priority Order)

  1. System Instructions (role, rules) - cached
  2. Long-Term Memory (preferences)
  3. Retrieved Documents (RAG)
  4. Tool Definitions - cached
  5. Conversation History
  6. Current Task - last for recency

Security

  • Separate system/user content with XML tags
  • Validate user inputs before embedding
  • Validate OUTPUT, not reasoning (CoT hijackable 94-99%)
  • Mark sensitive context with explicit boundaries

References

Load as needed for detailed guidance:

  • references/techniques.md - AoT, ToT, ReAct, Self-Consistency, Role Reversal, Extended Thinking
  • references/anti-patterns.md - Full list of what to avoid with explanations
  • references/agentic-patterns.md - Orchestrator-Worker, Reflexion, Plan-Execute, Tool Orchestration
  • references/memory-patterns.md - CoALA Framework: Procedural, Semantic, Episodic memory
  • references/meta-prompting.md - LLM self-optimization workflow

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

+5
タグ

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

0/5

Reviews

💬

Reviews coming soon