prompt-chaining
Installation
SKILL.md
Prompt Chaining
Decompose complex tasks into sequential LLM calls for more reliable and auditable results.
Quick Start
from anthropic import Anthropic
client = Anthropic()
def analyze_document(text: str) -> dict:
# Step 1: Extract key information
step1 = client.messages.create(
model="claude-sonnet-4-20250514",
messages=[{"role": "user", "content": f"""Extract structured data from this document:
Document: {text}