Get the FREE Ultimate OpenClaw Setup Guide →

shipkit-documenter

Scanned
npx machina-cli add skill stefan-stepzero/shipkit/shipkit-documenter --openclaw
Files (1)
SKILL.md
3.1 KB

Shipkit Documenter

Keeps docs/development/ tidy. Every artifact gets a manifest entry. New items get their own JSON file and a manifest entry.

Modes

document [title] (default when no mode specified)

Create a new documented item.

  1. Read docs/development/manifest.json
  2. Get the nextId counter
  3. Ask the user (if not provided via args):
    • Title — short description
    • Tags — freeform tags (e.g., bug, idea, improvement, decision, hooks, skills, windows)
    • Details — what to capture (description, context, affected files, etc.)
  4. Create the item file at docs/development/DOC-{nextId}.json:
{
  "$schema": "shipkit-dev-artifact",
  "type": "documented-item",
  "id": "DOC-NNN",
  "title": "...",
  "description": "...",
  "status": "open",
  "tags": ["..."],
  "createdAt": "ISO8601",
  "updatedAt": "ISO8601",
  "context": {}
}

The context object holds whatever is relevant — affectedFiles, reproSteps, alternatives, rationale, sketch, etc. No rigid schema, just what makes sense for this item.

  1. Add entry to manifest's entries array
  2. Increment nextId in manifest
  3. Save manifest

list [filters]

Show what's in the manifest.

  1. Read docs/development/manifest.json
  2. Display entries as a table: ID, title, status, tags
  3. If filters provided, match against tags or status (e.g., list bug, list open, list report)

update <id>

Update an existing item.

  1. Read the item file referenced by the manifest entry
  2. Ask what to change (status, description, add notes, etc.)
  3. Update the item file and set updatedAt
  4. Update the manifest entry if title/status/tags changed

status

Quick summary of the manifest.

  1. Read manifest
  2. Show: total entries, count by status, count by most-used tags, last 5 updated items

register <file>

Add an existing file in docs/development/ to the manifest without creating a new item file.

  1. Verify the file exists in docs/development/
  2. Ask for title and tags
  3. Add entry to manifest with the file path as-is
  4. Increment nextId, save manifest

clean

Audit manifest against actual files.

  1. Read manifest
  2. Check each entry's file exists on disk
  3. Scan docs/development/ for files NOT in the manifest (excluding directories and the manifest itself)
  4. Report: missing files (in manifest but not on disk), untracked files (on disk but not in manifest)
  5. Offer to fix: remove stale entries, register untracked files

Output Quality Checklist

  • Manifest nextId is always greater than the highest existing DOC-NNN id
  • Every new item has both a JSON file and a manifest entry
  • updatedAt on manifest reflects the latest change
  • No duplicate IDs in manifest
  • Tags are lowercase, hyphenated

Context Files

  • Reads: docs/development/manifest.json
  • Writes: docs/development/manifest.json, docs/development/DOC-NNN.json

Source

git clone https://github.com/stefan-stepzero/shipkit/blob/main/.claude/skills/shipkit-documenter/SKILL.mdView on GitHub

Overview

Shipkit Documenter keeps docs/development tidy by ensuring every artifact has a manifest entry. New items get their own JSON file and a manifest entry in docs/development/manifest.json, the central registry.

How This Skill Works

The tool operates in modes: document, list, update, status, register, and clean. It reads docs/development/manifest.json to get nextId, creates DOC-NNN.json files for new items, and updates the manifest accordingly; the item file includes a flexible context object for description, repro steps, affected files, and rationale.

When to Use It

  • Create a new documented item with a title, tags, and details.
  • Review all documented items and their statuses.
  • Update an item's status, description, or notes.
  • Register an existing file from docs/development/ into the manifest.
  • Audit manifest consistency and detect missing or untracked files.

Quick Start

  1. Step 1: Run document to create a new item with a title and tags, e.g., document 'Login issue' --tags bug,report.
  2. Step 2: Provide details or fill in the context in the new DOC-NNN.json and save; manifest.json updates automatically.
  3. Step 3: Run list to verify the new item appears with its ID, status, and tags.

Best Practices

  • Use lowercase, hyphenated tags and avoid duplicates in the manifest.
  • Write concise, descriptive titles and details for each item.
  • Keep the manifest and DOC-NNN files synchronized and timestamped with updatedAt.
  • Prefer register for existing files rather than creating duplicate items.
  • Regularly run clean to catch missing files and untracked artifacts.

Example Use Cases

  • Create DOC-001 for a reported bug with title 'Login issue' and tags ['bug','report'], then fill in repro steps in context.
  • List open items to monitor progress and prioritize work.
  • Update DOC-001 status to 'in-progress' and add notes.
  • Register docs/development/README.md to manifest with an appropriate title and tags.
  • Run clean to identify and fix missing or untracked files in docs/development.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers