ies/music-topos/.codex/skills/safe-rewriting-advisor/SKILL.md
# Safe Rewriting Advisor **Category**: Graph Optimization + Remediation **Type**: Strategic Edge Removal Analysis **Language**: Julia **Status**: Production Ready **Version**: 1.0.0 **Date**: December 22, 2025 ## Overview Strategic selective edge removal maintaining spectral gap ≥ 0.25. Analyzes edge criticality via betweenness centrality to identify which proof dependencies can be safely removed without breaking system connectivity (Ramanujan property). ## Key Data Structures ```julia stru
npx skillsauth add plurigrid/asi ies/music-topos/.codex/skills/safe-rewriting-advisorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Category: Graph Optimization + Remediation Type: Strategic Edge Removal Analysis Language: Julia Status: Production Ready Version: 1.0.0 Date: December 22, 2025
Strategic selective edge removal maintaining spectral gap ≥ 0.25. Analyzes edge criticality via betweenness centrality to identify which proof dependencies can be safely removed without breaking system connectivity (Ramanujan property).
struct EdgeImportance
edge_id::Tuple{Int, Int}
betweenness_centrality::Float64
gap_sensitivity::Float64
redundancy_score::Float64
recommendation::String
end
struct RewritePlan
edges_to_remove::Vector{Tuple{Int, Int}}
edges_to_split::Vector{Tuple{Int, Int}}
cycle_breakers::Vector{String}
expected_gap_before::Float64
expected_gap_after::Float64
safe::Bool
complexity::String
end
compute_edge_importance(adjacency): Betweenness centrality analysisidentify_redundant_edges(edges): Find safe-to-remove edgesgenerate_rewrite_plan(adjacency, gap): Strategic remediationgenerate_rewrite_report(adjacency, gap): Human-readable analysisEdge Criticality Classification
gap_sensitivity > 80% : CRITICAL - essential for connectivity
40-80% : IMPORTANT - remove only if necessary
< 40% : REDUNDANT - safe to remove
Uses betweenness centrality to measure how many paths depend on each edge. Recommends cycle-breaking via intermediate theorems for low-gap systems.
using SafeRewriting
# Analyze current system
plan = generate_rewrite_plan(adjacency, current_gap)
# Check if transformation is safe
if plan.safe && plan.expected_gap_after >= 0.25
println("✓ Safe to apply $(length(plan.edges_to_remove)) edge removals")
println(" Gap projection: $(plan.expected_gap_before) → $(plan.expected_gap_after)")
end
# Get recommendations
report = generate_rewrite_report(adjacency, current_gap)
development
BDD-Driven Mathematical Content Verification Skill Combines Behavior-Driven Development with mathematical formula extraction, verification, and transformation using: - Cucumber/Gherkin for specification - RSpec for implementation verification - mathpix-gem for LaTeX/mathematical content extraction - Pattern matching on syntax trees for formula validation Enables iterative discovery and verification of mathematical properties through executable specifications.
tools
Meta-skill that generates domain-specific AI skills from tool documentation
development
Code Query with AI-enhanced deterministic analysis via SplitMix ternary classification
development
Directed Yoneda lemma as directed path induction. Riehl-Shulman's key insight for synthetic ∞-categories.