AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Compound Md

skill-qgolem-orc-compound-md · by qGolem

Review recent conversations to find improvements for CLAUDE.md files.

No reviews yet
0 installs
5 views
0.0% view→install

Install

$ agentstack add skill-qgolem-orc-compound-md

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-qgolem-orc-compound-md)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Compound Md? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Review CLAUDE.md from conversation history

Analyze recent conversations to improve both global (~/.claude/CLAUDE.md) and local (project) CLAUDE.md files.

  • [ ] Step 1: Find conversation history
  • [ ] Step 2: Extract recent conversations
  • [ ] Step 3: Spin up Sonnet subagents
  • [ ] Step 4: Score and filter findings
  • [ ] Step 5: Walk user through findings one by one

Transcript auditor, not prose reviewer. You programmatically extract user messages, tool calls, and results from JSONL conversation logs, then spin up subagents to analyze behavior against CLAUDE.md rules.

Your role:

  • Extract conversation data from JSONL files via jq
  • Launch parallel subagents to analyze conversations against CLAUDE.md
  • Score findings ruthlessly — CLAUDE.md is loaded into every context
  • Present findings one at a time via AskUserQuestion for user review

Not your role:

  • Editing CLAUDE.md directly (present findings, user decides)
  • Reviewing the current session (skip most recent file)

Avoid:

  • Processing the current session (always skip most recent JSONL)
  • Swallowing jq errors to /dev/null
  • Treating user messages as always string type (they can be arrays)
  • Dropping tool_use blocks from assistant messages
  • Presenting a wall of findings — use AskUserQuestion to walk through one at a time

Process

Step 1: Find Conversation History

The project's conversation history is in ~/.claude/projects/. The folder name is the project path with slashes replaced by dashes.

# Find the project folder (replace / with -)
PROJECT_PATH=$(pwd | sed 's|/|-|g' | sed 's|^-||')
CONVO_DIR=~/.claude/projects/-${PROJECT_PATH}
ls -lt "$CONVO_DIR"/*.jsonl | head -20

Step 2: Extract Recent Conversations

Extract the 15-20 most recent conversations (excluding the current session) to a temp directory.

IMPORTANT: The jq filter contains != which zsh will escape/mangle when passed inline. Write the filter to a file first, then reference it with jq -r -f.

Step 2a: Write the jq filter to $SCRATCH/extract.jq:

if .type == "user" then
  .message.content |
  if type == "string" then
    "USER: " + .
  elif type == "array" then
    [ .[] |
      if .type == "text" then .text
      elif .type == "tool_result" then
        (.content |
          if type == "string" then .[0:100]
          elif type == "array" then
            [.[] | select(.type == "text") | .text[0:100]] | join(" ")
          else "" end
        ) | if . != "" then "RESULT: " + . else empty end
      else empty end
    ] | map(select(. != "")) | join("\n") |
    if . != "" then "USER:\n" + . else empty end
  else empty end
elif .type == "assistant" then
  [ .message.content // [] | .[] |
    if .type == "text" then .text
    elif .type == "tool_use" then
      "TOOL: " + .name + "(" + (.input | tostring | .[0:100]) + ")"
    else empty end
  ] | map(select(. != "")) | join("\n") |
  if . != "" then "ASSISTANT:\n" + . else empty end
else empty end

Step 2b: Run the extraction loop using the filter file:

SCRATCH=/tmp/claudemd-review-$(date +%s)
mkdir -p "$SCRATCH"

# Write the jq filter file first (Step 2a above)

# tail -n +2 skips the most recent file (current session)
for f in $(ls -t "$CONVO_DIR"/*.jsonl 2>/dev/null | tail -n +2 | head -20); do
  convo_id=$(basename "$f" .jsonl)
  jq -r -f "$SCRATCH/extract.jq" "$f" > "$SCRATCH/${convo_id}.txt" 2>>"$SCRATCH/debug.log"
done

ls -lhS "$SCRATCH"

Step 3: Spin Up Sonnet Subagents

Launch parallel Sonnet subagents to analyze conversations. Each agent should read:

  • Global CLAUDE.md: ~/.claude/CLAUDE.md
  • Local CLAUDE.md: ./CLAUDE.md (if exists)
  • Batch of conversation files

Give each agent this prompt template:

Read:
1. Global CLAUDE.md: ~/.claude/CLAUDE.md
2. Local CLAUDE.md: [project]/CLAUDE.md
3. Conversations: [list of files]

Analyze the conversations against BOTH CLAUDE.md files. For each finding, output:

**Finding:** [one-line description]
**Type:** violated | add-local | add-global | outdated
**Evidence:** [specific conversation ID + what happened]
**Proposed change:** [exact wording to add, edit, or remove]
**Universality score (1-5):**
  5 = Will prevent bugs/waste in virtually every future session
  4 = Applies to most sessions in this project type
  3 = Applies sometimes, depends on task
  2 = Niche — only relevant for specific workflows
  1 = One-off incident, not a pattern
**Frequency:** [how many conversations exhibited this]

Be specific. Output structured findings only.

Batch conversations by size (smaller batches = more agents = better parallelism):

  • Large (>100KB): 1 per agent
  • Medium (10-100KB): 2 per agent
  • Small (= 3, frequency > 1 or universality >= 4)
  • [ ] Each surviving finding presented individually via AskUserQuestion
  • [ ] User accepted/skipped each finding explicitly
  • [ ] Summary of applied vs skipped changes shown at end

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.