| description | Create structured tutorials for Apify Academy or Platform documentation. Use when user says "create a tutorial", "write a tutorial", "build a step-by-step guide", "convert this guide into a tutorial", or "tutorial for [topic]". Handles tutorial structure, learning objectives, prerequisites, step-by-step instructions, code examples, and troubleshooting sections. |
|---|---|
| argument-hint | topic |
| allowed-tools | Read, Write, Edit, Bash, Glob, Grep |
Create comprehensive, structured tutorials for Apify documentation following the 8-section template.
Identify the tutorial type based on user request:
- Platform tutorial - How to use Apify platform features (
sources/platform/) - Academy tutorial - Teaching web scraping or automation concepts (
sources/academy/tutorials/) - Integration tutorial - Connecting Apify with other tools (
sources/platform/integrations/)
---
title: Action-oriented title in sentence case
description: Value-focused description, 140-160 characters
sidebar_position: 1.0
slug: /category/tutorial-name
---Use simple present tense ("Create an Actor" not "Creating an Actor"). Match slug to file path.
Follow the 8-section template in references/tutorial-template.md:
- Introduction with learning objectives
- Prerequisites with checklist and time estimate
- Step-by-step instructions (numbered, action verbs)
- Code examples (complete, runnable, with code tabs)
- Testing/verification with expected output
- Troubleshooting for common issues
- Summary of accomplishments
- Next steps with links
All standards from .claude/rules/ apply. Key tutorial-specific checks:
- Clear learning objectives in introduction
- Prerequisites listed with time estimate
- Steps are numbered and start with action verbs
- Code examples are complete, tested, and runnable
- Expected results shown after each major step
- Common issues addressed in troubleshooting
- Summary lists what user accomplished
- Next steps and related content linked
- Run
npm run lint:mdon the new file - Run
npm start(ornpm run build) to verify no broken links or slug conflicts
For general quality standards (front matter, formatting, terminology), see quality-standards.md.
Example 1: Platform tutorial request
User says: "Create a tutorial for deploying an Actor to production"
Actions:
- Create file at
sources/platform/actors/tutorials/deploy-actor.md - Use platform tutorial structure from template
- Include prerequisites (Apify account, Actor ready)
- Write step-by-step deployment instructions with screenshots
- Add code examples for
apify pushand Console deployment - Include troubleshooting for common deployment errors
Result: Complete tutorial following 8-section template, ready for review.
Example 2: Academy tutorial request
User says: "Write a tutorial on web scraping with Playwright"
Actions:
- Create file at
sources/academy/tutorials/playwright-scraping.md - Use academy tutorial structure (educational, concept-focused)
- Include prerequisites (Node.js, basic JavaScript)
- Teach concepts progressively with working code at each step
- Include both JavaScript and Python code tabs
Result: Educational tutorial with progressive learning structure.
Cause: Missing or incorrect front matter (slug mismatch, missing description).
Solution: Verify front matter has all required fields. Run npm run build to catch broken links and slug issues. Check that onBrokenLinks errors reference your new file.
Cause: Missing language tag on code blocks or incorrect code tab syntax.
Solution: Ensure every code block has a language specifier. For code tabs, use the exact Docusaurus Tabs/TabItem import pattern from references/tutorial-template.md.
Cause: Missing sidebar_position in front matter or file in wrong directory.
Solution: Add sidebar_position and verify the file is in the correct sources/ subdirectory. Check sidebars.js if using manual sidebar configuration.
Provide a complete tutorial following the 8-section template, ready to be committed to the repository.