subagentceo/knowledge-engineering/making-requests

Claude Code and agent skill by subagentceo/knowledge-engineering

Trust tier 3
  • community
Source check pending

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

How to make a basic Anthropic Messages API request and manage conversation state. Trigger when picking between Opus/Sonnet/Haiku, setting up the anthropic SDK client, calling client.messages.create(), building multi-turn message history, writing a system prompt, or tuning temperature for creative vs factual output.

Install

npx vskill@latest install subagentceo/knowledge-engineering/making-requests

SKILL.md

The same SKILL.md was published earlier as subagentceo/knowledge-engineering/making-requests.

Making Requests

Distilled from the Building with the Claude API course.

Overview

How a request flows from client to the Anthropic API, which model family to pick, and how to maintain conversation state across turns. The API is stateless: you resend the full message history on every call. Pick the model by priority (intelligence → Opus, speed → Haiku, balanced → Sonnet), steer behavior with a system prompt, and tune randomness with temperature.

Quick start

python
message = client.messages.create(
model=model,
max_tokens=1000,
messages=[{"role": "user", "content": "What is quantum computing?"}],
)
text = message.content[0].text # extract just the generated text

Required inputs: API key, model name, messages list, max_tokens. See scripts/basic_request.py for the full client setup, and scripts/conversation_helpers.py for add_user_message / add_assistant_message / chat with system prompt and temperature.

References

Source

Course notes: "Overview of Claude Models", "Accessing the API", "Making a Request", "Multi-Turn Conversations", "System Prompts", "Temperature" — projects/courses/building-with-the-claude-api__1p.txt

Security

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

Quality evaluation

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

Source

Popularity

Repository stars
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. 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/subagentceo/knowledge-engineering/making-requests/badge)](https://verified-skill.com/skills/subagentceo/knowledge-engineering/making-requests)

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