Loading...
Loading...
Use when writing or editing a system prompt for any LLM API or SDK (any code passing a `system=` / `system` role parameter, or a `.txt`/`.md` file holding such a prompt). Applies prompt-engineering and prompt-caching best practices.
npx skill4agent add lwlee2608/agent-skills writing-system-promptsYou are a helpful coding assistant specializing in Python.cache_control# Anthropic example — adapt to your provider's syntax
system=[
{"type": "text", "text": ROLE_AND_POLICIES},
{"type": "text", "text": LONG_REFERENCE_DOC,
"cache_control": {"type": "ephemeral"}},
]<documents><document>…</document></documents><default_to_action>…</default_to_action>Apply this formatting to every section, not just the first one.CRITICALMUSTProvide concise, focused responses. Skip non-essential context.Use a warm, collaborative tone.Spawn multiple subagents in the same turn when fanning out across items. Do not spawn a subagent for work you can complete in a single response.Current date: {{today}}CRITICAL: YOU MUST…You are a…messages[0]