简介
Context Onboarding
原始描述
Provide new contributors and agents with a concise tour of the workspace identity files (SOUL.md, USER.md, AGENTS.md, TOOLS.md) plus onboarding tips. Use when a newcomer needs context or when you want to double-check how this workspace is configured.
通过你的 Agent 添加
安装目录:context-onboarding/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
context-onboarding 是一个面向 Agent 工作区的轻量级上下文引导工具。其核心功能是通过 Python 脚本读取指定的 Markdown 身份文档(如 SOUL.md、USER.md、AGENTS.md、TOOLS.md 等),并输出结构化的内容摘要,帮助新成员快速了解项目的人格设定、操作规则和工具约束。
使用时可通过命令行灵活控制输出粒度:默认展示每个文件前 5 行内容;--lines 参数可调整行数;--brief 模式仅提取首句,适合快速同步;--files 支持追加额外文档;--workspace 可切换至其他工作区路径,便于对比多仓库配置。典型场景包括新人入职引导、跨项目迁移前的配置审查,或在会议中快速回顾团队 vibe 与协作节奏。
显著优点
极致轻量:仅 69 行代码,零第三方依赖,纯 Python 标准库实现,部署无负担。
安全可控:无网络请求、无动态代码执行、无危险系统调用,所有操作局限于本地文件读取,符合最小权限原则。
高度灵活:命令行参数设计精细,支持自定义文件列表、输出长度、摘要模式及工作区路径,适应从详细研读到闪电同步的多样需求。
场景贴合:专为 Agent/AI 协作工作区设计,精准解决"新人面对一堆 .md 文件不知从何读起"的痛点,降低认知门槛。
潜在缺点与局限性
功能单一:仅限读取和摘要 Markdown 文件,无内容解析、无交叉引用分析、无可视化呈现,复杂项目仍需人工深入阅读原始文档。
无智能理解:摘要基于固定行数或首句分割,无法根据语义重要性动态提炼,可能遗漏关键细节或包含冗余信息。
T3 来源风险:维护者为个人开发者账号,非知名组织背书,长期维护更新存在不确定性,供应链安全风险需警惕。
无版本管理:文档变更需依赖外部 Git 历史追溯,工具本身不提供变更对比或版本快照功能。
适合的目标群体
- Agent/AI 协作平台运营者:管理多个工作区配置,需要标准化新人引导流程
- 开源社区维护者:希望降低项目贡献门槛,快速同步协作规范与角色设定
- 远程团队负责人:在异步协作中确保成员对工作区"人格"和规则达成共识
- 技术写作与文档工程师:批量审查和比对多项目文档结构的一致性
使用风险
文件路径误用:若通过 --files 或 --workspace 指向包含敏感信息的路径(如 ~/.ssh/、/etc/、含 API key 的配置文件),可能导致敏感信息意外暴露于终端输出。建议始终在隔离的项目文档目录内运行,避免通配符或递归路径。
版本漂移:当前安全审查基于 v1.0.1,若自动更新至未审查新版本,可能引入未预期的行为变更。建议锁定版本并手动审核更新。
依赖项幻觉:虽当前为零依赖,但需防范供应链攻击者通过后续更新植入恶意依赖,建议在 CI/CD 中启用依赖审计。
T3 来源的隐性成本:个人开发者项目可能存在文档不完善、Issue 响应延迟、突发归档等风险,关键业务场景建议 fork 后自行维护或寻找 T1/T2 替代方案。
技能正文
name: context-onboarding
description: Provide new contributors and agents with a concise tour of the workspace identity files (SOUL.md, USER.md, AGENTS.md, TOOLS.md) plus onboarding tips. Use when a newcomer needs context or when you want to double-check how this workspace is configured.
Context Onboarding
When to use this skill
- You're guiding someone new through Clawdy/Clawd and want a quick summary of the personality, operating rules, and per-skill notes.
- You need to remind yourself of the tone preferences or tooling constraints without reading every document top to bottom.
What it does
scripts/context_onboarding.py reads the key documents (SOUL.md, USER.md, AGENTS.md, TOOLS.md by default) and prints the first few lines of each so you can skim character, rules, and tooling notes.
- The CLI supports
--files to include additional documents, --lines to control how many lines are shown per file, and --brief to emit only the opening sentence of each section.
- Use
references/context-guidelines.md when you need more guidance about what newcomers should read next or how to keep the vibe consistent.
CLI usage
python3 skills/context-onboarding/scripts/context_onboarding.py summarizes the default identity docs and prints the first five lines per file.
- Add
--files docs/PLAYBOOK.md docs/ROLE.md to weave in extra reference material that onboards the newcomer to cadence notes or release rituals.
- Pair
--lines 2 with --brief to emit single-line headlines when you just need the gist.
--workspace /path/to/other-workspace lets you compare multiple workspaces or prepare summaries for a sister repo before pairing.
Example command
python3 skills/context-onboarding/scripts/context_onboarding.py --files references/context-guidelines.md HEARTBEAT.md --lines 2
When to use this skill
scripts/context_onboarding.pyreads the key documents (SOUL.md,USER.md,AGENTS.md,TOOLS.mdby default) and prints the first few lines of each so you can skim character, rules, and tooling notes.- The CLI supports
--filesto include additional documents,--linesto control how many lines are shown per file, and--briefto emit only the opening sentence of each section. - Use
references/context-guidelines.mdwhen you need more guidance about what newcomers should read next or how to keep the vibe consistent.
CLI usage
python3 skills/context-onboarding/scripts/context_onboarding.py summarizes the default identity docs and prints the first five lines per file.
- Add
--files docs/PLAYBOOK.md docs/ROLE.md to weave in extra reference material that onboards the newcomer to cadence notes or release rituals.
- Pair
--lines 2 with --brief to emit single-line headlines when you just need the gist.
--workspace /path/to/other-workspace lets you compare multiple workspaces or prepare summaries for a sister repo before pairing.
Example command
python3 skills/context-onboarding/scripts/context_onboarding.py --files references/context-guidelines.md HEARTBEAT.md --lines 2
python3 skills/context-onboarding/scripts/context_onboarding.py summarizes the default identity docs and prints the first five lines per file.--files docs/PLAYBOOK.md docs/ROLE.md to weave in extra reference material that onboards the newcomer to cadence notes or release rituals.--lines 2 with --brief to emit single-line headlines when you just need the gist.--workspace /path/to/other-workspace lets you compare multiple workspaces or prepare summaries for a sister repo before pairing.python3 skills/context-onboarding/scripts/context_onboarding.py --files references/context-guidelines.md HEARTBEAT.md --lines 2
This prints the opening two lines for the personality files plus the heartbeat and onboarding guide so you can review vibe, reminders, and cadence expectations without opening every file.
Options
--files <path>: Accepts extra markdown files (comma/space separated) that the script should include in the output order you provide.
--lines <n>: Controls how many lines from each file are shown (default 5) so you can tighten or loosen the briefing.
--brief: Shrinks each preview to the first sentence (splitting on ., ?, or !). Use this for lightning summaries during sync calls.
--workspace <dir>: Point the CLI at another workspace root; useful for onboarding clones, reviewing experimental docs, or prepping a new repo.
References
references/context-guidelines.md documents onboarding topics, role expectations, cadence notes, and reminders for how this group runs.
Resources
--files <path>: Accepts extra markdown files (comma/space separated) that the script should include in the output order you provide.--lines <n>: Controls how many lines from each file are shown (default 5) so you can tighten or loosen the briefing.--brief: Shrinks each preview to the first sentence (splitting on ., ?, or !). Use this for lightning summaries during sync calls.--workspace <dir>: Point the CLI at another workspace root; useful for onboarding clones, reviewing experimental docs, or prepping a new repo.references/context-guidelines.mddocuments onboarding topics, role expectations, cadence notes, and reminders for how this group runs.
Resources
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。