onboard
Skill96 starsChanged 7 months agoMITView on GitHub
Auto-generate project context for AI sessions. Use when starting on a new repo, when CLAUDE.md / AGENTS.md / .rune/ context is missing or stale, or to set up per-runtime agent config and hooks (Codex, Grok, Gemini, Cursor) in a multi-runtime repo. Scans the codebase so every future session starts with full context.
- Reads credentials
- Installs packages
182 other projects use a version of this.
Adopted by
Most recently taken up by
- kuni29/claude-skillstheir own version, first seen Nov 29, 2026
- bepaldes/heimdall-agenttheir own version, first seen Nov 29, 2026
- vale-cli/agent-toolstheir own version, first seen Nov 29, 2026
- bullish0x/GameStudiotheir own version, first seen Nov 29, 2026
- jongwony/epistemic-protocolstheir own version, first seen Nov 29, 2026
- tenaya-ui/claude-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use test-flakiness, team-live-ops and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
lilangMaxSkilltest-flakiness
Detect non-deterministic (flaky) tests by reading CI run logs or test result history. Aggregates pass rates per test, identifies intermittent failures, recommends quarantine or fix, and maintains a flaky test registry. Best run during Polish phase or after multiple CI runs.
Also in 12 projects that use this
lilangMaxSkillteam-live-ops
Orchestrate the live-ops team for post-launch content planning: coordinates live-ops-designer, economy-designer, analytics-engineer, community-manager, writer, and narrative-director to design and plan a season, event, or live content update.
Also in 11 projects that use this
HK-hubSkillteach-impeccable
One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.
Also in 20 projects that use this
CoralGameSkillteam-level
Orchestrate level design team: level-designer + narrative-director + world-builder + art-director + systems-designer + qa-tester for complete area/level creation.
Also in 13 projects that use this
CoralGameSkillplaytest-report
Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.
Also in 13 projects that use this
- +5 more from lilangMax
- +2 more from CoralGame
Other versions182 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 182
- Donchitos/Claude-Code-Game-Studios★ 39ksame name
- parcadei/Continuous-Claude★ 3.9ksame name
- parcadei/Continuous-Claude-v2★ 3.9ksame name
- parcadei/Continuous-Claude-v3★ 3.9ksame name
- nateherkai/AIS-OS★ 1.4ksame name
- poshan0126/dotclaude★ 871same name
- me2resh/apexyard★ 542same name
- nexmoe/DayBee★ 424same name
- nexmoe/eve★ 424same name
- kousen/claude-code-training★ 350same name
172 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository70 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- adversarySkill
- asset-creatorSkill
- auditSkill
- autopsySkill
- baSkill
- brainstormSkill
- browser-pilotSkill
- completion-gateSkill
- constraint-checkSkill
- context-engineSkill
- context-packSkill
- convergeSkill
- cookSkill
- councilSkill
- dbSkill
- debugSkill
- dependency-doctorSkill
- deploySkill
- designSkill
- diagramSkill
- doc-processorSkill
- docs-seekerSkill
- docsSkill
- fixSkill
- gitSkill
- graftSkill
- hallucination-guardSkill
- improve-architectureSkill
- incidentSkill
- integrity-checkSkill
- journalSkill
- launchSkill
- logic-guardianSkill
- marketingSkill
- mcp-builderSkill
- neural-memorySkill
- perfSkill
- planSkill
- preflightSkill
- problem-solverSkill
- quarantineSkill
- rescueSkill
- researchSkill
- retroSkill
- review-intakeSkill
- reviewSkill
- safeguardSkill
- sastSkill
- scaffoldSkill
- scope-guardSkill
- scoutSkill
- sentinel-envSkill
- sentinelSkill
- sequential-thinkingSkill
- session-bridgeSkill
- skill-forgeSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. 0 are common, 14 are distinctive, and 25 are very specific to this project.
0
Common
Most of the 170 edited versions we read keep these.
14
Distinctive
This author's own choices. Worth a look.
25
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
All config files: package.json, pyproject.toml, Cargo.toml, go.mod, composer.json, .nvmrc, .python-version, Pipfile.lock, poetry.lock, …
- Distinctive: line 63
Test directory names and test file patterns
- Very specific: line 67
Do not read every source file — scout gives the skeleton.
- Distinctive: line 86
If a field cannot be determined with confidence, write "unknown" — do not guess.
- Distinctive: line 89
Read 3–5 representative source files (pick files with the most connections in the project — typically the main module, a route/controller …
- Distinctive: line 97
Write extracted conventions as bullet points — be specific, not generic.
- Very specific: line 100
Use Write to create CLAUDE.md at the project root.
- Very specific: line 102
If a CLAUDE.md already exists, use Read to load it first, then merge — preserve any human-written sections (comments starting with <!-- …
- Very specific: line 107
Run when more than one AI runtime is in use (e.g.
- Very specific: line 109
Read references/runtime-configs.md first — it lists, per runtime, the instructions file, skills folder, Rune hooks command and trust step …
- Very specific: line 111
Keep ONE canonical instructions file (AGENTS.md when any non-Claude runtime is present) and point the others at it: CLAUDE.md starts with …
- Very specific: line 116
Use Bash to create the directory: mkdir -p .rune
- Very specific: line 118
Use Write to create each file:
- Very specific: line 127
Remove sections that don't apply (e.g., contract.operations for a library with no deployed service)
- Very specific: line 149
If .rune/INVARIANTS.md exists, user edits above ## Auto-detected (new) are never overwritten.
- Very specific: line 151
If a user sets <!-- @rune-invariants-pointer:skip --> anywhere in CLAUDE.md, the pointer block is not re-injected.
- Very specific: line 155
Do not fabricate rules: If detection yields zero results, write _No new detections on this run._ under ## Auto-detected (new) and move on.
- Very specific: line 159
If .rune/instincts.md already exists and contains instinct entries, read it and include a summary in the Onboard Report under ### Learned …
- Very specific: line 171
Use the data from Steps 2–3 to generate .rune/DEVELOPER-GUIDE.md — a human-readable onboarding guide for new team members joining the …
- Very specific: line 173
Use Write to create .rune/DEVELOPER-GUIDE.md with this template:
- Very specific: line 218
If .rune/DEVELOPER-GUIDE.md already exists, skip and log INFO: "Skipped existing .rune/DEVELOPER-GUIDE.md — manual content preserved."
- Distinctive: line 239
If 0 packs match: omit this section from the report (no suggestions is correct for a generic project).
- Very specific: line 243
If ≥1 packs match: include in the Onboard Report under a ### Suggested L4 Packs section:
- Distinctive: line 258
Check CLAUDE.md line count
- Distinctive: line 259
If total MCP tools >80 or CLAUDE.md >150 lines, include a Context Budget Advisory in the Onboard Report:
- Very specific: line 273
When invoked as /rune onboard --interview or when the project is too ambiguous for automated detection (e.g., no package.json, no clear …
- Distinctive: line 277
Ask 5-8 questions in sequence, adapting based on answers.
- Very specific: line 323
Write .rune/comprehension.json conforming to compiler/schemas/comprehension.schema.json.
- Very specific: line 362
If .rune/comprehension.json already exists, overwrite it (generated output, not human-written).
- Very specific: line 365
Use Bash to stage and commit the generated files:
- Distinctive: line 370
If git is not available or the directory is not a git repo, skip this step and add an INFO note to the report: "Not a git repository — …
- Very specific: line 372
If any of the .rune/ files already exist, do not overwrite them (they may contain human-written decisions).
- Distinctive: line 453
MUST scan actual project files — never generate CLAUDE.md from assumptions
- Distinctive: line 454
MUST detect and respect existing CLAUDE.md content — merge, don't overwrite
- Distinctive: line 455
MUST include: build commands, test commands, lint commands, project structure
- Distinctive: line 456
MUST NOT include obvious/generic advice ("write clean code", "use meaningful names")
- Distinctive: line 457
MUST verify generated commands actually work by running them
- Very specific: line 458
MUST NOT overwrite existing .rune/ files — always preserve human-written content
- Very specific: line 478
All generated commands verified to exist in package.json/Makefile/etc.
“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
onboard
Purpose
Auto-generate project context for AI sessions. Scans the codebase and creates a CLAUDE.md project config plus .rune/ state directory so every future session starts with full context. In multi-runtime repos it also sets up each runtime's instructions file and Rune hooks (Step 4.5). Saves 10-20 minutes of re-explaining per session on undocumented projects.
Triggers
/rune onboard— manual invocation on any project/rune onboard --runtimes— only Step 4.5: per-runtime agent config + hooks (AGENTS.md, GEMINI.md,.codex/,.grok/,.cursor/, …)- Called by
rescueas Phase 0 (understand before refactoring) - Auto-trigger: when no CLAUDE.md exists in project root
Calls (outbound)
scout(L2): deep codebase scan — structure, frameworks, patterns, dependenciessentinel-env(L3): validate developer environment (runtime versions, required tools, env vars) so the onboarded project is actually runnableautopsy(L2): when project appears messy or undocumented — health assessment
Called By (inbound)
- User:
/rune onboardmanual invocation rescue(L1): Phase 0 — understand legacy project before refactoringcook(L1): if no CLAUDE.md found, onboard first
Output Files
project/
├── CLAUDE.md # Project config for AI sessions (with invariants pointer block)
└── .rune/
├── conventions.md # Detected patterns & style
├── decisions.md # Empty, ready for session-bridge
├── progress.md # Empty, ready for session-bridge
├── session-log.md # Empty, ready for session-bridge
├── instincts.md # Empty, ready for session-bridge instinct learning
├── contract.md # Project invariants enforced by cook/sentinel
├── INVARIANTS.md # Danger zones + cross-file rules, consumed by logic-guardian
└── DEVELOPER-GUIDE.md # Human-readable onboarding for new developersExecutable Steps
Step 1 — Full Scan
Invoke rune:scout on the project root. Collect:
- Top-level directory structure (depth 2)
- All config files:
package.json,pyproject.toml,Cargo.toml,go.mod,composer.json,.nvmrc,.python-version,Pipfile.lock,poetry.lock,uv.lock - Python environment markers:
.venv/,venv/,conda-meta/,.python-version - Entry point files:
main.*,index.*,app.*,server.* - Test directory names and test file patterns
- CI/CD config files:
.github/workflows/,Makefile,Dockerfile - README.md if present
Do not read every source file — scout gives the skeleton. Use Read only on config files and entry points.
Step 2 — Detect Tech Stack
From the scan output, determine with confidence:
- Language: TypeScript | JavaScript | Python | Rust | Go | other
- Framework: Next.js | Vite+React | SvelteKit | Express | FastAPI | Django | none | other
- Package manager: npm | pnpm | yarn | pip | poetry | cargo | go modules
- Test framework: Vitest | Jest | pytest | cargo test | go test | none
- Build tool: tsc | vite | webpack | esbuild | cargo | none
- Linter/formatter: ESLint | Biome | Ruff | Black | Clippy | none
- Python environment (if Python project): detect from project markers:
.venv/orvenv/directory → venvpoetry.lock→ poetryuv.lock→ uv.python-version→ pyenvconda-meta/orenvironment.yml→ condaPipfile.lock→ pipenv- None found → none (note: recommend setting up a virtual environment)
If a field cannot be determined with confidence, write "unknown" — do not guess.
Step 3 — Extract Conventions
Read 3–5 representative source files (pick files with the most connections in the project — typically the main module, a route/controller file, and a utility file). Extract:
- Naming patterns: camelCase | snake_case | PascalCase for files, functions, variables
- Import style: named imports | default imports | barrel files (index.ts)
- Error handling pattern: try/catch | Result type | error boundary | unhandled
- State management: React Context | Zustand | Redux | Svelte stores | none
- API pattern: REST | tRPC | GraphQL | SDK | none
- Test structure: co-located (
file.test.ts) | separate directory (tests/) | none
Write extracted conventions as bullet points — be specific, not generic.
Step 4 — Generate CLAUDE.md
Use Write to create CLAUDE.md at the project root. Populate every section using data from Steps 2–3. Do not leave template placeholders — if data is unknown, write "unknown" or omit the section. Use the template below as the exact structure.
If a CLAUDE.md already exists, use Read to load it first, then merge — preserve any human-written sections (comments starting with <!-- manual -->) and update auto-detected sections only.
Other runtimes read a different file. CLAUDE.md is what Claude Code loads. Codex, Cursor, Grok Build, GitHub Copilot, OpenCode, Antigravity and Amp read AGENTS.md; Gemini CLI reads GEMINI.md. When running outside Claude Code, write the same content to AGENTS.md (or GEMINI.md on Gemini CLI) instead, with the same merge rules. If the project already has more than one of these files, update each so they stay in sync. Everything below that says CLAUDE.md means "the project-config file for this runtime".
Step 4.5 — Per-Runtime Agent Config + Hooks (multi-runtime projects)
Run when more than one AI runtime is in use (e.g. .claude/ and .codex/ or .grok/ both exist), when the user asks to "set up Codex / Grok / Gemini / Cursor" for this repo, or via /rune onboard --runtimes. Skip silently for a single-runtime project.
Read references/runtime-configs.md first — it lists, per runtime, the instructions file, skills folder, Rune hooks command and trust step (verified against each runtime's docs). Then:
- Detect the runtimes present (folders/files listed there); ask before adding one with no folder.
- Keep ONE canonical instructions file (
AGENTS.mdwhen any non-Claude runtime is present) and point the others at it:CLAUDE.mdstarts with@AGENTS.md; Gemini CLI getsAGENTS.mdadded tocontext.fileNamein.gemini/settings.json. Never paste full copies — they drift. - Propose
npx @rune-kit/rune hooks install --platform <runtime> --preset gentlefor each runtime with a Rune hooks target (claude, codex, grok, cursor, windsurf, antigravity) and run it only after the user agrees. Claude Code + Grok together → install for one only (Grok also reads.claude/settings.json). - Tell the user the pending trust steps: Codex
/hooks, Grok/hooks-trust.
Step 5 — Initialize .rune/ Directory
Use Bash to create the directory: mkdir -p .rune
Use Write to create each file:
.rune/conventions.md— paste the extracted conventions from Step 3 in full detail.rune/decisions.md— create with header# Architecture Decisionsand one placeholder row in a markdown table (Date | Decision | Rationale | Status).rune/progress.md— create with header# Progress Logand one placeholder entry.rune/session-log.md— create with header# Session Logand current date as first entry.rune/instincts.md— create with header# Project Instinctsand a description: "Learned trigger→action patterns. Managed by session-bridge. See session-bridge SKILL.md Step 5.7 for format.".rune/contract.md— generate a starter contract based on the detected tech stack:- Copy structure from
docs/CONTRACT-TEMPLATE.md - Customize rules based on Step 2 findings (e.g., Python → add
no bare except, Node.js → addno console.log, SQL database → add parameterized queries rule) - Remove sections that don't apply (e.g.,
contract.operationsfor a library with no deployed service) - The contract is a starting point — tell the user to review and customize it
- Copy structure from
Step 5.4 — Detect Invariants (Auto-Discipline Seed)
Scan the project for rules that span files — the kind of mistake a linter cannot catch but a single agent edit can introduce. The goal is to seed .rune/INVARIANTS.md with ≥3 plausible rules so logic-guardian has something to enforce on day one.
Invoke the scanner directly:
node skills/onboard/scripts/onboard-invariants.js --root <project-root>What it produces:
.rune/INVARIANTS.md— rendered fromskills/onboard/references/invariants-template.mdplus auto-detected rules in four buckets:- Danger Zones — directories with the most cross-file references
- Critical Invariants — shared constants exported and imported in ≥3 places
- State Machine Rules — reducer/switch shapes with state literal pairs
- Cross-File Consistency — literal tuples mirrored across ≥3 files
CLAUDE.md— adds a pointer block between<!-- @rune-invariants-pointer:start -->and<!-- @rune-invariants-pointer:end -->listing top danger-zone globs so every session sees them.
Merge rules (safe re-runs):
- If
.rune/INVARIANTS.mdexists, user edits above## Auto-detected (new)are never overwritten. - New detections replace only the content under
## Auto-detected (new). - If a user sets
<!-- @rune-invariants-pointer:skip -->anywhere inCLAUDE.md, the pointer block is not re-injected.
Emit signal invariants.seeded with {danger_count, critical_count, state_count, cross_count} when done. session-bridge listens in Phase 3 to surface the loudest rules at session start.
Do not fabricate rules. If detection yields zero results, write _No new detections on this run._ under ## Auto-detected (new) and move on. A quiet INVARIANTS.md is better than fake rules the user has to prune.
Step 5.5 — Load Existing Instincts
If .rune/instincts.md already exists and contains instinct entries, read it and include a summary in the Onboard Report under ### Learned Instincts. This tells the agent what project-specific behaviors have been learned from previous sessions.
For each instinct with confidence ≥0.6, include in the report:
- Trigger and action (one line)
- Confidence level
Instincts with confidence <0.6 are still learning — mention count but don't list individually.
Why: Onboard is the first skill that runs in a new session. Surfacing instincts here ensures the agent starts with project-specific learned behaviors, not just static conventions.
Step 6b — Generate DEVELOPER-GUIDE.md
Use the data from Steps 2–3 to generate .rune/DEVELOPER-GUIDE.md — a human-readable onboarding guide for new team members joining the project. This is NOT AI context. This is plain English for humans.
Use Write to create .rune/DEVELOPER-GUIDE.md with this template:
# Developer Guide: [Project Name]
## What This Does
[2 sentences max. What problem does this project solve? Who uses it?]
## Quick Setup
[Copy-paste commands to get from zero to running locally]
```bash
# [Python projects] Activate virtual environment
[detected activation command — e.g., source .venv/bin/activate | poetry shell | uv venv && source .venv/bin/activate]
# Install dependencies
[detected command — e.g., pip install -e ".[dev]" | poetry install | npm install]
# Run development server
[detected command]
# Run tests
[detected command]Key Files
[5–10 most important files with one-line description each]
[path]— [what it does]
How to Contribute
- Fork or branch from main
- Make changes, run tests:
[test command] - Open a PR — describe what and why
Common Issues
[Top 3 "it doesn't work" situations with fixes. Only include issues you can infer from the codebase — e.g., missing .env, wrong Node version, database not running]
[Python projects — always include these if applicable:]
- ModuleNotFoundError → Virtual environment not activated. Run:
[activation command] - ImportError: cannot import name X → Dependencies outdated. Run:
[install command] - PYTHONPATH issues → If using src layout, install in editable mode:
pip install -e .
Who to Ask
[If git log reveals consistent contributors, list them. Otherwise omit this section.]
If `.rune/DEVELOPER-GUIDE.md` already exists, skip and log **INFO**: "Skipped existing .rune/DEVELOPER-GUIDE.md — manual content preserved."
### Step 6c — Suggest L4 Extension Packs
Based on the detected tech stack from Step 2, recommend relevant L4 extension packs. Use the mapping table below to find applicable packs. Only suggest packs that match the detected stack — do not suggest all packs.
| Detected Stack | Suggest Pack | Why |
|----------------|-------------|-----|
| React, Next.js, Vue, Svelte, SvelteKit | `@rune/ui` | Frontend component patterns, design system, accessibility audit |
| Express, Fastify, FastAPI, Django, NestJS, Go HTTP | `@rune/backend` | API patterns, auth flows, middleware, rate limiting |
| Docker, GitHub Actions, Kubernetes, Terraform, CI/CD config | `@rune/devops` | Container patterns, deployment pipelines, infrastructure as code |
| React Native, Expo, Flutter, SwiftUI | `@rune/mobile` | Mobile architecture, navigation patterns, offline sync |
| Security-focused codebase (auth, payments, HIPAA/PCI markers) | `@rune/security` | Threat modeling, OWASP flows, compliance patterns |
| Trading, finance, pricing, portfolio, market data | `@rune/trading` | Market data validation, risk calculation, backtesting patterns |
| Subscription billing, tenant isolation, feature flags | `@rune/saas` | Multi-tenancy, billing integration, feature flag patterns |
| Cart, checkout, product catalog, inventory, payments | `@rune/ecommerce` | Cart patterns, payment flows, inventory management |
| ML models, training pipelines, embeddings, LLM integration | `@rune/ai-ml` | Model evaluation, prompt patterns, inference optimization |
| Game loop, physics, entity systems, multiplayer | `@rune/gamedev` | Game architecture, ECS patterns, netcode |
| CMS, blog, newsletter, SEO, content workflows | `@rune/content` | Content modeling, SEO patterns, editorial workflows |
| Analytics, dashboards, metrics, data pipelines, BI | `@rune/analytics` | Data modeling, visualization patterns, pipeline architecture |
If 0 packs match: omit this section from the report (no suggestions is correct for a generic project).
**Community pack discovery**: Also check if `.rune/community-packs/registry.json` exists. If it does, list installed community packs alongside core pack suggestions. If community packs are installed, include them under a `### Installed Community Packs` subsection.
If ≥1 packs match: include in the Onboard Report under a `### Suggested L4 Packs` section:
Suggested L4 Packs
Based on your detected stack ([detected frameworks]), these extension packs may be useful:
- @rune/[pack] — [one-line reason based on detected stack] Install: [link or command when available]
### Step 6d — Context Budget Check
Audit the project's baseline context cost from MCP servers and agent configurations. This helps developers understand why their context window fills up faster than expected.
1. Count MCP tools available (from session start messages or `settings.json`)
2. Check CLAUDE.md line count
3. If total MCP tools >80 or CLAUDE.md >150 lines, include a **Context Budget Advisory** in the Onboard Report:
Context Budget Advisory
- MCP tools loaded: [count] across [N] servers
- CLAUDE.md size: [N] lines
- Estimated baseline: ~[N]k tokens before any work begins
- Recommendation: [specific advice — disable unused MCP servers, move CLAUDE.md details to .rune/]
**Skip if**: Total MCP tools ≤80 AND CLAUDE.md ≤150 lines (healthy baseline).
### Step 6e — AI-Driven Interview (Optional, User-Initiated)
When invoked as `/rune onboard --interview` or when the project is too ambiguous for automated detection (e.g., no package.json, no clear entry point, mixed languages), switch to **conversational onboarding** — the AI asks targeted questions instead of relying solely on file scanning.
#### Interview Flow
Ask 5-8 questions in sequence, adapting based on answers. Start broad, narrow based on responses:
Q1: "What does this project do in one sentence?" → Captures purpose (README may be missing or outdated)
Q2: "Who uses this — internal team, external users, or both?" → Determines audience, affects DEVELOPER-GUIDE.md tone
Q3: "What's the main entry point — where does execution start?" → Bypasses file scanning for complex monorepos
Q4: "What commands do you use daily? (dev server, tests, build)" → Gets verified commands instead of guessing from config files
Q5: "Any areas of the codebase you'd warn a new developer about?" → Captures tribal knowledge that no scan can detect
Q6: "Are there external services this depends on? (databases, APIs, queues)" → Maps integration points for Architecture Map
Q7: "What's the deployment story — how does code get to production?" → Captures CI/CD context
Q8 (conditional): "Anything else a new session should know that's not in the code?" → Catches edge cases, workarounds, known issues
#### Interview Rules
- **Adapt**: Skip questions that were already answered by earlier responses. If Q1 reveals "it's a Next.js app", don't ask about the framework.
- **Validate**: Cross-reference answers with actual file scan results. If user says "we use Jest" but `vitest.config.ts` exists, ask to clarify.
- **Merge**: Interview answers supplement (not replace) automated scan. Scan provides facts, interview provides context and intent.
- **Store**: Save interview responses as high-confidence entries in `.rune/conventions.md` and `.rune/cumulative-notes.md` (tagged `[from-interview]`)
#### When to Auto-Suggest Interview
Suggest switching to interview mode (but don't force it) when:
- Step 2 produces 3+ "unknown" fields in tech stack detection
- Project has no README.md and no package.json/pyproject.toml/Cargo.toml
- Project appears to be a monorepo with 3+ distinct sub-projects
Output: `"ℹ️ This project is hard to auto-detect. Run /rune onboard --interview for guided setup."`
### Step 6f — Emit comprehension.json
Write `.rune/comprehension.json` conforming to `compiler/schemas/comprehension.schema.json`.
This is ADDITIVE — do not touch any of the Markdown files created above.
Populate from the scan data already collected in Steps 2–3:
```json
{
"project": "<project name from Step 2>",
"generated_at": "<ISO 8601 timestamp>",
"source": "onboard",
"health_score": null,
"layers": [
{ "id": "api", "name": "API / Routes", "color": "service" },
{ "id": "service", "name": "Business Logic", "color": "service" },
{ "id": "data", "name": "Data / Storage", "color": "data" },
{ "id": "ui", "name": "UI / Views", "color": "code" },
{ "id": "util", "name": "Utilities", "color": "code" }
],
"domains": [],
"modules": [
{
"id": "<relative file path or module id>",
"name": "<file or module name>",
"layer": "<id from layers — best-guess from file path>",
"type": "file",
"complexity": "simple",
"files": 1,
"summary": "<one-line description>"
}
],
"edges": []
}Rules:
modules[]— include only the entry points and config files read in Steps 1–3 (5–15 items max). Do not enumerate all project files.layers[]— include only layers actually detected; omit unused ones.edges[]— leave empty; onboard does not trace cross-file dependencies.health_score— set to null; health scoring requires autopsy.- If
.rune/comprehension.jsonalready exists, overwrite it (generated output, not human-written).
Step 7 — Commit
Use Bash to stage and commit the generated files:
git add CLAUDE.md .rune/ && git commit -m "chore: initialize rune project context"If git is not available or the directory is not a git repo, skip this step and add an INFO note to the report: "Not a git repository — files written but not committed."
If any of the .rune/ files already exist, do not overwrite them (they may contain human-written decisions). Log INFO: "Skipped existing .rune/[file] — manual content preserved."
CLAUDE.md Template
# [Project Name] — Project Configuration
## Overview
[Auto-detected description from README or entry point comments]
## Tech Stack
- Framework: [detected]
- Language: [detected]
- Package Manager: [detected]
- Test Framework: [detected]
- Build Tool: [detected]
- Linter: [detected]
- Python Environment: [detected — venv/poetry/uv/conda/pyenv/pipenv/none] (only if Python project)
## Directory Structure
[Generated tree with one-line annotations per directory]
## Conventions
- Naming: [detected patterns — specific, not generic]
- Error handling: [detected pattern]
- State management: [detected pattern]
- API pattern: [detected pattern]
- Test structure: [detected pattern]
## Commands
- Install: [detected command]
- Dev: [detected command]
- Build: [detected command]
- Test: [detected command]
- Lint: [detected command]
## Key Files
- Entry point: [absolute path]
- Config: [absolute paths]
- Routes/API: [absolute paths]Output Format
## Onboard Report
- **Project**: [name] | **Framework**: [detected] | **Language**: [detected]
- **Files**: [count] | **LOC**: [estimate] | **Modules**: [count]
### Generated
- CLAUDE.md (project configuration)
- .rune/conventions.md (detected patterns)
- .rune/decisions.md (initialized)
- .rune/progress.md (initialized)
- .rune/session-log.md (initialized)
- .rune/DEVELOPER-GUIDE.md (human onboarding guide)
### Skipped (already exist)
- [list of files not overwritten]
### Learned Instincts (if any)
- [trigger] → [action] (confidence: [0.6-0.9]) — for each high-confidence instinct
- [N] low-confidence instincts still learning
### Observations
- [notable patterns or anomalies found]
- [potential issues detected]
- [recommendations for the developer]
### Suggested L4 Packs
- **@rune/[pack]** — [reason] (only shown if applicable packs detected)
### Runtime setup (Step 4.5, multi-runtime projects only)
- Runtimes: [claude, codex, grok, gemini, cursor, …]
- Canonical instructions: AGENTS.md | pointers: CLAUDE.md (@AGENTS.md), .gemini/settings.json context.fileName
- Hooks: [command run or proposed per runtime]
- Pending trust: Codex `/hooks` · Grok `/hooks-trust`Constraints
- MUST scan actual project files — never generate CLAUDE.md from assumptions
- MUST detect and respect existing CLAUDE.md content — merge, don't overwrite
- MUST include: build commands, test commands, lint commands, project structure
- MUST NOT include obvious/generic advice ("write clean code", "use meaningful names")
- MUST verify generated commands actually work by running them
- MUST NOT overwrite existing .rune/ files — always preserve human-written content
Sharp Edges
Known failure modes for this skill. Check these before declaring done.
| Failure Mode | Severity | Mitigation |
| CLAUDE.md generated from README alone (no file scan) | CRITICAL | Step 1 MUST invoke scout — never skip actual file scanning |
| DEVELOPER-GUIDE.md contains generic placeholder text not derived from project | HIGH | Every section must reference actual detected commands, files, and patterns — no generic advice |
| Overwriting existing .rune/ files with manual content | CRITICAL | Check file existence before every Write — skip and log INFO if exists |
| Common Issues section fabricated (no actual issues detected) | MEDIUM | Only list issues inferable from codebase (missing .env, Node version, etc.) — omit section if none found |
| Full instructions copied into AGENTS.md, CLAUDE.md and GEMINI.md — copies drift within weeks | HIGH | Step 4.5: one canonical AGENTS.md; CLAUDE.md imports it (@AGENTS.md), Gemini adds it via context.fileName |
| Rune hooks installed for both Claude Code and Grok in one repo — they fire twice in Grok | MEDIUM | Grok reads .claude/settings.json; install hooks for one of the two (the grok installer warns) |
Done When
- CLAUDE.md written (or merged) with all detected tech stack fields populated
- .rune/ directory initialized with conventions, decisions, progress, session-log, instincts
- .rune/DEVELOPER-GUIDE.md written with setup commands from actual scan
- All generated commands verified to exist in package.json/Makefile/etc.
- .rune/comprehension.json written conforming to comprehension.schema.json (project, generated_at, source:"onboard", modules[], edges[])
- Onboard Report emitted with Generated + Skipped + Observations sections
Returns
| Artifact | Format | Location |
| Project AI config | Markdown | CLAUDE.md (project root) |
| Detected conventions | Markdown | .rune/conventions.md |
| Decision log (initialized) | Markdown | .rune/decisions.md |
| Developer onboarding guide | Markdown | .rune/DEVELOPER-GUIDE.md |
| Session/progress files | Markdown | .rune/progress.md, .rune/session-log.md |
| Comprehension graph | JSON | .rune/comprehension.json |
Cost Profile
~2000-5000 tokens input, ~1000-2000 tokens output. Sonnet for analysis quality.
Scope guardrail: onboard generates project context files — it does not modify source code, install dependencies, or change project configuration.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

