skills/cmd-latest-msg/SKILL.md
Store or retrieve the latest agent message to /tmp/agents/{agent}/
npx skillsauth add olshansk/agent-skills cmd-latest-msgInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Persist the last agent message to disk for cross-agent visibility.
Parse the user's input after /cmd-latest-msg.
help (or no argument) — print usage and stop:
Usage:
/cmd-latest-msg save — save your last message
/cmd-latest-msg use — read latest from the current agent
/cmd-latest-msg use <agent> — read latest from claude|codex|gemini
/cmd-latest-msg help — show this usage
save — save the last assistant message:
a. Determine which agent you are from runtime context:
claudecodexgeminicodexb. Create the output directory:
mkdir -p /tmp/agents/<agent>
c. Capture your last assistant message — the response you gave immediately before the user invoked this skill.
d. Write it to two files using the Write tool:
/tmp/agents/<agent>/latest.md — always overwrite/tmp/agents/<agent>/<unix_timestamp>.md — timestamped copy (use date +%s to get the timestamp)e. Confirm with:
Stored to:
/tmp/agents/<agent>/latest.md
/tmp/agents/<agent>/<timestamp>.md
use — display the latest message for the current agent:
a. Infer the current agent using the same runtime-context rules as save.
b. Read and display /tmp/agents/<agent>/latest.md.
c. If the file doesn't exist, say: No messages found for <agent>.
use <agent> — display another agent's latest message:
a. Validate <agent> is one of: claude, codex, gemini.
b. Read and display /tmp/agents/<agent>/latest.md.
c. If the file doesn't exist, say: No messages found for <agent>.
testing
Ask the agent whether it finished everything or has more to do — a lightweight completeness gate for the end of any task
development
Audit personal skills for redundancy, verbosity, weak triggers, and overlap. Runs a Claude→Codex review loop, presents per-item approval checkboxes, then applies approved edits and updates README and agent metadata. Use when asked to "review my skills", "audit my skills", "revisit my skills", or "clean up my skills". Accepts an optional skill name to scope the review to a single skill.
development
Set up or extend golden/snapshot tests for a project. Covers fixture design, Makefile targets, snapshot storage, diff workflow, and update protocol.
development
Proofread posts before publishing for spelling, grammar, repetition, logic, weak arguments, broken links, and optionally reformat for skimmability or shape the writing vibe toward a known author's style