Skill: Complete Concept Workflow
Use this skill to create a complete, high-quality concept page from start to finish. This skill orchestrates all five specialized skills in the optimal order:
- Resource Curation β Find quality learning resources
- Concept Writing β Write the documentation page
- Test Writing β Create tests for code examples
- Fact Checking β Verify technical accuracy
- SEO Review β Optimize for search visibility
When to Use
- Creating a brand new concept page from scratch
- Completely rewriting an existing concept page
- When you want a full end-to-end workflow with all quality checks
For partial tasks, use individual skills instead:
- Just adding resources? Use
resource-curator
- Just writing content? Use
write-concept
- Just adding tests? Use
test-writer
- Just verifying accuracy? Use
fact-check
- Just optimizing SEO? Use
seo-review
Workflow Overview
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β COMPLETE CONCEPT WORKFLOW β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β INPUT: Concept name (e.g., "hoisting", "event-loop", "promises") β
β β
β ββββββββββββββββββββ β
β β PHASE 1: RESEARCH β β
β β resource-curator β Find MDN refs, articles, videos β
β ββββββββββ¬ββββββββββ β
β βΌ β
β ββββββββββββββββββββ β
β β PHASE 2: WRITE β β
β β write-concept β Create the documentation page β
β ββββββββββ¬ββββββββββ β
β βΌ β
β ββββββββββββββββββββ β
β β PHASE 3: TEST β β
β β test-writer β Generate tests for all code examples β
β ββββββββββ¬ββββββββββ β
β βΌ β
β ββββββββββββββββββββ β
β β PHASE 4: VERIFY β β
β β fact-check β Verify accuracy, run tests, check links β
β ββββββββββ¬ββββββββββ β
β βΌ β
β ββββββββββββββββββββ β
β β PHASE 5: OPTIMIZEβ β
β β seo-review β SEO audit and final optimizations β
β ββββββββββ¬ββββββββββ β
β βΌ β
β OUTPUT: Complete, tested, verified, SEO-optimized concept page β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Phase 1: Resource Curation
Skill: resource-curator
Goal: Gather high-quality external resources before writing
What to Do
- Identify the concept category (fundamentals, async, OOP, etc.)
- Search for MDN references β Official documentation
- Find quality articles β Target 4-6 from trusted sources
- Find quality videos β Target 3-4 from trusted creators
- Evaluate each resource β Check quality criteria
- Write specific descriptions β 2 sentences each
- Format as Card components β Ready to paste into the page
Deliverables
- List of 2-4 MDN/reference links with descriptions
- List of 4-6 article links with descriptions
- List of 3-4 video links with descriptions
- Optional: 1-2 courses or books
Quality Gates
Before moving to Phase 2:
Phase 2: Concept Writing
Skill: write-concept
Goal: Create the full documentation page
What to Do
- Determine the category for file organization
- Create the frontmatter (title, sidebarTitle, description)
- Write the opening hook β Question that draws readers in
- Add opening code example β Simple example in first 200 words
- Write "What you'll learn" box β 5-7 bullet points
- Write main content sections:
- What is [concept]? (with 40-60 word definition for featured snippet)
- Real-world analogy
- How it works (with diagrams)
- Code examples (multiple, progressive complexity)
- Common mistakes
- Edge cases
- Add Key Takeaways β 8-10 numbered points
- Add Test Your Knowledge β 5-6 Q&A accordions
- Add Related Concepts β 4 Cards linking to related topics
- Add Resources β Paste resources from Phase 1
Deliverables
- Complete
.mdx file at /docs/concepts/{concept-name}.mdx
- File added to
docs.json navigation (if new)
Quality Gates
Before moving to Phase 3:
Phase 3: Test Writing
Skill: test-writer
Goal: Create comprehensive tests for all code examples
What to Do
- Scan the concept page for all code examples
- Categorize examples:
- Testable (console.log, return values)
- DOM-specific (needs jsdom)
- Error examples (toThrow)
- Conceptual (skip)
- Create test file at
tests/{category}/{concept}/{concept}.test.js
- Create DOM test file (if needed) at
tests/{category}/{concept}/{concept}.dom.test.js
- Write tests for each code example with source line references
- Run tests to verify all pass
Deliverables
- Test file:
tests/{category}/{concept-name}/{concept-name}.test.js
- DOM test file (if applicable):
tests/{category}/{concept-name}/{concept-name}.dom.test.js
- All tests passing
Quality Gates
Before moving to Phase 4:
Phase 4: Fact Checking
Skill: fact-check
Goal: Verify technical accuracy of all content
What to Do
-
Verify code examples:
- Run tests:
npm test -- tests/{category}/{concept}/
- Check any untested examples manually
- Verify output comments match actual outputs
-
Verify MDN/spec claims:
- Click all MDN links β verify they work
- Compare API descriptions to MDN
- Check ECMAScript spec for nuanced claims
-
Verify external resources:
- Check all article/video links work
- Skim content for accuracy
- Verify descriptions match content
-
Audit technical claims:
- Look for "always/never" statements
- Verify performance claims
- Check for common misconceptions
-
Generate fact-check report
Deliverables
- Fact-check report documenting:
- Code verification results
- Link check results
- Any issues found and fixes made
Quality Gates
Before moving to Phase 5:
Phase 5: SEO Review
Skill: seo-review
Goal: Optimize for search visibility
What to Do
-
Audit title tag:
- 50-60 characters
- Primary keyword in first half
- Ends with "in JavaScript"
- Contains compelling hook
-
Audit meta description:
- 150-160 characters
- Starts with action word (Learn, Understand, Discover)
- Contains primary keyword
- Promises specific value
-
Audit keyword placement:
- Keyword in title
- Keyword in description
- Keyword in first 100 words
- Keyword in at least one H2
-
Audit content structure:
- Question hook opening
- Code in first 200 words
- "What you'll learn" box
- Short paragraphs
-
Audit featured snippet optimization:
- 40-60 word definition after "What is" H2
- Question-format H2s
- Numbered steps for how-to content
-
Audit internal linking:
- 3-5 related concepts linked
- Descriptive anchor text
- Related Concepts section complete
-
Calculate score and fix any issues
Deliverables
- SEO audit report with score (X/27)
- All high-priority fixes implemented
Quality Gates
Before marking complete:
Complete Workflow Checklist
Use this master checklist to track progress through all phases.
# Concept Workflow: [Concept Name]
**Started:** YYYY-MM-DD
**Target Category:** {category}
**File Path:** `/docs/concepts/{concept-name}.mdx`
**Test Path:** `/tests/{category}/{concept-name}/`
---
## Phase 1: Resource Curation
- [ ] MDN references found (2-4)
- [ ] Articles found (4-6)
- [ ] Videos found (3-4)
- [ ] All links verified working
- [ ] Descriptions written (specific, 2 sentences)
- [ ] Resources formatted as Cards
**Status:** β¬ Not Started | π‘ In Progress | β
Complete
---
## Phase 2: Concept Writing
- [ ] Frontmatter complete
- [ ] Opening hook written
- [ ] Opening code example added
- [ ] "What you'll learn" box added
- [ ] Main content sections written
- [ ] Key Takeaways added
- [ ] Test Your Knowledge added
- [ ] Related Concepts added
- [ ] Resources pasted from Phase 1
- [ ] Added to docs.json (if new)
**Status:** β¬ Not Started | π‘ In Progress | β
Complete
---
## Phase 3: Test Writing
- [ ] Code examples extracted and categorized
- [ ] Test file created
- [ ] DOM test file created (if needed)
- [ ] All testable examples have tests
- [ ] Source line references added
- [ ] Tests run and passing
**Test Results:** X passing, X failing
**Status:** β¬ Not Started | π‘ In Progress | β
Complete
---
## Phase 4: Fact Checking
- [ ] All tests passing
- [ ] Code examples verified accurate
- [ ] MDN links checked (X/X valid)
- [ ] External resources checked (X/X valid)
- [ ] Technical claims audited
- [ ] No misconceptions found
- [ ] Issues fixed
**Status:** β¬ Not Started | π‘ In Progress | β
Complete
---
## Phase 5: SEO Review
- [ ] Title tag optimized (50-60 chars)
- [ ] Meta description optimized (150-160 chars)
- [ ] Keywords placed correctly
- [ ] Content structure verified
- [ ] Featured snippet optimized
- [ ] Internal links complete
**SEO Score:** X/27 (X%)
**Status:** β¬ Not Started | π‘ In Progress | β
Complete
---
## Final Status
**All Phases Complete:** β¬ No | β
Yes
**Ready to Publish:** β¬ No | β
Yes
**Completed:** YYYY-MM-DD
Execution Instructions
When executing this workflow, follow these steps:
Step 1: Initialize
Starting concept workflow for: [CONCEPT NAME]