Lathe Tag
Businesslathe-tagLathe Tag is an Agent Skill for business published in the devenjarvis/lathe repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Pick or backfill the search tags on a stored Lathe tutorial, in session. Use when the user invokes /lathe-tag with a slug like "/lathe-tag digital-synth-zig" to choose good tags for the `lathe serve` search and tag filters, or to backfill tags on a tutorial that has none.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/devenjarvis/lathe/blob/HEAD/.claude/skills/lathe-tag/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/lathe-tag, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Lathe — Tag a Tutorial
Choose the tags that make a stored tutorial findable in lathe serve's search and tag filters. Triggered by /lathe-tag <slug>.
Protocol
-
Read the tutorial at
~/.lathe/tutorials/<slug>/to understand what it actually teaches. -
Pick 2–5 lowercase, reusable tags. Same vocabulary guidance as the
latheskill's tag step: cover, where they apply —- the language/runtime —
zig,rust,go; - the domain —
audio,compilers,databases; - the core technique —
parsing,dsp,concurrency.
Prefer short, reusable tags that will group naturally with other tutorials over hyper-specific one-offs. Don't pre-lowercase or de-dupe defensively —
store.NormalizeTagsis the one place that canonicalizes (trim, lowercase, de-dupe), so just pass sensible tags and let it normalize. - the language/runtime —
-
Persist them. To set the whole tag list (the usual case — choosing or replacing tags):
lathe tag <slug> --set zig --set audio --set dspFor incremental edits to an existing set, use
--add/--removeinstead:lathe tag <slug> --add embedded lathe tag <slug> --remove misc--setreplaces the entire list;--add/--removeedit it in place. All three are repeatable and accept comma-separated values. -
Report the resulting tag set to the user (the command prints it).
Boundaries
- Only touches tags, and only via
lathe tag. Never editmetadata.jsondirectly. - No generation, verification, or extension — just tags.