[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BX8R0VS7HD30KRK7ECRCFC":3,"skill-same:01M6BX8R0VS7HD30KRK7ECRCFC":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":17,"ownerHtmlUrl":52,"ownerBlogUrl":17,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6BX8R0VS7HD30KRK7ECRCFC","ipynb-validator","ipynb 笔记本验证","Validate Jupyter notebooks (.ipynb files) for production readiness. Checks smart links consistency, layout structure, transition cells with action cards, numbered part flow, cell ordering, and overall quality. Use when validating notebooks, checking notebook structure, testing smart links, verifying action cards, or preparing notebooks for production deployment. Keywords include ipynb validation, notebook structure, smart links, action cards, transitions, part flow, production ready.","验证 Jupyter 笔记本（.ipynb 文件）的生产就绪性。检查智能链接一致性、布局结构、带操作卡片的过渡单元格、编号章节流程、单元格排序和整体质量。适用于验证笔记本、检查笔记本结构、测试智能链接、核对操作卡片或准备笔记本投入生产部署。关键词包括 ipynb 验证、笔记本结构、智能链接、操作卡片、过渡、章节流程和临床生产就绪。","ddttom\u002Fallaboutv2","ddttom","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1929848?v=4","01M6BX6X3SP9HFP5NVP5148SG2","Tom Cranstoun","01M6BX6X8H7Y9RE377QF088DYG",2,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fipynb-validator\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BVB0FJ0RR8KXYVFTKEA3XX","技术文档工程师","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39],"ipynb validator","testing","validate","deployment","validation","jupyter notebooks","https","flow","Production","2026-11-10 10:12:30",false,"---\nname: ipynb-validator\ndescription: Validate Jupyter notebooks (.ipynb files) for production readiness. Checks smart links consistency, layout structure, transition cells with action cards, numbered part flow, cell ordering, and overall quality. Use when validating notebooks, checking notebook structure, testing smart links, verifying action cards, or preparing notebooks for production deployment. Keywords include ipynb validation, notebook structure, smart links, action cards, transitions, part flow, production ready.\n\nmx:\n  canonicalUri: https:\u002F\u002Fraw.githubusercontent.com\u002Fddttom\u002Fallaboutv2\u002Fmain\u002F.claude\u002Fskills\u002Fipynb-validator\u002FSKILL.md\n---\n\n# Jupyter Notebook Validator\n\n## Purpose\n\nComprehensive validation of Jupyter notebooks (.ipynb files) to ensure production readiness. Validates smart links, layout structure, transitions, part flow, and overall quality standards.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n\n- Validate a notebook before production deployment\n- Check smart link consistency and resolution\n- Verify layout structure and organization\n- **Ensure all transition cells have action cards** ⚠️ MOST COMMON ISSUE\n- Validate numbered part\u002Fsection flow\n- Check cell ordering and completeness\n- Assess overall notebook quality\n- Prepare notebooks for client or end-user viewing\n\n## ⚠️ Quick Check: Missing Action Cards\n\n**Before running full validation, manually verify:**\n\n1. Find all transition cells (cells with \"Part X:\", Progress indicator, and ? dots)\n2. Check each has `\u003C!-- action-cards -->` marker\n3. Verify 3-6 links follow the marker\n4. Ensure links use `(#)` placeholder pattern\n\n**This single check catches 80% of validation failures.**\n\n## Validation Categories\n\n### 1. Smart Links Validation\n\n**What it checks:**\n\n- All smart links (`[text](#)`) have matching headings\n- No broken links or orphaned references\n- Link text matches heading text (case-insensitive, emoji-agnostic)\n- Smart links resolve to valid cells\n- Action card links are properly formatted\n\n**Expected pattern:**\n\n```markdown\n[Link Text](#) → Finds heading containing \"Link Text\"\n```\n\n**Common issues:**\n\n- Link text doesn't match any heading\n- Heading was renamed but link wasn't updated\n- Typos in link text\n- Missing target heading\n\n### 2. Layout Structure\n\n**What it checks:**\n\n- Clear introduction section (hero, TOC, emergency nav)\n- Numbered parts\u002Fsections in logical order\n- Each part has consistent structure:\n  - Transition cell (optional but recommended)\n  - Part start cell with full title\n  - Content cells\n  - Part summary cell\n- Conclusion section present\n- No gaps or missing sections\n\n**Expected structure:**\n\n```\nIntroduction (Cells 0-N)\n→ Transition (optional)\n→ Part 1 (Start → Content → Summary)\n→ Transition\n→ Part 2 (Start → Content → Summary)\n...\n→ Conclusion\n```\n\n### 3. Transition Cells ⚠️ CRITICAL CHECK\n\n**What it checks:**\n\n- Transition cells exist between major parts\n- **Each transition MUST have `\u003C!-- action-cards -->` marker** (REQUIRED)\n- Action cards have 3-6 links (enforced)\n- Action cards link to upcoming content\n- Transition text provides context\n\n**Expected pattern:**\n\n```markdown\n### Part X: Section Name\n**Progress: X of Y** ???⚪⚪⚪\n**Reading time: N minutes**\n\nContextual text explaining what's next...\n\n\u003C!-- action-cards -->\n\n- [Topic 1](#)\n- [Topic 2](#)\n- [Topic 3](#)\n```\n\n**⚠️ COMMON FAILURE: Missing Action Cards Marker**\n\nThis is the #1 validation failure. Every transition cell between parts MUST include:\n\n1. The `\u003C!-- action-cards -->` HTML comment marker\n2. A markdown list of 3-6 links immediately following\n3. Each link using the `(#)` placeholder pattern\n\n**Validation will FAIL if:**\n\n- Transition cell lacks `\u003C!-- action-cards -->` marker\n- Fewer than 3 action card links\n- Action cards not in proper markdown list format\n\n**When transitions are optional:**\n\n- Part flows naturally from previous summary\n- First part (follows introduction)\n- Conclusion section\n\n### 4. Part Flow Validation\n\n**What it checks:**\n\n- Parts are numbered sequentially (1, 2, 3, ...)\n- No missing or duplicate part numbers\n- Part summaries come after part content\n- Part titles follow consistent format\n- Progress indicators are accurate\n\n**Expected title patterns:**\n\n```markdown\n### ? Part 1: Topic Name\n### ?Part 2: By Your Role - Subtopic\n### ?Part 3: By Your Task - Subtopic\n```\n\n**Part structure requirements:**\n\n- First cell: Full title with part number\n- Middle cells: Clean titles without part prefix\n- Last cell: Summary with \"You've Completed Part X\"\n\n### 5. Cell Ordering\n\n**What it checks:**\n\n- Cells are in logical sequence\n- No content cells after summary\n- Summaries appear at end of parts\n- Transition cells precede part starts\n- No orphaned or misplaced cells\n- Reference\u002Futility cells placed appropriately\n- Part X completion immediately before Part X+1 transition\n\n**Common ordering issues:**\n\n- Summary before content is complete\n- Transition after part start\n- Content cells out of sequence\n- Missing cells in expected flow\n- Reference cells (Resources, Bookmarks, Next Steps) between parts\n- Completion cells appearing before part content\n- Technical detail cells orphaned outside their parent section\n\n**Example of correct flow:**\n\n```\nPart 6 Completion Cell\n  ↓ immediately adjacent\nPart 7 Transition Cell (with action cards)\n  ↓\nPart 7 Content Cells\n  ↓\nPart 7 Completion Cell\n  ↓ immediately adjacent\nPart 8 Transition Cell\n```\n\n### 6. Action Cards Quality\n\n**What it checks:**\n\n- `\u003C!-- action-cards -->` marker present\n- Marker followed by markdown list\n- 3-6 links per action card section\n- Links use `(#)` placeholder\n- Link text is descriptive and unique\n- No duplicate action card sections in same cell\n\n**Quality criteria:**\n\n- Clear, actionable link text\n- Links point to major sections\n- Balanced number of options (not too few, not too many)\n- Consistent formatting\n\n### 7. Production Readiness\n\n**What it checks:**\n\n- Notebook metadata present (title, description, author, etc.)\n- Repository URL configured (for .md links)\n- No test or placeholder content\n- All code cells are appropriate (if any)\n- No broken formatting\n- File size is reasonable\n- JSON structure is valid\n\n**Metadata requirements:**\n\n```json\n{\n  \"metadata\": {\n    \"title\": \"Notebook Title\",\n    \"description\": \"Brief description\",\n    \"author\": \"Author Name\",\n    \"date\": \"YYYY-MM-DD\",\n    \"version\": \"X.Y\",\n    \"repo\": \"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\"\n  }\n}\n```\n\n## Validation Workflow\n\n### Step 1: Load and Parse\n\n1. Read notebook JSON file\n2. Validate JSON structure\n3. Extract all cells\n4. Parse cell sources\n5. Identify headings and links\n\n### Step 2: Analyze Structure\n\n1. Identify introduction section\n2. Find all parts and their boundaries\n3. Locate transition cells\n4. Map cell relationships\n5. Verify overall organization\n\n### Step 3: Validate Links\n\n1. Extract all smart links\n2. Build heading index\n3. Match links to headings\n4. Report unresolved links\n5. Check action card links\n\n### Step 4: Check Transitions (CRITICAL)\n\n**This is the most important validation step for missing action cards.**\n\n1. **Find all transition cells** by pattern matching:\n\n   ```python\n   def is_transition_cell(source):\n       return (\n           re.search(r'###.*Part \\d+:', source) and\n           'Progress:' in source and\n           '?' in source and\n           'Reading time:' in source\n       )\n   ```\n\n2. **Verify action card markers** (REQUIRED):\n\n   ```python\n   has_action_cards = '\u003C!-- action-cards -->' in source\n   if not has_action_cards:\n       issues.append({\n           'severity': 'ERROR',\n           'cell': cell_idx,\n           'message': f'Part {part_num} transition missing action cards marker'\n       })\n   ```\n\n3. **Count links per transition** (must be 3-6):\n\n   ```python\n   links = re.findall(r'^\\s*- \\[([^\\]]+)\\]\\(#\\)', source, re.MULTILINE)\n   if len(links) \u003C 3:\n       issues.append({'severity': 'ERROR', 'message': 'Too few action cards'})\n   elif len(links) > 6:\n       issues.append({'severity': 'WARN', 'message': 'Too many action cards'})\n   ```\n\n4. **Validate link targets** - ensure all action card links resolve\n\n5. **Check contextual text** - verify transition has explanatory text before action cards\n\n### Step 5: Verify Part Flow\n\n1. Extract part numbers\n2. Check sequential order\n3. Verify part structure\n4. Validate summaries\n5. Check progress indicators\n\n### Step 6: Assess Quality\n\n1. Check metadata completeness\n2. Verify repository configuration\n3. Review cell ordering\n4. Assess content quality\n5. Generate quality score\n\n## Common Issues and Fixes\n\n### Issue 1: Broken Smart Links\n\n**Symptom:** Link text doesn't match any heading\n\n**Fix:**\n\n```markdown\n# Before (broken)\n[Getting Started](#)  → No heading contains \"Getting Started\"\n\n# After (fixed)\nHeading: ### Getting Started Guide\nLink: [Getting Started Guide](#)\n```\n\n### Issue 2: Missing Transitions\n\n**Symptom:** Part starts immediately after previous summary\n\n**Fix:**\n\n```markdown\n# Add transition cell with action cards\nContextual text...\n\n\u003C!-- action-cards -->\n- [Topic 1](#)\n- [Topic 2](#)\n```\n\n### Issue 3: Incorrect Cell Order\n\n**Symptom:** Summary appears before content, or reference cells between parts\n\n**Fix:**\n\n```python\n# Reorder cells in notebook JSON\n# Example: Move completion cell from index 64 to index 72\n\ncells = notebook['cells']\ncompletion_cell = cells.pop(64)  # Remove from wrong position\ncells.insert(72, completion_cell)  # Insert at correct position\n```\n\n**Common scenarios:**\n\n- Completion cell before part content → Move to end of part\n- Reference cells between parts → Move to end of notebook (before final wrap-up)\n- Technical cells outside their section → Move into proper section\n\n### Issue 4: Missing Action Cards\n\n**Symptom:** Transition cell has no `\u003C!-- action-cards -->` marker\n\n**Critical Issue:** This is one of the most common validation failures. Every transition cell between parts MUST have action cards to guide readers.\n\n**Detection Pattern:**\n\n```python\n# Identifies transition cells by:\n# 1. Contains \"Part X:\" heading\n# 2. Has progress indicator (Progress: X of Y)\n# 3. Has progress dots (??...)\n# 4. Has reading time estimate\n\n# Then checks for:\n# - \u003C!-- action-cards --> marker (REQUIRED)\n# - 3-6 markdown links after marker\n# - Links use (#) placeholder pattern\n```\n\n**Fix:**\n\n```markdown\n# Before (FAILS validation):\n### Part 7: Universal Patterns\n**Progress: 7 of 8** ???????⚪\n**Reading time: 2 minutes**\n\nThese patterns work everywhere...\n\n# After (PASSES validation):\n### Part 7: Universal Patterns\n**Progress: 7 of 8** ???????⚪\n**Reading time: 2 minutes**\n\nThese patterns work everywhere...\n\n\u003C!-- action-cards -->\n\n- [Beyond EDS](#)\n- [Universal Patterns](#)\n- [Apply Anywhere](#)\n```\n\n**Why this matters:**\n\n- Action cards provide visual navigation\n- Helps readers preview upcoming content\n- Maintains consistent user experience\n- Critical for educational notebooks\n\n### Issue 5: Part Number Gaps\n\n**Symptom:** Parts numbered 1, 2, 4 (missing 3)\n\n**Fix:** Renumber parts sequentially or add missing part\n\n## Testing the Notebook\n\n### Manual Testing\n\n1. Open in VS Code with Jupyter extension\n2. Click through all smart links\n3. Verify action cards display correctly\n4. Check part flow and navigation\n5. Test in ipynb-viewer block\n\n### Automated Validation\n\nUse the `\u002Fvalidate-notebook` command:\n\n```bash\n\u002Fvalidate-notebook notebook-name.ipynb\n```\n\nOutput includes:\n\n- Smart link validation results\n- Structure analysis\n- Transition checks\n- Part flow verification\n- Overall quality score\n- Detailed issue report\n\n## Production Checklist\n\nBefore deploying to production:\n\n- [ ] All smart links resolve correctly\n- [ ] Structure is complete and logical\n- [ ] Transitions have action cards\n- [ ] Parts flow sequentially\n- [ ] Cells are properly ordered\n- [ ] Metadata is complete\n- [ ] Repository URL is set\n- [ ] No test\u002Fplaceholder content\n- [ ] Formatting is correct\n- [ ] File size is reasonable\n- [ ] Tested in ipynb-viewer\n- [ ] Action cards display correctly\n- [ ] Navigation works smoothly\n- [ ] Content is final and approved\n\n## Quality Scoring\n\nThe validator assigns scores (0-100) in each category:\n\n**Smart Links (0-100):**\n\n- 100: All links resolve perfectly\n- 75-99: Minor issues or warnings\n- 50-74: Some broken links\n- 0-49: Many broken links\n\n**Structure (0-100):**\n\n- 100: Perfect organization\n- 75-99: Minor structural issues\n- 50-74: Missing sections or gaps\n- 0-49: Poor organization\n\n**Transitions (0-100):**\n\n- 100: All transitions present with action cards\n- 75-99: Missing some action cards\n- 50-74: Some transitions missing\n- 0-49: Few or no transitions\n\n**Part Flow (0-100):**\n\n- 100: Perfect sequential flow\n- 75-99: Minor numbering issues\n- 50-74: Gaps or duplicates\n- 0-49: Major flow problems\n\n**Overall (0-100):**\n\n- 90-100: Production ready\n- 75-89: Minor fixes needed\n- 60-74: Moderate issues\n- 0-59: Major rework required\n\n## Best Practices\n\n### For Smart Links\n\n✅ Use descriptive, unique link text\n✅ Keep link text consistent with headings\n✅ Test all links before deployment\n✅ Use emojis in headings (they're ignored in matching)\n\n❌ Don't use generic link text like \"Click here\"\n❌ Don't hardcode cell IDs like `#cell-5`\n❌ Don't create circular link references\n\n### For Cell Ordering\n\n✅ Validate cell order with structural checks:\n\n```python\n# Check adjacency between key sections\npart_completion_idx \u003C part_transition_idx + 1  # Must be adjacent\npart_transition_idx \u003C next_part_start_idx  # Proper sequence\n```\n\n✅ Place reference\u002Futility cells strategically:\n\n- Resources & Quick Reference → End of notebook\n- Essential Bookmarks → End of notebook\n- Troubleshooting → End of notebook\n- \"What's Next\" → End of notebook\n\n✅ Keep technical detail cells within their parent section:\n\n- Code examples belong in \"How This Works\" section\n- Implementation details stay with their topic\n- Don't orphan detail cells between major parts\n\n❌ Don't place utility cells between parts\n❌ Don't split sections with unrelated content\n❌ Don't place completion cells before content\n\n### For Transitions\n\n✅ Provide contextual text explaining what's next\n✅ Include 3-6 action cards per transition\n✅ Link to major upcoming sections\n✅ Use consistent formatting\n\n❌ Don't skip transitions between major parts\n❌ Don't have too many action cards (> 6)\n❌ Don't have too few action cards (\u003C 3)\n\n### For Part Flow\n\n✅ Number parts sequentially\n✅ Use consistent title format\n✅ Place summaries at end of parts\n✅ Keep part structure uniform\n\n❌ Don't skip part numbers\n❌ Don't change title format mid-notebook\n❌ Don't place summaries before content\n\n## Related Files\n\n- `.claude\u002Fcommands\u002Fvalidate-notebook.md` - Command implementation\n- `blocks\u002Fipynb-viewer\u002FREADME.md` - Viewer documentation\n- `docs\u002Ffor-ai\u002Fexplaining-educational-notebooks.md` - Notebook creation guide\n- `docs\u002Ffor-ai\u002Fexplaining-presentation-notebooks.md` - Presentation notebooks\n\n## Validation Output Format\n\nThe validator produces a detailed report:\n\n```\nNOTEBOOK VALIDATION REPORT: notebook-name.ipynb\n================================================================\n\nSUMMARY:\n  Total Cells: 66\n  Smart Links: 51 (51 valid, 0 broken)\n  Parts: 7 (sequential)\n  Transitions: 6 (all with action cards)\n  Overall Score: 95\u002F100 ✅ PRODUCTION READY\n\nSMART LINKS: ✅ PASS\n  ✓ All 51 smart links resolve correctly\n  ✓ No broken or orphaned links\n  ✓ Action card links validated\n\nSTRUCTURE: ✅ PASS\n  ✓ Clear introduction section (8 cells)\n  ✓ 7 parts with consistent structure\n  ✓ Conclusion section present\n  ✓ No gaps or missing sections\n\nTRANSITIONS: ✅ PASS\n  ✓ 6 transition cells with action cards\n  ✓ Part 6 flows naturally (no transition needed)\n  ✓ All action cards have 3-6 links\n  ✓ Contextual text present\n\nPART FLOW: ✅ PASS\n  ✓ Parts numbered 1-7 sequentially\n  ✓ No gaps or duplicates\n  ✓ Summaries at end of each part\n  ✓ Consistent title format\n\nCELL ORDERING: ✅ PASS\n  ✓ All cells in logical sequence\n  ✓ Summaries after content\n  ✓ Transitions before parts\n  ✓ No orphaned cells\n\nPRODUCTION READINESS: ✅ PASS\n  ✓ Metadata complete\n  ✓ Repository URL set\n  ✓ No test content\n  ✓ Valid JSON structure\n  ✓ Appropriate file size\n\nRECOMMENDATIONS:\n  • Notebook is ready for production deployment\n  • All validation checks passed\n  • Quality score: 95\u002F100\n```\n\n---\n\n**Note:** This validator is designed for educational and navigation notebooks. Testing notebooks (test.ipynb) may have different structure requirements and are validated separately.\n","# Jupyter Notebook Validator\n\n## Purpose\n\nComprehensive validation of Jupyter notebooks (.ipynb files) to ensure production readiness. Validates smart links, layout structure, transitions, part flow, and overall quality standards.\n\n## When to Use This Skill\n\nUse this skill when you need to:\n\n- Validate a notebook before production deployment\n- Check smart link consistency and resolution\n- Verify layout structure and organization\n- **Ensure all transition cells have action cards** ⚠️ MOST COMMON ISSUE\n- Validate numbered part\u002Fsection flow\n- Check cell ordering and completeness\n- Assess overall notebook quality\n- Prepare notebooks for client or end-user viewing\n\n## ⚠️ Quick Check: Missing Action Cards\n\n**Before running full validation, manually verify:**\n\n1. Find all transition cells (cells with \"Part X:\", Progress indicator, and ? dots)\n2. Check each has `\u003C!-- action-cards -->` marker\n3. Verify 3-6 links follow the marker\n4. Ensure links use `(#)` placeholder pattern\n\n**This single check catches 80% of validation failures.**\n\n## Validation Categories\n\n### 1. Smart Links Validation\n\n**What it checks:**\n\n- All smart links (`[text](#)`) have matching headings\n- No broken links or orphaned references\n- Link text matches heading text (case-insensitive, emoji-agnostic)\n- Smart links resolve to valid cells\n- Action card links are properly formatted\n\n**Expected pattern:**\n\n```markdown\n[Link Text](#) → Finds heading containing \"Link Text\"\n```\n\n**Common issues:**\n\n- Link text doesn't match any heading\n- Heading was renamed but link wasn't updated\n- Typos in link text\n- Missing target heading\n\n### 2. Layout Structure\n\n**What it checks:**\n\n- Clear introduction section (hero, TOC, emergency nav)\n- Numbered parts\u002Fsections in logical order\n- Each part has consistent structure:\n  - Transition cell (optional but recommended)\n  - Part start cell with full title\n  - Content cells\n  - Part summary cell\n- Conclusion section present\n- No gaps or missing sections\n\n**Expected structure:**\n\n```\nIntroduction (Cells 0-N)\n→ Transition (optional)\n→ Part 1 (Start → Content → Summary)\n→ Transition\n→ Part 2 (Start → Content → Summary)\n...\n→ Conclusion\n```\n\n### 3. Transition Cells ⚠️ CRITICAL CHECK\n\n**What it checks:**\n\n- Transition cells exist between major parts\n- **Each transition MUST have `\u003C!-- action-cards -->` marker** (REQUIRED)\n- Action cards have 3-6 links (enforced)\n- Action cards link to upcoming content\n- Transition text provides context\n\n**Expected pattern:**\n\n```markdown\n### Part X: Section Name\n**Progress: X of Y** ???⚪⚪⚪\n**Reading time: N minutes**\n\nContextual text explaining what's next...\n\n\u003C!-- action-cards -->\n\n- [Topic 1](#)\n- [Topic 2](#)\n- [Topic 3](#)\n```\n\n**⚠️ COMMON FAILURE: Missing Action Cards Marker**\n\nThis is the #1 validation failure. Every transition cell between parts MUST include:\n\n1. The `\u003C!-- action-cards -->` HTML comment marker\n2. A markdown list of 3-6 links immediately following\n3. Each link using the `(#)` placeholder pattern\n\n**Validation will FAIL if:**\n\n- Transition cell lacks `\u003C!-- action-cards -->` marker\n- Fewer than 3 action card links\n- Action cards not in proper markdown list format\n\n**When transitions are optional:**\n\n- Part flows naturally from previous summary\n- First part (follows introduction)\n- Conclusion section\n\n### 4. Part Flow Validation\n\n**What it checks:**\n\n- Parts are numbered sequentially (1, 2, 3, ...)\n- No missing or duplicate part numbers\n- Part summaries come after part content\n- Part titles follow consistent format\n- Progress indicators are accurate\n\n**Expected title patterns:**\n\n```markdown\n### ? Part 1: Topic Name\n### ?Part 2: By Your Role - Subtopic\n### ?Part 3: By Your Task - Subtopic\n```\n\n**Part structure requirements:**\n\n- First cell: Full title with part number\n- Middle cells: Clean titles without part prefix\n- Last cell: Summary with \"You've Completed Part X\"\n\n### 5. Cell Ordering\n\n**What it checks:**\n\n- Cells are in logical sequence\n- No content cells after summary\n- Summaries appear at end of parts\n- Transition cells precede part starts\n- No orphaned or misplaced cells\n- Reference\u002Futility cells placed appropriately\n- Part X completion immediately before Part X+1 transition\n\n**Common ordering issues:**\n\n- Summary before content is complete\n- Transition after part start\n- Content cells out of sequence\n- Missing cells in expected flow\n- Reference cells (Resources, Bookmarks, Next Steps) between parts\n- Completion cells appearing before part content\n- Technical detail cells orphaned outside their parent section\n\n**Example of correct flow:**\n\n```\nPart 6 Completion Cell\n  ↓ immediately adjacent\nPart 7 Transition Cell (with action cards)\n  ↓\nPart 7 Content Cells\n  ↓\nPart 7 Completion Cell\n  ↓ immediately adjacent\nPart 8 Transition Cell\n```\n\n### 6. Action Cards Quality\n\n**What it checks:**\n\n- `\u003C!-- action-cards -->` marker present\n- Marker followed by markdown list\n- 3-6 links per action card section\n- Links use `(#)` placeholder\n- Link text is descriptive and unique\n- No duplicate action card sections in same cell\n\n**Quality criteria:**\n\n- Clear, actionable link text\n- Links point to major sections\n- Balanced number of options (not too few, not too many)\n- Consistent formatting\n\n### 7. Production Readiness\n\n**What it checks:**\n\n- Notebook metadata present (title, description, author, etc.)\n- Repository URL configured (for .md links)\n- No test or placeholder content\n- All code cells are appropriate (if any)\n- No broken formatting\n- File size is reasonable\n- JSON structure is valid\n\n**Metadata requirements:**\n\n```json\n{\n  \"metadata\": {\n    \"title\": \"Notebook Title\",\n    \"description\": \"Brief description\",\n    \"author\": \"Author Name\",\n    \"date\": \"YYYY-MM-DD\",\n    \"version\": \"X.Y\",\n    \"repo\": \"https:\u002F\u002Fgithub.com\u002Fuser\u002Frepo\"\n  }\n}\n```\n\n## Validation Workflow\n\n### Step 1: Load and Parse\n\n1. Read notebook JSON file\n2. Validate JSON structure\n3. Extract all cells\n4. Parse cell sources\n5. Identify headings and links\n\n### Step 2: Analyze Structure\n\n1. Identify introduction section\n2. Find all parts and their boundaries\n3. Locate transition cells\n4. Map cell relationships\n5. Verify overall organization\n\n### Step 3: Validate Links\n\n1. Extract all smart links\n2. Build heading index\n3. Match links to headings\n4. Report unresolved links\n5. Check action card links\n\n### Step 4: Check Transitions (CRITICAL)\n\n**This is the most important validation step for missing action cards.**\n\n1. **Find all transition cells** by pattern matching:\n\n   ```python\n   def is_transition_cell(source):\n       return (\n           re.search(r'###.*Part \\d+:', source) and\n           'Progress:' in source and\n           '?' in source and\n           'Reading time:' in source\n       )\n   ```\n\n2. **Verify action card markers** (REQUIRED):\n\n   ```python\n   has_action_cards = '\u003C!-- action-cards -->' in source\n   if not has_action_cards:\n       issues.append({\n           'severity': 'ERROR',\n           'cell': cell_idx,\n           'message': f'Part {part_num} transition missing action cards marker'\n       })\n   ```\n\n3. **Count links per transition** (must be 3-6):\n\n   ```python\n   links = re.findall(r'^\\s*- \\[([^\\]]+)\\]\\(#\\)', source, re.MULTILINE)\n   if len(links) \u003C 3:\n       issues.append({'severity': 'ERROR', 'message': 'Too few action cards'})\n   elif len(links) > 6:\n       issues.append({'severity': 'WARN', 'message': 'Too many action cards'})\n   ```\n\n4. **Validate link targets** - ensure all action card links resolve\n\n5. **Check contextual text** - verify transition has explanatory text before action cards\n\n### Step 5: Verify Part Flow\n\n1. Extract part numbers\n2. Check sequential order\n3. Verify part structure\n4. Validate summaries\n5. Check progress indicators\n\n### Step 6: Assess Quality\n\n1. Check metadata completeness\n2. Verify repository configuration\n3. Review cell ordering\n4. Assess content quality\n5. Generate quality score\n\n## Common Issues and Fixes\n\n### Issue 1: Broken Smart Links\n\n**Symptom:** Link text doesn't match any heading\n\n**Fix:**\n\n```markdown\n# Before (broken)\n[Getting Started](#)  → No heading contains \"Getting Started\"\n\n# After (fixed)\nHeading: ### Getting Started Guide\nLink: [Getting Started Guide](#)\n```\n\n### Issue 2: Missing Transitions\n\n**Symptom:** Part starts immediately after previous summary\n\n**Fix:**\n\n```markdown\n# Add transition cell with action cards\nContextual text...\n\n\u003C!-- action-cards -->\n- [Topic 1](#)\n- [Topic 2](#)\n```\n\n### Issue 3: Incorrect Cell Order\n\n**Symptom:** Summary appears before content, or reference cells between parts\n\n**Fix:**\n\n```python\n# Reorder cells in notebook JSON\n# Example: Move completion cell from index 64 to index 72\n\ncells = notebook['cells']\ncompletion_cell = cells.pop(64)  # Remove from wrong position\ncells.insert(72, completion_cell)  # Insert at correct position\n```\n\n**Common scenarios:**\n\n- Completion cell before part content → Move to end of part\n- Reference cells between parts → Move to end of notebook (before final wrap-up)\n- Technical cells outside their section → Move into proper section\n\n### Issue 4: Missing Action Cards\n\n**Symptom:** Transition cell has no `\u003C!-- action-cards -->` marker\n\n**Critical Issue:** This is one of the most common validation failures. Every transition cell between parts MUST have action cards to guide readers.\n\n**Detection Pattern:**\n\n```python\n# Identifies transition cells by:\n# 1. Contains \"Part X:\" heading\n# 2. Has progress indicator (Progress: X of Y)\n# 3. Has progress dots (??...)\n# 4. Has reading time estimate\n\n# Then checks for:\n# - \u003C!-- action-cards --> marker (REQUIRED)\n# - 3-6 markdown links after marker\n# - Links use (#) placeholder pattern\n```\n\n**Fix:**\n\n```markdown\n# Before (FAILS validation):\n### Part 7: Universal Patterns\n**Progress: 7 of 8** ???????⚪\n**Reading time: 2 minutes**\n\nThese patterns work everywhere...\n\n# After (PASSES validation):\n### Part 7: Universal Patterns\n**Progress: 7 of 8** ???????⚪\n**Reading time: 2 minutes**\n\nThese patterns work everywhere...\n\n\u003C!-- action-cards -->\n\n- [Beyond EDS](#)\n- [Universal Patterns](#)\n- [Apply Anywhere](#)\n```\n\n**Why this matters:**\n\n- Action cards provide visual navigation\n- Helps readers preview upcoming content\n- Maintains consistent user experience\n- Critical for educational notebooks\n\n### Issue 5: Part Number Gaps\n\n**Symptom:** Parts numbered 1, 2, 4 (missing 3)\n\n**Fix:** Renumber parts sequentially or add missing part\n\n## Testing the Notebook\n\n### Manual Testing\n\n1. Open in VS Code with Jupyter extension\n2. Click through all smart links\n3. Verify action cards display correctly\n4. Check part flow and navigation\n5. Test in ipynb-viewer block\n\n### Automated Validation\n\nUse the `\u002Fvalidate-notebook` command:\n\n```bash\n\u002Fvalidate-notebook notebook-name.ipynb\n```\n\nOutput includes:\n\n- Smart link validation results\n- Structure analysis\n- Transition checks\n- Part flow verification\n- Overall quality score\n- Detailed issue report\n\n## Production Checklist\n\nBefore deploying to production:\n\n- [ ] All smart links resolve correctly\n- [ ] Structure is complete and logical\n- [ ] Transitions have action cards\n- [ ] Parts flow sequentially\n- [ ] Cells are properly ordered\n- [ ] Metadata is complete\n- [ ] Repository URL is set\n- [ ] No test\u002Fplaceholder content\n- [ ] Formatting is correct\n- [ ] File size is reasonable\n- [ ] Tested in ipynb-viewer\n- [ ] Action cards display correctly\n- [ ] Navigation works smoothly\n- [ ] Content is final and approved\n\n## Quality Scoring\n\nThe validator assigns scores (0-100) in each category:\n\n**Smart Links (0-100):**\n\n- 100: All links resolve perfectly\n- 75-99: Minor issues or warnings\n- 50-74: Some broken links\n- 0-49: Many broken links\n\n**Structure (0-100):**\n\n- 100: Perfect organization\n- 75-99: Minor structural issues\n- 50-74: Missing sections or gaps\n- 0-49: Poor organization\n\n**Transitions (0-100):**\n\n- 100: All transitions present with action cards\n- 75-99: Missing some action cards\n- 50-74: Some transitions missing\n- 0-49: Few or no transitions\n\n**Part Flow (0-100):**\n\n- 100: Perfect sequential flow\n- 75-99: Minor numbering issues\n- 50-74: Gaps or duplicates\n- 0-49: Major flow problems\n\n**Overall (0-100):**\n\n- 90-100: Production ready\n- 75-89: Minor fixes needed\n- 60-74: Moderate issues\n- 0-59: Major rework required\n\n## Best Practices\n\n### For Smart Links\n\n✅ Use descriptive, unique link text\n✅ Keep link text consistent with headings\n✅ Test all links before deployment\n✅ Use emojis in headings (they're ignored in matching)\n\n❌ Don't use generic link text like \"Click here\"\n❌ Don't hardcode cell IDs like `#cell-5`\n❌ Don't create circular link references\n\n### For Cell Ordering\n\n✅ Validate cell order with structural checks:\n\n```python\n# Check adjacency between key sections\npart_completion_idx \u003C part_transition_idx + 1  # Must be adjacent\npart_transition_idx \u003C next_part_start_idx  # Proper sequence\n```\n\n✅ Place reference\u002Futility cells strategically:\n\n- Resources & Quick Reference → End of notebook\n- Essential Bookmarks → End of notebook\n- Troubleshooting → End of notebook\n- \"What's Next\" → End of notebook\n\n✅ Keep technical detail cells within their parent section:\n\n- Code examples belong in \"How This Works\" section\n- Implementation details stay with their topic\n- Don't orphan detail cells between major parts\n\n❌ Don't place utility cells between parts\n❌ Don't split sections with unrelated content\n❌ Don't place completion cells before content\n\n### For Transitions\n\n✅ Provide contextual text explaining what's next\n✅ Include 3-6 action cards per transition\n✅ Link to major upcoming sections\n✅ Use consistent formatting\n\n❌ Don't skip transitions between major parts\n❌ Don't have too many action cards (> 6)\n❌ Don't have too few action cards (\u003C 3)\n\n### For Part Flow\n\n✅ Number parts sequentially\n✅ Use consistent title format\n✅ Place summaries at end of parts\n✅ Keep part structure uniform\n\n❌ Don't skip part numbers\n❌ Don't change title format mid-notebook\n❌ Don't place summaries before content\n\n## Related Files\n\n- `.claude\u002Fcommands\u002Fvalidate-notebook.md` - Command implementation\n- `blocks\u002Fipynb-viewer\u002FREADME.md` - Viewer documentation\n- `docs\u002Ffor-ai\u002Fexplaining-educational-notebooks.md` - Notebook creation guide\n- `docs\u002Ffor-ai\u002Fexplaining-presentation-notebooks.md` - Presentation notebooks\n\n## Validation Output Format\n\nThe validator produces a detailed report:\n\n```\nNOTEBOOK VALIDATION REPORT: notebook-name.ipynb\n================================================================\n\nSUMMARY:\n  Total Cells: 66\n  Smart Links: 51 (51 valid, 0 broken)\n  Parts: 7 (sequential)\n  Transitions: 6 (all with action cards)\n  Overall Score: 95\u002F100 ✅ PRODUCTION READY\n\nSMART LINKS: ✅ PASS\n  ✓ All 51 smart links resolve correctly\n  ✓ No broken or orphaned links\n  ✓ Action card links validated\n\nSTRUCTURE: ✅ PASS\n  ✓ Clear introduction section (8 cells)\n  ✓ 7 parts with consistent structure\n  ✓ Conclusion section present\n  ✓ No gaps or missing sections\n\nTRANSITIONS: ✅ PASS\n  ✓ 6 transition cells with action cards\n  ✓ Part 6 flows naturally (no transition needed)\n  ✓ All action cards have 3-6 links\n  ✓ Contextual text present\n\nPART FLOW: ✅ PASS\n  ✓ Parts numbered 1-7 sequentially\n  ✓ No gaps or duplicates\n  ✓ Summaries at end of each part\n  ✓ Consistent title format\n\nCELL ORDERING: ✅ PASS\n  ✓ All cells in logical sequence\n  ✓ Summaries after content\n  ✓ Transitions before parts\n  ✓ No orphaned cells\n\nPRODUCTION READINESS: ✅ PASS\n  ✓ Metadata complete\n  ✓ Repository URL set\n  ✓ No test content\n  ✓ Valid JSON structure\n  ✓ Appropriate file size\n\nRECOMMENDATIONS:\n  • Notebook is ready for production deployment\n  • All validation checks passed\n  • Quality score: 95\u002F100\n```\n\n---\n\n**Note:** This validator is designed for educational and navigation notebooks. Testing notebooks (test.ipynb) may have different structure requirements and are validated separately.\n",{"mx":45,"name":5,"description":7},{"canonicalUri":46},"https:\u002F\u002Fraw.githubusercontent.com\u002Fddttom\u002Fallaboutv2\u002Fmain\u002F.claude\u002Fskills\u002Fipynb-validator\u002FSKILL.md","main","94cac13323e3a1686d255ad6a4455bc0d2272b8c",".claude\u002Fskills\u002Fipynb-validator",0,"https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2","https:\u002F\u002Fgithub.com\u002Fddttom","Independent Technology Consultant at DIGITAL DOMAIN TECHNOLOGIES LIMITED","2026-11-14 16:27:17",{"source":9,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add ddttom\u002Fallaboutv2 --skill ipynb-validator",{"tool":61,"command":62},"bunx","bunx skills add ddttom\u002Fallaboutv2 --skill ipynb-validator",{"tool":64,"command":65},"pnpm","pnpm dlx skills add ddttom\u002Fallaboutv2 --skill ipynb-validator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fipynb-validator\u002FSKILL.md",true,[],[70,90,105,120,129,150],{"skillNo":71,"name":72,"nameZh":17,"description":73,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":40},"01M6BX9XTV2PTCX7CC2DS4NC9N","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[32,78,79,80,81,82,83,84,85,86,87,88,89],"webapp testing","frontend","screenshots","playwright","web","debugging","toolkit","browser","license","ui","logs","applications",{"skillNo":91,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":40},"01M6BX9V12H31MGZ0YYXZJ6R05","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftheme-factory\u002FSKILL.md",[],[98,99,86,100,84,101,102,103,104],"theme factory","artifacts","generate","SET","docs","fly","slides",{"skillNo":106,"name":107,"nameZh":17,"description":108,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":40},"01M6BX9QWNATVKD88BNQHVZ92A","Testing Blocks","Guide for testing code changes in AEM Edge Delivery projects including blocks, scripts, and styles. Use this skill after making code changes and before opening a pull request to validate functionality. Covers unit testing for utilities and logic, browser testing with Playwright\u002FPuppeteer, linting, performance validation, and guidance on which tests to maintain vs use as throwaway validation.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftesting-blocks\u002FSKILL.md",[],[32,107,112,113,85,37,114,81,33,115,116,35,117,118,119],"projects","edge","performance","pull request","code","puppeteer","pull","browser testing",{"skillNo":121,"name":122,"nameZh":17,"description":123,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":40},"01M6BX9PFJ1F4QSAXHGVPB4MB0","template-skill","Replace with description of the skill and when Claude should use it.","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftemplate-skill\u002FSKILL.md",[],[127,128,37],"template skill","template",{"skillNo":130,"name":131,"nameZh":132,"description":133,"descriptionZh":134,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":144,"publishedAt":40},"01M6BX9K7A0AJM3RQJ70G3XNX9","slack-gif-creator","Slack 动图 GIF 制作","Toolkit for creating animated GIFs optimized for Slack, with validators for size constraints and composable animation primitives. This skill applies when users request animated GIFs or emoji animations for Slack from descriptions like \"make me a GIF for Slack of X doing Y\".","用于创建针对 Slack 优化的动图 GIF 的工具包，包含大小限制校验器和可组合的动画原语。当用户请求制作 Slack 用的动图 GIF 或表情动画时适用，例如“帮我做一个 X 做 Y 的 Slack GIF”。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fslack-gif-creator\u002FSKILL.md",[138,141],{"categoryNo":139,"categoryName":140,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",{"categoryNo":142,"categoryName":143,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C8DBWTZ7VT76QWWE5JQN8D","动图 GIF 制作",[145,146,147,148,84,86,149],"slack","slack gif creator","constraints","composable","Animation",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":164,"publishedAt":40},"01M6BX9G4PJA81VK9ZNQENT3B2","skill-developer","Claude Code 技能开发与管理","Create and manage Claude Code skills following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns, file paths, content patterns), enforcement levels (block, suggest, warn), hook mechanisms (UserPromptSubmit, PreToolUse), session tracking, and the 500-line rule.","遵循 Anthropic 最佳实践创建和管理 Claude Code 技能。在创建新技能、修改 skill-rules.json、理解触发模式、使用 hooks、调试技能激活，或实现渐进式披露时使用。涵盖技能结构、YAML frontmatter、触发类型（关键词、意图模式、文件路径、内容模式）、强制级别（block、suggest、warn）、hook 机制（UserPromptSubmit、PreToolUse）、会话跟踪以及 500 行规则。","https:\u002F\u002Fgithub.com\u002Fddttom\u002Fallaboutv2\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fskill-developer\u002FSKILL.md",[158,161],{"categoryNo":159,"categoryName":160,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":162,"categoryName":163,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",[165,166,83,167,116,168,169,37,170,171,172,173],"skill developer","developer","create","best practices","content","file","yaml","json","claude code skills"]