[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6QBE3SM1XPAJ420GZ8W8F9P":3,"skill-same:01M6QBE3SM1XPAJ420GZ8W8F9P":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":14,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6QBE3SM1XPAJ420GZ8W8F9P","collab-proof",null,"Use when you want to understand what Claude contributed vs what you drove in a session. Triggers on: \u002Fcollab-proof, session retrospective, ai contribution analysis, collaboration evidence, what did claude do.","Tashima-Tarsh\u002FDisha6.6","Tashima-Tarsh","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F269906498?v=4","01M6PBH98X03XERH0HFT4PFB1P","NITISH KUMAR","01M6PBH9DA0M6KM3Z12P848F0K",0,"MIT","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcollab-proof\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"collab proof","proof","collab","collaboration","retrospective","analysis","session","use","evidence","do","triggers","contribution","Session Retrospective","understand","you","2026-11-10 10:12:30",false,"---\nname: \"collab-proof\"\ndescription: \"Use when you want to understand what Claude contributed vs what you drove in a session. Triggers on: \u002Fcollab-proof, session retrospective, ai contribution analysis, collaboration evidence, what did claude do.\"\nlicense: MIT\n---\n\n# collab-proof\n\nSurfaces AI collaboration evidence the developer didn't consciously record.\nVela 3-layer pipeline × ADHD 4-frame reasoning — prompt-native, zero dependencies.\n\n---\n\n## Layer 01 — Signal detection\n\nRun `git log --oneline -10` and `git diff --stat HEAD~3..HEAD` first.\n\nClassify signal level using this rubric (pick the highest that matches):\n\n**HIGH** → full artifacts (DECISIONS.md + session-history + WORKLOG + HTML)\n- New file created, OR\n- 4+ files modified, OR\n- Explicit option comparison in conversation (\"vs\", \"instead of\", \"chose X over Y\"), OR\n- Design discussion lasted 15+ exchanges, OR\n- **Bug with root cause diagnosis** — conversation contains WHY the bug happened\n  (not just \"fixed X\" but \"the bug was caused by Y because Z\")\n\n**BUG_FIXING special rule** — override file count:\nEven if only 1 file changed, classify as HIGH if the conversation contains:\n- Root cause explanation (\"the bug was...\", \"this happened because...\", \"the issue is...\")\n- Diagnosis process (\"I checked...\", \"turned out...\", \"the problem was...\")\n- Fix rationale (\"chose this approach because...\", \"instead of X, used Y because...\")\nFile count doesn't matter for bugs — a well-diagnosed single-file fix is more valuable\nthan a 10-file feature with no discussion.\n\n**MEDIUM** → WORKLOG only\n- 1–3 files modified with no root cause discussion, OR\n- Minor feature added, no tradeoffs discussed\n\n**LOW** → silence, tell user \"Routine session — nothing recorded.\"\n- No code changes, only planning\u002Fdiscussion, OR\n- Single trivial change with no context (\"change this text\", \"fix typo\", \"rename variable\")\n\nShow the user: `Signal: HIGH \u002F MEDIUM \u002F LOW — [one-line reason]`\n\n---\n\n## Layer 02 — WorkIntentClassifier\n\nRun all four frames simultaneously against conversation context + git diff.\nScore each frame 0.0–1.0 using the rubric below. Then apply pruning and classification rules.\n\n### Frame scoring rubric\n\n**Frame A — Technical** (code churn complexity)\n- `1.0` New module\u002Ffile created, complex logic added (state machine, Lua script, novel algorithm)\n- `0.5` Existing function logic modified, simple API endpoint added\n- `0.1` Typo fix, comment change, plain text edit\n\n**Frame B — Uncertainty** (developer doubt signals)\n- `1.0` Code written then fully rolled back, explicit doubt expressed (\"이게 맞나?\", \"동작 안 하네\"), `git revert`\n- `0.5` Advice sought from Claude mid-implementation, 2+ revision requests on same area\n- `0.0` Uninterrupted directive execution — developer knew exactly what to build\n\n**Frame C — Fork** (decision branch presence)\n- `1.0` Two or more alternatives explicitly compared in conversation (A vs B)\n- `0.5` No explicit comparison but tradeoff mentioned (performance vs readability)\n- `0.0` Single standard approach applied, no alternatives considered\n\n**Frame D — AI contribution** (Claude's actual impact)\n- `1.0` Claude identified a bug\u002Fedge case the developer hadn't noticed and proposed the fix\n- `0.6` Claude generated structural boilerplate\u002Fskeleton that significantly accelerated execution\n- `0.2` Claude reformatted or transcribed developer-directed code without independent contribution\n\n---\n\n### Pruning rule\n\nPrune any frame scoring \u003C 0.4.\n\n**Exception — High-Speed Execution Guard:**\nIf `Frame A >= 0.8` AND `Frame D >= 0.6`, do NOT prune and do NOT silence the session,\neven if Frame B = 0.0 and Frame C = 0.0.\nThis is a boilerplate-heavy FEATURE_BUILDING session. Classify immediately as `FEATURE_BUILDING` with `HIGH` signal.\nRationale: zero uncertainty in a fast-moving session is a feature, not a reason to discard it.\n\n---\n\n### Intent classification\n\n| Surviving frames | Dominant intent | Meaning |\n|---|---|---|\n| A high + D mid-high (B, C low) | `FEATURE_BUILDING` | High-velocity feature generation, Claude scaffolding |\n| B high + A\u002FD high | `BUG_FIXING` or `STUCK` | Active debugging or unresolved looping |\n| C high + A high | `REFACTORING` or `EXPLORING` | Architecture exploration, weighing alternatives |\n| All frames \u003C 0.4 | `FLOW_STATE` or LOW | Routine typing, silence unless Layer 01 was HIGH |\n\nIf multiple intents tie, pick the one with the highest combined frame score.\nRecord the runner-up — it belongs in the session narrative.\n\n---\n\n### Internal output format\n\nBefore proceeding to Layer 03, resolve to this structure (show it to the user):\n\n```json\n{\n  \"frames\": {\n    \"technical\": 0.0,\n    \"uncertainty\": 0.0,\n    \"fork\": 0.0,\n    \"ai_contribution\": 0.0\n  },\n  \"pruned\": [\"list of pruned frame names\"],\n  \"intent\": \"FEATURE_BUILDING\",\n  \"signal\": \"HIGH\",\n  \"calibration_note\": \"one sentence explaining any exception rule applied\"\n}\n```\n\n---\n\n## Layer 03 — Output\n\n### If HIGH signal\n\n**Append to `DECISIONS.md`** — one entry per real fork (Frame C must confirm alternatives existed):\n\n```markdown\n## [YYYY-MM-DD] \u003Ctitle>\n\n**Context**: [Frame A — what forced this choice]\n**Decision**: what was chosen\n**Alternatives considered**: [Frame C — road not taken]\n**Reasoning**: why — prefix \"inferred:\" if reconstructed from context\n**AI contribution**:\n  - Identified: [Frame D — something developer missed]\n  - Suggested: [Frame D — approach or alternative]\n  - Developer-driven: [what the developer decided independently]\n**Intent class**: [from Layer 02]\n**Signal score**: HIGH\n**Outcome**: implemented | pending | reversed\n```\n\nIf no real fork existed → write nothing. Never fabricate decisions.\n\n**BUG_FIXING intent: use this format instead:**\n\n```markdown\n## [YYYY-MM-DD] \u003Cbug title>\n\n**Root cause**: what actually caused the bug — the WHY, not just the what\n**Symptom**: what the developer observed\n**Fix**: what was changed\n**Why this fix**: rationale — inferred if not stated explicitly\n**Alternative fixes considered**: other approaches discussed (if any)\n**AI contribution**:\n  - Identified: [Frame D — did Claude spot the root cause?]\n  - Suggested: [Frame D — fix approach or diagnostic step]\n  - Developer-driven: [what the developer diagnosed\u002Fdecided independently]\n**Intent class**: BUG_FIXING\n**Signal score**: HIGH\n**Outcome**: fixed | workaround | deferred\n```\n\n**Create `session-history\u002FYYYY-MM-DD-HHMM.md`**:\n\n```markdown\n# Session [YYYY-MM-DD HH:MM]\n\n**Intent**: [class] (runner-up: [class if any])\n**Signal**: HIGH\n**Frames active**: A ([score]) \u002F B ([score]) \u002F C ([score]) \u002F D ([score])\n\n## What shipped\n[grounded in git log]\n\n## What was figured out\n[Frame B + C — the reasoning, tradeoffs, debugging — what developers forget]\n\n## Decisions made this session\n[refs to DECISIONS.md entries]\n\n## Where it got hard\n[Frame B findings — uncertainty, reverts, EXPLORING\u002FSTUCK signals]\n\n## AI contribution summary\n[Frame D synthesis — one honest paragraph, calibrated]\n\n## Next steps inferred\n[what's obviously incomplete]\n```\n\n**Append to `WORKLOG.md`**:\n```\nYYYY-MM-DD HH:MM | [intent] | HIGH | D:[score] | cache:[hit%]% | tok:[total] | \u003Cverb phrase> — \u003Cwhy it mattered>\n```\n\nFields:\n- `D:[score]` — Frame D AI contribution score (0.0–1.0)\n- `cache:[hit%]%` — cache hit rate from token analysis (or `cache:n\u002Fa` if no data)\n- `tok:[total]` — total tokens this session (input + cache_read + cache_create + output, in K e.g. `45K`)\n- verb phrase — what shipped, grounded in git log\n\n**Collect token usage** (bash — run this and capture output):\n```bash\npython3 -c \"\nimport json, sys\nfrom pathlib import Path\n\nprojects = Path.home() \u002F '.claude\u002Fprojects'\nfiles = sorted(projects.rglob('*.jsonl'), key=lambda f: f.stat().st_mtime, reverse=True)\nif not files:\n    print('no_data'); sys.exit()\n\nwith open(files[0]) as fp:\n    lines = [json.loads(l) for l in fp if l.strip()]\n\nti = to = cr = cc = 0\nturns = []\nfor i, line in enumerate(lines):\n    if line.get('type') == 'assistant':\n        u = line.get('message', {}).get('usage', {})\n        if not u: continue\n        inp = u.get('input_tokens', 0)\n        ti += inp; to += u.get('output_tokens', 0)\n        cr += u.get('cache_read_input_tokens', 0)\n        cc += u.get('cache_creation_input_tokens', 0)\n        prompt = ''\n        for j in range(i-1, -1, -1):\n            if lines[j].get('type') == 'user':\n                c = lines[j].get('message', {}).get('content', '')\n                prompt = (c if isinstance(c, str) else next((x.get('text','') for x in c if isinstance(x,dict) and x.get('type')=='text'), ''))[:80]\n                break\n        turns.append((inp, prompt))\n\ntotal = ti + cr + cc\nhit = cr \u002F total * 100 if total else 0\nprint(f'input={ti} output={to} cache_read={cr} cache_create={cc} hit={hit:.0f} turns={len(turns)}')\nturns.sort(reverse=True)\nfor idx, (tok, p) in enumerate(turns[:3]):\n    print(f'top{idx+1}={tok}|{p}')\n\"\n```\n\nParse the output and include token stats in the session narrative. Then:\n\n**Generate `session-history\u002FYYYY-MM-DD-HHMM-proof.html`** — write a self-contained HTML file. Structure and class names are fixed — do not rename or reorder sections.\n\n**Fixed CSS tokens (use exactly):**\n- Background: `#0d1117`, Card: `#161b22`, Border: `#30363d`\n- Font: `font-family: 'Courier New', monospace`\n- Frame score colors: `high` → `#3fb950`, `low` → `#f85149`, pruned → `#8b949e`\n- AI line colors: `ai-identified` → `#a371f7`, `ai-suggested` → `#d29922`, `ai-developer` → `#3fb950`\n\n**Fixed HTML structure (class names must match exactly):**\n```\n\u003Cdiv class=\"header\">\n  \u003Cdiv class=\"header-top\">\n    \u003Cdiv class=\"project-name\">\n    \u003Cspan class=\"badge\">                    \u003C!-- intent class -->\n  \u003Cdiv class=\"meta-row\">                    \u003C!-- date, branch, signal level text -->\n  \u003Cdiv class=\"signal-container\">\n    \u003Cdiv class=\"signal-label\">\n    \u003Cdiv class=\"signal-track\">\n      \u003Cdiv class=\"signal-fill\">             \u003C!-- width % driven by signal score -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- frames -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">Layer 02 · ADHD tree-of-thought\u003C\u002Fspan>\n  \u003Cdiv class=\"frames-grid\">\n    \u003Cdiv class=\"frame-card\">               \u003C!-- pruned: class=\"frame-card pruned\" -->\n      \u003Cdiv class=\"frame-label\">            \u003C!-- Frame A \u002F B \u002F C \u002F D -->\n      \u003Cdiv class=\"frame-name\">\n      \u003Cdiv class=\"frame-score high|low\">   \u003C!-- score value -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- decisions — skip section if none -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">N recorded\u003C\u002Fspan>\n  \u003Cdiv class=\"decision-card\">              \u003C!-- one per DECISIONS.md entry -->\n    \u003Cdiv class=\"decision-header\">\n      \u003Cdiv class=\"decision-title\">\n      \u003Cdiv class=\"decision-date\">\n    \u003Cdiv class=\"decision-fields\">\n      \u003Cdiv class=\"field-row\">\n        \u003Cdiv class=\"field-label\">          \u003C!-- Context \u002F Decision \u002F Alternatives \u002F Reasoning -->\n        \u003Cdiv class=\"field-value\">\n      \u003Cdiv class=\"field-row\">              \u003C!-- AI contribution row -->\n        \u003Cdiv class=\"field-label\">AI contribution\u003C\u002Fdiv>\n        \u003Cdiv class=\"field-value\">\n          \u003Cdiv class=\"ai-block\">\n            \u003Cdiv class=\"ai-line ai-identified|ai-suggested|ai-developer\">\n              \u003Cspan class=\"tag\">IDENTIFIED|SUGGESTED|DEV-DRIVEN\u003C\u002Fspan>\n      \u003Cdiv class=\"field-row\">              \u003C!-- Outcome row -->\n        \u003Cdiv class=\"field-label\">Outcome\u003C\u002Fdiv>\n        \u003Cdiv class=\"field-value\">\n          \u003Cspan class=\"outcome-badge outcome-implemented|outcome-pending|outcome-reversed\">\n\n\u003Cdiv class=\"section\">                       \u003C!-- session narrative -->\n  \u003Cdiv class=\"section-title\">Session narrative\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-grid\">\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- What shipped -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- What was figured out -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- Where it got hard -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- Next steps inferred -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- AI contribution summary -->\n  \u003Cdiv class=\"section-title\">AI contribution summary\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-card\">             \u003C!-- Frame D synthesis paragraph -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- token usage -->\n  \u003Cdiv class=\"section-title\">Token usage\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-card\">             \u003C!-- cache hit rate bar + top turns + optimization note -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- worklog tail -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">last N entries\u003C\u002Fspan>\n  \u003Cdiv class=\"worklog-entry\">              \u003C!-- one per recent WORKLOG line -->\n\n\u003Cdiv class=\"footer\">                        \u003C!-- last commit hash · \"Generated by collab-proof · timestamp\" -->\n```\n\nWrite the HTML using bash:\n```bash\ncat > session-history\u002FYYYY-MM-DD-HHMM-proof.html \u003C\u003C 'HTMLEOF'\n\u003C!DOCTYPE html>\n... (full HTML with inline CSS, no external resources)\nHTMLEOF\n```\n\nAfter writing, show: `open session-history\u002FYYYY-MM-DD-HHMM-proof.html`\n\n---\n\n### If MEDIUM signal\n\nAppend one line to `WORKLOG.md` only:\n```\nYYYY-MM-DD HH:MM | [intent] | MEDIUM | D:[score] | cache:[hit%]% | tok:[total] | \u003Cverb phrase>\n```\n\n---\n\n### If LOW signal\n\nTell user: \"Signal: LOW — Routine session, nothing recorded.\"\n\n---\n\n## Honesty rules\n\n- Never invent decisions not in the conversation or implied by the diff\n- \"inferred:\" prefix when reasoning is reconstructed\n- Frame D must be calibrated — neither overclaim nor dismiss\n- If all frames score \u003C 0.4 → write nothing\n\n---\n\n## PreCompact snapshot (context compaction defence)\n\nWhen context compaction is about to happen (triggered by the PreCompact hook),\nrun a lightweight mid-session checkpoint before context is lost:\n\n1. Compute current Layer 01 signal level from available context\n2. Score all four frames against what's visible now\n3. Write a snapshot to `session-history\u002F.tmp-TIMESTAMP.json`:\n\n```json\n{\n  \"timestamp\": \"YYYY-MM-DD HH:MM:SS\",\n  \"trigger\": \"pre-compact\",\n  \"signal\": \"HIGH \u002F MEDIUM \u002F LOW\",\n  \"frames\": { \"technical\": 0.0, \"uncertainty\": 0.0, \"fork\": 0.0, \"ai_contribution\": 0.0 },\n  \"intent\": \"FEATURE_BUILDING\",\n  \"key_moments\": [\n    \"one-line description of the most important decision or finding so far\"\n  ]\n}\n```\n\nWhen `\u002Fcollab-proof` runs at session end:\n- Read all `session-history\u002F.tmp-*.json` files\n- Merge frame scores (take max per frame across all snapshots)\n- Combine `key_moments` arrays — these preserve tradeoff discussions that were compacted away\n- Delete `.tmp-*.json` files after merging\n","# collab-proof\n\nSurfaces AI collaboration evidence the developer didn't consciously record.\nVela 3-layer pipeline × ADHD 4-frame reasoning — prompt-native, zero dependencies.\n\n---\n\n## Layer 01 — Signal detection\n\nRun `git log --oneline -10` and `git diff --stat HEAD~3..HEAD` first.\n\nClassify signal level using this rubric (pick the highest that matches):\n\n**HIGH** → full artifacts (DECISIONS.md + session-history + WORKLOG + HTML)\n- New file created, OR\n- 4+ files modified, OR\n- Explicit option comparison in conversation (\"vs\", \"instead of\", \"chose X over Y\"), OR\n- Design discussion lasted 15+ exchanges, OR\n- **Bug with root cause diagnosis** — conversation contains WHY the bug happened\n  (not just \"fixed X\" but \"the bug was caused by Y because Z\")\n\n**BUG_FIXING special rule** — override file count:\nEven if only 1 file changed, classify as HIGH if the conversation contains:\n- Root cause explanation (\"the bug was...\", \"this happened because...\", \"the issue is...\")\n- Diagnosis process (\"I checked...\", \"turned out...\", \"the problem was...\")\n- Fix rationale (\"chose this approach because...\", \"instead of X, used Y because...\")\nFile count doesn't matter for bugs — a well-diagnosed single-file fix is more valuable\nthan a 10-file feature with no discussion.\n\n**MEDIUM** → WORKLOG only\n- 1–3 files modified with no root cause discussion, OR\n- Minor feature added, no tradeoffs discussed\n\n**LOW** → silence, tell user \"Routine session — nothing recorded.\"\n- No code changes, only planning\u002Fdiscussion, OR\n- Single trivial change with no context (\"change this text\", \"fix typo\", \"rename variable\")\n\nShow the user: `Signal: HIGH \u002F MEDIUM \u002F LOW — [one-line reason]`\n\n---\n\n## Layer 02 — WorkIntentClassifier\n\nRun all four frames simultaneously against conversation context + git diff.\nScore each frame 0.0–1.0 using the rubric below. Then apply pruning and classification rules.\n\n### Frame scoring rubric\n\n**Frame A — Technical** (code churn complexity)\n- `1.0` New module\u002Ffile created, complex logic added (state machine, Lua script, novel algorithm)\n- `0.5` Existing function logic modified, simple API endpoint added\n- `0.1` Typo fix, comment change, plain text edit\n\n**Frame B — Uncertainty** (developer doubt signals)\n- `1.0` Code written then fully rolled back, explicit doubt expressed (\"이게 맞나?\", \"동작 안 하네\"), `git revert`\n- `0.5` Advice sought from Claude mid-implementation, 2+ revision requests on same area\n- `0.0` Uninterrupted directive execution — developer knew exactly what to build\n\n**Frame C — Fork** (decision branch presence)\n- `1.0` Two or more alternatives explicitly compared in conversation (A vs B)\n- `0.5` No explicit comparison but tradeoff mentioned (performance vs readability)\n- `0.0` Single standard approach applied, no alternatives considered\n\n**Frame D — AI contribution** (Claude's actual impact)\n- `1.0` Claude identified a bug\u002Fedge case the developer hadn't noticed and proposed the fix\n- `0.6` Claude generated structural boilerplate\u002Fskeleton that significantly accelerated execution\n- `0.2` Claude reformatted or transcribed developer-directed code without independent contribution\n\n---\n\n### Pruning rule\n\nPrune any frame scoring \u003C 0.4.\n\n**Exception — High-Speed Execution Guard:**\nIf `Frame A >= 0.8` AND `Frame D >= 0.6`, do NOT prune and do NOT silence the session,\neven if Frame B = 0.0 and Frame C = 0.0.\nThis is a boilerplate-heavy FEATURE_BUILDING session. Classify immediately as `FEATURE_BUILDING` with `HIGH` signal.\nRationale: zero uncertainty in a fast-moving session is a feature, not a reason to discard it.\n\n---\n\n### Intent classification\n\n| Surviving frames | Dominant intent | Meaning |\n|---|---|---|\n| A high + D mid-high (B, C low) | `FEATURE_BUILDING` | High-velocity feature generation, Claude scaffolding |\n| B high + A\u002FD high | `BUG_FIXING` or `STUCK` | Active debugging or unresolved looping |\n| C high + A high | `REFACTORING` or `EXPLORING` | Architecture exploration, weighing alternatives |\n| All frames \u003C 0.4 | `FLOW_STATE` or LOW | Routine typing, silence unless Layer 01 was HIGH |\n\nIf multiple intents tie, pick the one with the highest combined frame score.\nRecord the runner-up — it belongs in the session narrative.\n\n---\n\n### Internal output format\n\nBefore proceeding to Layer 03, resolve to this structure (show it to the user):\n\n```json\n{\n  \"frames\": {\n    \"technical\": 0.0,\n    \"uncertainty\": 0.0,\n    \"fork\": 0.0,\n    \"ai_contribution\": 0.0\n  },\n  \"pruned\": [\"list of pruned frame names\"],\n  \"intent\": \"FEATURE_BUILDING\",\n  \"signal\": \"HIGH\",\n  \"calibration_note\": \"one sentence explaining any exception rule applied\"\n}\n```\n\n---\n\n## Layer 03 — Output\n\n### If HIGH signal\n\n**Append to `DECISIONS.md`** — one entry per real fork (Frame C must confirm alternatives existed):\n\n```markdown\n## [YYYY-MM-DD] \u003Ctitle>\n\n**Context**: [Frame A — what forced this choice]\n**Decision**: what was chosen\n**Alternatives considered**: [Frame C — road not taken]\n**Reasoning**: why — prefix \"inferred:\" if reconstructed from context\n**AI contribution**:\n  - Identified: [Frame D — something developer missed]\n  - Suggested: [Frame D — approach or alternative]\n  - Developer-driven: [what the developer decided independently]\n**Intent class**: [from Layer 02]\n**Signal score**: HIGH\n**Outcome**: implemented | pending | reversed\n```\n\nIf no real fork existed → write nothing. Never fabricate decisions.\n\n**BUG_FIXING intent: use this format instead:**\n\n```markdown\n## [YYYY-MM-DD] \u003Cbug title>\n\n**Root cause**: what actually caused the bug — the WHY, not just the what\n**Symptom**: what the developer observed\n**Fix**: what was changed\n**Why this fix**: rationale — inferred if not stated explicitly\n**Alternative fixes considered**: other approaches discussed (if any)\n**AI contribution**:\n  - Identified: [Frame D — did Claude spot the root cause?]\n  - Suggested: [Frame D — fix approach or diagnostic step]\n  - Developer-driven: [what the developer diagnosed\u002Fdecided independently]\n**Intent class**: BUG_FIXING\n**Signal score**: HIGH\n**Outcome**: fixed | workaround | deferred\n```\n\n**Create `session-history\u002FYYYY-MM-DD-HHMM.md`**:\n\n```markdown\n# Session [YYYY-MM-DD HH:MM]\n\n**Intent**: [class] (runner-up: [class if any])\n**Signal**: HIGH\n**Frames active**: A ([score]) \u002F B ([score]) \u002F C ([score]) \u002F D ([score])\n\n## What shipped\n[grounded in git log]\n\n## What was figured out\n[Frame B + C — the reasoning, tradeoffs, debugging — what developers forget]\n\n## Decisions made this session\n[refs to DECISIONS.md entries]\n\n## Where it got hard\n[Frame B findings — uncertainty, reverts, EXPLORING\u002FSTUCK signals]\n\n## AI contribution summary\n[Frame D synthesis — one honest paragraph, calibrated]\n\n## Next steps inferred\n[what's obviously incomplete]\n```\n\n**Append to `WORKLOG.md`**:\n```\nYYYY-MM-DD HH:MM | [intent] | HIGH | D:[score] | cache:[hit%]% | tok:[total] | \u003Cverb phrase> — \u003Cwhy it mattered>\n```\n\nFields:\n- `D:[score]` — Frame D AI contribution score (0.0–1.0)\n- `cache:[hit%]%` — cache hit rate from token analysis (or `cache:n\u002Fa` if no data)\n- `tok:[total]` — total tokens this session (input + cache_read + cache_create + output, in K e.g. `45K`)\n- verb phrase — what shipped, grounded in git log\n\n**Collect token usage** (bash — run this and capture output):\n```bash\npython3 -c \"\nimport json, sys\nfrom pathlib import Path\n\nprojects = Path.home() \u002F '.claude\u002Fprojects'\nfiles = sorted(projects.rglob('*.jsonl'), key=lambda f: f.stat().st_mtime, reverse=True)\nif not files:\n    print('no_data'); sys.exit()\n\nwith open(files[0]) as fp:\n    lines = [json.loads(l) for l in fp if l.strip()]\n\nti = to = cr = cc = 0\nturns = []\nfor i, line in enumerate(lines):\n    if line.get('type') == 'assistant':\n        u = line.get('message', {}).get('usage', {})\n        if not u: continue\n        inp = u.get('input_tokens', 0)\n        ti += inp; to += u.get('output_tokens', 0)\n        cr += u.get('cache_read_input_tokens', 0)\n        cc += u.get('cache_creation_input_tokens', 0)\n        prompt = ''\n        for j in range(i-1, -1, -1):\n            if lines[j].get('type') == 'user':\n                c = lines[j].get('message', {}).get('content', '')\n                prompt = (c if isinstance(c, str) else next((x.get('text','') for x in c if isinstance(x,dict) and x.get('type')=='text'), ''))[:80]\n                break\n        turns.append((inp, prompt))\n\ntotal = ti + cr + cc\nhit = cr \u002F total * 100 if total else 0\nprint(f'input={ti} output={to} cache_read={cr} cache_create={cc} hit={hit:.0f} turns={len(turns)}')\nturns.sort(reverse=True)\nfor idx, (tok, p) in enumerate(turns[:3]):\n    print(f'top{idx+1}={tok}|{p}')\n\"\n```\n\nParse the output and include token stats in the session narrative. Then:\n\n**Generate `session-history\u002FYYYY-MM-DD-HHMM-proof.html`** — write a self-contained HTML file. Structure and class names are fixed — do not rename or reorder sections.\n\n**Fixed CSS tokens (use exactly):**\n- Background: `#0d1117`, Card: `#161b22`, Border: `#30363d`\n- Font: `font-family: 'Courier New', monospace`\n- Frame score colors: `high` → `#3fb950`, `low` → `#f85149`, pruned → `#8b949e`\n- AI line colors: `ai-identified` → `#a371f7`, `ai-suggested` → `#d29922`, `ai-developer` → `#3fb950`\n\n**Fixed HTML structure (class names must match exactly):**\n```\n\u003Cdiv class=\"header\">\n  \u003Cdiv class=\"header-top\">\n    \u003Cdiv class=\"project-name\">\n    \u003Cspan class=\"badge\">                    \u003C!-- intent class -->\n  \u003Cdiv class=\"meta-row\">                    \u003C!-- date, branch, signal level text -->\n  \u003Cdiv class=\"signal-container\">\n    \u003Cdiv class=\"signal-label\">\n    \u003Cdiv class=\"signal-track\">\n      \u003Cdiv class=\"signal-fill\">             \u003C!-- width % driven by signal score -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- frames -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">Layer 02 · ADHD tree-of-thought\u003C\u002Fspan>\n  \u003Cdiv class=\"frames-grid\">\n    \u003Cdiv class=\"frame-card\">               \u003C!-- pruned: class=\"frame-card pruned\" -->\n      \u003Cdiv class=\"frame-label\">            \u003C!-- Frame A \u002F B \u002F C \u002F D -->\n      \u003Cdiv class=\"frame-name\">\n      \u003Cdiv class=\"frame-score high|low\">   \u003C!-- score value -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- decisions — skip section if none -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">N recorded\u003C\u002Fspan>\n  \u003Cdiv class=\"decision-card\">              \u003C!-- one per DECISIONS.md entry -->\n    \u003Cdiv class=\"decision-header\">\n      \u003Cdiv class=\"decision-title\">\n      \u003Cdiv class=\"decision-date\">\n    \u003Cdiv class=\"decision-fields\">\n      \u003Cdiv class=\"field-row\">\n        \u003Cdiv class=\"field-label\">          \u003C!-- Context \u002F Decision \u002F Alternatives \u002F Reasoning -->\n        \u003Cdiv class=\"field-value\">\n      \u003Cdiv class=\"field-row\">              \u003C!-- AI contribution row -->\n        \u003Cdiv class=\"field-label\">AI contribution\u003C\u002Fdiv>\n        \u003Cdiv class=\"field-value\">\n          \u003Cdiv class=\"ai-block\">\n            \u003Cdiv class=\"ai-line ai-identified|ai-suggested|ai-developer\">\n              \u003Cspan class=\"tag\">IDENTIFIED|SUGGESTED|DEV-DRIVEN\u003C\u002Fspan>\n      \u003Cdiv class=\"field-row\">              \u003C!-- Outcome row -->\n        \u003Cdiv class=\"field-label\">Outcome\u003C\u002Fdiv>\n        \u003Cdiv class=\"field-value\">\n          \u003Cspan class=\"outcome-badge outcome-implemented|outcome-pending|outcome-reversed\">\n\n\u003Cdiv class=\"section\">                       \u003C!-- session narrative -->\n  \u003Cdiv class=\"section-title\">Session narrative\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-grid\">\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- What shipped -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- What was figured out -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- Where it got hard -->\n    \u003Cdiv class=\"narrative-card\">           \u003C!-- Next steps inferred -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- AI contribution summary -->\n  \u003Cdiv class=\"section-title\">AI contribution summary\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-card\">             \u003C!-- Frame D synthesis paragraph -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- token usage -->\n  \u003Cdiv class=\"section-title\">Token usage\u003C\u002Fdiv>\n  \u003Cdiv class=\"narrative-card\">             \u003C!-- cache hit rate bar + top turns + optimization note -->\n\n\u003Cdiv class=\"section\">                       \u003C!-- worklog tail -->\n  \u003Cdiv class=\"section-title\"> ... \u003Cspan class=\"count\">last N entries\u003C\u002Fspan>\n  \u003Cdiv class=\"worklog-entry\">              \u003C!-- one per recent WORKLOG line -->\n\n\u003Cdiv class=\"footer\">                        \u003C!-- last commit hash · \"Generated by collab-proof · timestamp\" -->\n```\n\nWrite the HTML using bash:\n```bash\ncat > session-history\u002FYYYY-MM-DD-HHMM-proof.html \u003C\u003C 'HTMLEOF'\n\u003C!DOCTYPE html>\n... (full HTML with inline CSS, no external resources)\nHTMLEOF\n```\n\nAfter writing, show: `open session-history\u002FYYYY-MM-DD-HHMM-proof.html`\n\n---\n\n### If MEDIUM signal\n\nAppend one line to `WORKLOG.md` only:\n```\nYYYY-MM-DD HH:MM | [intent] | MEDIUM | D:[score] | cache:[hit%]% | tok:[total] | \u003Cverb phrase>\n```\n\n---\n\n### If LOW signal\n\nTell user: \"Signal: LOW — Routine session, nothing recorded.\"\n\n---\n\n## Honesty rules\n\n- Never invent decisions not in the conversation or implied by the diff\n- \"inferred:\" prefix when reasoning is reconstructed\n- Frame D must be calibrated — neither overclaim nor dismiss\n- If all frames score \u003C 0.4 → write nothing\n\n---\n\n## PreCompact snapshot (context compaction defence)\n\nWhen context compaction is about to happen (triggered by the PreCompact hook),\nrun a lightweight mid-session checkpoint before context is lost:\n\n1. Compute current Layer 01 signal level from available context\n2. Score all four frames against what's visible now\n3. Write a snapshot to `session-history\u002F.tmp-TIMESTAMP.json`:\n\n```json\n{\n  \"timestamp\": \"YYYY-MM-DD HH:MM:SS\",\n  \"trigger\": \"pre-compact\",\n  \"signal\": \"HIGH \u002F MEDIUM \u002F LOW\",\n  \"frames\": { \"technical\": 0.0, \"uncertainty\": 0.0, \"fork\": 0.0, \"ai_contribution\": 0.0 },\n  \"intent\": \"FEATURE_BUILDING\",\n  \"key_moments\": [\n    \"one-line description of the most important decision or finding so far\"\n  ]\n}\n```\n\nWhen `\u002Fcollab-proof` runs at session end:\n- Read all `session-history\u002F.tmp-*.json` files\n- Merge frame scores (take max per frame across all snapshots)\n- Combine `key_moments` arrays — these preserve tradeoff discussions that were compacted away\n- Delete `.tmp-*.json` files after merging\n",{"name":5,"license":15,"description":7},"main","0da4485785ee599388900be50db1635489d53056",".agents\u002Fskills\u002Fcollab-proof","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6","https:\u002F\u002Fdisha6.6.thenitishkr.in\u002F","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh","www.thenitishkr","thenitishkr | AI • Cyber-security • Research\r\n","2026-11-08 03:33:25",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add Tashima-Tarsh\u002FDisha6.6 --skill collab-proof",{"tool":54,"command":55},"bunx","bunx skills add Tashima-Tarsh\u002FDisha6.6 --skill collab-proof",{"tool":57,"command":58},"pnpm","pnpm dlx skills add Tashima-Tarsh\u002FDisha6.6 --skill collab-proof","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcollab-proof\u002FSKILL.md",true,[],[63,89,113,137,161,184],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":34},"01M6QRD07D4TGNDK6VJ4EHF8BV","youtube-full","Use when the user needs YouTube transcripts, video search, channel browsing, playlist extraction, or content monitoring. Trigger phrases: 'get the transcript for', 'search YouTube for', 'what are the latest videos on', 'list this playlist', 'monitor this channel', or any request involving a YouTube URL, video ID, or @handle. Do NOT use for downloading video or audio files, YouTube engagement data (likes, comments), or private\u002Fage-restricted videos.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fyoutube-full\u002FSKILL.md",[],[70,71,72,73,74,75,76,77,78,79,80,28,81,82,83,84,85,86,87,88],"youtube full","youtube","full","transcript","search","monitoring","data","Video","Audio","list","files","get","age","trigger","URL","for","browsing","request","youtube transcripts",{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6QRCJ3112VYPA97YG7KGMC2","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[96,97,98,99,74,100,101,102,103,104,105,106,107,108,26,109,110,111,112,85],"twitter","x twitter growth","growth","research","content","engineering","plan","web search","competitors","analyze","engine","write","strategy","platform","grow","posting","competitive",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":34},"01M6QRBN3EHQNJY42RERP7A149","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, build, or author a new skill.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[120,107,121,122,123,124,125,126,26,127,128,39,129,130,131,132,133,134,135,136],"write a skill","github","create","https","productivity","matt pocock","direct","example","build","new skill","structure","new agent","resources","with","tree","progressive disclosure","author",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":34},"01M6QRB6G8P33PNGAF9Y69EJ9T","wrap-up","Close out a launched Claude Managed Agent — recap every primitive the founder now owns, regenerate the single-file overview page, and suggest the next 1-2 upgrades. Use when the user says \"wrap up\", \"close this out\", \"what do I own now\", \"give me the summary\", \"recap the agent\", or when the orchestrator routes phase=wrap-up. primitives_inventory.py tables everything owned (agent, environment, session, memory, outcome, deployment); overview_page.py regenerates a self-contained .\u002Fmy-agent\u002Fagent-overview.html; upgrade_suggester.py ranks the next moves from recorded deferrals plus standing hardening steps. Companion to run-without-you; the last stop before phase=done.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwrap-up\u002FSKILL.md",[],[144,145,146,147,148,149,150,151,152,26,153,28,154,155,156,157,33,158,159,160],"wrap up","up","wrap","gemini","deployment","run","file","hardening","closeout","stop","upgrade","founder","close","companion","tables","directions","phase",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":34},"01M6QRA5AYC1RBFZ39GTWGS3N8","workflow-builder","Design and write deterministic multi-agent workflow scripts (.js files in .claude\u002Fworkflows\u002F) for Claude Code's Workflow tool. Use when a user wants to build, create, author, scaffold, or run a custom Claude Code workflow, orchestrate sub-agents (fan-out, pipeline, loop, judge-panel), or automate a repeatable multi-step task across fresh-context agents.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fworkflow-builder\u002FSKILL.md",[],[168,169,170,171,172,122,149,173,174,175,176,177,107,178,80,179,180,181,182,183],"workflow","workflow builder","builder","design","workflows","code","orchestrate","pipeline","loop","multi-agent","context","across","fresh","scripts","judge","claude code workflow",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":34},"01M6QR7QMCZESKQA0ERW1E657M","weekly-review","Use when someone wants to run a weekly review, close open loops, audit stalled projects and commitments, get their system back to trusted, restart a lapsed review habit, or says \"\u002Fcs:weekly-review\". Walks David Allen's three-phase loop — GET CLEAR, GET CURRENT, GET CREATIVE — with deterministic scripts that inventory open loops, gate the checklist with named gaps, and score commitment health 0-100.","https:\u002F\u002Fgithub.com\u002FTashima-Tarsh\u002FDisha6.6\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fweekly-review\u002FSKILL.md",[],[191,192,193,194,195,196,197,198,199,176,200,201,202,203,204,205,81,206,207,160],"review","weekly review","weekly","deterministic scripts","reflect","feeds","inventory","open","team","projects","project-management","scanner","conversation","back","project","sprint","cadence"]