init

A project setup command for Shipyard, which is a tool that stores project settings and planning information in a .shipyard folder.

In plain words
What is it for?
Use it to create or update Shipyard settings, detect whether the project is new or already developed, and optionally archive the old setup before starting fresh.
Why use it?
It gives a new or existing code project a consistent starting structure and checks what is already there before changing anything.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/lgbarn/shipyard/init
Clone the repo
git clone --depth 1 https://github.com/lgbarn/shipyard
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00008 $0.01994
Opus 5 $0.00004 $0.00997
Sonnet 5 $0.00002 $0.00399
Haiku 4.5 $0.00001 $0.00199

Measured 2d ago against content hash 2d6a0ec94f3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

init scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/init.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/shipyard:init - Project Initialization

You are executing the Shipyard initialization workflow. Follow these steps precisely and in order.

Step 1: Check Existing State

Check if a .shipyard/ directory already exists in the current project root.

  • If it exists AND .shipyard/config.json exists: Read existing config.json values. These become the pre-filled defaults shown in Step 3 (in parentheses after each option). Proceed to Step 2 — the user may want to change any or all settings.

  • If --fresh flag is provided: Require explicit confirmation from the user before proceeding. If confirmed, rename .shipyard/ to .shipyard-archive-{YYYY-MM-DD}/ and create a fresh .shipyard/ directory (no pre-filled defaults). If not confirmed, stop.

  • If .shipyard/ does not exist: Create the .shipyard/ directory and proceed to Step 2.

Step 2: Lightweight Project Detection

Determine whether this is a brownfield (existing source code) or greenfield (empty/new project) by checking for source files and package manifests (e.g., package.json, go.mod, Cargo.toml, requirements.txt, *.py, *.ts, *.go, *.rs, etc.).

Also check if docs/codebase/ exists and contains .md files. If it does, this means a previous /shipyard:map was run and committed — store this as detected_codebase_path = "docs/codebase" for use in Step 4.

This is used to tailor next-steps guidance in Step 5 and to set a smart default for codebase_docs_path — no codebase mapping or analysis is performed.

Step 3: Collect Settings

Collect workflow preferences from the user using three AskUserQuestion calls. Each call stays within the 4-question limit. Wait for the user's answers before proceeding to the next batch.

Batch 1: Workflow Preferences

Use AskUserQuestion with these 3 questions:

  1. Interaction style — "Do you prefer interactive mode or autonomous mode?"
    • Interactive (Recommended) — Approve each phase before execution. Safer for unfamiliar codebases.
    • Autonomous — Execute full roadmap with checkpoints. Faster for well-defined projects.

Read the full file on GitHub · 153 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 153 lines · 8 tokens per session scan A 2d6a0ec94f3b

Subscribe to this mod's changes

init is a command published in the GitHub repository lgbarn/shipyard (65 stars, last pushed 1mo ago), licensed MIT. It adds 8 tokens to every session and 1,994 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.