一键导入
project-onboarding
Crawls a new codebase to infer stack, conventions, and key invariants, then generates a PROJECT.md context file for the agent
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Crawls a new codebase to infer stack, conventions, and key invariants, then generates a PROJECT.md context file for the agent
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Handles PR review feedback by fetching comments, grouping issues, fixing one group at a time, and verifying before replies.
Reviews whether a skill will trigger reliably, guide useful behavior, avoid overlap, and produce testable outcomes.
Diagnoses OpenClaw provider, fallback, channel, MCP, and gateway config issues with read-only scans and stateful summaries.
Tracks required validation gates, records pass/fail/waived results, and reports readiness before task completion.
YAML-based delegation grant ledger — issues, validates, and tracks scoped permission grants for sub-agent expansions with token budgets and auto-expiry.
Walks the memory DAG to recall detailed context on demand — query, expand, and assemble cited answers from hierarchical summaries without re-reading raw transcripts.
| name | project-onboarding |
| version | 1.0 |
| category | core |
| description | Crawls a new codebase to infer stack, conventions, and key invariants, then generates a PROJECT.md context file for the agent |
| stateful | true |
When starting work on a new codebase, the agent has zero context. This leads to hallucinated conventions, ignored project patterns, and wasted turns re-explaining the stack. This skill crawls a target directory, infers everything it can automatically, and generates a structured PROJECT.md that the agent loads for all future work on that project.
Invoke this skill when:
Step 1 — Crawl the directory Scan the project root for:
package.json, pyproject.toml, Cargo.toml, go.mod, pom.xml, etc. → infer tech stackMakefile, justfile, scripts/ → infer build/test commands.github/workflows/ → CI commands and quality gates__tests__/, spec/, *_test.go) → testing conventionsCONTRIBUTING.md, DEVELOPMENT.md, docs/ → explicit conventionssrc/, lib/, app/, internal/ → project structureStep 2 — Infer key invariants Ask: what would break the project if violated? Examples:
requestId field".env.example"Read existing test names, CI checks, and lint config to infer these.
Step 3 — Generate PROJECT.md
Write PROJECT.md to the project root (or ~/.openclaw/workspace/<project-slug>.md):
# Project: <name>
## Stack
## Build & Test Commands
## Project Structure
## Key Conventions
## Things the Agent Must Never Do Here
## Known Gotchas
Step 4 — User validation Show the generated file and ask: "Does this look right? Anything missing or wrong?" Revise based on feedback.
Step 5 — Register in state Record the project path, PROJECT.md location, and onboarded date in state so the agent auto-loads context on future sessions.
When working in a directory that matches a registered project, the agent should:
python3 onboard.py --refresh monthly to catch driftpython3 onboard.py --scan <path> performs Step 1 and outputs a structured JSON summary of detected stack/conventions — the agent uses this to populate Step 3.