Getting-started workflow
Loaded by the
merlon-docsskill. Its hard rules, QA principles, and What belongs where apply throughout. ThemerlonCLI must be installed.
Bootstrap Merlon Docs, then optionally guide a first feature through the other
workflows. After onboarding, the merlon-docs skill routes day-to-day work to the
matching workflow.
Documentation Architect: bootstrap config, guide layout, and initial shards; then orchestrate an optional first-feature tutorial (design → feature → UX → doc-only). Adapt teaching depth to EXPERIENCE.
Bootstrap out of scope: inventing TDD rituals or atomic commit grouping during scaffold only — the day-to-day workflows own those when the tutorial runs.
Intake
Section titled “Intake”Ask only for values the request does not give, and only when someone can answer; otherwise follow When nobody can answer in SKILL.md (default EXPERIENCE is expert).
- FEATURE — feature or project name for initial docs
- PERSONA — primary audience for the client / end-user guide
- EXPERIENCE
- novice — first skill / unsure about Markdown → tutorial shards + short concept pauses
- expert — read the docs / automating → concise scaffold; no lectures
After bootstrap succeeds, ask tutorial intake (see first-feature-tutorial.md):
- RUN_FIRST_FEATURE_TUTORIAL — yes/skip (default yes for novice)
- EXAMPLE_MODE — recommended (
hello-greeting) or bring-your-own
Process
Section titled “Process”1. Inspect (greenfield vs brownfield)
Section titled “1. Inspect (greenfield vs brownfield)”Discover package manager and existing docs before editing.
- Greenfield — no meaningful docs tree → scaffold cleanly.
- Brownfield — legacy docs exist:
- Do not delete or overwrite legacy files.
- Scaffold the four-tier Merlon Docs layout alongside them.
- Pull useful content into new shards.
- Mark each migrated legacy file ready to archive after review (banner). Never auto-delete.
2. Install
Section titled “2. Install”Add @merlon-docs/merlon-docs-cli and @merlon-docs/merlon-docs-presets with this repo’s
package manager. Optional peers only if needed: markdownlint-cli2, prettier,
vale (on PATH; .vale.ini + vale sync).
3. Config and scripts
Section titled “3. Config and scripts”Add merlon.config.json under the docs root (configVersion set to the installed
@merlon-docs/merlon-docs-core version, compileOrder, guides, lint paths).
Wire merlon compile / merlon check into the script runner. CI with optional
linters: --require-lint / --require-vale.
4. Guide layout
Section titled “4. Guide layout”docs/glossary/— one term per shard; index lists terms; link from guidesdocs/features/— capabilities, design, contractsdocs/developer/— setup, layout, validationdocs/client/— end-user guide;about-this-guide.mdstates PERSONA
Each guide needs index.md + topic shards. Never hand-edit generated compile
output or refs.json.
Glossary inclusion bar: With the end user, record in the glossary (typically
the docs/glossary/index.md preamble) which terms do / do not belong for this
project — whose understanding counts (PERSONA and/or contributors), examples of
in/out terms, and the preference when unsure (short entry vs omit). This is a
project judgment call, not a universal list. Every workflow follows it.
5. Experience-adaptive content
Section titled “5. Experience-adaptive content”| EXPERIENCE | Do |
|---|---|
| novice | Tutorial shards (what a shard is, why compile/check); brief concept pauses; FEATURE/PERSONA starters |
| expert | Minimal FEATURE starters only; no tutorial/onboarding lecture shards |
Seed the domain terms the inclusion bar allows. One .md per term + index.
6. Validate
Section titled “6. Validate”merlon compile then merlon check until clean. After cross-links, re-check;
fragments must match compiled output (merlon refs list if needed).
merlon check runs Vale whenever a vale binary is on PATH, reading
.vale.ini from the docs root, and fails when that file is missing. Settle
this before the first check so a fresh scaffold passes as is:
- If the user asked for prose linting, write a real
.vale.ini(styles plusvale sync) and fix what it reports. - Otherwise write a placeholder
.vale.iniin the docs root holding onlyMinAlertLevel = errorand a comment saying styles come later. Tell the user prose linting is off until they add styles.
If the project is under active development, with changes landing every week,
recommend the weekly review routine from SKILL.md. Tell the user what it
needs to start each run and what evidence a run leaves. Document the routine
only with a trigger the repo has, or label it advisory. For a one-off project,
say it is not needed.
7. First feature tutorial (optional)
Section titled “7. First feature tutorial (optional)”Follow first-feature-tutorial.md:
- Offer the walkthrough (
RUN_FIRST_FEATURE_TUTORIAL). - Resolve
EXAMPLE_MODE(recommendedhello-greetingor bring-your-own). - Run phases in order, loading each workflow’s Process: design-architecture → feature-level → ux → doc-only.
- Pause for “go” between phases;
merlon checkbefore advancing.
If the user skips the tutorial, hand off to the matching day-to-day workflow.