Evaluate session using OpenAI eval-skills framework (Outcome/Process/Style/Efficiency). Analyzes session transcript vs Claude Code config to score performance and generate improvement recommendations. Creates GitHub issue with rubric scores and actionable plan.
Analyze the current session transcript alongside Claude Code configuration to compare what was intended versus what actually happened. Generate improvement recommendations and create a GitHub issue.
Claude Code stores session transcripts at:
~/.claude/projects/{project-path-encoded}/{session-id}.jsonl
Find the current session:
# Project path encoded (replace / with -)
!`pwd | tr '/' '-' | sed 's/^-//'`
# Find session directory
!`ls -t ~/.claude/projects/ | head -20`
# Current session ID
${CLAUDE_SESSION_ID}
Read the session transcript:
Use the Read tool to read: ~/.claude/projects/!pwd | tr '/' '-' | sed 's/^-//'/${CLAUDE_SESSION_ID}.jsonl
Analyze the transcript for:
Checklist:
Analyze the transcript for:
Checklist:
Analyze the transcript for:
Checklist:
Analyze the transcript for:
Checklist:
Read these files to understand the intended workflow:
./CLAUDE.md.agents/skills-local/crew-claude/SKILL.md (contains workflows, hard requirements, anti-patterns, and skill routing)For each category, assign a score (0-100) and pass/fail:
| Category | Score Range | Pass Threshold | |----------|-------------|----------------| | Outcome | 0-100 | ≥70 | | Process | 0-100 | ≥60 | | Style | 0-100 | ≥50 | | Efficiency | 0-100 | ≥50 |
Scoring Guidelines:
Outcome:
Process:
Style:
Efficiency:
Generate a structured analysis:
{
"session_id": "${CLAUDE_SESSION_ID}",
"outcome": { "score": <N>, "pass": <bool>, "notes": "<summary>" },
"process": { "score": <N>, "pass": <bool>, "notes": "<summary>" },
"style": { "score": <N>, "pass": <bool>, "notes": "<summary>" },
"efficiency": { "score": <N>, "pass": <bool>, "notes": "<summary>" },
"overall": <average>,
"improvements": [
{ "priority": 1, "category": "<O/P/S/E>", "file": "<path>", "suggestion": "<change>" }
]
}
After analysis, create a GitHub issue:
gh issue create --repo settlemint/agent-marketplace \
--title "Workflow Improvement: Session ${CLAUDE_SESSION_ID}" \
--label "workflow-improvement,session-memory" \
--body "$(cat <<'EOF'
## Workflow Improvement Recommendations
**Session analyzed:** ${CLAUDE_SESSION_ID}
**Project:** !`basename $(pwd)`
**Date:** !`date +%Y-%m-%d`
### Session Evaluation Scores
| Category | Score | Pass | Notes |
|----------|-------|------|-------|
| Outcome | <score>/100 | <emoji> | <notes> |
| Process | <score>/100 | <emoji> | <notes> |
| Style | <score>/100 | <emoji> | <notes> |
| Efficiency | <score>/100 | <emoji> | <notes> |
| **Overall** | **<avg>** | | |
### Session Summary
<Brief summary of what the user wanted to accomplish>
### Intent vs Execution Analysis
| User Intent | What Happened | Category | Gap |
|-------------|---------------|----------|-----|
| <request 1> | <execution> | <O/P/S/E> | <gap> |
### Improvements by Priority
#### P1 (Critical)
- [ ] [File: path] [Change: description]
#### P2 (Important)
- [ ] [File: path] [Change: description]
#### P3 (Nice-to-have)
- [ ] [File: path] [Change: description]
### Suggested New Skills/Routing
- [ ] Add skill: [name] - addresses [category] gap
- [ ] Add routing: [trigger] -> [skill]
### Workflow Adjustments
- [ ] [Phase/gate modification]
---
**Files analyzed:**
- Session: ~/.claude/projects/[path]/[session].jsonl
- Config: CLAUDE.md, .claude/skills/*, .agents/skills-local/crew-claude/*
**Framework:** OpenAI eval-skills (Outcome/Process/Style/Efficiency)
EOF
)"
Begin by discovering the session transcript.
npx skills add settlemint-archive/workflow-improver下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer