Cleanup notebooks

From jsboige/CoursIA · View interactive version

Cleanup notebooks is an AI agent skill from the GitHub repository jsboige/CoursIA. Clean up and reorganize markdown in enriched Jupyter notebooks. Arguments: [target] [--dry-run] [--aggressive] [--hierarchy-only]

How to use this skill

Skill file

Cleanup Notebooks

Reorganize and deduplicate pedagogical markdown in Jupyter notebooks.

Target: $ARGUMENTS

Arguments

Process

  1. Parse target - Discover notebooks
  2. For each notebook, launch a background agent:
  1. If --dry-run: List problems without modifying
  2. Generate summary with cells deleted/modified per notebook

Common Issues

| Pattern | Fix |

|---------|-----|

| Double introduction | Keep first, delete second |

| Orphan interpretation (before code) | Move after code cell |

| Heading jump (## then ####) | Change to ### |

| Empty transition cell | Delete or add content |

| Repeated concept definition | Keep best, delete others |

| Consecutive interpretation cells | Merge or delete duplicate |

Safety Rules

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.