Copyright (C) 2026 ZionXiaoxiSuOGLocGo
SPDX-License-Identifier: GPL-3.0-or-later
Project Onboard
Turn any project directory into an AGENTS.md that gives the AI agent instant project context. Auto-detects project type and applies type-specific analysis rules. Zero external dependencies — uses only built-in tools.
When This Skill Triggers
- "onboard this project"
- "analyze my project"
- "help me understand this project"
- "generate AGENTS.md for this project"
- "what does this project do?"
- User provides a project path without context
Parameters
- path (required): Project directory path
- type (optional): Force project type, skip auto-detection. Values:
unity, unreal, nodejs, python, rust, go, java, cpp, csharp, lua, general
- output (optional): Where to save AGENTS.md. Default:
<project_root>/AGENTS.md
Execution Flow
Step 1: Confirm the Target
If no path given, ask the user which project to analyze. If path is relative, resolve to absolute. Confirm with user before proceeding.
Step 2: Quick Scan for Project Type (if --type not specified)
Use glob to look for 50-100 top-level entries. Match against the detection table:
| Signature |
Type |
Rule Pack |
Assets/ + ProjectSettings/ |
unity |
references/unity.md |
Source/ + .uproject |
unreal |
references/unreal.md |
package.json without Assets/ |
nodejs |
references/nodejs.md |
pyproject.toml or requirements.txt or setup.py |
python |
references/python.md |
Cargo.toml |
rust |
references/rust.md |
go.mod |
go |
references/go.md |
pom.xml or build.gradle |
java |
references/java.md |
CMakeLists.txt |
cpp |
references/cpp.md |
*.csproj or *.sln without Assets/ |
csharp |
references/csharp.md |
*.rockspec or lua_modules/ or .luacheckrc |
lua |
references/lua.md |
Dockerfile + docker-compose.yml |
docker |
references/general.md |
*.sql + migrations/ |
database |
references/general.md |
.glsl or .hlsl files in top-level search |
shader |
references/general.md |
| None of the above |
general |
references/general.md |
Check in order. First match wins. If unsure, use general.
Step 3: Load the Rule Pack
Read references/<type>.md for type-specific scanning instructions. Each rule pack defines:
- Key files to read first
- Directory structure conventions
- Dependency file location
- Entry point location conventions
- Type-specific patterns to grep for
Step 4: Deep Scan
Follow the rule pack's instructions to:
- Read project metadata (name, version, description)
- Read dependency manifest (which packages/frameworks are used)
- Map directory structure (what each top-level folder contains)
- Identify entry points (main file, startup scene, bootstrap script)
- Find core modules/classes and their responsibilities
- Detect architectural patterns (MVC, ECS, layered, etc.)
Use grep to find key patterns. Use read with 30-80 line limits per file to extract structure without bloating context. Use glob to verify directory contents.
Step 5: Generate AGENTS.md
Write <project_root>/AGENTS.md with EXACTLY this structure:
# [Project Name]
## Basic Information
- **Type**: [Unity/Node.js/Python/etc.]
- **Language**: [primary language]
- **Framework/Engine**: [specific version if known]
- **Key Dependencies**: [3-8 most important packages]
## Directory Structure
[3-10 top-level directories with one-line descriptions]
## Entry Points
- [How to run/start the project]
- [Startup scene/file and what it does]
## Core Architecture
[BULLET LIST of 3-10 key files/classes and their roles. NOT verbose prose.]
## Dependencies
[TABLE: package name | purpose]
## Build & Run
- How to build: [command]
- How to run: [command]
- How to test: [command]
## Notes
- [Anything unusual or non-standard]
- [Known pitfalls if user has recorded any]
Step 6: Report
Tell the user what was detected and where AGENTS.md was saved. Offer to add any project-specific notes or pitfalls they want recorded.
Principles
- Concise: AGENTS.md target is 200-400 lines. Not a novel — a reference card for the AI.
- Accurate: Don't guess. If unsure, state uncertainty rather than fabricate.
- Structured: Bullet points and tables over prose. AI parses structure faster.
- Actionable: Every line should help the AI make better decisions in future conversations.
- Incremental later: The user can update AGENTS.md by saying "update AGENTS.md with [new information]".
Adding New Project Types
When the user encounters a project type this skill doesn't recognize, offer to create a new rule pack. Ask:
- What is the project type called?
- What file or folder signatures identify it?
- Where are dependencies declared?
- Where are entry points typically found?
- Any special file formats the AI should understand?
Then write the rule pack to references/<name>.md following the existing format.
🚫 Anti-Pitfalls
- Do NOT run external tools (npm install, cargo build, etc.) — read-only analysis only
- Do NOT modify any project files except writing AGENTS.md
- Do NOT read more than 50 files total — focus on the most important ones
- If the project has 500+ files, rely more on directory structure and less on reading individual files
- Do NOT generate user-facing documentation — this is for the AI agent's context
- If
references/<type>.md doesn't exist yet, use references/general.md and suggest creating a type-specific rule pack
1---2name: project-onboard3description: Analyze any project directory and generate AGENTS.md for AI context. Use when the user asks to "onboard", "analyze this project", "understand this project", "generate AGENTS.md", or provides a project path they want to understand. Supports auto-detection of Unity, Unreal, Node.js, Python, Rust, Go, Java, C/C++, C#, Lua, and general projects.4---56Copyright (C) 2026 ZionXiaoxiSuOGLocGo7SPDX-License-Identifier: GPL-3.0-or-later89# Project Onboard1011Turn any project directory into an AGENTS.md that gives the AI agent instant project context. Auto-detects project type and applies type-specific analysis rules. Zero external dependencies — uses only built-in tools.1213## When This Skill Triggers1415- "onboard this project"16- "analyze my project"17- "help me understand this project"18- "generate AGENTS.md for this project"19- "what does this project do?"20- User provides a project path without context2122## Parameters2324- **path** (required): Project directory path25- **type** (optional): Force project type, skip auto-detection. Values: `unity`, `unreal`, `nodejs`, `python`, `rust`, `go`, `java`, `cpp`, `csharp`, `lua`, `general`26- **output** (optional): Where to save AGENTS.md. Default: `<project_root>/AGENTS.md`2728## Execution Flow2930### Step 1: Confirm the Target3132If no path given, ask the user which project to analyze. If path is relative, resolve to absolute. Confirm with user before proceeding.3334### Step 2: Quick Scan for Project Type (if --type not specified)3536Use `glob` to look for 50-100 top-level entries. Match against the detection table:3738| Signature | Type | Rule Pack |39|---|---|---|40| `Assets/` + `ProjectSettings/` | unity | `references/unity.md` |41| `Source/` + `.uproject` | unreal | `references/unreal.md` |42| `package.json` without `Assets/` | nodejs | `references/nodejs.md` |43| `pyproject.toml` or `requirements.txt` or `setup.py` | python | `references/python.md` |44| `Cargo.toml` | rust | `references/rust.md` |45| `go.mod` | go | `references/go.md` |46| `pom.xml` or `build.gradle` | java | `references/java.md` |47| `CMakeLists.txt` | cpp | `references/cpp.md` |48| `*.csproj` or `*.sln` without `Assets/` | csharp | `references/csharp.md` |49| `*.rockspec` or `lua_modules/` or `.luacheckrc` | lua | `references/lua.md` |50| `Dockerfile` + `docker-compose.yml` | docker | `references/general.md` |51| `*.sql` + `migrations/` | database | `references/general.md` |52| `.glsl` or `.hlsl` files in top-level search | shader | `references/general.md` |53| None of the above | general | `references/general.md` |5455Check in order. First match wins. If unsure, use `general`.5657### Step 3: Load the Rule Pack5859Read `references/<type>.md` for type-specific scanning instructions. Each rule pack defines:60- Key files to read first61- Directory structure conventions62- Dependency file location63- Entry point location conventions64- Type-specific patterns to grep for6566### Step 4: Deep Scan6768Follow the rule pack's instructions to:691. Read project metadata (name, version, description)702. Read dependency manifest (which packages/frameworks are used)713. Map directory structure (what each top-level folder contains)724. Identify entry points (main file, startup scene, bootstrap script)735. Find core modules/classes and their responsibilities746. Detect architectural patterns (MVC, ECS, layered, etc.)7576Use `grep` to find key patterns. Use `read` with 30-80 line limits per file to extract structure without bloating context. Use `glob` to verify directory contents.7778### Step 5: Generate AGENTS.md7980Write `<project_root>/AGENTS.md` with EXACTLY this structure:8182```markdown83# [Project Name]8485## Basic Information86- **Type**: [Unity/Node.js/Python/etc.]87- **Language**: [primary language]88- **Framework/Engine**: [specific version if known]89- **Key Dependencies**: [3-8 most important packages]9091## Directory Structure92[3-10 top-level directories with one-line descriptions]9394## Entry Points95- [How to run/start the project]96- [Startup scene/file and what it does]9798## Core Architecture99[BULLET LIST of 3-10 key files/classes and their roles. NOT verbose prose.]100101## Dependencies102[TABLE: package name | purpose]103104## Build & Run105- How to build: [command]106- How to run: [command]107- How to test: [command]108109## Notes110- [Anything unusual or non-standard]111- [Known pitfalls if user has recorded any]112```113114### Step 6: Report115116Tell the user what was detected and where AGENTS.md was saved. Offer to add any project-specific notes or pitfalls they want recorded.117118## Principles119120- **Concise**: AGENTS.md target is 200-400 lines. Not a novel — a reference card for the AI.121- **Accurate**: Don't guess. If unsure, state uncertainty rather than fabricate.122- **Structured**: Bullet points and tables over prose. AI parses structure faster.123- **Actionable**: Every line should help the AI make better decisions in future conversations.124- **Incremental later**: The user can update AGENTS.md by saying "update AGENTS.md with [new information]".125126## Adding New Project Types127128When the user encounters a project type this skill doesn't recognize, offer to create a new rule pack. Ask:1291. What is the project type called?1302. What file or folder signatures identify it?1313. Where are dependencies declared?1324. Where are entry points typically found?1335. Any special file formats the AI should understand?134135Then write the rule pack to `references/<name>.md` following the existing format.136137## 🚫 Anti-Pitfalls138139- Do NOT run external tools (npm install, cargo build, etc.) — read-only analysis only140- Do NOT modify any project files except writing AGENTS.md141- Do NOT read more than 50 files total — focus on the most important ones142- If the project has 500+ files, rely more on directory structure and less on reading individual files143- Do NOT generate user-facing documentation — this is for the AI agent's context144- If `references/<type>.md` doesn't exist yet, use `references/general.md` and suggest creating a type-specific rule pack