MiniMax-AI/mcode-stack / stacks/ronny/skills/trajectory-review
trajectory-review
UnverifiedReview how an agent reached its result, not only whether the result passed, covering tools called, detours, unverified assumptions and wasted round trips, and turn the findings into concrete harness or prompt fixes. Use after an agent task finishes or fails, when an eval task flips, or when asked to look at the process behind a result.
Trajectory Review
A passing result can hide a fragile process: an assumption that happened to hold, a lucky retry, ten round trips where two would do. A failing result usually has its cause several steps before the error. Review the path, not only the end point.
1. Get the real trajectory
Use the actual record of the run: the session transcript, tool-call log, or eval trace. Note the model, settings and repository state. Do not reconstruct the run from memory.
2. Walk it step by step
Build a compact timeline. For each step: what the agent intended, which tool it called with which key arguments, what came back, and what it decided next.
While walking, mark:
- Unverified assumptions. The agent states or acts on something it never checked ("callers already validate this", "the test passes").
- Detours. Loops, repeated searches with changing keywords, re-reading the same file, retries without a change in approach.
- Wrong tool or wrong arguments. Including tools it could not find.
- Context waste. Large outputs pulled in and never used, polling instead of waiting for a notification.
- Missed signals. Errors, warnings or test failures it saw and ignored.
- Instruction drift. Earlier constraints it later broke, often after compaction.
3. Find the first point where it went wrong
For a failure, find the earliest step after which success became unlikely. For a pass, find the riskiest step: where a slightly different input would have broken it.
4. Turn findings into fixes
Map each finding to the cheapest durable fix:
| Finding | Typical fix |
|---|---|
| Assumption never checked | A verification step in a skill or project rules |
| Could not find or picked the wrong tool | Tool description, naming or grouping (see tool-budget-audit) |
| Lost an earlier constraint | Write it into a file the agent reloads (see long-session-check) |
| Polling or waiting idle | Background tasks with notification (see long-command-check) |
| Repeated per-turn overhead | Context injection review (see context-tax-audit) |
| Model limitation | Record it; re-check after the next model upgrade |
Keep one-off quirks out of project-wide rules. Only propose a rule for something that has happened more than once or caused real damage.
5. Confirm
A fix is a harness change, so check it with harness-experiment: rerun the
same task several times and compare the trajectory, not only the outcome.
Output
The compact timeline with marked steps, the first wrong (or riskiest) step, and a short list of proposed fixes, each tied to a specific step.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 463k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 463k | Updated | Claude CodeCodex | Verified | Install |
| discernment-nudgeanthropics/skillsAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals, or emails, estimates or projections, analysis or interpretation of data, factual claims they may rely on, or a multi-step argument — invoke this skill BEFORE finalizing your reply and then, if it applies, append 2-3 short follow-up questions, each tied to something specific in what you just produced, that help the user check key facts, probe the reasoning or assumptions, and notice missing context. Do this at most once per conversation. Skip it when the user asked a trivial how-to or simple lookup, wants a purely educational explanation, asked you only to format, convert, or assemble a file from content they provided, is writing code they will run, is doing creative writing or casual chat, or already asked you to double-check, cite, or review — the skill file explains these boundaries and the exact output format. | Stars: 195k | Updated | Claude CodeCodex | Verified | Install |
| internal-commsanthropics/skillsA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.). | Stars: 195k | Updated | Claude CodeCodex | Verified | Install |