| name | improve-agent |
| description | Create the MAPS Improve phase artifact for an agent or multi-agent system. Use when turning eval results, traces, failures, incidents, user feedback, and observations into prioritized prompt, tool, memory, policy, design, and eval improvements. |
Improve Agent
Versioning
Current version: 0.1.0.
Follow semantic versioning for this skill:
- Patch: wording, examples, references, or small workflow clarifications.
- Minor: new outputs, new required steps, new helper behavior, or expanded workflow capability.
- Major: renamed outputs, changed artifact contracts, removed behavior, or incompatible workflow changes.
When changing this skill, update Current version and add a Changelog entry with the date, version, and short summary of behavior changed.
Changelog
- 2026-06-19 - v0.1.0 - Established the initial MAPS skill version baseline and changelog tracking.
Overview
Use this skill to turn evidence into the next iteration of an agent system.
Project foundation updates
At the start of every project run, look for project-foundation.md. If it exists, read Persistent Memory Contract and use its configured notes, sources, memory, RAG, and sync rules as the project defaults. If .maps/foundation-preferences.json exists, use it as the structured preference source for automation.
When this skill creates durable knowledge, write it through the shared MAPS memory helper. The helper gives this skill its own named note under the configured notes root, mirrors that note into the configured RAG location when one exists, appends MAPS Skill Run Log, and records a RAG reindex manifest.
At the end of the run, call the helper after creating the primary output artifact:
python "$CODEX_HOME/skills/foundation/scripts/maps_memory.py" complete-run --project . --skill /improve-agent --phase A8 --output "<primary artifact path>" --summary-file "<primary artifact path>" --memory-updates "<notes, sources, memory, or RAG updates>"
If the helper is unavailable, manually append the timestamp, skill, phase, output path, memory updates, and short note to project-foundation.md, then update this skill's named note in <notesRoot>/maps-runs/.
Required interview
Before writing the improvement backlog, ask for any missing answers. Do not invent root causes or prioritize changes without evidence.
Ask exactly one question at a time. Do not present the user with a multi-question form, checklist, or table to fill out. Use the questions below as the internal interview sequence: ask the next most important missing question, wait for the answer, then continue.
Ask:
- What evidence is driving this improvement pass: evals, traces, incidents, user feedback, operator notes, costs, latency, or drift?
- Which agent, role, workflow, or system is affected?
- What happened, when, and who observed it?
- What user or business impact matters most?
- Which failures are symptoms, and which root causes are suspected?
- Should fixes belong in prompt, tool, memory, RAG, policy, design, eval, deployment, or training data?
- What changes are urgent, risky, cheap, or high-leverage?
- What regression tests or evals should be added before changing behavior?
- Who approves the improvement plan?
- Which earlier MAPS artifacts need to be updated?
If evidence is thin, ask whether to create an observation plan, gather more traces, or mark the item as an assumption.
Workflow
- Gather eval failures, traces, incidents, and user feedback.
- Cluster problems by root cause.
- Decide whether each fix belongs in prompts, tools, memory, policy, design, or evals.
- Prioritize by impact, effort, and risk.
- Add or update regression coverage.
- Record the next experiment.
- Feed lessons back into earlier MAPS phases.
Completion report
When the skill is complete, tell the user explicitly. Do not end with only files changed or raw output.
Report:
- Completion status: complete, blocked, or needs more answers.
- Outcome: the concrete artifact, decision, scaffold, implementation, or plan produced.
- Key decisions or changes made.
- Memory update: whether the shared MAPS memory helper ran, what note/run log was updated, and what RAG or notes locations need syncing.
- Next skill: rerun the affected earlier skill:
/design-agent, /build-agent, /equip-agent, /evaluate-agent, or /deploy-agent, depending on what changed.
If the skill is blocked, say what answer, artifact, access, approval, or tool is needed before the next skill can run.
Output
Return:
- Improvement backlog
- Root-cause notes
- Proposed changes
- Eval coverage updates
- Next experiment
Use templates/improvement-backlog.md from the MAPS repo when working inside this repository.
Done Criteria
- Improvements are evidence-backed.
- Regression coverage is considered.
- Priorities are clear.
- Earlier phase docs are updated when needed.