Skip to content
Back to skills

Improve Instructions

ASecurity

Change an agent's instructions on the user's WAJ AI Engine and prove the change with its test suite before it goes live - draft a new version, run the suite against the draft, compare with the current version case by case, and apply it only if it is better. Use when the user says an agent answers badly, is too long, misses a tool, breaks a rule, or asks to improve, tune or rewrite a prompt or instructions.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
ai-agentsgo

Works with

  • mcp

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add waj-1/ai-engine --skill improve-instructions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Improve Instructions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Improve Instructions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/waj-1-improve-instructions/badge)](https://www.skillsdirectory.com/skills/waj-1-improve-instructions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: improve-instructions
description: Change an agent's instructions on the user's WAJ AI Engine and prove the change with its test suite before it goes live - draft a new version, run the suite against the draft, compare with the current version case by case, and apply it only if it is better. Use when the user says an agent answers badly, is too long, misses a tool, breaks a rule, or asks to improve, tune or rewrite a prompt or instructions.
---

# Improve an agent's instructions

Work through the `waj-ai-engine` MCP server. Each tool describes its own
parameters; read the description before the first call.

## Steps

1. **Pin down the complaint.** One sentence: what the agent does, and what it
   should do instead. If the user gave an example conversation, find it with
   `search` or `traces` and read it.
2. **Read the current state.** `get_profile` and
   `prompts(action="list_versions", ...)` for the instructions in use.
3. **Make sure there is a test for it.** Find the agent's suite with
   `eval_suites`. If there is none, use the `test-agent` skill first. Add a
   case that fails today because of the complaint; a fix with no failing case
   cannot be proven.
4. **Get a baseline.** `trigger_eval_run` on the current instructions and wait
   for it with `eval_runs`.
5. **Draft the change.** `prompts(action="create_version", ...)`. Change as
   little as you can: a rule added, a rule made specific, a contradiction
   removed. Do not rewrite the whole thing. Creating a version does not put it
   in use.
6. **Test the draft.** `trigger_eval_run` with `prompt_overrides` naming the
   new version number, so the suite runs against the draft while everyone
   else still gets the current one.
7. **Compare case by case.** Which cases the draft fixed, and which it broke.
   A draft that fixes the complaint and breaks something else is not done:
   go back to step 5. Stop after three rounds and report what you learned.
8. **Apply only on a yes.** Show the user the wording change and the two
   results side by side. Put the new version in use only when they agree.

## Rules

- One change per round, so you know what caused the difference.
- If the two runs differ by a single case, run each again with repeats before
  calling it better; small models are not consistent.
- Never edit a test case to make the draft pass.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.