Generates a copy-paste cheat sheet from the current Claude Code session, summarizing commands used, traps hit, and shortcuts discovered. Useful after long sessions or when asked for a command reference.
Ships in oracle-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
สรุปทุกคำสั่งที่ใช้จริงใน session นี้เป็น cheat sheet — copy-paste ได้เลย ส่งให้เพื่อนได้เลย
เอาจากบริบทล่าสุดที่คุยกันอยู่เลย ไม่ต้องถาม user ว่าจะทำเรื่องอะไร เพราะ cheat sheet เป็นการรวบรวม code/command ที่ใช้จริง — มัน specific กับ context ล่าสุดอยู่แล้ว
ต้องเขียนแบบนี้เสมอ:
#)<placeholder> ที่ต้องเดา ใส่ค่าจริงจาก session| ทำอะไร | คำสั่ง | สรุปสั้น ๆ| trap | วิธีเลี่ยง | จากประสบการณ์ session นี้ORACLE_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
ENCODED_PWD=$(echo "$ORACLE_ROOT" | sed 's|^/|-|; s|[/.]|-|g')
PROJECT_DIR="$HOME/.claude/projects/${ENCODED_PWD}"
LATEST_JSONL=$(ls -t "$PROJECT_DIR"/*.jsonl 2>/dev/null | head -1)
Spawn a Haiku subagent (model: "haiku") with the session JSONL:
python3 - <<'PYEOF'
import json, os
jsonl = os.environ.get('LATEST_JSONL', '')
if not jsonl or not os.path.exists(jsonl): exit(0)
cmds = set()
with open(jsonl) as f:
for line in f:
try:
m = json.loads(line)
if m.get('type') != 'assistant': continue
for block in (m.get('message', {}).get('content', []) or []):
if isinstance(block, dict) and block.get('type') == 'tool_use':
if block.get('name') == 'Bash':
cmd = block.get('input', {}).get('command', '')
if cmd:
# extract first meaningful command
first = cmd.split('&&')[0].split('|')[0].strip()
if first and not first.startswith('#') and not first.startswith('echo'):
cmds.add(first[:80])
except: pass
for c in sorted(cmds):
print(c)
PYEOF
Pass the output to the subagent with this prompt:
"Here are shell commands actually used in a Claude Code session. Group them by purpose (team management, search/query, git/PR, fleet communication, server, etc.). For each group, pick the most useful 3-5 commands. Return as markdown sections with code blocks. No prose — just heading + code + 1-line note."
Scan the conversation for:
⚠️ warnings given during the sessionFormat each as a row: | trap description | workaround |
Path: ψ/writing/cheatsheets/YYYY-MM-DD_<topic>.md
Use this exact structure (fill from session data):
# <topic> สูตรโกง
> <1-line tagline — what this covers, from what session>
---
## 🔧 <Category 1>
### <sub-topic>
` ` `bash
<real commands from session>
` ` `
## 📨 <Category 2>
...
## ⚡ ลัด
| ทำอะไร | คำสั่ง |
|--------|--------|
| ... | `...` |
## ⚠️ trap ที่เจอจริง
| trap | วิธีเลี่ยง |
|------|-----------|
| ... | ... |
---
🤖 ตอบโดย arra-oracle-v3 จาก Nat → arra-oracle-v3-oracle
If the session is about a specific tool/feature (e.g., maw arra plugin, deploy, federation):
If the session is broad (many topics):
If user says "for a friend" / "ให้เพื่อน":
PSI=$(readlink -f "$ORACLE_ROOT/ψ" 2>/dev/null || echo "$ORACLE_ROOT/ψ")
mkdir -p "$PSI/writing/cheatsheets"
SHEET_FILE="$PSI/writing/cheatsheets/$(date +%Y-%m-%d)_${SLUG}.md"
echo "📋 Cheat sheet: $SHEET_FILE"
ψ/writing/cheatsheets/ — ถ้ามีอยู่แล้วให้ append/update ไม่ใช่เขียนใหม่ทั้งหมดWhat SKILL.md sets; muted values are Claude Code's defaults
/oracle-skills:oracle-cheatsheetfrom oracle-skills
npx claudepluginhub soul-brews-studio/arra-oracle-skills-cli --plugin oracle-skills25 skills in this plugin
/about-oracleWhat is Oracle — told by the AI itself. Origin story, stats, family count, ecosystem overview. Use when someone asks "what is oracle", "about oracle", "tell me about this project", or wants the origin story. Do NOT trigger for "who are you" (use /who-are-you), "philosophy" (use /philosophy), or session status questions./awakenGuided Oracle birth and awakening ritual. Default is Soul Sync (~20min), or --fast (~5min). Use when creating a new Oracle in a fresh repo, when user says 'awaken', 'birth oracle', 'create oracle', 'new oracle', or wants to set up Oracle identity in an empty repository. Do NOT trigger for general repo setup, git init, or project scaffolding without Oracle context./bampenpienบำเพ็ญเพียร — diligent practice. A guided conversation between human and Oracle about doing hard things without knowing why. Like /awaken but repeatable — a practice, not a birth. Use when user says 'bampenpien', 'บำเพ็ญเพียร', 'why am I doing this', 'hard work', 'keep going', 'what am I building', or needs to reconnect with purpose through difficulty./budCreate a new oracle via maw bud — yeast-colony reproduction. Use when user says "bud", "new oracle", "create oracle", "spawn oracle", or wants to create a new permanent oracle from the current one./create-shortcutCreate local skills as shortcuts — makes real /commands in .claude/skills/. Use when user says "create shortcut", "create skill", "make a command for", "add shortcut", or wants a quick custom /slash-command. Also lists and deletes local skills. ALSO triggers on "Unknown skill", "skill not found", or any unrecognized /slash-command — auto-creates it on the fly./digMine Claude Code sessions — timeline, gaps, repo attribution, session history. Use when user says "dig", "sessions", "past sessions", "timeline", "what did I work on", or wants to see session history. Do NOT trigger for finding code/projects (use /trace), exploring repos (use /learn), or current session status (use /recap).Other plugins' skills for the same job