Lathe Extend logo

Lathe Extend

CommunityPopular
devenjarvis
lathe-extend

Write the next part of an existing Lathe tutorial, in session. Use when the user invokes /lathe-extend with a slug like "/lathe-extend digital-synth-zig" (the "Add a new part" button in `lathe serve` hands you that command), optionally followed by guidance for where the part should go.

Overview

Publisherdevenjarvis
Repositorylathe
Skill namelathe-extend
Stars
1.7K
Forks
49
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by devenjarvis on GitHub. Read the source before you install it.

Installation

Install the Lathe Extend AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/devenjarvis/lathe.git /tmp/lathe
mkdir -p .claude/skills
cp -r /tmp/lathe/internal/skills/data/lathe-extend .claude/skills/lathe-extend
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lathe Extend in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Lathe Extend on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Lathe Extend is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Lathe — Extend a Tutorial

Add the next part to a stored tutorial. Triggered by /lathe-extend <slug> [guidance…]. The new part must continue that tutorial — its example, its numbers, its voice — not a fresh generic one. Everything about shape, research discipline, and callouts comes from the lathe skill; read it and apply it. The voice is whatever the tutorial was generated in — fetch it from the CLI (see step 1), don't guess or re-pick. This skill only adds what's different about extending: continuity and the extend-start → write → extend-commit handshake.

Protocol

  1. Absorb the existing tutorial. Read every part in ~/.lathe/tutorials/<slug>/ (part-NN.md). You need the load-bearing context before you write a word:

    • The controlling example and the fixed numbers (sample rate, page size, buffer size) — reuse them exactly; don't invent new ones.
    • The controlling metaphor, if any, and whether a prior part already retired it (if retired, don't resurrect it).
    • The voice. Fetch the tutorial's recorded voice and apply it for all tonal choices:
      bash
      lathe voice show --tutorial <slug>
      This prints the wrapped voice spec (guardrail preamble + tone guidance). It resolves the voice recorded on the tutorial's metadata, falling back to the configured default for tutorials stored before voices existed. Don't re-pick or drift the voice; structure and substance still defer to the lathe skill, which wins on any conflict with the voice.
    • The level of the reader.
    • The repo and pinned tool versions in metadata.json (repo, repo_branch, tools) — the new part inherits them. Write against the same versions; don't silently bump to a newer toolchain. (If the reader explicitly wants to move the tutorial to a new version, that's a heads-up that it may be time for a fresh tutorial, not a quiet drift — flag it rather than re-pinning here.)
    • Where the previous part's "What's next" pointed — that's your mandate for this part unless the user's guidance redirects it.
  2. Research first. Same discipline as the lathe skill's "Research first" step: actually open 3–8 authoritative sources for whatever this new part introduces, take notes with URLs beside the load-bearing facts, and ground or [!UNVERIFIED]-flag every load-bearing claim. New material gets the same scrutiny as Part 1 did. No web access? Say so in one line and write conservatively, flagging the load-bearing unknowns.

  3. Reserve the part. Run:

    bash
    lathe extend-start <slug>

    It prints a single filename (e.g. part-02.md) and sets status extending. Capture that exact filename. If it errors with "already extending or verifying", stop and tell the user — something is mid-flight; don't force it.

  4. Write the part to ~/.lathe/tutorials/<slug>/<printed-filename>.

    • This is the one allowed content write. The skill writes the part markdown directly into the tutorial dir at the reserved path — that is required and deliberate, because lathe extend-commit os.Stats the file there before registering it. (Future reader: don't "fix" this by routing it through a CLI command. There is no such command; the binary owns metadata, the skill writes the part body.)
    • Follow the full Tutorial shape from the lathe skill — hook, ## What you'll build, prerequisites, specific section titles, ## Checkpoint, ## What's next, ## Exercises, ## Sources. Each part stands alone and ends with a Checkpoint.
    • Because this is Part N ≥ 2, open with a > [!RECALL] spaced-retrieval beat: one question on a load-bearing concept from a prior part, phrased so the reader must reconstruct the answer (not just recognize it). See the lathe skill's recall before/after.
    • One file, this part only. Don't write index.md, don't touch earlier parts, don't write more than one part.
  5. Commit the part. Run:

    bash
    lathe extend-commit <slug> <printed-filename> [--source <url>] --model "<model you are running as>"

    Pass --source once for each source you newly consulted for this part — it folds them into the tutorial's research trail (de-duped). Pass --model with the model you are running as (e.g. --model "Claude Opus 4.8") so the reading-page byline reflects who wrote the latest part (last-writer-wins; omit it only to leave the existing label untouched). This registers the part, clears the pending marker, and resets status to unverified.

  6. Tell the user it's added: how to view it (lathe serve), and that verification is opt-in (/lathe-verify <slug> — the "Verify this tutorial" button hands you that command). Then stay in session for follow-ups.

Boundaries

  • The only durable-state writes are lathe extend-start and lathe extend-commit. Never edit metadata.json directly.
  • Writing the reserved part-content file into the tutorial dir is the sole content write — and it's required (step 4).
  • Don't verify, don't write index.md, don't write multiple parts, don't edit existing parts.

Stay in session

You're still their expert guide. Stay available for "make this part harder", "why did we structure it this way", "how'd I do on the checkpoint".

Frequently asked questions

What does the Lathe Extend AI skill do?

Write the next part of an existing Lathe tutorial, in session. Use when the user invokes /lathe-extend with a slug like "/lathe-extend digital-synth-zig" (the "Add a new part" button in `lathe serve` hands you that command), optionally followed by guidance for where the part should go.

Why use Lathe Extend on TypingMind?

Because you install it once and use it with any model. Lathe Extend is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Lathe Extend in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/devenjarvis/lathe/tree/main/internal/skills/data/lathe-extend. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lathe Extend?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Lathe Extend?

As many as you like. As long as a model supports skills, you can use Lathe Extend with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Lathe Extend AI skill free?

Yes. It is published on GitHub by devenjarvis under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇