跳到正文
cccskills
免费在 GitHub 公开

cleanup-notebooks

Clean up and reorganize markdown in enriched Jupyter notebooks. Arguments: [target] [--dry-run] [--aggressive] [--hierarchy-only]

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Cleanup Notebooks

Reorganize and deduplicate pedagogical markdown in Jupyter notebooks.

Target: $ARGUMENTS

Arguments

  • target: Notebook path, family name, or all
  • --dry-run: List problems without modifying
  • --aggressive: Aggressive deduplication
  • --hierarchy-only: Fix heading structure only

Process

  1. Parse target - Discover notebooks

  2. For each notebook, launch a background agent:

    • Read notebook-cleaner agent instructions (.claude/agents/notebook-cleaner.md)
    • Read entire notebook, analyze structure
    • Identify problems (duplicates, misplaced cells, heading jumps, empty cells)
    • Fix via NotebookEdit (one operation at a time, verify diff after each)
    • Re-read notebook after each operation (indices change)
  3. If --dry-run: List problems without modifying

  4. Generate summary with cells deleted/modified per notebook

Common Issues

PatternFix
Double introductionKeep first, delete second
Orphan interpretation (before code)Move after code cell
Heading jump (## then ####)Change to ###
Empty transition cellDelete or add content
Repeated concept definitionKeep best, delete others
Consecutive interpretation cellsMerge or delete duplicate

Safety Rules

  • GOLDEN RULE: "Don't break what works" - if structure is good, don't modify
  • Verify diffs after every operation
  • Never delete code cells (only markdown)
  • Re-read notebook after each edit (indices change)
  • Use cell CONTENT for identification, not indices

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Cycle 30 min du secrétaire vérificateur myia-po-2026:CoursIA-3. Atteste en tiers, du plus ancien au plus récent, les PRs ouvertes sans dossier valide (chaque READY, une fois lu et approuvé par ai-01, est mergé sans attendre son cycle), et fait circuler l'information sur workspace-CoursIA-3.

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

Analyze a Slidev deck qualitatively — organ reports (structure, composition) + vision AI on rendered PNGs. Arguments: <deck_id> [--slides 1,5,10]

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

Build or improve Jupyter notebooks iteratively with quality scoring. Arguments: <new|improve|fix> <path> [--topic] [--domain] [--level] [--quality] [--max-iter]

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

Detect cell-ordering / enchainement problems in Jupyter notebooks (canonical-order slippage, misplaced or forgotten cells). Arguments: [target] [--severity HIGH|MED|LOW] [--json]

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

Cycle de coordination ai-01 (coordinateur UNIQUEMENT — jamais sur un worker). Lit memoire + dashboards + inbox + GitHub, merge les PRs pretes, tranche les design-gates, dispatche des grains par lane, reporte. Arguments: [--dispatch] [--focus <topic>]

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

Cycle horaire du coordinateur adjoint myia-po-2025:CoursIA-2. Réduit la file, répond aux ASK CoursIA-2, publie des preflights COMMENTED et dispatche les lanes CoursIA-2, sans merge ni arbitrage réservé à ai-01.

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月19日 更新

查看 jsboige 的全部技能

报告此技能的问题