google-codelab-authoring
SKILL.md
Google Codelab Authoring
This skill guides the end-to-end creation of high-quality Google Codelabs (.lab.md).
Core Mandates
- Readability First: Always check your work with the
scripts/fog.cjsscript. Target a Gunning Fog Index < 12 (General Audience). - Deterministic Tooling: Use
scripts/validate_codelab.cjsto catch structural errors before finalizing. - Inclusive Language: Avoid niche jargon. Refer to
references/style_guide/jargon.mdandreferences/style_guide/inclusive-documentation.md. - Step-by-Step Clarity: Every instruction must be actionable. Avoid "just" or "simply".
Workflow
1. Plan & Design
Before generating any code or text:
- Define Scope: Consult
references/content_recommendations.md. - Identify Audience: Use
references/writing_guide.mdto set the tone. - Choose Language Strategy: Decide between Polyglot (preferred) or Block Includes. See
references/polyglot.md.
2. Initialize
- Read Template: Load
assets/template.lab.md. - Create File: Generate the
.lab.mdfile using the template as a base. - Configure Metadata: Fill in
id,description,authors, anddurationin the YAML frontmatter.
3. Write & Format
Refer to the guides to ensure compliance with Google Developer standards.
- Structure: Follow
references/formatting_guide.mdfor headings, steps, and duration (Duration: MM:SS). - Style: Consult
references/style_guide/for specific questions (e.g.,voice.md,procedures.md). - Components: Use
> aside positive/negativefor notes andconsolecode blocks for terminal output.
4. Review & Validate (Mandatory)
Never mark a task as complete without validation.
- Readability Check: Run
node scripts/fog.cjs <path-to-file>. If > 12, simplify the language. - Structural Check: Run
node scripts/validate_codelab.cjs <path-to-file>. - Self-Correction: Fix any errors reported by the scripts.
- Quality Review: Check against
references/review.md.
Common Tasks
- Add Duration:
Duration: MM:SSgoes immediately after a## Step Title. - Info Boxes: Use
> aside positive(tips) or> aside negative(warnings). - Terminal Output: Use fenced code blocks with the
consolelanguage identifier. - Code Snippets: Use fenced code blocks with the appropriate language (e.g.,
java,python).
Resources
- Template:
assets/template.lab.md - Validators:
scripts/validate_codelab.cjs(Structure)scripts/fog.cjs(Readability)
- Guides:
references/formatting_guide.md(Syntax & Structure)references/writing_guide.md(Tone & Audience)references/style_guide/(Official Google Developer Style Guide)references/review.md(Quality Checklists)references/polyglot.md(Multilanguage Support)
Weekly Installs
3
Repository
danicat/skillsGitHub Stars
3
First Seen
9 days ago
Security Audits
Installed on
opencode3
kilo3
gemini-cli3
antigravity3
windsurf3
claude-code3