Create tutorial
Generate a comprehensive, textbook-style technical tutorial for a newly implemented or modified software component. Use whenever the user types /create-tutorial <topic>, asks for "a tutorial on X", says "write a textbook chapter for this module", or similar. The topic is passed as the first argument; prefer this skill over ad-hoc explanations whenever the goal is a durable, self-contained artefact (not a chat answer). Do not use for inline explanations, short notes, or session handoff — use developer-diary for the latter.From its SKILL.md
npx -y skills add martinatgit/dev-skills --skill create-tutorialAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.7 KB, as published. Nobody here has run it
Create a Technical Tutorial
Create a technical tutorial for $ARGUMENTS
A technical tutorial serves as:
- A long-term knowledge artifact for developers
- A validation layer ensuring implementation aligns with intent and requirements
- A structured reference for both human engineers and LLM agents
The tutorial must be self-contained, requiring no external context to understand the system.
Configuration
Resolution order (first match wins):
- Environment variable
CREATE_TUTORIAL_TUTORIALS_DIR. - Project-local config at
<project_root>/.create-tutorial/config.yaml. - Shared conventions file at
<project_root>/.agents/dev-skills.yaml— composestutorials_diras<docs_root>/skills.create-tutorial.subdir, defaulting to<docs_root>/tutorials. - Built-in default
doc/tutorials.
See references/config-schema.md.
Workflow
Step 0 — Resolve configuration. Run python3 scripts/resolve_config.py --all and parse the key=value lines. Use the resolved tutorials_dir as the destination directory for every write below. If tutorials_dir is empty (no env var, no project config, no shared file), run the first-use flow: python3 scripts/configure.py --scope project and re-resolve.
Then follow the structure below to produce the tutorial.
Inputs & Assumptions
Before generating the tutorial:
- Use all available context (code, APIs, comments, architecture, requirements)
- If critical information is missing, explicitly state assumptions
- Infer design intent where necessary, but clearly label inferred vs explicit behavior
Output Requirements
Write a textbook-style technical tutorial with the following structure:
1. Introduction
- Problem the software solves
- Motivation and use cases
- Design philosophy and guiding principles
- Constraints and tradeoffs
Prerequisites
- What should the reader already know
- What must be installed
- Necessary and available configuration
2. System Architecture
- High-level architecture overview
- Role of this component within the system
- Interaction with other components
- Data flow and control flow
3. Core Concepts
- Key abstractions and mental models
- Terminology definitions
- Important invariants
- Relevant fix points
4. API and Functional Overview
For each major API / function:
- Purpose
- Inputs / outputs
- Preconditions / postconditions
- Side effects
- Error handling behavior
5. Worked Examples
- Realistic multiple usage scenarios covering distinct domains
- Step-by-step walkthroughs
- Include edge cases and failure modes
6. Implementation Insights
- Key algorithms and data structures
- Complexity analysis (time/space where relevant)
- Design tradeoffs vs alternative approaches
- Deviations from standard practices (if any)
7. Comparative Analysis
- How this approach compares to common patterns or libraries
- Strengths and weaknesses
- When NOT to use this component
8. Integration Guidance
- How other components/layers should interface with this
- Extension points and customization
- Common integration pitfalls
9. Outlook
- Future improvements or scalability considerations
- Potential evolution of the component
10. Testing Strategy
- Unit tests
- Integration tests
- Edge cases covered
Style Guidelines
- Write for senior developers and LLM agents
- Be precise, not verbose
- Prefer clarity and being explicit to minimise ambiguity
- Prefer explicit descriptions over implicit assumptions
- Avoid ambiguous references like "this" or "that"
- Use consistent terminology
- Use markdown formatting:
- headings
- bullet points
- code blocks for examples
- Avoid vague language like “simple” or “easy”
- Include ASCII or mermaid diagrams where helpful
Saving the Tutorial
- Save as a markdown file in the resolved
tutorials_dir(Step 0 of Workflow). - File name rules:
- Use concise, kebab-case naming
- Reflect the main component or feature
- Example:
event-stream-processor.md
- If a filename is explicitly provided, use it
- Ensure the directory exists (create if necessary)
- Overwrite existing file with the same name