/cc-skills-meta:gtofrom cc-skills-meta
GTO v4.2 — Session-aware gap-to-opportunity analysis with RNS-compatible output
Ships in cc-skills-meta. 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.
GTO analyzes the current session's work — what was discussed, what was attempted, what remains incomplete — and produces RNS-compatible findings. It reads chat transcripts, handoff files, and session goals rather than doing heavy codebase scanning (that's /code, /test, /diagnose's job).
cd "P:/packages/cc-skills-meta" && python -m skills.gto.orchestrator --terminal-id "$WT_SESSION" --session-id "$CLAUDE_SESSION_ID" --root .
This runs:
Artifacts written to .claude/.artifacts/{terminal_id}/gto/.
After the orchestrator writes its artifact, spawn the Gap Reviewer subagent. This is NOT optional — it is the only agent that can reason beyond deterministic detectors (producing facts, inferences, unknowns, and recommendations from the accumulated evidence).
ARTIFACTS_ROOT="${CLAUDE_ARTIFACTS_ROOT:-P:/.claude/.artifacts}"
test -f "$ARTIFACTS_ROOT/$WT_SESSION/gto/gap_reviewer_handoff.json" && echo "GAP_REVIEW_NEEDED" || echo "NO_GAP_REVIEW"
If GAP_REVIEW_NEEDED, spawn a subagent:
Agent(
subagent_type="general-purpose",
description="GTO gap reviewer",
prompt="""You are a gap-to-opportunity reviewer. You receive pre-populated detector evidence and produce a structured review.
Read the handoff file at: $ARTIFACTS_ROOT/$WT_SESSION/gto/gap_reviewer_handoff.json
The handoff JSON contains:
- detected_facts: concrete observations from deterministic detectors
- signals_absent: detectors that ran but found nothing (absence as evidence)
- session_context: terminal_id, session_id, git_sha, files edited this session
- findings: current findings from the deterministic pipeline
Produce a JSON object with two fields and write it to: $ARTIFACTS_ROOT/$WT_SESSION/gto/gap_reviewer_result.json
1. "review": an object with these sections:
- "facts": list of concrete observations grounded in the detector evidence. Each entry is {"claim": "...", "source": "detector_name or file:line"}
- "inferences": list of hypotheses about failure modes or friction points. Each entry is {"hypothesis": "...", "confidence": "low|medium|high", "evidence": "what supports this"}
- "unknowns": list of important questions that cannot be answered from the evidence. Each entry is {"question": "...", "why_it_matters": "..."}
- "recommendations": list of specific next actions, ranked by impact. Produce as many as the evidence supports. Each entry is {"action": "...", "goal": "...", "assumption": "...", "rationale": "..."}
2. "findings": a JSON array of any NEW gaps you discovered that are NOT already in the input findings, following the standard finding schema:
{"id": "GAPR-{domain}-{number}", "title": "...", "description": "...", "domain": "...", "gap_type": "...", "severity": "...", "action": "realize", "priority": "...", "evidence": [...]}
Rules:
- Do not duplicate findings already present in the input
- Prefer issues predictable from system structure (overlapping validators, mode flags, format constraints)
- Do not propose large refactors without a concrete pain point from the evidence
- Mark confidence honestly — do not inflate inferences to facts
- If the session was exploratory with no clear trajectory, say so rather than forcing predictions
- Frame recommendations as actions the user can take, not obligations""",
)
After the subagent completes, re-run the orchestrator to merge the gap reviewer results:
cd "P:/packages/cc-skills-meta" && python -m skills.gto.orchestrator --terminal-id "$WT_SESSION" --session-id "$CLAUDE_SESSION_ID" --root .
The second run reads gap_reviewer_result.json and merges its findings into the final artifact.
The gap reviewer is the only mandatory agent. The remaining agents are optional enrichment — spawn them only if the user requests deeper analysis or if the gap reviewer identifies gaps that need further validation.
Optional agents (spawn sequentially if needed):
| Agent | Handoff | Result | Purpose |
|---|---|---|---|
| Domain Analyzer | domain_analyzer_handoff.json | domain_analyzer_result.json | Domain-specific health assessments |
| Findings Reviewer | findings_reviewer_handoff.json | findings_reviewer_result.json | Validate severity, reject false positives |
| Action Normalizer | action_normalizer_handoff.json | action_normalizer_result.json | Normalize into canonical RNS actions |
| Session Reviewer | session_reviewer_handoff.json | session_reviewer_result.json | Classify ambiguous session outcomes |
If any optional agents run, re-run the orchestrator afterward to merge their results.
Read the artifact:
cat ".claude/.artifacts/{terminal_id}/gto/outputs/artifact.json"
Render the findings using the RNS display format. Read the canonical format spec before rendering:
Read file: skills/gto/__lib/machine_render.py
This module defines the domain map, emoji assignments, subletter numbering, and the full RNS pipe-delimited machine format. Use the same domain groupings and emoji when rendering the human-readable display.
The display must follow the /rns output format:
{num} {emoji} {DOMAIN} ({count}){num}{letter} [{action}/{priority}] Description @ file:line0 — Do ALL Recommended Next Actions (N items)After rendering the deterministic findings, produce a structured gap-to-opportunity review. This is now partially automated via the Gap Reviewer (Step 1.5) which receives pre-populated detector evidence and produces a FACT/INFERENCE/UNKNOWN/RECOMMENDATION review plus any new findings.
If the Gap Reviewer ran successfully (check gap_reviewer_result.json), incorporate its review into the display. The review appears as a structured section after the RNS findings.
If the Gap Reviewer did not run (first pass, no agent results yet), perform the analysis manually based on these signals:
| Signal | What to notice |
|---|---|
| Incomplete work | Features half-implemented, functions with TODO bodies, tests commented out, branches unmerged |
| Dependency chains | A was completed but B depends on A and wasn't started — B is the natural next step |
| Deferred decisions | "We'll deal with that later", "skip for now", "not in scope" — these are future work queued by the user |
| Work trajectory | The pattern of what was done implies what comes next (wired agents → test them; created module → document it) |
| Avoidance signals | Something mentioned once then skirted around — usually the hard or uncertain parts that will surface again |
| Recurring themes | Same concern raised across multiple turns or sessions — high-confidence prediction it will come up again |
Self-reflection prompts (open-ended) — use when the session involved building, fixing, or documenting a feature, system, or workflow:
realize finding.For each predicted next action, render it as a realize action item in the RNS output with:
Display order:
realize itemsRules:
GTO reads from session-scoped sources (not global git state):
| Source | Purpose |
|---|---|
identity.json | Hook-captured session_id, transcript_path, cwd |
session_registry.jsonl | Terminal-scoped session chain history |
~/.claude/projects/*.jsonl | Chat transcripts (tool call extraction, goal/outcome detection) |
.claude/.artifacts/{terminal_id}/gto/carryover.json | Persisted findings across runs |
.claude/.artifacts/{terminal_id}/gto/*_handoff.json | Agent input files |
.claude/.artifacts/{terminal_id}/gto/*_result.json | Agent output files |
Agent prompts are defined in skills/gto/agents/prompts.py:
| Agent | Prompt Constant | Purpose |
|---|---|---|
| Domain Analyzer | DOMAIN_ANALYZER_SYSTEM | Enrich findings with domain-specific health assessments |
| Findings Reviewer | FINDINGS_REVIEWER_SYSTEM | Validate severity, reject false positives, dedupe |
| Action Normalizer | ACTION_NORMALIZER_SYSTEM | Normalize into canonical RNS action items |
| Session Reviewer | (in session_reviewer.py) | Classify ambiguous session outcomes |
| Gap Reviewer | GAP_REVIEW_SYSTEM | Structured FACT/INFERENCE/UNKNOWN/RECOMMENDATION review with context injection |
Findings are automatically routed to owning skills:
| Gap Type | Routes To |
|---|---|
| missingdocs | /docs |
| techdebt | /code |
| runtime_error, bug | /diagnose |
| security | /security |
| perf | /perf |
| invalidrepo | /git |
| session_* | Review and act |
All artifacts are terminal-scoped:
.claude/.artifacts/{terminal_id}/gto/
├── state/run_state.json
├── outputs/artifact.json
├── logs/failures.jsonl
├── carryover.json
├── domain_analyzer_handoff.json
├── domain_analyzer_result.json
├── findings_reviewer_handoff.json
├── findings_reviewer_result.json
├── action_normalizer_handoff.json
├── action_normalizer_result.json
├── session_reviewer_handoff.json
├── session_reviewer_result.json
├── gap_reviewer_handoff.json
└── gap_reviewer_result.json
The stop hook verifies completion by checking:
README.md (opens in a new tab)__init__.py (opens in a new tab)__lib/__init__.py (opens in a new tab)__lib/assertions.py (opens in a new tab)__lib/branch_awareness.py (opens in a new tab)__lib/carryover.py (opens in a new tab)__lib/changelog.py (opens in a new tab)__lib/clustering.py (opens in a new tab)__lib/completion_checker.py (opens in a new tab)__lib/context.py (opens in a new tab)__lib/context_boundaries.py (opens in a new tab)__lib/coverage.py (opens in a new tab)__lib/dedupe.py (opens in a new tab)__lib/dependency_order.py (opens in a new tab)__lib/detectors.py (opens in a new tab)__lib/docs_followup.py (opens in a new tab)__lib/evidence.py (opens in a new tab)__lib/freshness.py (opens in a new tab)__lib/hook_health.py (opens in a new tab)__lib/impact_radius.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.