بنقرة واحدة
check-redundancy
Analyze and report redundancy levels in markdown documentation files
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze and report redundancy levels in markdown documentation files
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate a PRD for a feature using Memory Bank context
Generate a technical specification based on a PRD using Memory Bank context
Run Memory Bank doc gardening (maintenance / garbage collection)
"Process and implement tasks from a protocol in git worktrees (or inline on the main workdir)"
Update Memory Bank documentation after code changes or protocol completion
Defer an out-of-scope finding to the backlog. Use when a bug, tech debt, idea, or risk is discovered but not appropriate to solve now.
| name | check-redundancy |
| description | Analyze and report redundancy levels in markdown documentation files |
| version | 1.0.0 |
Analyzes markdown files for redundant content by detecting repeated phrases and calculating redundancy percentage.
Use this skill when:
From target project, run:
python ${CLAUDE_PLUGIN_ROOT}/skills/check-redundancy/scripts/check-redundancy.py <file>
(repeated occurrences - unique count) / total phrases × 1000: Optimal (≤10% redundancy)1: High redundancy (>10%, needs optimization)2: Errorpython ${CLAUDE_PLUGIN_ROOT}/skills/check-redundancy/scripts/check-redundancy.py <file>
File: architecture.md
Lines: 89
Total phrases analyzed: 1247
Redundancy: 3.2%
✓ Redundancy optimal (3.2% ≤ 10%)
Or if redundancy is high:
File: verbose-file.md
Lines: 150
Total phrases analyzed: 2341
Redundancy: 15.8%
⚠️ High redundancy detected (15.8% > 10%)
Top repeated phrases:
- 'memory bank documentation' (12 times)
- 'project analysis json' (8 times)
- 'generation plan md' (7 times)
- 'static files to' (6 times)
- 'prompt templates in' (5 times)
After generating a file:
# Generate file
python generate-doc.py > .memory_bank/file.md
# Check redundancy
python ${CLAUDE_PLUGIN_ROOT}/skills/check-redundancy/scripts/check-redundancy.py .memory_bank/file.md
# If exit code is 1, optimize the file
if [ $? -eq 1 ]; then
echo "Optimizing file..."
# Run optimization
fi
for file in .memory_bank/**/*.md; do
python ${CLAUDE_PLUGIN_ROOT}/skills/check-redundancy/scripts/check-redundancy.py "$file"
done
/memento:optimize-memory-bank: Optimizes Memory Bank files with high redundancy/memento:fix-broken-links: Validates and fixes broken links in Memory Bank files.memory_bank/guides/code-review-guidelines.md: Documentation quality standards