context-retrospective
Analyze agent-user interaction transcripts to identify context network maintenance needs and guidance improvements. Use after significant agent interactions or to improve context networks.
What this skill does
# Context Network Retrospective ## Purpose Analyze agent-user interaction transcripts to identify context network maintenance needs and guidance improvements. Extract actionable insights for enhancing both network structure and agent instructions. ## Core Principle **Learn from every interaction.** Each transcript reveals gaps in context, navigation issues, and guidance problems that can be systematically fixed. --- ## Analysis Dimensions ### 1. Knowledge Gap Identification **Look For:** - Questions agent couldn't answer from existing context - Information discovered during task that should be pre-documented - Repeated lookups of same information - Agent confusion about structure, relationships, dependencies **Questions:** - What foundational knowledge was missing? - Which relationships weren't documented? - What context about history, decisions, or constraints was absent? - Which domain boundaries were unclear? **Output:** Missing information nodes and relationship gaps --- ### 2. Context Boundary Violations **Look For:** - Planning documents created outside context network - Implementation files placed in context areas - Agent uncertainty about where to place information - Mixed concerns within single documents **Questions:** - Did agent distinguish context from project artifacts? - Were "planning stays in context network" rules followed? - What guidance would prevent future confusion? **Output:** Boundary violations and guidance improvements needed --- ### 3. Navigation and Discovery Patterns **Look For:** - How agent found (or failed to find) information - Sequences of information access - Dead ends or inefficient paths - Information that should have been connected **Questions:** - What navigation paths did agent follow? - Which information should be more discoverable? - What logical connections were missing? - What hub documents would improve efficiency? **Output:** Navigation improvements and missing connections --- ### 4. Task-Context Alignment **Look For:** - Mismatches between task needs and available context - Information at wrong abstraction levels - Context too detailed or too high-level - Task patterns revealing organizational weaknesses **Questions:** - Was information at appropriate abstraction for the task? - Did context support decision-making needs? - Were there cognitive load issues from organization? - What restructuring would support this task type? **Output:** Abstraction adjustments and reorganization needs --- ### 5. Relationship Mapping Deficiencies **Look For:** - Agent difficulty understanding dependencies - Missing context about how changes affect other areas - Lack of clear interface definitions - Implicit relationships that should be explicit **Questions:** - What relationships were implied but not documented? - Which dependencies were discovered during task? - What impact relationships were unclear? - Where would explicit documentation have helped? **Output:** Missing relationships and documentation needs --- ### 6. Guidance Effectiveness **Look For:** - Agent behavior suggesting unclear guidance - Task approaches deviating from optimal patterns - Mode switching decisions and appropriateness - Tool usage relative to restrictions **Questions:** - Did agent follow mode-appropriate patterns? - Were mode transitions handled effectively? - What guidance was missing or unclear? - Did restrictions support the purpose? **Output:** Guidance refinements and rule clarifications --- ## Retrospective Process ### Phase 1: Preparation 1. **Context Gathering** - Load current context network state - Identify agent mode(s) used - Note task type and complexity - Review applicable rules 2. **Baseline** - Map context available at task start - Identify active guidance - Note recent network changes - Document expected vs. actual behavior ### Phase 2: Transcript Review 1. **Chronological Analysis** - Track information seeking patterns - Note decision points where context influenced choices - Identify struggle points - Map actual navigation paths 2. **Critical Incidents** - Flag confusion or inefficiency - Identify boundary violations - Note "rediscovery" of information - Mark where better context would have helped 3. **Pattern Recognition** - Recurring information needs - Systematic gaps in knowledge areas - Consistent navigation difficulties - Successful context utilization ### Phase 3: Gap Analysis 1. **Information Architecture** - Map knowledge coverage gaps - Evaluate abstraction appropriateness - Assess relationship completeness - Review navigation effectiveness 2. **Guidance System** - Analyze mode-specific guidance - Review boundary rule clarity - Evaluate instruction completeness - Assess prompt override needs 3. **Prioritization** - **Critical:** Caused task failure or significant inefficiency - **High:** Required real-time discovery - **Medium:** Would enhance efficiency - **Low:** Nice-to-have improvements --- ## Analysis Templates ### Knowledge Gap ```markdown ## Gap: [Name] **Discovery Context:** [When/how revealed] **Task Impact:** [How it affected completion] **Information Type:** [Domain/Process/Relationship/Decision criteria] **Recommended Action:** [Specific node or relationship to add] **Priority:** [Critical/High/Medium/Low] **Related Gaps:** [Connected gaps] ``` ### Navigation Issue ```markdown ## Issue: [Name] **Problem Pattern:** [What difficulty occurred] **Information Sought:** [What agent wanted] **Current Path:** [How agent actually found it] **Optimal Path:** [How it should be discoverable] **Recommended Improvement:** [Specific changes] **Affected Tasks:** [What else would benefit] ``` ### Guidance Assessment ```markdown ## Guidance: [Mode/Rule Area] **Expected Behavior:** [What guidance should produce] **Actual Behavior:** [What agent did] **Deviation Analysis:** [Why different] **Guidance Clarity:** [Current clarity level] **Recommended Changes:** [Specific modifications] **Test Scenarios:** [How to validate] ``` --- ## Quality Metrics ### Completeness - **Information Coverage:** % of questions answerable from context - **Relationship Completeness:** Documented vs. discovered relationships - **Navigation Efficiency:** Steps vs. optimal paths - **Boundary Compliance:** % correct domain placements ### Effectiveness - **Task Completion Quality:** Success rate with available context - **Agent Confidence:** Frequency of uncertainty expressions - **Context Utilization:** % of relevant context actually used - **Discovery vs. Lookup:** New discoveries vs. existing use ### Evolution - **Context Network Growth:** New nodes/relationships rate - **Guidance Refinement:** Rule update frequency - **Pattern Recognition:** Recurring improvement themes - **System Maturity:** Decreasing structural changes --- ## Common Patterns & Solutions | Pattern | Solution | |---------|----------| | Repeatedly seeks same info | Create hub document, improve linking | | Confusion about file placement | Enhance boundary guidance with examples | | Task context scattered | Create task-specific entry points | | Decisions without consulting context | Strengthen "consult before action" guidance | | Info not at right abstraction | Multi-layered nodes with progressive disclosure | --- ## Implementation Priority **Phase 1: Critical Infrastructure** - Fix boundary violations - Add missing foundational knowledge - Repair broken relationships **Phase 2: Navigation Enhancement** - Improve discoverability - Create hub documents - Strengthen cross-domain connections **Phase 3: Guidance Refinement** - Update mode-specific instructions - Clarify ambiguous rules - Enhance prompts for common tasks **Phase 4: Optimization** - Fine-tune abstraction levels - Optimize for discovered workflows - Enhance metadata systems --- ## Anti-Patterns ### 1. The Blame Game **Pattern:** Attributing interaction
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.