Audit code examples for correctness, best practices, and consistency
Audits course code examples for correctness, style, best practices, and consistency.
/plugin marketplace add NathanJGaul/plugins/plugin install dev-course-builder@njg-marketplace[course] [scope] - Course and optional scope (e.g., 'cpp-fundamentals chapter-5')Systematic audit of code examples across course materials for correctness, style, best practices, and consistency.
Which course's code examples should be reviewed?
[1] C++ Fundamentals (Junior Developers)
[2] [Other configured courses...]
[3] Specify course directory path
Please select an option:
What scope of code review?
[1] All code examples in the course
[2] Specific module or chapter
[3] Specific file or content piece
[4] Only code marked as "working examples"
[5] Only code marked as "error examples"
Please select an option:
How thorough should the code review be?
[1] Compilation check only (verify code compiles)
[2] Execution check (verify output matches stated)
[3] Full review (compilation, execution, style, best practices)
[4] Style and idioms only (skip compilation)
Please select an option:
How should code be verified?
[1] Manual analysis (trace through code mentally)
[2] Actual compilation and execution (if toolchain available)
[3] Hybrid (compile what's possible, analyze the rest)
Please select an option:
The course-reviewer agent will systematically review all code examples.
The course-reviewer agent will:
Discovery:
Analysis:
Verification (if requested):
Reporting:
Comprehensive code audit report:
## Code Examples Audit: [Course Name]
### Audit Summary
- Total code blocks found: X
- Working examples: X
- Error examples: X
- Partial/snippet examples: X
- Examples verified: X
### Overall Assessment
[Summary of code quality across the course]
### Compilation Results
| Example | Location | Status | Issue |
|---------|----------|--------|-------|
### Output Verification
| Example | Location | Expected | Actual | Status |
|---------|----------|----------|--------|--------|
### Critical Issues (Code Won't Compile/Run)
#### Issue C1: [File:Line]
**Code:**
```[lang]
// The problematic code
Problem: [Description] Fix:
// The corrected code
Code:
// The problematic code
Problem: [Description] Expected: [What should happen] Actual: [What happens] Fix: [How to fix]
| Location | Issue | Current | Recommended |
|---|
| Location | Pattern | Issue | Recommendation |
|---|
| Issue | Locations | Recommendation |
|---|
## Usage Notes
- Actual compilation requires appropriate toolchain
- Large courses may take significant time
- Run after adding new content
- Track trends across reviews
- Consider running before course launches
- Use alongside full course review for complete picture