Skip to content

Commit 355cfed

Browse files
authored
Merge pull request leonardomso#644 from leonardomso/feat/beyond-33
feat: add Beyond 33 JavaScript Concepts - Extended Learning Path
2 parents acf0915 + b19278f commit 355cfed

83 files changed

Lines changed: 57830 additions & 25 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/CLAUDE.md

Lines changed: 180 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,22 @@ The project was recognized by GitHub as one of the **top open source projects of
1818
```
1919
33-js-concepts/
2020
├── .claude/ # Claude configuration
21-
│ └── CLAUDE.md # Project context and guidelines
21+
│ ├── CLAUDE.md # Project context and guidelines
22+
│ └── skills/ # Custom skills for content creation
23+
│ ├── write-concept/ # Skill for writing concept documentation
24+
│ ├── fact-check/ # Skill for verifying technical accuracy
25+
│ ├── seo-review/ # Skill for SEO audits
26+
│ ├── test-writer/ # Skill for generating Vitest tests
27+
│ ├── resource-curator/ # Skill for curating external resources
28+
│ └── concept-workflow/ # Skill for end-to-end concept creation
2229
├── .opencode/ # OpenCode configuration
23-
│ └── skill/ # Custom skills for content creation
24-
│ └── write-concept/ # Skill for writing concept documentation
30+
│ └── skill/ # Custom skills (mirrored from .claude/skills)
31+
│ ├── write-concept/ # Skill for writing concept documentation
32+
│ ├── fact-check/ # Skill for verifying technical accuracy
33+
│ ├── seo-review/ # Skill for SEO audits
34+
│ ├── test-writer/ # Skill for generating Vitest tests
35+
│ ├── resource-curator/ # Skill for curating external resources
36+
│ └── concept-workflow/ # Skill for end-to-end concept creation
2537
├── docs/ # Mintlify documentation site
2638
│ ├── docs.json # Mintlify configuration
2739
│ ├── index.mdx # Homepage
@@ -46,7 +58,7 @@ The project was recognized by GitHub as one of the **top open source projects of
4658
├── CODE_OF_CONDUCT.md # Community standards
4759
├── LICENSE # MIT License
4860
├── package.json # Project metadata
49-
├── opencode.json # OpenCode AI assistant configuration
61+
├── opencode.jsonc # OpenCode AI assistant configuration
5062
└── github-image.png # Project banner image
5163
```
5264

@@ -398,7 +410,170 @@ Use the `/write-concept` skill when writing or improving concept documentation p
398410

399411
The skill includes detailed guidance on title optimization (50-60 chars), meta descriptions (150-160 chars), keyword placement, and featured snippet optimization.
400412

401-
**Location:** `.opencode/skill/write-concept/SKILL.md`
413+
**Location:** `.claude/skills/write-concept/SKILL.md`
414+
415+
### fact-check Skill
416+
417+
Use the `/fact-check` skill when verifying the technical accuracy of concept documentation. This skill provides comprehensive methodology for:
418+
419+
- **Code Verification**: Verify all code examples produce stated outputs, run project tests
420+
- **MDN/Spec Compliance**: Check claims against official MDN documentation and ECMAScript specification
421+
- **External Resource Checks**: Verify all links work and descriptions accurately represent content
422+
- **Misconception Detection**: Common JavaScript misconceptions to watch for (type coercion, async behavior, etc.)
423+
- **Test Integration**: Instructions for running `npm test` to verify code examples
424+
- **Report Template**: Structured format for documenting findings with severity levels
425+
426+
**When to invoke:**
427+
- Before publishing a new concept page
428+
- After significant edits to existing pages
429+
- When reviewing community contributions
430+
- Periodic accuracy audits of existing content
431+
432+
**What gets checked:**
433+
- Every code example for correct output
434+
- All MDN links for validity (not 404)
435+
- API descriptions match current MDN documentation
436+
- External resources (articles, videos) are accessible and accurate
437+
- Technical claims are correct and properly nuanced
438+
- No common JavaScript misconceptions stated as fact
439+
440+
**Location:** `.claude/skills/fact-check/SKILL.md`
441+
442+
### seo-review Skill
443+
444+
Use the `/seo-review` skill when auditing concept pages for search engine optimization. This skill provides a focused audit checklist:
445+
446+
- **27-Point Scoring System**: Systematic audit across 6 categories
447+
- **Title & Meta Optimization**: Character counts, keyword placement, compelling hooks
448+
- **Keyword Strategy**: Pre-built keyword clusters for all JavaScript concepts
449+
- **Featured Snippet Optimization**: Patterns for winning position zero in search results
450+
- **Internal Linking**: Audit of concept interconnections and anchor text quality
451+
- **Report Template**: Structured SEO audit report with prioritized fixes
452+
453+
**When to invoke:**
454+
- Before publishing a new concept page
455+
- When optimizing underperforming pages
456+
- Periodic content audits
457+
- After major content updates
458+
459+
**Scoring Categories (30 points total):**
460+
- Title Tag (4 points)
461+
- Meta Description (4 points)
462+
- Keyword Placement (5 points)
463+
- Content Structure (6 points)
464+
- Featured Snippets (4 points)
465+
- Internal Linking (4 points)
466+
- Technical SEO (3 points) — Single H1, keyword in slug, no orphan pages
467+
468+
**Score Interpretation:**
469+
- 90-100% (27-30): Ready to publish
470+
- 75-89% (23-26): Minor optimizations needed
471+
- 55-74% (17-22): Several improvements needed
472+
- Below 55% (<17): Significant work required
473+
474+
**Location:** `.claude/skills/seo-review/SKILL.md`
475+
476+
### test-writer Skill
477+
478+
Use the `/test-writer` skill when generating Vitest tests for code examples in concept documentation. This skill provides comprehensive methodology for:
479+
480+
- **Code Extraction**: Identify and categorize all code examples (testable, DOM, error, conceptual)
481+
- **Test Patterns**: 16 patterns for converting different types of code examples to tests
482+
- **DOM Testing**: Separate file structure with jsdom environment for browser-specific code
483+
- **Source References**: Line number references linking tests to documentation
484+
- **Project Conventions**: File naming, describe block organization, assertion patterns
485+
- **Report Template**: Test coverage report documenting what was tested and skipped
486+
487+
**When to invoke:**
488+
- After writing a new concept page
489+
- When adding new code examples to existing pages
490+
- When updating existing code examples
491+
- To verify documentation accuracy through automated tests
492+
493+
**Test Categories:**
494+
- Basic value assertions (`console.log``expect`)
495+
- Error testing (`toThrow` patterns)
496+
- Async testing (Promises, async/await)
497+
- DOM testing (jsdom environment, events)
498+
- Floating point (toBeCloseTo)
499+
- Object/Array comparisons (toEqual)
500+
501+
**File Structure:**
502+
```
503+
tests/{category}/{concept-name}/{concept-name}.test.js
504+
tests/{category}/{concept-name}/{concept-name}.dom.test.js (if DOM examples)
505+
```
506+
507+
**Location:** `.claude/skills/test-writer/SKILL.md`
508+
509+
### resource-curator Skill
510+
511+
Use the `/resource-curator` skill when finding, evaluating, or maintaining external resources (articles, videos, courses) for concept pages. This skill provides:
512+
513+
- **Audit Process**: Check existing links for accessibility, accuracy, and relevance
514+
- **Trusted Sources**: Prioritized lists of reputable article, video, and course sources
515+
- **Quality Criteria**: Must-have, should-have, and red flag checklists
516+
- **Description Writing**: Formula and examples for specific, valuable descriptions
517+
- **Publication Guidelines**: Date thresholds for different topic categories
518+
- **Report Template**: Audit report for documenting broken, outdated, and missing resources
519+
520+
**When to invoke:**
521+
- Adding resources to a new concept page
522+
- Refreshing resources on existing pages
523+
- Auditing for broken or outdated links
524+
- Reviewing community-contributed resources
525+
- Periodic link maintenance
526+
527+
**Resource Targets:**
528+
- Reference: 2-4 MDN links
529+
- Articles: 4-6 quality articles
530+
- Videos: 3-4 quality videos
531+
- Courses: 1-3 (optional)
532+
533+
**Trusted Sources Include:**
534+
- Articles: javascript.info, MDN Guides, freeCodeCamp, 2ality, CSS-Tricks, dev.to
535+
- Videos: Fireship, Web Dev Simplified, Fun Fun Function, Traversy Media, JSConf
536+
- Courses: javascript.info, Piccalilli, freeCodeCamp, Frontend Masters
537+
538+
**Location:** `.claude/skills/resource-curator/SKILL.md`
539+
540+
### concept-workflow Skill
541+
542+
Use the `/concept-workflow` skill for end-to-end creation of a complete concept page. This orchestrator skill coordinates all five specialized skills in optimal order:
543+
544+
```
545+
Phase 1: resource-curator → Find quality external resources
546+
Phase 2: write-concept → Write the documentation page
547+
Phase 3: test-writer → Generate tests for code examples
548+
Phase 4: fact-check → Verify technical accuracy
549+
Phase 5: seo-review → Optimize for search visibility
550+
```
551+
552+
**When to invoke:**
553+
- Creating a brand new concept page from scratch
554+
- Completely rewriting an existing concept page
555+
- When you want the full end-to-end workflow with all quality checks
556+
557+
**What it orchestrates:**
558+
- Resource curation (2-4 MDN refs, 4-6 articles, 3-4 videos)
559+
- Complete concept page writing (1,500+ words)
560+
- Comprehensive test generation for all code examples
561+
- Technical accuracy verification with test execution
562+
- SEO audit targeting 90%+ score (24+/27)
563+
564+
**Deliverables:**
565+
- `/docs/concepts/{concept-name}.mdx` — Complete documentation page
566+
- `/tests/{category}/{concept-name}/{concept-name}.test.js` — Test file
567+
- Updated `docs.json` navigation (if new concept)
568+
- Fact-check report
569+
- SEO audit report (score 24+/27)
570+
571+
**Estimated Time:** 2-5 hours depending on concept complexity
572+
573+
**Example prompt:**
574+
> "Create a complete concept page for 'hoisting' using the concept-workflow skill"
575+
576+
**Location:** `.claude/skills/concept-workflow/SKILL.md`
402577

403578
## Maintainer
404579

0 commit comments

Comments
 (0)