mcpbeat Sign in

Transcript Grep Skill for Claude

> Search a Claude Code session transcript for a string or regex pattern and show every matching message with surrounding context. Reads from the Agent Monitor dashboard. Use when hunting for a specific message, prompt, tool call, or error inside a session's conversation.

704 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
867
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/hoangsonww/Claude-Code-Agent-Monitor --skill transcript-grep

The instruction itself

9 sections, as written by the author

Transcript Grep

Find where a pattern appears in a session transcript and show the matches in context.

Input

The user provides: $ARGUMENTS

Interpreted as a session reference plus a search pattern, e.g.

<session-id> "rate limit" or latest TypeError. Parsing rules:

  • The session reference is the first token if it looks like an id, or the words

latest/last (most recently updated session).

  • The remainder is the search pattern (string or regex, quoted if it contains spaces).
  • If no session is given, default to the most recent session.

Data Sources

| Endpoint | Returns |

|----------|---------|

| GET /api/sessions?limit=N | session list to resolve latest/last and to confirm the id exists |

| GET /api/sessions/:id/transcript | the ordered transcript messages (role, content, tool calls/results, timestamps) for the session |

Report Sections

1. Resolve the session

If latest/last (or no id), call GET /api/sessions?limit=1. Otherwise verify

the id with GET /api/sessions?limit=1000 (or GET /api/sessions/:id). Report

the resolved id, status, and model before searching.

Call GET /api/sessions/:id/transcript. Walk the messages in order and match the

pattern against message text, tool_name, and tool input/output content.

Case-insensitive by default; treat the pattern as a regex if it contains regex

metacharacters, otherwise as a literal substring.

3. Matches with context

For each match show:

[#N  HH:MM:SS  role(:tool_name)]
  … preceding line of context …
> matching line with the **pattern** emphasized
  … following line of context …

Number matches sequentially. Include ±1–2 messages (or lines) of context so the

match is interpretable. If a tool call matches, show the tool_name and a trimmed

view of its arguments/result.

4. Summary

Report: total matches, how many distinct messages matched, the roles involved

(user / assistant / tool), and the timestamp span of the matches. If there are

zero matches, say so plainly and suggest a looser pattern.

Output

  • Lead with the match count and session header, then the contextual snippets.
  • Keep snippets trimmed — truncate long tool payloads with rather than dumping them.
  • Cite only transcript content returned by the API — never fabricate messages.
  • If the dashboard is unreachable, tell the user to start it with npm start from the repo root.

Other skills for the same job

different authors, same section of the catalogue
Skill Creator
by anthropics
vendor ×10

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

56k tokens scripts
Skill Creator
by vercel-labs
vendor ×10

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

12k tokens scripts
Skill Creator
by JayZeeDesign
×9

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

10k tokens scripts
Template Skill
by JayZeeDesign
×7

Replace with description of the skill and when Claude should use it.

35 tokens
Dispatching Parallel Agents
by ZhanlinCui
×5

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

2k tokens
Skill Development
by anthropics
vendor ×4

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

9k tokens
Find Skills
by sanity-io
vendor ×4

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

1k tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts

How to use it

Copy the folder

Take hoangsonww/transcript-grep from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.