/lazyspec:configure-typefrom lazyspec
Interviews users to define a new custom document type for a lazyspec project, then writes its enriched template and config via the CLI. One type per run.
Ships in lazyspec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ONE TYPE PER RUN. THE USER OWNS THE METHODOLOGY; YOU RECORD IT.
This skill configures exactly ONE document type per invocation. To add another
type, run /configure-type again. Keep the interview scoped to a single type --
if the user names a second type, finish the first, then tell them to re-run.
The engine ships no methodology for an arbitrary type (ADR-011). The only source
of per-type methodology is the user. So this is an interview: the user supplies
the knowledge, you extract it and record it as (1) an enriched template and (2) a
[[types]] config block written through the config-write CLI.
Always run lazyspec help <subcommand> or --help before using an unfamiliar
command, and pass --json when reading config. On failure, check --help and retry.
Read config --json -> Interview (one axis at a time) -> Confirm summary
Confirm summary -> Write enriched template (.lazyspec/templates/{name}.md)
Write enriched template -> config add-type -> config set-lifecycle
config set-lifecycle -> Verify with config --json -> Close out
Confirm summary.shape: diamond
Close out.shape: double_circle
Before asking anything, read the current config so you can recommend well and avoid collisions:
lazyspec config --json | jq '{types: [.types[].name], prefixes: [.types[].prefix], dirs: [.types[].dir], relationships: .relationships, edges: .edges, templatesDir: .templates.dir}'
Use this to (a) reject a name/prefix/dir that collides, (b) enumerate existing
types the new one could relate to, and (c) find the templates dir to write into
(.templates.dir, default .lazyspec/templates).
Interview the user relentlessly about every aspect of the type until you reach a
shared understanding, walking down each branch of the design tree and resolving
dependencies between decisions one-by-one. For each question, provide your
recommended answer up front, then let the user accept or override. Ask the
questions ONE AT A TIME. If a question can be answered by exploring the codebase
or config --json, explore instead of asking.
The interview is open-ended, but it is not done until you have resolved every field below -- the config-write CLI fails if any required field is missing, and the recommended values are the legal value sets, not suggestions you may widen. Resolve them roughly in this order; later fields depend on earlier ones.
| Field | Required | Legal values / shape | Notes |
|---|---|---|---|
name | yes | singular noun | Reject collisions vs preflight names. |
plural, dir, prefix | yes | dir e.g. docs/<plural>; prefix uppercased e.g. SPIKE | Derive all three from name; reject collisions. |
--singleton | no | flag | One document, not a numbered series. |
--numbering | no | incremental | sqids | reserved | Default incremental. |
--store | no | filesystem | github-issues | git-ref | Default filesystem. |
--icon | no | one emoji | For the TUI. |
--intent | yes | one sentence | Becomes BOTH the template <!-- intent: --> header and config --intent. |
--authorship | yes | human | assisted | generated | Highest authoring verb: human→/scaffold, assisted→/co-write, generated→/generate. Decision/judgement docs lean human/assisted; mechanical/derived can be generated. |
lifecycle states | yes | list of statuses, e.g. draft,review,done | Per-type DAG (ADR-021). Recommend a minimal set. |
lifecycle edges | yes | FROM:TO; * as source = "from any state" | Minimal DAG connecting the states, plus a * edge to any terminal state (rejected/superseded). |
--parent-type | no | an existing singleton type name | Containment, not linkage: this type's documents live inside the parent type's dir and share its store backend. The parent MUST be a singleton -- validate reports ParentTypeNotSingleton at error severity otherwise -- so this serves the umbrella case (dictums under a project convention), NOT ordinary parent/child modelling like iteration-under-story. Leave it unset for that. It creates no edge and constrains no link; a DAG constraint between two types is a separate [[edges]] row. |
| relations | no | a verb from config --json .relationships[].name | Do NOT invent verbs. Relations are applied at authoring time from the via of an [[edges]] row, not baked per-type -- note any the user wants so the template guidance mentions them. |
End the interview by reading back a one-screen summary of every field and getting explicit confirmation before writing anything.
Write the per-type template to the configured templates dir (.templates.dir from
config, default .lazyspec/templates/), one file: .lazyspec/templates/{name}.md
(lowercased name). Use the enriched format from the shipped defaults: an
<!-- intent: ... --> header as the first body line, then one ## Section per
logical part with a <!-- guidance: ... --> comment under each heading. Keep the
{title}/{author}/{date} placeholders verbatim; set type: to the literal
type name. The comments render invisibly -- they ARE the methodology, recorded as prose.
Ask the user what sections this type needs (recommend defaults from the intent). Shape to mirror exactly:
---
title: "{title}"
type: <name>
status: <first lifecycle state, e.g. draft>
author: "{author}"
date: {date}
tags: []
related: []
---
<!-- intent: <the one-line intent from the interview> -->
## <Section>
<!-- guidance: <what belongs in this section, in the user's words> -->
## <Section>
<!-- guidance: <...> -->
Write ALL config through these subcommands, in this order. Never touch the TOML by hand.
Append the type:
lazyspec config add-type <name> <plural> <dir> <prefix> \
--intent "<intent>" \
--authorship <human|assisted|generated> \
[--icon "<emoji>"] [--singleton] \
[--numbering <incremental|sqids|reserved>] [--store <filesystem|github-issues|git-ref>] \
[--parent-type <existing-type>]
Set the lifecycle (states + edges; * as source = any state):
lazyspec config set-lifecycle <name> \
--state <s1> --state <s2> [--state ...] \
--edge <FROM:TO> --edge <FROM:TO> [--edge ...]
Verify the type landed with every axis populated:
lazyspec config --json | jq '.types[] | select(.name=="<name>")'
Confirm intent, authorship, and lifecycle (states + edges) match what was
supplied.
Verification checklist -- all must hold:
.lazyspec/templates/{name}.md written, with an <!-- intent: ... -->
header and a <!-- guidance: ... --> comment per section.config --json with intent, authorship, and
lifecycle (states + edges) populated as supplied..lazyspec.toml occurred -- every write went through config.Reiterate: to add another type, run /configure-type again. This skill does
one type per run.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/advanceUse when moving a document to its next status along the type's lifecycle DAG, maintaining links across the transition./co-writeUse when drafting a document of a configured type collaboratively -- AI proposes a draft body, the human edits, iterate -- up to the type's authorship ceiling./create-auditUse when running a criteria-based review (health check, security audit, accessibility review, pen test, bug bash, spec compliance). Creates an Audit document with findings and presents them to the user for triage./executeUse when carrying out the work a delivery document describes -- building against its task breakdown and acceptance criteria in one pass./generateUse when authoring a full document body of a configured type from context -- AI writes the complete body, then asks for review -- only permitted when the type's authorship ceiling is `generated`./lazyUse as the entry point for any work, including reported bugs, defects, and unexpected behaviour. Reads the configured DAG and the user's position, then dispatches the right verb -- advancing within the current document automatically but stopping at type boundaries.npx claudepluginhub jkaloger/lazyspec --plugin lazyspecOther plugins' skills for the same job