Coders In Hoods
  • Courses
  • Roles
  • Blog
  • Setup

Coders In Hoods AI Academy

Every course is free. Sign in to start, and your progress, quiz scores and bookmarks follow you.

AI Academy

  • Courses
  • Paths
  • Setup guides
  • How we teach

Role roadmaps

  • AI Engineer
  • Forward Deployed Engineer
  • Machine Learning Engineer
  • All roles

Coders In Hoods

  • The agency
  • Coaching for teams
  • Blog
  • LinkedIn
  • X (Twitter)

Contact

codersinhoods@gmail.com

© Coders In Hoods · since 2019

Course overview

Prompt and Context Optimisation

Free · sign in to start and track progress

1 · Designing prompts systematically

  • 1Prompting current Claude models
  • 2Choosing few-shot examples
  • 3Eval-driven prompt iteration

2 · Optimising and operating prompts

  • 4Automatic prompt optimisation
  • 5Optimising tools, instructions and skills

    Exercise answers

    • Answer: Build a skill-trigger eval in Claude Code
    • Answer: Transcript-driven tool improvement
  • 6Prompt registries and online tests
  • 7Model migration and regression suites
CapstoneOptimise and ship the questions drafterReference implementation

Module 2 · Optimising and operating prompts · Lesson 5

Optimising tools, instructions and skills

An agent's behaviour depends on far more text than its system prompt - tool names and descriptions, error messages, skill descriptions and bodies. How to evaluate each surface (tool selection, skill triggering, end-to-end tasks) and optimise it by hand, with Claude, and with GEPA- and ACE-style methods.

70 min 1 video 3 exercises 6-question quiz Answers
Setup for the exercises:Install Claude CodePython with uvMCP servers in Claude Code

By the end of this lesson you can

  • Inventory the full text surface of an agent and say which parts are always in context and which load on demand
  • Build tool-selection and skill-triggering evals, and compute precision, recall and F1 for a skill description
  • Rewrite tool and skill descriptions using current guidance, and test the rewrite on held-out queries
  • Decide when to move system-prompt content into skills or tools, and measure the effect on the agent's task eval
  • Explain how GEPA and ACE extend automatic optimisation from single prompts to tools, skills and evolving playbooks

On this page

  • The whole text surface
  • Tool descriptions are prompts
  • Evals for each surface
  • Worked example: a skill description
  • The always-loaded budget
  • Optimising agent instructions: move text to where it belongs
  • Optimising with Claude, and automatically
  • Misconceptions and limits
  • Connections
  • Summary
  • Sources & further reading
  • Quiz

In this lesson

  1. 01The whole text surface
  2. 02Tool descriptions are prompts
  3. 03Evals for each surface
  4. 04Optimising agent instructions: move text to where it belongs
  5. 05Optimising with Claude, and automatically
  6. 06Misconceptions and limits
  7. 07Connections
  8. 08Summary

Sources & further reading

  • Tool Documentation Enables Zero-Shot Tool-Usage with Large Language ModelsPaper · Hsieh et al. · 2023Zero-shot prompts with only tool documentation matched few-shot prompts on existing benchmarks, and clearly beat few-shot prompts without documentation on a new realistic dataset. The research basis for investing in descriptions.
  • EASYTOOL: Enhancing LLM-based Agents with Concise Tool InstructionPaper · Yuan et al. · 2024Rewriting verbose, inconsistent tool documentation into concise, unified instructions improved tool use across agents (NAACL 2025).
  • Agentic Context Engineering: Evolving Contexts for Self-Improving Language ModelsPaper · Zhang et al. · 2025ACE treats an agent's context as an evolving playbook updated by generation, reflection and curation, with incremental updates to avoid "context collapse".
  • GEPA: Reflective Prompt Evolution Can Outperform Reinforcement LearningPaper · Agrawal et al. · 2025The optimiser from the Automatic prompt optimisation lesson; its library now targets any text artefact, including MCP tool descriptions, via adapters.
  • Writing effective tools for agents - with agentsLab research · AnthropicThe primary source for this lesson. Tool-description prompt engineering, evaluation-driven tool improvement with Claude Code, and the use of held-out test sets. Read "Prompt-engineering your tool descriptions" and the evaluation sections.
  • Skill authoring best practicesDocs · AnthropicHow skill descriptions drive selection, why the context window is "a public good", and evaluation-driven skill development.
Free · sign in to start

Sign in to keep reading.

Free, no card. We use your account to save progress, quiz scores, bookmarks and occasionally send updates from our team.

  • 8 more sections
  • 3 hands-on exercises
  • A 6-question quiz
  • Progress, quiz scores and bookmarks