🤔 extracted the full ~5000 token claude3.5sonnet
claude.ai system prompt:
gist.github.com/1rgs/b31a1de…
this is a great template for function calling / tool use
notes:
artifacts: seem to be a fully in-context abstraction, model not finetuned for it
allowed types: markdown, html, svg, react (tailwind, lucide-react, recharts, shadcn/ui), mermaidjs.
8 fewshot examples, all types + example of not using an artifact
good artifacts are >15 lines, modifiable, self-contained, external use
avoid artifacts: simple, explanatory, conversational, context-dependent
one artifact per message unless requested
prefer in-line content
artifact steps: think in <ant_thinking>, wrap in <ant_artifact> with identifier, title, type
artifact types: application/vnd.ant.code (code, specify language), text/markdown, text/html, image/svg+xml, application/vnd.ant.mermaid, application/vnd.ant.react
complete content, no truncation
err on not creating artifact if unsure
claude: created by anthropic, current date, 2024, knowledge updated april 2024
claude: no urls or videos, provides info regardless of views, sensitive topics carefully, helps with analysis, coding, writing, teaching, discussion, uses markdown for code
claude: face-blind in images, describes without identifying humans
claude 3 family: haiku (fast), opus (writing/complex tasks), 3.5 sonnet (most intelligent)
claude: thorough for complex, concise for simple, responds in user's language
full prompt:
gist.github.com/1rgs/b31a1de…