一键导入
superclaw-onboard
SuperClaw Phase 0: 项目上下文扫描。首次使用时自动扫描项目,生成 project-context.md。 使用场景:首次在项目中使用 SuperClaw,或用户要求重新扫描。 终态:project-context.md 生成完毕。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
SuperClaw Phase 0: 项目上下文扫描。首次使用时自动扫描项目,生成 project-context.md。 使用场景:首次在项目中使用 SuperClaw,或用户要求重新扫描。 终态:project-context.md 生成完毕。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | superclaw-onboard |
| description | SuperClaw Phase 0: 项目上下文扫描。首次使用时自动扫描项目,生成 project-context.md。 使用场景:首次在项目中使用 SuperClaw,或用户要求重新扫描。 终态:project-context.md 生成完毕。 |
Phase 0 — 项目上下文扫描
扫描项目关键信息,生成 .superclaw/context/project-context.md,供后续所有 phase 使用。
宣告: "我在用 superclaw:onboard 扫描项目上下文。"
以下任一条件满足时触发:
.superclaw/context/project-context.md 不存在检查 .superclaw/context/project-context.md 是否存在
→ 不存在 or 用户要求重新扫描?
├─ no → 跳过,不做任何操作
└─ yes → 执行扫描
→ 读取项目信息:
├─ README.md / README(如有)
├─ CLAUDE.md(如有)
├─ package.json / Cargo.toml / go.mod / pyproject.toml / Makefile(检测项目类型)
├─ git log --oneline -20(最近活动)
└─ 目录结构(顶层 + src/ 一级子目录)
→ 生成 project-context.md
→ 完成
从 package.json / Cargo.toml / go.mod / pyproject.toml 等提取:
列出顶层目录结构 + 源码目录的一级子目录。不递归深入,保持简洁。
从项目配置中推断:
如果无法推断,标记为 "未检测到,请手动补充"。
git log --oneline -20 的输出摘要。
从 README.md 和 CLAUDE.md 中提取的关键架构信息(如果有)。
写入 .superclaw/context/project-context.md:
# Project Context
> Auto-generated by SuperClaw Phase 0
> Last updated: YYYY-MM-DD
## Project
- Name: xxx
- Language: TypeScript
- Framework: Next.js
- Package Manager: pnpm
## Structure
- Source: src/
- Tests: tests/
- Config: .config/
## Key Commands
- Build: pnpm build
- Test: pnpm test
- Lint: pnpm lint
## Recent Activity
- [最近 commit 的单行摘要]
## Architecture Notes
- [从 README/CLAUDE.md 提取的关键架构信息]
align skill 在开始时检查 project-context.md 是否存在,不存在则先触发 onboard:
align 开始
→ project-context.md 存在?
├─ yes → 读取,继续 align 流程
└─ no → 先执行 onboard → 再继续 align
❌ 递归扫描整个代码库 — 只看顶层和关键配置 ❌ 把所有文件内容都塞进 context — 只提取结构和关键信息 ❌ 每次 align 都重新扫描 — 只在首次或用户要求时扫描
Delegate coding tasks to Claude Code via ACPX from OpenClaw. Runs Claude Code as root with IS_SANDBOX=1 bypass, full file-write permissions, Opus model support, and persistent named sessions. Use when: (1) The user asks to write, review, or refactor code in a project directory (2) The user wants a persistent coding session ("start a session", "continue working on X") (3) Multi-file code generation or editing is needed (4) The user says "use Claude Code", "code this", "write code for", "build", "implement" (5) Complex coding tasks that benefit from Claude Code's tool-use (file read/write/edit, terminal) Not for: simple one-line edits (use the edit tool directly), reading files (use read tool), non-coding tasks, or tasks that don't need file system access.
SuperClaw AutoDream: 记忆整理持久 agent。定期整理 OpenClaw 记忆文件。 触发条件:距上次 >= 24 小时 AND >= 5 个 session。 由 agent-check.sh 自动触发,也可用户手动 invoke。
SuperClaw Phase 3: 执行。通过 superclaw 让 Claude Code 自治执行 plan。 使用场景:plan 已 approve,选定了执行方式。 终态:执行完成 → 自动触发 verify(通过 hook 或轮询)。
SuperClaw Phase 2: 技术对齐。OpenClaw 与 Claude Code 协商,把 spec 变成可执行的 plan。 使用场景:align 阶段完成、spec 已 approve。 终态:plan approved → invoke execute。
Meta-skill that teaches OpenClaw its role and boundaries in the SuperClaw system. Use at the start of any conversation that might involve coding tasks. Establishes: what you are, what you're not, when to activate the workflow, and how to interact with Claude Code through the superclaw bridge.
SuperClaw Phase 4-L2: OpenClaw 独立验收。不信任 Claude Code 的自我声明,独立跑测试和检查。 使用场景:execute 阶段完成,收到执行报告。 终态:验收通过 → invoke deliver;不通过 → 回 execute 修复。