본문으로 건너뛰기
cccskills
무료GitHub에 공개

enrich-notebooks

Enrich Jupyter notebooks with pedagogical markdown content. Arguments: [target] [--execute] [--fix-errors] [--strict] [--consecutive] [--iterate]

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.4 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Enrich Notebooks

Add pedagogical markdown content to Jupyter notebooks.

Target: $ARGUMENTS

Arguments

  • target: Notebook path, family name (Infer, Sudoku, Tweety, Lean, GenAI, etc.), or all
  • --execute: Run notebooks and capture outputs before enriching
  • --fix-errors: Correct code errors found during execution
  • --strict: Require interpretation after EVERY code cell
  • --consecutive: Focus on consecutive code cells without markdown
  • --iterate: Use cell-iterator for iterative correction

Process

  1. Parse target - Discover notebooks to enrich

  2. For each notebook, launch a background agent:

    • Read the notebook-enricher agent instructions (.claude/agents/notebook-enricher.md)
    • Analyze structure: python scripts/notebook_tools/notebook_helpers.py list {path} --verbose
    • Find gaps programmatically (Python API):
      from scripts.notebook_helpers import NotebookHelper
      helper = NotebookHelper(path)
      gaps = helper.find_cells_needing_enrichment()      # Cells missing interpretation
      consecutive = helper.find_consecutive_code_cells()  # Code cells without markdown between
      
    • Validate placement: helper.validate_enrichment_context(cell_index) returns what's needed
    • Insert markdown cells via NotebookEdit (bottom-to-top to preserve indices)
    • Verify with: helper.get_cell_sequence(start, end) after each insertion
  3. If --execute: Execute notebooks first to capture outputs for interpretation

  4. If --fix-errors: Analyze errors, propose corrections, re-execute

  5. If --consecutive: Prioritize fixing consecutive code cells

  6. If --iterate: Use notebook-cell-iterator agent for targeted cell fixes

Agent Delegation

Use model: sonnet for enrichment agents (good balance of speed and quality). For complex domains (Probas, Lean), consider model: inherit for better reasoning.

Task(
    subagent_type="general-purpose",
    model="sonnet",
    prompt="Tu es un agent notebook-enricher. Lis .claude/agents/notebook-enricher.md. Enrichis: {path}",
    description=f"Enrich {name}",
    run_in_background=True
)

Enrichment Criteria

TypePlacementTense
Section introBEFORE codeFuture: "This code will..."
Code explanationBETWEEN code cellsPresent: "This function..."
Result interpretationAFTER code outputPast: "The results show..."
TransitionBetween sections"After seeing X, let's explore Y..."
ConclusionEnd of sectionSummary table

After Enrichment

  • Verify with git diff (expect more insertions than deletions)
  • Run the enrich-quality scanner (rule C.7, mandatory):
    git show origin/main:<nb-path> > /tmp/base.ipynb
    python scripts/notebook_tools/scan_enrich_quality.py <nb-path> --base /tmp/base.ipynb
    # 0 HIGH finding before commit: anchors must resolve at HEAD (code[N] =
    # N-th CODE cell, 0-based, final layout), accents must survive, hrefs must
    # resolve, no phantom entities, no worked solution before a TODO exercise.
    
  • Consider running /cleanup-notebooks to fix any positioning issues
  • Update MEMORY.md with lessons learned about positioning accuracy

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Cycle 30 min du secrétaire vérificateur myia-po-2028: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월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jsboige/CoursIA162026년 10월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jsboige/CoursIA162026년 10월 22일 업데이트

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월 22일 업데이트

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

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

jsboige/CoursIA162026년 10월 22일 업데이트

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월 22일 업데이트

jsboige의 스킬 모두 보기

이 스킬의 문제 신고