onboard

A repository onboarding command that examines a codebase and records its technology stack, project structure, database-migration setup, and baseline test results. It supports single projects, multi-module Maven builds, and monorepos, which are repositories containing several related applications.

In plain words
What is it for?
Use it at the beginning of work on a repository to inspect files, detect Spring or other neighboring applications, run the available validation harness, and create onboarding notes.
Why use it?
It gives later development tasks a shared description of an unfamiliar repository and shows the starting state before changes are made.

Command for Claude Code

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/loiane/specs-driven-development-spring-angular/onboard
Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

Made for: Claude Code.

Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 727 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.00019 $0.00727
Opus 5 $0.00010 $0.00364
Sonnet 5 $0.00004 $0.00145
Haiku 4.5 $0.00002 $0.00073

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

Security

Grade A, and why

onboard 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.

.claude/commands/onboard.md · 48 lines

How it starts

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

/onboard

Phase: 0 — bootstrap Owning agent: .claude/agents/spring-onboarding.md Skills used: brownfield-onboarding, maven-harness-pom, flyway-or-liquibase-detection, harness-report-parsing, archunit-rules

Purpose

Inspect the repository, classify it as greenfield or brownfield, capture a baseline harness run, and produce .specs/_onboarding.md so future commands know the stack.

Inputs

None required. Optional argument: a path to constrain the scan.

  • For a single-project repo: omit the argument; the script reads ./pom.xml.
  • For a multi-module Maven build: pass the submodule directory.
  • For a polyglot monorepo (e.g. Spring Boot backend + Angular/React frontend in sibling top-level dirs): pass the Maven module directory (e.g. shoply-api). Sibling non-JVM apps are auto-detected and recorded under siblings in _stack.json and as context-only notes in _onboarding.md. The harness only validates the Maven module; frontend tooling is owned by its own pipeline.

Reads

  • pom.xml (root and any submodules)
  • src/main/**, src/test/** (counts only)
  • db/migration/**, db/changelog/**
  • Existing .specs/ if any

Writes

  • .specs/_onboarding.md
  • .specs/_stack.json (output of .github/scripts/detect-stack.sh)
  • .specs/_baseline.json (only if any test exists; output of .github/scripts/harness.sh --baseline)

Process

  1. Resolve the Maven module path (MODULE = optional arg, else .). Run .github/scripts/detect-stack.sh "$MODULE/pom.xml" > .specs/_stack.json. Refuse to proceed if migration == "both".
  2. Count source/test files under $MODULE/src/; classify:
    • Greenfield if no src/main/java/** or only the Spring Boot Application.java (auto-generated *ApplicationTests.java and Testcontainers*.java scaffolding do not change the classification).
    • Brownfield otherwise.
  3. If brownfield, run .github/scripts/harness.sh --module "$MODULE" --baseline and capture results. Do NOT attempt to fix failures.
  4. Diff $MODULE/pom.xml against .claude/maven/parent-pom-fragment.xml; list missing harness layers as Findings.
  5. Write .specs/_onboarding.md covering: classification, module path, sibling apps (if any), stack JSON, baseline gate results (or “N/A — greenfield”), missing layers, recommended /spec starting point.

Read the full file on GitHub · 48 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 · 48 lines · 19 tokens per session scan A e423be4e3cec

Subscribe to this mod's changes

onboard is a command published in the GitHub repository loiane/specs-driven-development-spring-angular (58 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 727 once invoked, about $0.0001 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.