fix-steering
Analyze Codex history for interruptions, corrections, and user steering that indicate agent errors.
Skill by ejarmand
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ejarmand-fix-steering
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/fix-steering
What's inside
- Skill name
fix-steering- Description
- Analyze Codex history for interruptions, corrections, and user steering that indicate agent errors. Use when asked to find common steering mistakes, audit a model's behavior across Codex sessions, compare steering patterns for a specified model, or propose prevention changes through new skills or AGENTS.md guidance.
- License
- MIT
- Instructions
- 81 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- openai.yaml · agents/
- subagent-case-cleanup-prompt.md · references/
- subagent-merge-prompt.md · references/
- subagent-review-prompt.md · references/
- collect_steering_cases.py · scripts/
SKILL.md (first lines)
# Fix Steering
## Overview
Use this skill to find agent failure modes from steering evidence in Codex histories. Collect candidate interruption and correction turns, use subagents for cleanup and evidence summarization, then use the current model to group failures by addressable missing context and recommend prevention changes.
## Workflow
1. Determine the target model.
- If the user names a model, use only histories for that model.
- Otherwise default to the current model when it is known from the active runtime or session metadata.
- If the current model cannot be identified from metadata, run the collector with `--model auto`, state that the model filter could not be enforced, and do not compare across models unless the user asks.
2. Collect candidate steering turns.
- Prefer the bundled collector:
```bash
python3 scripts/collect_steering_cases.py --model "<model-or-auto>" --since 30d --limit 80 --format markdown > /tmp/fix-steering-cases.md
```
- Use `--codex-home <path>` when histories are outside `${CODEX_HOME:-$HOME/.codex}`.
- By default, the collector scans user-originated sessions and skips subagent/internal threads. Use `--include-subagents` only when the audit explicitly includes delegated agents.
- Use `--include-unknown-model` only when the user accepts mixing sessions whose metadata does not expose a model.
- Use `--keywords` to add project-specific steering terms, not to replace the built-in interruption patterns.
3. Use subagents to clean candidate cases.
- Use the configured default model rather than hard-coding a model name; inherit the current model when the subagent tool does not support model selection.
- Read and adapt `references/subagent-case-cleanup-prompt.md`.
- Ask subagents to remove obvious false positives, keep raw evidence intact, and split large sets into review batches.
- Do not ask cleanup agents to infer final failure categories.
4. Use subagents to summarize case evidence.
- Use 2-4 subagents for independent batches when enough cases exist.
- Read and adapt `references/subagent-review-prompt.md`.
- Pass raw cleaned case batches, not conclusions.
- Allow subagents to inspect narrow additional context from the original session logs when the collector excerpt is inadequate. They should only fetch lines around the cited case or adjacent turns from the same session, and should report any extra context they used.
5. Use a subagent to merge and dedupe outputs.
- Read and adapt `references/subagent-merge-prompt.md`.
- Ask the merge subagent to deduplicate cases, remove non-errors, normalize evidence IDs, and produce a compact table of inferred failures.
- Keep the merge output focused on evidence and likely missing context. Do not ask it to write the final user-facing report.
6. Categorize with the current model.
- Identify failure modes de novo from the merged evidence instead of forcing a predefined taxonomy.
- Group failures by addressable missing context: the instruction, skill, AGENTS.md rule, tool habit, or verification step that would have prevented the error.
- Use behavioral pattern labels only as supporting detail when they help explain the addressable context.
- Keep one primary group per case and note secondary groups only when they materially change the prevention recommendation.
7. Report actionable results.
- Start with the most common addressable failure groups, including counts and short representative evidence.
- Separate observed evidence from inference.
- Include residual uncertainty: sample size, model-filter caveats, context-expansion caveats, and false-positive risk.
- Recommend prevention mechanisms:
- New skill: use when the failure requires a repeatable domain workflow, collector, checker, or task-specific procedure.
- AGENTS.md change: use when the failure is broad behavioral guidance for every task in a repo or environment.
- Tooling/script change: use when the failure is detectable mechanically.
- Make each recommendation concrete enough to implement, with a proposed short rule or skill name.
## Collector Output
The collector emits candidate cases, not final truth. Treat it as a recall-oriented filter. A case is useful when the user message appears to correct, interrupt, redirect, constrain, or clarify after the assistant had already acted or committed to a path.
For JSON output:
```bash
python3 scripts/collect_steering_cases.py --model "<model-or-auto>" --format json > /tmp/fix-steering-cases.json
```
Use JSON when writing another script or when case IDs need to remain machine-stable across subagent batches.
## Context Expansion
If a case excerpt is too thin to judge, inspect only the minimum original log context needed:
- Use the case's `path`, `line`, and `session_id` to fetch nearby JSONL records.
- Prefer a small window around the cited line before reading more of the session.
- Read adjacent user and assistant turns, tool calls, and tool outputs only when they materially affect whether the steering was caused by an agent error.
- Do not mine unrelated sessions or broad history to support a preferred conclusion.
- Record which log lines or turns were inspected so the final report can distinguish collector evidence from expanded context.From ejarmand/skills, MIT.
More from ejarmand/skills
- 0.592score
cursor-agent
ejarmand
Run Cursor Agent CLI as an independent coding agent for implementation, investigation, planning, or review in a local workspace.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
opencode-agent
ejarmand
Run OpenCode CLI as an independent coding agent across its provider catalog, capture its session, or dispatch its profiled GitHub PR reviewer.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
pr-ping-pong
ejarmand
Drive an issue or pull request through alternating rallies of implementation and cross-provider review until it is review-clean.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
file-pr
ejarmand
Structure GitHub pull requests, issues, and comments.
SkillAFreshness: A★ 1Claude Code +9 - 0.562score
code-review
ejarmand
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding…
SkillAFreshness: A★ 1Claude Code +9 - 0.559score
improve-codebase-architecture
ejarmand
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
codex-agent
ejarmand
Run Codex CLI as an independent coding worker for implementation, investigation, planning, or review, then monitor and verify its result.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
claude-agent
ejarmand
Run Claude Code CLI headless as an independent coding agent for implementation, investigation, planning, or review in a local workspace.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
codebase-design
ejarmand
Shared vocabulary for designing deep modules, and home of the unified code standard (STANDARD.md).
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
html-visualization
ejarmand
Build, revise, and evaluate browser-rendered HTML visualizations for concepts, systems, codebases, architectures, workflows, timelines, comparisons, and other…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
cross-provider-agent
ejarmand
Dispatch a bounded task to a Claude, Codex, Cursor, or OpenCode CLI agent with least authority.
SkillBFreshness: B★ 1Claude Code +9 - 0.542score
implement
ejarmand
Implement a prepared spec or set of tickets.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 20
- Last commit (this folder)
- Jul 31, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ejarmand/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ejarmand
- 0.592score
cursor-agent
ejarmand
Run Cursor Agent CLI as an independent coding agent for implementation, investigation, planning, or review in a local workspace.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
opencode-agent
ejarmand
Run OpenCode CLI as an independent coding agent across its provider catalog, capture its session, or dispatch its profiled GitHub PR reviewer.
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
pr-ping-pong
ejarmand
Drive an issue or pull request through alternating rallies of implementation and cross-provider review until it is review-clean.
SkillAFreshness: A★ 1Claude Code +9 - 0.581score
file-pr
ejarmand
Structure GitHub pull requests, issues, and comments.
SkillAFreshness: A★ 1Claude Code +9 - 0.562score
code-review
ejarmand
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding…
SkillAFreshness: A★ 1Claude Code +9 - 0.559score
improve-codebase-architecture
ejarmand
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
fix-steering skill. Agent Mart. https://agentmart.dev/skills/ejarmand-fix-steering (last updated 2026-10-24)