Skills.MD
# Validate Training Materials
Run comprehensive validation checks on training materials to ensure quality and consistency. This includes both automated checks and deep lesson reviews.
## User Input
**IMPORTANT**: Ask the user to specify what to validate if not clear from the request:
- A specific side quest (e.g., "debugging", "metadata")
- A specific module (e.g., "hello_nextflow", "nf4_science/genomics")
- The entire repository (only if explicitly requested)
If the user provides a path or module name, **only validate that specific content**.
## Working Directory
**IMPORTANT**: All commands in this skill must be executed from the repository root directory.
- The repository root is the directory containing `mkdocs.yml`, `docs/`, and `.github/`
- Verify you are in the correct directory before running any commands (check for these files/folders)
- All file paths in this skill are relative to the repository root
- Do not change directories during skill execution
- Use paths relative to repository root only
## Determining Scope
Based on the user's request, determine the scope:
1. **Specific side quest** (e.g., "debugging"):
- Documentation file: `docs/side_quests/{name}.md`
- Example scripts: `side-quests/{name}/**/*.nf`
- Solution files: `side-quests/solutions/{name}/**/*.nf`
2. **Specific module** (e.g., "hello_nextflow"):
- Documentation files: `docs/{module}/**/*.md`
- Example scripts: `{module}/**/*.nf` or `nf-training/**/*.nf`
- Solution files: `{module}/solutions/**/*.nf`
3. **Entire repository** (only if explicitly requested):
- All files: `docs/**/*.md`, `**/*.nf`
## Tasks to Perform
Perform the following checks **only on files within the determined scope**:
1. **Check Heading Numbering**
- Run: `uv run .github/check_headings.py [scoped-path]/**/*.md`
- Report any heading numbering issues found
- If errors exist, ask if user wants to auto-fix with `--fix` flag
2. **Find TODO/FIXME Comments**
- Search markdown files in scope
- Search Nextflow scripts in scope
- Categorize by priority (high, medium, low)
- Report files with most TODOs
3. **Check Nextflow Script Conventions**
- Find .nf files in scope
- Verify they start with `#!/usr/bin/env nextflow`
- Check for DSL2 syntax
- Report any that don't follow conventions
4. **Find Orphaned Files**
- Check if main documentation file is referenced in mkdocs.yml
- Look for solution files without corresponding exercise documentation
- Report any orphaned files within scope
5. **Verify Admonition Syntax**
- Search for common admonition formatting errors in scoped files
- Check for proper indentation (4 spaces)
- Report any malformed admonitions
6. **Check Code Block Highlights**
- Invoke the `/check-highlights` skill for comprehensive `hl_lines` validation
- This checks that highlighted lines match the intended content
- Particularly important for Before/After comparison blocks
7. **Check Writing Style**
- Search for LLM-style patterns that should be avoided:
- `Let's` or `let's` at start of sentences
- `Remember when` or `Remember that` callbacks
- `Don't worry` reassurances
- `worth mentioning` or `important to note` padding
- Exclamation marks used for emphasis (not in code/output)
- Check for em-dash elaborations (space-hyphen-space followed by lowercase) that could be periods
- Flag any issues found for manual review
8. **Deep Lesson Review** (when reviewing a specific lesson file)
If the user asks to review a specific lesson, perform this comprehensive checklist:
a. **Structure Check**:
- [ ] Proper heading numbering with trailing periods
- [ ] Heading levels match numbering depth (## for 1., ### for 1.1.)
- [ ] Each major section has "### Takeaway"
- [ ] Each major section has "### What's next?"
- [ ] Logical flow from simple to complex
- [ ] Clear learning objectives stated or implied
b. **Formatting Check**:
- [ ] Code blocks have proper titles, line numbers, and highlighting
- [ ] Console output properly formatted with `console title="Output"`
- [ ] File paths use proper markdown formatting
- [ ] Before/After comparisons use tabbed blocks
- [ ] Admonitions properly formatted and indented
- [ ] Each sentence on new line (for clean diffs)
c. **Content Check**:
- [ ] Technical accuracy of Nextflow code
- [ ] Commands are correct and runnable
- [ ] Parameter syntax correct (-- for pipeline, - for Nextflow)
- [ ] Examples progress logically
- [ ] Common pitfalls addressed
- [ ] Edge cases explained
d. **Teaching Effectiveness**:
- [ ] Clear explanations for beginners
- [ ] Concepts introduced before use
- [ ] Examples are relevant and motivating
- [ ] Exercises appropriate for skill level
- [ ] Solutions available for exercises
- [ ] Good use of tips and warnings
e. **Cross-References**:
- [ ] Links to related lessons work
- [ ] References to files/scripts are correct
- [ ] External links are valid
- [ ] Prerequisites clearly stated
f. **Examples & Code**:
- [ ] All Nextflow examples are syntactically correct
- [ ] Variable names are clear and consistent
- [ ] Comments explain non-obvious code
- [ ] Examples can be run as shown
- [ ] Output examples match what code produces
g. **Writing Style** (see CLAUDE.md for full guidelines):
- [ ] No LLM-style interjections ("Let's", "Remember when...?", "Don't worry")
- [ ] No exclamation-based emphasis ("Much faster!", "So powerful!")
- [ ] Em-dash elaborations replaced with periods or semicolons
- [ ] List explanations use colons, not hyphens
- [ ] Single clear explanation per concept (not multiple phrasings)
- [ ] Professional, direct tone throughout
## Output Format
Provide a structured report. For automated validation checks:
```
# Validation Report
## Heading Numbering
✓ All headings correctly numbered
[or list of issues with file:line]
## TODO/FIXME Comments
Found 15 total:
- High priority: 3
- Documentation: 8
- Code: 4
Top files:
- docs/side_quests/debugging.md (5 items)
- ...
## Nextflow Scripts
✓ All 23 scripts follow conventions
[or list of non-compliant scripts]
## Orphaned Files
Found 2 orphaned markdown files:
- docs/old/deprecated.md
- ...
## Admonitions
✓ All admonitions properly formatted
[or list of issues]
## Writing Style
✓ No LLM-style patterns found
[or list of issues with file:line, e.g.:]
- docs/example.md:42: "Let's see how..." -> rephrase
- docs/example.md:87: em-dash elaboration -> use period
## Summary
[Overall assessment and recommended actions]
```
For deep lesson reviews, add:
```
## Lesson Review: [lesson-name]
### Structure
[Assessment of structure with specific issues/successes]
### Formatting
[Assessment of formatting with specific issues/successes]
### Content Accuracy
[Assessment of technical content]
### Teaching Effectiveness
[Assessment of pedagogical quality]
### Cross-References
[Assessment of links and references]
### Examples & Code
[Assessment of code quality]
### Writing Style
[Assessment of tone and language patterns]
### Overall Assessment
[Summary with severity-organized issues and recommendations]
### Positive Aspects
[Things worth preserving]
```
## Notes
- Use Grep and Glob tools for efficient searching
- Run heading check script directly via Bash
- Provide actionable next steps for any issues found
- If no issues found, give clear confirmation
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「validate」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次