Individual skill
agentsop-prompt-history-inspect
Tool skill — the *first move* in any LM-debugging session: dump the actual rendered prompt the framework sent to the model, before changing anything else. Activate when an LM call produced an unexpected output (wrong answer, schema violation, refusal, truncation, cost spike, latency spike, infinite loop, "model got dumber after upgrade"). The skill enforces a 30-second inspect step BEFORE any prompt edit, model swap, retry, or temperature tweak. Cross-framework cheat sheet: DSPy `inspect_history`, LangGraph `get_state_history`, CrewAI `step_callback`, LangChain `set_debug`/`set_verbose`, Aider `/diff`+`--verbose`, raw OpenAI/Anthropic via `OPENAI_LOG=debug`/`ANTHROPIC_LOG=debug` or HTTPX event hooks. Do NOT activate for first-time prompt authoring, exploratory prompt design, or non-LM bugs.
skills/agentsop-prompt-history-inspect/SKILL.md
Source commit cf4376869e5f23f82404c3021a2a1315dfca318d
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 465
- Repository last updated
- Oct 24, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skill Repository topic
- skill-creation Repository topic
- ai-agent Repository topic
- llm-agent Repository topic
- skill-engineering Repository topic
- skill-generation Repository topic
- skill-pipeline Repository topic
- skill-construction Repository topic
- agent-skills Repository topic
- skill-acquisition Repository topic
- design Derived category
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 3,435 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesSKILL.mdcore · 34,486 bytesintermediate/operation_candidates.jsonasset · 9,214 bytesreferences/R1-mental-model.mddoc · 6,559 bytesreferences/R2-framework-cheat-sheet.mddoc · 10,203 bytes
Read excerpt
# Prompt-History Inspect — First Move Before Anything Else
> *"The prompt you wrote is not the prompt the model received."*
> — Operating axiom for every framework that templates, injects few-shots, appends tool definitions, or wraps system messages.
---
## 1. 何时激活 (When to activate)
Activate this skill the **moment** an LM call surprises you, BEFORE any other debug move.
| Trigger | Signal |
|---|---|
| Output wrong | "Why did it answer X?" / hallucinated fact / wrong format / refusal |