onboard-codebase

onboard-codebase is a command for Claude Code from JackScammell/Parliament-Of-Chaos. It costs 12 tokens per session (4,927 once invoked), scanned A, original, MIT.

A codebase analysis tool that creates getting-started documentation for a project with little or no existing documentation.

In plain words
What is it for?
Explaining project structure, setup, and first steps for developers joining an existing codebase.
Why use it?
It helps new contributors understand an unfamiliar project without first asking the original authors to explain it. It also makes undocumented setup knowledge easier to share.

Command for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: agent in frontmatter.

Part of the chaos plugin — 65 commands, 33 agents, 13 hooks shipped together

Good fit Explaining project structure, setup, and first steps for developers joining an existing codebase.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/jackscammell/parliament-of-chaos/onboard-codebase
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.

Clone the repo
git clone --depth 1 https://github.com/JackScammell/Parliament-Of-Chaos

Made for: Claude Code.

Or install chaos, the plugin that ships this one along with the rest of its 65 commands, 33 agents, 13 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for onboard-codebase

README.md
[![agentmods](https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/onboard-codebase/github.svg)](https://agentmods.dev/commands/jackscammell/parliament-of-chaos/onboard-codebase)
Your own site
<a href="https://agentmods.dev/commands/jackscammell/parliament-of-chaos/onboard-codebase"><img src="https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/onboard-codebase/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for onboard-codebase

Your own site · 80×15
<a href="https://agentmods.dev/commands/jackscammell/parliament-of-chaos/onboard-codebase"><img src="https://agentmods.dev/badge/commands/jackscammell/parliament-of-chaos/onboard-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00012 $0.04927
Opus 5.5 $0.00005 $0.01971
Sonnet 5.5 $0.00002 $0.00985
Haiku 4.5 $0.00001 $0.00493

Measured 2mo ago against content hash f83cb1957e8f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

onboard-codebase 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 2mo 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/onboard-codebase.md · 421 lines

How it starts

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

Onboard Codebase

Generate comprehensive onboarding documentation for an undocumented codebase by running specialists in parallel.

Purpose

When a developer joins a project with little or no documentation, this command reverse-engineers the codebase and produces a complete docs/getting_started/ directory covering everything they need to get productive.

Arguments

This command accepts optional arguments:

  • No argument: Analyse the current working directory
  • With path: Analyse a specific directory (e.g., /onboard-codebase /path/to/project)

Pre-conditions

Before starting, verify:

  1. Target directory exists and contains source code files
  2. Write access to create docs/getting_started/ in the target directory
  3. Existing documentation check: If docs/getting_started/ already exists, ask the user whether to:
    • Overwrite all files (start fresh)
    • Skip existing files and only generate missing ones
    • Archive existing to docs/getting_started_backup_<date>/ and regenerate

Process

Phase 1: Parallel Analysis

Fan out the following specialists in parallel to analyse the codebase. Each specialist focuses on their domain and returns a structured analysis report. Do NOT ask them to write files — they analyse and report only.

IMPORTANT: Inventory Header Requirement. Every specialist MUST begin their report with a structured ## Inventory section containing counts and a complexity self-assessment. This metadata drives adaptive document splitting in Phase 2. The format:

## Inventory
- <item_type>: <count>
- <item_type>: <count>
- estimated_complexity: small | large | massive
- logical_groups:
  - <group_name>: <brief description> (<count> items)
  - <group_name>: <brief description> (<count> items)

Complexity thresholds (specialists MUST use these to self-assess):

Specialist Small Large Massive
data-warlock <30 tables 30-100 tables 100+ tables
api-keeper <50 endpoints 50-200 endpoints 200+ endpoints
config-curator <30 env vars 30-100 env vars 100+ env vars
dependency-detective <30 deps 30-100 deps 100+ deps
system-architect <5 services/modules 5-15 services/modules 15+ services/modules
backend-goblin <10 entry points/controllers 10-40 entry points/controllers 40+ entry points/controllers
test-prophet <20 test files 20-80 test files 80+ test files
pipeline-engineer <3 CI/CD configs 3-10 CI/CD configs 10+ CI/CD configs
security-knight <5 auth/security layers 5-15 auth/security layers 15+ auth/security layers
observability-oracle <5 logging/monitoring configs 5-15 logging/monitoring configs 15+ logging/monitoring configs
package-wizard <3 build tool configs 3-10 build tool configs 10+ build tool configs

Read the full file on GitHub · 421 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. 2mo ago First seen · 421 lines · 12 tokens per session scan A f83cb1957e8f

Subscribe to this mod's changes

onboard-codebase is a command published in the GitHub repository JackScammell/Parliament-Of-Chaos (4 stars, last pushed 1mo ago), licensed MIT. It adds 12 tokens to every session and 4,927 once invoked, about $0.0000 per session on Opus 5.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-09-03.

Related

onboard-codebase compared with commands from other repositories

onboard-codebase next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
onboard-codebaseJackScammell/Parliament-Of-ChaosCommand41mo agoMITA12Claude Code
xp-builderoracle-devrel/oracle-ai-developer-hubCommand4.5k2d agononeA0Claude Code
xp-finishoracle-devrel/oracle-ai-developer-hubCommand4.5k2d agononeA0Claude Code
xp-statusoracle-devrel/oracle-ai-developer-hubCommand4.5k2d agononeA0Claude Code
visualizeatretyak1985/swarmeryCommand9todayApache-2.0A64Claude Code
challenge-thoughtsjimmc414/claude-code-plugin-marketplaceCommand4todayMITA12Claude Code
hatch3r-onboardhatch3r/hatch3rCommand262mo agoMITA56Claude Code