Cfn context pruner

From masharratt/claude-flow-novice · View interactive version

Cfn context pruner is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. **Purpose:** Hierarchical context summarization for CFN Loop v3 iterations

How to use this skill

Skill file

Context Pruner Skill

Version: 1.0.0

Purpose: Hierarchical context summarization for CFN Loop v3 iterations

Overview

Reduces context size across iterations by:

Goal

Reduce context from 120 KB (iteration 10) to 15 KB (88% reduction)

Usage

PRUNED_CONTEXT=$(./.claude/skills/context-pruner/prune-context.sh \
  --iteration 3 \
  --full-history "$FULL_HISTORY" \
  --current-context "$CURRENT_CONTEXT")

echo "$PRUNED_CONTEXT"

Pruning Strategy

Iteration 1

Iteration 2

Iteration 3+

Summary Format

Iterations 1-2 Summary:
- Initial confidence: 0.72
- Key feedback themes:
  * Add error handling
  * Improve test coverage
  * Address security concerns
- Final confidence: 0.82
- Progress: +0.10

Key Themes Extraction

Analyze all feedback across iterations to extract recurring themes:

# Count feedback occurrences
"Add error handling" - 3 times (iterations 1, 2, 3)
"Improve test coverage" - 2 times (iterations 1, 2)
"Security concerns" - 2 times (iterations 2, 3)

# Output top 5 themes

Integration

Used by:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.