name: amit-operator-commands description: Route Amit's heavier operator phrases into safe Codex workflows. Use for worker/status control such as "check td", "check cc", "check workers", "go td", "approved", "ss status", "did ss call?", "clear context", "debug tight", "fast work", "commit all", "push all", "merge", "cleanup", "TTL cleanup", and similar repo/AWS operator command shorthands. Do not trigger this skill only for simple global shortcuts like "next", "save context", or "save handoff" unless the repo lacks those global rules.
Amit Operator Commands
Use this skill when Amit gives a short command phrase that implies a heavier workflow rather than a single shell command.
Do not load this skill only to handle these global shortcuts when the active instructions already define them:
nextsave contextsave handoffask me
Those should usually be handled from current repo truth with minimal context. Use this skill when the shortcut expands into worker orchestration, cleanup, git mutation, supervisor status, or a clean restart packet.
Core rules
- Keep output short, practical, and current-state only.
- Prefer repo truth over chat memory:
AGENTS.md,CONTEXT.md, optionalHANDOFF.md, branch/MR/PR text, and current goal files when available. - For old evidence or broad context questions, read
INDEX.md/MANIFEST.tsvfirst when present, then useqmd-agent-searchor targetedrgbefore raw evidence scans. - Preserve local-only context. Do not stage secrets,
AGENTS.override.md, raw evidence bundles,.codex-local/, or unrelated local files. - Save durable task evidence under
~/.AGENTS-temp/<repo>/. - Before deleting or archiving context/rule files, create a backup under
~/back/. - For AWS cleanup, start read-only and load
~/.codex/AWS.mdbefore inventory or deletion.
Shared context contract
AGENTS.md= stable repo rules.CONTEXT.md= current truth and restart state.HANDOFF.md= explicit transfer snapshot only when Amit asks for handoff.- Worker goal files = execution instructions, not repo truth.
- Worker
RESULT.mdfiles and.donemarkers = evidence and completion signals. PLANS.mdandSTATUS.mdare retired unless the repo explicitly says otherwise./compactshould preserve this same model; it must not createHANDOFF.mdor revive old plan/status files by itself.
Command router
Hot global shortcuts
These commands should stay cheap. If global AGENTS.md already defines them,
follow the global rule and avoid loading more old evidence than needed.
ask me:- stop before implementation.
- restate the request.
- propose the smallest safe plan.
- name files/systems to touch.
- list no-go gates and validation.
- ask one exact approval question.
- wait for Amit's
go.
next,next?,what next:- inspect current repo truth and latest worker markers.
- return one recommended next action plus up to two options.
- do not run skills only to invent more work.
save context:- update only
CONTEXT.md. - do not create
HANDOFF.mdor dated snapshots.
- update only
save handoff:- update
CONTEXT.mdandHANDOFF.md. - keep it compact and decision-grade.
- update
Short worker commands
Use this section before the broader command handlers when Amit gives a short worker phrase.
Source order for worker decisions:
- Current repo
CONTEXT.md - Latest
~/.AGENTS-temp/work/inbox/<repo>.done - Latest worker
RESULT.md - Active tmux pane only to confirm live state or stale markers
- Prepared goal files under
~/.AGENTS-temp/<repo>/goals/ - Branch/MR/issue state when repo work is involved
HANDOFF.mdonly for restart/resume or staleCONTEXT.md
Do not use broad chat history as the source of truth.
Alias routing:
check <lane>,status <lane>,<lane>?,update <lane>: status-only check; no edits, no new goals, no AWS mutation.check cc,check aa,check td,check tdm,check pat,check workers,are all workers active?: status-only check; inspect markers/results first, then tmux only to confirm stale or live state.ss status,did ss call?,is ss working?: inspect supervisor last-run files and latest summary before assuming a wake failure. Report timestamp, decision, target state, and whether a wake was expected.next?,next,what next: inspect current truth and recommend one next action plus up to two options.prep <lane>,prepare <lane>,goal <lane>,$prepare-worker-goal <lane>: useprepare-worker-goal; write or refresh a goal, do not run it.go <lane>,run <lane>,continue <lane>,give goal <lane>,$run-worker-goal <lane>: userun-worker-goal; run only an approved prepared goal.approved: run only when the target prepared goal is unambiguous. If multiple current goals or lanes are plausible, stop and ask for the lane/path.approved for all,take any approval from me,approved - upgrade SPEC: treat as approval only inside already-known specs/goals. Do not invent new mutation scope. If multiple prepared goals are plausible, ask for the target lane or goal path.approve and run <lane>: run only when the approval target, no-go gates, and prepared goal are clear.
Preferred output shape for these short commands:
StateRecommendedNeeds approvalNext command
Worker-state routing:
- If worker is
Working, do not prepare or submit another goal unless Amit explicitly asks for side work. Report current result path and next check. - If latest marker is
blocked, summarize the blocker and recommend eitherprepare-worker-goalor the exact approval/Ops ask needed. - If latest marker is
doneandsafe_to_continue=yes, usenext_actionto recommend the next goal or wait state. - If marker/result is stale, inspect tmux once and say it is stale.
- If there is no active worker and no prepared goal, recommend
prepare-worker-goal.
Examples:
check td-> status-only TD marker/result/tmux check.next?-> one recommended next action and up to two options.prep td-> prepare a TD goal, do not run.go td-> run an approved TD goal only if unambiguous.approved-> run the latest prepared goal only if exactly one target is clear.
clear context
Goal: prepare a genuinely clean restart packet so the next session can reload a small file set instead of inheriting a large compacted chat.
Use when Amit says:
clear contextclean startreset contextstart team context
Rules:
- Refresh
CONTEXT.mdandHANDOFF.mdwhen those files exist in the repo. - Write one compact reset packet under
~/.AGENTS-temp/<repo>/. - Include only:
- read-first order
- current truth
- active workers and marker paths
- blockers and approvals already granted
- next safe command
- what not to reload
- Do not create many dated snapshots.
- Do not bulk-copy chat history.
- Stop after writing the packet and tell Amit to start the clean session from that packet.
- Be explicit that the current session context cannot be reduced in-place; the packet is for a fresh session.
Output:
UpdatedReset packetRead firstNext
dump_context_fast
Goal: update only CONTEXT.md from current state.
Use when Amit says:
dump_context_fastdump_context_fast: ...
Rules:
- Do not create dated
CLEAN_*,HANDOFF_*, or extraCONTEXT_*files. - Do not load compact prompts, old handoff files, GOAL files, result packets, or broad history unless required to identify the active blocker.
- Use current status commands, active tmux panes, git status, and latest result filenames only.
- Update the repo or lane
CONTEXT.md. - Preserve only current truth, blocker, next action, read-first order, and latest evidence paths.
- Stop after updating.
Output:
UpdatedLatest evidenceNext
save handoff
Goal: create or refresh HANDOFF.md for a session/milestone boundary.
Use when Amit says:
save handoffclean start handoffsession handoff
Rules:
- This updates
CONTEXT.mdandHANDOFF.md. - Keep it decision-grade: current truth, active blockers, read-first order, latest evidence paths, decisions, no-go gates, and lessons that affect future execution.
- Do not bulk-copy old chat history.
- Back up existing
HANDOFF.mdbefore major replacement. - Do not create
PLANS.md,STATUS.md, or dated handoff files unless Amit explicitly asks.
Output:
UpdatedRead firstNext
save context
Goal: update CONTEXT.md.
Rule:
- Update
CONTEXT.mdwith current truth, blocker, next action, evidence paths, read-first order, and active no-go gates. - Do not create
HANDOFF.mdunless Amit sayssave handoff. - Do not create
PLANS.md,STATUS.md, dated context snapshots, or compact resume files.
Output:
UpdatedNext
what next / next
Goal: choose the next useful task or goal.
Workflow:
- Read the smallest relevant repo context:
INDEX.md/MANIFEST.tsvfirst when present and the question touches old evidence, cleanup, or lane historyCONTEXT.md, guidance files, git status, and active PR/MR/issue if present
- Use
qmd-agent-search "<query>"for old summarized evidence when available; use targetedrgfor exact IDs or strings. - Check
/goalwhen runtime exposes it, but do not treat it as source of truth. - Return a short shortlist of 1-3 next actions, with one recommended default.
- Do not edit files unless Amit also asks to implement.
Output:
StateRecommendedOptions
debug tight
Goal: understand and fix the smallest real failure.
Workflow:
- Reproduce or confirm the smallest failure.
- Inspect only relevant files/logs.
- Make the smallest safe fix.
- Run the narrowest useful validation.
- Stop before refactors or cleanup detours.
Output:
ProblemCauseFixValidatedNext
fast work
Goal: complete a small private-repo task at MVP quality.
Workflow:
- Inspect only relevant files.
- Implement the smallest useful change.
- Run small validation.
- Update
CONTEXT.mdonly if task state changed. - Commit only when the repo changed and the change is coherent.
Output:
ChangedValidatedGitNext
commit all
Goal: make one accurate local commit.
Workflow:
- Inspect
git status --short, unstaged diff, staged diff, ignored/local-only rules, and recent commits. - Exclude secrets, raw evidence, unrelated local-only files, and user edits outside the requested scope.
- Run the smallest relevant validation; use
bash -nfor shell changes. - Stage intended files only.
- Commit with a specific message that matches the actual diff.
- Do not push.
Output:
CommittedValidationNot stagedNext
push all
Goal: publish the current branch safely.
Workflow:
- If dirty, run the
commit allworkflow first. - Confirm current branch and upstream.
- Push the current branch.
- Report PR/MR URL or remote branch if discoverable.
- Do not merge.
Output:
PushedBranchRemoteNext
merge
Goal: finish the PR/MR path.
Workflow:
- Run
commit allandpush allbehavior as needed. - Discover the active PR/MR from branch metadata,
gh,glab, or repo remotes. - Update the PR/MR/issue summary with what changed, validation, and any residual risk.
- Verify required checks when tooling exposes them.
- Merge only when target, checks, and merge method are unambiguous.
- After merge, close linked issue only when the PR/MR or user request clearly indicates it.
- Clean up local branch only after confirming merge success.
Stop if:
- multiple PRs/MRs match
- checks are failing or unknown and required
- merge target is ambiguous
- deletion would remove user work
cleanup
Goal: remove unwanted local task debris without losing useful history.
Workflow:
- Read current task/plan/goal and git status.
- Read
INDEX.md/MANIFEST.tsvfirst when present. - Inventory candidate generated files: temp scripts, raw JSON/log dumps, one-off reports, stale compact files, caches, and local scratch.
- Keep curated docs, final reports, tracked status files, repo truth, closeout packets, decision packets, cleanup proof, MR/Jira references, and scan summaries.
- Archive/compress raw evidence before deletion when retention is unclear.
- Back up before deleting anything that might contain context.
- Do not delete tracked files unless Amit explicitly asked for that tracked-file cleanup.
- Delete evidence only after closeout exists, no active lane references it, and
Amit approved deletion or a clear
delete_afterrule applies.
Output:
RemovedBacked upKeptNeeds decision
TTL cleanup
Goal: clean up expired or unwanted temporary AWS resources.
Workflow:
- Load
~/.codex/AWS.md. - Start read-only: inventory resources with TTL/cleanup tags and repo resource records.
- Save inventory/evidence under
~/.AGENTS-temp/<repo>/. - Treat expired
ttl+cleanup=deleteresources as candidates, not automatic deletion, unless Amit explicitly asked to delete them. - Before deleting, report resource type, ID, name, region/account/profile, TTL, cleanup tag, and planned command.
- Delete only resources matching the approved candidate set.
- Verify deletion and save final evidence.
Output:
CandidatesDeletedVerifiedKeptNeeds decision