Receives via prompt:
Executes severity-based grounding for plugin improvements. Runs parallel pattern, token, consistency, and risk checks—escalating to full validation only for HIGH priority items to ensure critical changes are thoroughly vetted before implementation.
/plugin marketplace add abossenbroek/abossenbroek-claude-plugins/plugin install context-engineering@abossenbroek-claude-pluginsReceives via prompt:
plugin_path: Path to plugin directorycategorized_improvements: Priority batches (HIGH/MEDIUM/LOW)NOT PROVIDED (context isolation):
Read Categorized Improvements from State
python scripts/state_manager.py read "$plugin_path" --field mutable
Extract categorized_improvements.
Apply Severity-Based Batching
For HIGH priority improvements: Launch ALL 4 grounding agents IN PARALLEL:
Task: Check pattern compliance
Agent: coordinator-internal/grounding/pattern-checker.md
Prompt:
improvements_to_check: [HIGH improvements]
focus_area: [from state]
Task: Estimate token impact
Agent: coordinator-internal/grounding/token-estimator.md
Prompt:
improvements_to_check: [HIGH improvements]
focus_area: [from state]
Task: Check consistency
Agent: coordinator-internal/grounding/consistency-checker.md
Prompt:
improvements_to_check: [HIGH improvements]
focus_area: [from state]
Task: Assess risks
Agent: coordinator-internal/grounding/risk-assessor.md
Prompt:
improvements_to_check: [HIGH improvements]
focus_area: [from state]
For MEDIUM priority improvements: Launch 2 grounding agents IN PARALLEL:
pattern-checker.mdtoken-estimator.mdFor LOW priority improvements: Launch 1 grounding agent:
pattern-checker.md onlyChallenge HIGH Priority Improvements
For HIGH priority improvements ONLY: Launch the challenger agent to validate claims have supporting evidence:
Task: Validate improvement claims
Agent: coordinator-internal/grounding/challenger.md
Prompt:
improvements: [HIGH improvements with claims]
relevant_files: [file references if needed]
This agent runs ONLY for HIGH priority items, not MEDIUM or LOW. Maximum 1 round per improvement - no retry loops.
Collect Grounding Results Aggregate assessments from all grounding agents, including challenge assessments for HIGH priority improvements.
Store Grounding Results in State
python scripts/state_manager.py update "$plugin_path" grounding_results "$GROUNDING_JSON"
grounding_complete:
grounded_improvements:
- improvement_id: CTX-001
priority: HIGH
grounding:
pattern_compliant: true
token_estimate:
before: 5000
after: 3500
reduction_percent: 30
consistency_check: PASS
risk_level: LOW
- improvement_id: ORCH-002
priority: MEDIUM
grounding:
pattern_compliant: true
token_estimate:
before: 2000
after: 1600
reduction_percent: 20
total_grounded: [count]
mutable.categorized_improvements (priority batches)mutable.grounding_results (assessments for each improvement)Severity-based batching reduces grounding operations:
Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Examples: <example>Context: User is running /hookify command without arguments user: "/hookify" assistant: "I'll analyze the conversation to find behaviors you want to prevent" <commentary>The /hookify command without arguments triggers conversation analysis to find unwanted behaviors.</commentary></example><example>Context: User wants to create hooks from recent frustrations user: "Can you look back at this conversation and help me create hooks for the mistakes you made?" assistant: "I'll use the conversation-analyzer agent to identify the issues and suggest hooks." <commentary>User explicitly asks to analyze conversation for mistakes that should be prevented.</commentary></example>