hongbietcode/synthetic-claude/prompting

Claude Code and agent skill by hongbietcode/synthetic-claude

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install hongbietcode/synthetic-claude/prompting

SKILL.md

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

xml
<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):

xml
<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

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hongbietcode/synthetic-claude/prompting/badge)](https://verified-skill.com/skills/hongbietcode/synthetic-claude/prompting)

Something wrong with this skill or its page? Tell us.