/collab-audit:collab-auditfrom collab-audit
Analyzes conversation history, artifacts, and work patterns to generate a 14-section AI Collaboration Audit based on direct behavioral observation. Saves reports to ~/.claude/collab-audits/ and supports compare mode for diffing the latest two audits.
Ships in collab-audit. 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.
Read when SKILL.md points to them; scripts run unread.
Analyzes conversation history, artifacts, and work patterns to generate behavioral and psychological insights. Based on direct behavioral observation during actual work rather than self-report surveys. More accurate than survey-based methods.
Whether the analysis infers reasons behind observed patterns, not just lists facts (facts alone ≠ success)
/collab-audittriggers and description.~/.claude/.harness/invocations/*.jsonl (written by session-checkpoint) — optional. If it does not exist, Section 7 says "no log" for invocation counts. File formats: https://github.com/AlexZio00/sovereign-skills/blob/master/docs/FILE-CONVENTIONS.md/collab-audit compare or "compare" → Compare mode (separate section below)Minimum conditions — one of:
⚠ Single-session analysis — pattern confidence limited then proceed.Deterministic gate (preferred): if session-meta JSON files are available (one per session, with fields such as message_count, artifact_count, originator, first_message, cwd), run python3 "${CLAUDE_SKILL_DIR}/scripts/session_hygiene_scan.py" --meta-dir <DIR> and read meets_minimum / single_session_exception straight from its JSON output — do not re-derive these booleans by eyeballing the transcripts. Fall back to manual counting only when no such metadata directory exists (e.g. a single live conversation with no file access).
If session-meta JSON does not exist yet, build it first from real Claude Code session JSONL (the gate cannot run on raw JSONL):
python3 "${CLAUDE_SKILL_DIR}/scripts/extract_session_meta.py" --out-dir <scratchpad>/collab-meta --days 30 --max 20
python3 "${CLAUDE_SKILL_DIR}/scripts/session_hygiene_scan.py" --meta-dir <scratchpad>/collab-meta
${CLAUDE_SKILL_DIR} is this skill's folder; Claude Code fills it in. In other agents, replace it with the path where you installed the skill. Use python instead of python3 where only that exists (common on Windows).
The extractor reads ~/.claude/projects by default (--projects-dir overrides) and stores counts plus the session's cwd and entrypoint, never prompt text; its docstring is the canonical field definition. It skips subagent transcripts before applying --max and prints how many it skipped on stderr. If a script is missing or cannot start, say so, count by hand, and write "manual count — script not run" in the report.
If all unmet:
"Insufficient data — minimum 2 sessions or 100 messages required. Currently [K] sessions, [N] messages, [M] artifacts observed."
Output and stop immediately. Reject even "prediction-based" requests.
Determines delivery intensity for Section 11 blind spots only. Other sections are factual, so tone variance is minimal.
Read signals from conversation patterns. Long messages mix two causes — explaining feelings/context and pasting code or logs — so exclude long messages that are more than half code blocks (```) or log lines from the style signal. If the deterministic gate (Step 0.6) was not actually run, write "manual count — script not run" in the report; never present it as a script result.
Mark result 1 line before Section 11: [Delivery intensity: Direct / Calibrated]
Mid-session re-assessment: If conversation tone shifts noticeably (emotion spike, request method change, defensive responses appear), re-assess right before Section 11 output. Initial assessment does not lock in the entire session.
Important: Changing delivery intensity does not change blind spot content (accuracy). Only adjusts temperature.
When multiple observation sources exist (e.g. session JSONLs), determine — before analysis — whether each source is an organic user session or an automation byproduct. A qualitative caveat alone (the old Step 1 approach) is not enough; automated sessions can be mistaken for user behavior.
Deterministic gate: run python3 "${CLAUDE_SKILL_DIR}/scripts/session_hygiene_scan.py" --meta-dir <DIR> against the directory of session-meta JSON files. The script classifies every session into one of three states — include (organic) / uncertain (cannot confirm either way) / exclude (confidently auto-derived) — and returns included_count, excluded_count, uncertain_count, meets_minimum, and single_session_exception in one JSON object — read those fields directly rather than re-judging exclusion by eye. --meta-dir reads *.json files non-recursively (files in subfolders are ignored). Required field types: message_count (int), artifact_count (int), deep_conversation_ratio (float), session_meta.source.thread_spawn (bool) — a wrong type classifies the session as unreadable. If unreadable > 0, report the count of unreadable sessions and mark the result PARTIAL.
Detection criteria the script applies:
subagent/thread_spawn/agent_nickname; OR cwd matches a naming convention specific to paired/multi-arm experiment harnesses (e.g. pair-run, arm-a/arm-b, ab-test); OR originator is an SDK/bot/exec-type process with no direct user-input signal (natural conversational opening message) present. The originator and first_message fields are not in Claude Code session JSONL, so extract_session_meta.py does not emit them and this last rule applies only to meta files from another source that carry them. The cwd rule works on extractor output.pipeline) with no other automation marker — a real user project named e.g. data-pipeline-tool must not be silently misclassified as an automated harness just because the word appears; OR the session-meta object is present but empty (no fields at all) — an empty object is not evidence of an organic session and must not be auto-classified as one.Malformed metadata (session-meta root is not a JSON object, e.g. [], or a count field like message_count/artifact_count is a non-numeric type such as a string) is routed to unreadable, not silently coerced or crashed on — count fields must be actual numbers, not something that merely looks numeric.
Exclusion: sessions the script flags exclude are removed from the analysis population; report the exclusion count and reason in 1 line straight from the script output (e.g. "16 of 16 sessions excluded — all were thread_spawn subagent sessions"). Do not substitute a qualitative impression ("seems skewed toward one type") for the script's explicit denominator.
Uncertain handling: sessions flagged uncertain are neither included nor excluded automatically. Report the uncertain_count and list the reasons in 1 line, then ask the user to confirm (or apply their own knowledge of which sessions are real) before deciding whether to fold each one into the analysis population — do not silently default uncertain sessions to either bucket.
Skip condition: if the only observation source is the current conversation (no multi-session file access, no session-meta JSON available), the script cannot run — fall back to the qualitative criteria above and proceed to the next step.
Collect all available observation sources, restricted to organic sessions surviving Step 0.6:
Post-collection disclosure (mandatory): State analysis limitations — [1-2 skewed work types], [whether failures/abandonment observed] in 1-2 lines, then proceed to Step 2. If data skews toward specific domain (e.g., coding only, conversation only), flag it.
Extract evidence needed for each section first. Secure evidence before output.
Fit collected evidence into each section's analysis framework. Link behavioral evidence to all framework labels (MBTI, DiSC, etc.) — mandatory. Outputting labels without evidence is analysis failure.
Do not change section order or arbitrarily omit sections. For data-empty sections, mark "Observation unavailable" then proceed to next.
---
profile_version: 1.0 # report-format version (not the skill version): bump when the section count or section names change; a report without this frontmatter is treated as `legacy` in compare mode
sections: 14
date: YYYY-MM-DD
language: [ko|en]
---
# AI Collaboration Audit YYYY-MM-DD
~/.claude/collab-audits/YYYY-MM-DD.md.
-2.md suffix (no overwrite)~/.claude/.gitignore:
.gitignore with single line collab-audits/.collab-audits/ → add that line..gitignore does not retroactively untrack a file that was already committed before the pattern existed. Run git -C ~/.claude rev-parse --is-inside-work-tree first; if that fails, ~/.claude is not a git repo and the entry is simply inert (state that, not "blocked"). If it is a repo, run git -C ~/.claude ls-files --error-unmatch collab-audits/ 2>&1 — a non-error match means one or more files under collab-audits/ are already tracked despite the ignore rule..gitignore present and ls-files finds no tracked match under collab-audits/):
Saved: ~/.claude/collab-audits/YYYY-MM-DD.md
⚠ Personal audit result — git tracking blocked (~/.claude/.gitignore)
ls-files shows this file (or another file under collab-audits/) is already tracked:
Saved: ~/.claude/collab-audits/YYYY-MM-DD.md
🔴 Already tracked by git despite .gitignore — adding a pattern does not retroactively untrack committed files. Run: git -C ~/.claude rm --cached <path> to actually untrack it.
Reverse-engineer values from creations (code, documents, systems).
User-led / AI-assisted / Co-created. If inseparable, mark Co-created and explicitly downgrade that section's confidence.Classify questions on two axes:
Maturity level assessment (choose one):
Delegation vs ownership:
Recovery strategy classification (state observed types):
How is blockage distinguished from failure? Is failure logged in the system?
Collaboration anti-pattern flags (observation-only — omit if not observed):
Flag only inefficiency habits observed 2+ times. Exclude one-offs. Unlike blind spots (Section 11), evidence is behavioral frequency count — N observations only, no speculation.
Energy landscape:
Time horizon structure:
If no Claude usage data → mark "N/A" and proceed to next section.
Deterministic input: do not estimate the invocation numbers in this section. Quote the output of python3 "${CLAUDE_SKILL_DIR}/scripts/harness_log_counts.py" --days 30 as is (top skills and agents, discarded skills, session count, sources, skipped_lines). It reads the invocation ledger that session-checkpoint writes, counts records from every source, and accepts discarded entries in both forms (plain name or {skill, reason}); if the ledger is missing the script prints zeros, so write "no log" in that case.
If no Claude usage data → mark "N/A" and proceed to next section. Level assessment (choose one):
tasks/lessons.md in use — AI behavior correction loop exists. Meta-layer built to convert repeated mistakes into rulesAlso document recovery patterns after context loss.
Measure "undo", "revert", "remove that" frequency.
Link behavioral evidence to each framework and mark confidence (High/Medium/Low).
10-A. Reader AI User Type Classification (most important) Judge primary + secondary types:
10-B. MBTI Indicators (apply only when observation data actually supports it — if evidence is weak, mark that axis Observation unavailable/Low and it may be skipped) 4-axis direction + strength estimate per axis. Mark confidence.
10-C. DiSC Profile (apply only when observation data actually supports it — if evidence is weak, mark that axis Observation unavailable/Low and it may be skipped) D/i/S/C proportion estimate. Primary + secondary style.
10-D. Enneagram Hypothesis (apply only when observation data actually supports it — if evidence is weak, mark that axis Observation unavailable/Low and it may be skipped) Type + Wing hypothesis. Format "this behavior supports it" — minimum 2 evidence pieces.
10-E. Big Five Estimate (apply only when observation data actually supports it — if evidence is weak, mark that axis Observation unavailable/Low and it may be skipped) O/C/E/A/N each High/Medium/Low. One behavioral basis per dimension.
Blind spots (areas likely unknown to self):
After outputting blind spots, include feedback loop — mandatory question:
"Name one above blind spot you think is most wrong."
This rebuttal is additional data. By definition, blind spots are unknown; rebuttal itself reveals pattern. Upon rebuttal: Rebuttal type assessment:
Observation unavailable — rebuttal inconclusive (no counterexample given). Do not record disagreement or silence as confirming evidence of the blind spot — treating "no falsifying evidence" as "confirmed" makes the claim unfalsifiable (any response short of a specific counterexample would always end up "proving" the blind spot). Keep the blind spot's original wording/confidence unchanged; do not upgrade or reinforce it based on the rebuttal itself.One development direction (highest leverage only):
Judge the previous advice (required, also on a fresh audit): if ~/.claude/collab-audits/ holds an earlier report, read the 11.5 advice of the newest one and judge it against this audit's observations using the criteria under "Advice Execution Status" (executed / partially executed / not executed / indeterminate, each with behavioral evidence). Put the result at the top of this section as a "Previous advice execution" subsection, so the judgment exists without running compare mode separately. If there is no earlier report, write one line: "No previous advice."
2-3 specific actions (how + when) to actually start Section 11 development direction (where).
Format: [Observed pattern] → [Specific situation] → [Action]
Conditions:
Track how the user's thinking level changes across sessions/time periods.
5-Level Model:
| Level | Name | Characteristics |
|---|---|---|
| L1 | Information Requester | Simple facts, summaries, explanations |
| L2 | Problem Solver | Solutions, comparisons, recommendations for specific problems |
| L3 | Structure Analyst | Variables, causes, mechanisms, system structures |
| L4 | Hypothesis Verifier | Presents own ideas + demands counterarguments, verification, alternatives |
| L5 | Thought Designer | Co-designs frameworks, decision structures, long-term strategies |
Analysis method:
↑ rising / → stable / ↓ decliningOutput:
Early: L[N] — [evidence quote]
Current: L[M] — [evidence quote]
Change: [↑/→/↓] [one-line interpretation]
Domain variance: [domainA: LN, domainB: LM]
AI attribution: [if applicable, 1 line]
Insufficient data → Not observable — insufficient timeline data.
Summarize this person in 20 characters or less.
On failure detection: Stop → Classify → Apply Recovery → Report & Resume.
| Failure type | Detection condition | Recovery path |
|---|---|---|
tool_failure | Session JSONL read fail / audit file Write fail | JSONL read fail → mark scope reduced to accessible sessions. Write fail → substitute dialog output |
missing_data | Sessions < 2 AND messages < 100 | Insufficient-data message, then stop immediately (Invariant 4). Only if the single-session high-density exception is met: mark ⚠ single-session limits and proceed in limited form. No arbitrary fill-in |
input_error | Range/period unclear | 1 clarification question — no guessed scope |
On audit report save and output:
⚠️ insufficient evidence. Do not disguise as "insight".⚠ single-session limits and proceed in limited form. No arbitrary padding.BROKEN status. If partial save, mark PARTIAL + list omitted sections. If the input sessions themselves cannot be read, mark BLOCKED with the reason.Audit mode:
~/.claude/collab-audits/YYYY-MM-DD.md (auto-save, no overwrite — use -2.md suffix if re-run same day)Saved: ~/.claude/collab-audits/YYYY-MM-DD.md~/.claude/collab-audits/, minimize verbatim quotes from conversations, and clean up old reports manually (there is no automatic deletion).Compare mode (/collab-audit compare):
~/.claude/collab-audits/
/collab-audit compare 2026-01-01 2026-04-09/collab-audit first and save the result."⚠ Version mismatch (v1.0 14 sections ↔ older version N sections) — common sections only## Audit Compare: [Date A] → [Date B]
### Key Change Summary
- What changed (2-3 lines)
- What remained (1 line)
### Change by Section
| Section | Previous | Current | Change |
|---------|----------|---------|--------|
| AI Type | Designer+Optimizer | Designer+Builder | Modified |
| MBTI | INTJ | INTJ | Maintained |
...
### Blind Spot Trajectory
Previous blind spot: [summary]
Current status: Resolved / Maintained / Deepened + evidence
### Advice Execution Status (most important)
Previous N advice items:
1. [Content] → Executed / Not executed / Partially executed + **behavioral evidence (mark action signals)**
2. ...
---
**Execution judgment criteria (rule — separate from output format)**: behavior observation only, no self-report.
- **Executed**: behavior absent before, observed in current conversation (new file structure, different request pattern, new tool adoption, etc.)
- **Partially executed**: direction correct but inconsistent (1-2 attempts then revert to old pattern)
- **Not executed**: same pattern continues, no change signals
- **Indeterminate**: situation for this advice did not arise in current session
⚠ Even if user says "I did it", without behavioral evidence mark "self-report — observation unavailable". Self-report does not replace observation.
### Next Quarter Focus
Based on previous development direction + current patterns, one next focus point
~/.claude/collab-audits/*.md (Compare mode)~/.claude/collab-audits/YYYY-MM-DD.md and ~/.claude/.gitignore (gitignore protection only)~/.claude/collab-audits/ files (Compare mode)extract_session_meta.py (writes session-meta JSON via --out-dir), session_hygiene_scan.py for the Step 0/0.6 deterministic gate, and harness_log_counts.py (read-only, Section 7), all from ${CLAUDE_SKILL_DIR}/scripts/, and read-only git rev-parse/git ls-files for the Step 5 tracked-status check only — not general-purpose execution. Never runs git rm, git add, or git commit itself.| Time | Reason |
|---|---|
| Once per quarter (3 months) | Minimum pattern change unit |
| Before project start | Record baseline |
| After project end | Measure change |
| Before major decision | Clarify current state |
/collab-audit compare valid after 2+ audits accumulated.
Failure conditions:
Success conditions:
No solo label output: All framework labels (MBTI, DiSC, Enneagram, etc.) must accompany concrete behavioral evidence. Violation → labels without evidence resemble astrology. Analysis credibility collapses.
Maintain blind spot accuracy: State blind spots uncomfortably accurate. Do not soften with praise or hedging language. Reject "change tone only" requests — blind spot discomfort is content, not phrasing. Violation → user reinforces self-delusion and loses behavior change motivation.
Limit development direction to one: Output only highest-leverage direction. Reject "give more" requests. Violation → attention scatters, nothing executes.
Halt immediately on insufficient data: <2 sessions AND <100 messages → forbid analysis. Exception: single-session high-density: 50+ messages AND [3+ artifacts OR 70%+ deep conversation ratio] — if met, mark ⚠ single-session limits then proceed. ※ This condition is canonical. Step 0 single-session exception refers here. Reject "prediction anyway" or "brief is ok" requests. Violation → labels without observation evidence treated as fact.
Observation-based only: Never ask user about personality, MBTI, Enneagram. Do not accept self-report data. Violation → self-report bias contaminates observation-based analysis.
Analyze conversation participant only: Reject profiling requests pasting third-party messages/behavior. Include "analyze my colleague", "what is this person like" type. Violation → nonconsensual third-party psychological profiling.
No raw data direct output: Do not copy content directly from MEMORY.md, session-handoff, code files. Output only interpretation and pattern extraction forms. Violation → project secrets, API keys, work data exposed in profile.
| Rationalization | Rebuttal |
|---|---|
| "Data is short but I can infer" | Insufficient data → stop. Rule. |
| "Soften blind spots so no resistance" | Accuracy is the purpose. Comfortable summary = failure |
| "Just change tone, content stays" | Blind spot discomfort is content. Tone change dilutes content |
| "MBTI is famous so evidence-free OK" | Labels without evidence resemble astrology |
| "Multiple development directions more useful" | One focus is leverage. Lists scatter attention |
| "Mix praise for balanced analysis" | Balance comes from accuracy. Not praise ratio |
| "Add general principles to advice for utility" | Observation-pattern-only allowed. Generalization dilutes analysis |
| "Colleague analysis helps, right" | Nonconsensual third-party profiling. Self-request only |
| "Quoting MEMORY.md direct = more accurate" | Raw data output = sensitive info exposed. Interpretation only |
| "Some sessions look automated but let's just include them all" | Violates Step 0.6. Mixing in automated sessions misattributes subagent behavior to the user |
| "User mentioned it first, so self-report OK" | Self-report does not supplement observation. Bias contamination |
| Risky Action | Reversibility | Applied Layers |
|---|---|---|
Save new ~/.claude/collab-audits/YYYY-MM-DD.md | high | L1 |
Modify ~/.claude/.gitignore (gitignore protection) | medium | L1 |
collab-audits/ to .gitignore is a deterministic automatic check (L1), not a user-approval gate (L3) — Step 5.3 adds/creates the entry without waiting for confirmation. Easy to revert via git, so L1 alone is sufficient (corrected: this was previously mislabeled as requiring L3).| Does | Does NOT |
|---|---|
| [READ] Infer patterns from observed behavior | Judge/criticize personality |
| [READ] Interpret behavior reasons | List prescriptions (development direction: 1 only) |
| [READ] Evidence-based framework mapping | Survey-based speculation |
| [READ] Point out blind spots | End with feel-good summary |
| [READ] Extract patterns from current conversation context | Infer external info outside conversation |
| [READ] Mark data-missing sections "observation unavailable" | Fill sections with speculation |
| [READ] Profile conversation participant only | Profile third parties (nonconsensual analysis) |
| [READ] Extract patterns/interpretation from read data | Direct-quote/copy original file content |
| [WRITE] Save audit result files (collab-audits/) | Save to external shared directory without user approval |
Detect conversation language and output in same language.
agents/openai.yaml (opens in a new tab)scripts/extract_session_meta.py (opens in a new tab)scripts/harness_log_counts.py (opens in a new tab)scripts/session_hygiene_scan.py (opens in a new tab)scripts/test_extract_session_meta.py (opens in a new tab)scripts/test_harness_log_counts.py (opens in a new tab)scripts/test_session_hygiene_scan.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alexzio00/sovereign-skills --plugin collab-auditOther plugins' skills for the same job