pulsemcp/ai-artifacts/analyze-agent-transcript-user-prompt
Claude Code and agent skill by pulsemcp/ai-artifacts
- community
Checking that the SKILL.md file is still in the repository.
Analyze a single user-source Trigger attached to a Transcript Segment. Classify it (question vs delegation), confirm the Segment's Goal, and assess whether the Segment closed the loop on that Goal. The Trigger kind (New vs Correction) and source (user) are already set by the segmenter; this skill consumes them. If the Goal isn't self-evident, delegate to pull-together-agent-transcript-goal-context. Output feeds the "human prompting" recommendation bucket of analyze-agent-transcript.
Install
npx vskill@latest install pulsemcp/ai-artifacts/analyze-agent-transcript-user-promptSKILL.md
Analyze user prompt
Per-user-Trigger analyzer. Invoked once per Segment whose trigger.source == "user", regardless of whether trigger.kind is New or Correction.
Inputs
segment: a Segment fromsegments.jsonwithtrigger.source == "user". Carries the message text intrigger.text, the kind intrigger.kind(New | Correction), the stated Goal, and themetablock (event_range, model, spend). The orchestrator hands you the Segment directly — you do not walk raw JSONL.surrounding_segments: parent and prior sibling — useful for grounding goal extraction and detecting whether a user-source Correction trigger was the user reacting to a Failure.transcript.json: the OpenTranscriptsTranscriptdocument, available to dereference event ids fromsegment.meta.event_rangewhen surrounding events are needed.external_context(optional):external-context.jsonif present — supplies project / branch / repo / ticket context behind the session.philosophy_prompting: thephilosophy-on-promptingreference — the team's stance on closed agentic loops (end-to-end definition of done, verification, observability). Judgeclosed_loopand anyprompting_recommendationagainst it.
Output
This is the item body. The orchestrator wraps it with id / segment_id / analyzer (see the orchestrator's "Findings-item shape" section) — emit only the fields below.
Evidence cites OpenTranscripts event ids (the id strings in transcript.json / segments.json), never integer turn numbers.
Sequencing checklist
- [ ] Read
segment.trigger. The kind (New | Correction) and source (user) are already set by Phase 2 — trust them - [ ] Classify the user message (
segment.trigger.text): is it a question (the user wants information back), a delegation (the user wants the agent to do something), or mixed? - [ ] Confirm
goal_certainty. If it would below, invokepull-together-agent-transcript-goal-contextwith the Segment andexternal_contextbefore giving up - [ ] Determine whether the Segment closed the loop on its Goal. Per the
philosophy-on-promptingreference, a closed-loop Trigger carries an end-to-end definition of done and (where the Goal needs it) the verification + observability the agent needs to finish unaided — not a step-by-step hand-hold: - The Segment's Outcome from
segments.jsonis the source of truth — Success = closed, Failure = not closed - If the next sibling Segment opens with a Correction trigger (either source), this Segment is a retro-Failure even if
outcome == Success; flag it accordingly (user-source Correction is the stronger flag) - `closed_loop` reflects the *prompt's* own merit, not whether the run happened to finish. If the loop broke for a reason unrelated to the prompt — the session was killed, the harness crashed, an infra/network failure, the user revoked access mid-run — keep
closed_loopset per whether the prompt was self-contained enough to have closed the loop, and record the external break inloop_break_reasonexplicitly tagged as non-prompt (e.g."non-prompt: harness crash at <event_id>"). Don't penalize a well-formed prompt for an infra failure - [ ] Identify prompting issues (three failure modes):
- Incorrect — the user asked for the wrong thing
- Ambiguous — the message left room for interpretation that hurt the Outcome
- Missing context — the agent could only have succeeded with information the user didn't provide
- [ ] If a prompting issue is the root cause of a Failure or retro-Failure, write a concrete
prompting_recommendationshowing what a better version of the user message would have looked like — perphilosophy-on-prompting, usually a definition of done plus how the agent should verify it. Setrecommendation_routeto where the fix lives (usuallyprompting; route toskillsormcpwhen the message itself was fine but the agent hit a foreseeable capability gap the prompt couldn't have closed — no browser, no log access, no MCP server for the system the work lives in)
Notes
- New vs Correction comes from Phase 2. Don't re-derive it from message text; use
segment.trigger.kind. Per thetranscript-segmentreference, the segmenter's heuristics (Correction phrasing at the head of the next Segment, etc.) are authoritative. - A user-source Correction trigger is the single strongest signal in this whole pipeline. Any Segment immediately followed by a user-source Correction is a candidate for either a prompting fix, a Skill, or an MCP server. Even when the local Outcome is Success. (Agent-source Correction is softer — flag it but don't escalate as aggressively.)
- Don't draft Skill or MCP artifacts here. That's the job of
analyze-agent-transcript-skill-gaps/analyze-agent-transcript-mcp-gaps. Setrecommendation_routeand let the orchestrator forward. - Ambition checks are a separate skill. "Was this user-source New trigger scoped right?" lives in
analyze-agent-transcript-prompt-ambition— don't duplicate it here.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-transcript-analysis/3-analyze/analyze-prompts/analyze-agent-transcript-user-prompt/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pulsemcp/ai-artifacts/analyze-agent-transcript-user-prompt)