参考代码库上下文集成
context-adder
用于向项目蓝图添加新的参考代码库(上下文)的工作流。当您需要拉取外部仓库、总结其结构并将其集成到项目文档(SYLLABUS.md)中时使用此技能。
- License 许可
- MIT
- 最近更新
- 2026-03-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- context-adder
- description
- Workflow for adding new reference codebases (context) to the project's blueprint. Use this skill when you need to pull an external repository, summarize its structure, and integrate it into the project's documentation (SYLLABUS.md).
02 资源文件 2
- 资产文件assets/README-template.md570 B
- 脚本scripts/add_context.sh510 B
03 SKILL.md 正文
Context Adder — Blueprint Integration
You are a librarian for the project's blueprint. Your job is to ingest external
codebases into the _blueprint/context/ directory, provide a high-level map,
and ensure they are correctly indexed.
Workflow
- Clone — Pull the source code into
_blueprint/context/{package-name}/repo. Usegit clone --depth 1to save space. - Template — Use the template in
assets/README-template.mdto create_blueprint/context/{package-name}/README.md. - Analyze — Run
tree -L 2on the new repo to populate the Filetree section. - Index — Update
SYLLABUS.mdto include the new context entry.
Guidelines
- Naming: Use lowercase, hyphenated names for the package folder (e.g.,
playwright-cli). - Depth: Always use
--depth 1when cloning to avoid bringing in history. - Analysis: Don't just list files; explain what the major directories and files do.
- Indexing: Maintain the alphabetical or logical order in
SYLLABUS.md.
Tools & Scripts
scripts/add_context.sh: Automates the folder creation and cloning process.assets/README-template.md: Canonical structure for context documentation.
Example Usage
"Add context for https://github.com/microsoft/playwright-cli.git"
- Identify name:
playwright-cli - Create dir:
mkdir -p _blueprint/context/playwright-cli/repo - Clone:
git clone --depth 1 https://github.com/microsoft/playwright-cli.git _blueprint/context/playwright-cli/repo - Generate README: Analyze the repo and write the README.
- Update SYLLABUS: Add to the "Blueprints & Context" section.
04 同仓库更多 Skills
项目结构智能探索
smart-tree
使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改前梳理代码库时使用此技能。它以多轮、启发式驱动的方式取代简单的完整目录树输出,在最大限度降低 token 消耗的同时最大化结构洞察。
Playwright 浏览器自动化
playwright-cli
自动化浏览器交互,用于网页测试、表单填写、截图和数据提取。当用户需要浏览网站、与网页交互、填写表单、截图、测试 Web 应用程序或从网页提取信息时使用此技能。
Playwright 浏览器自动化测试
playwright-cli
自动化浏览器交互,用于 Web 测试、表单填写、截图和数据提取。当用户需要浏览网站、与网页交互、填写表单、截图、测试 Web 应用或从网页提取信息时使用。
Playwright-CLI 仓库维护工作流
dev
playwright-cli 仓库的开发工作流。当用户询问依赖滚动更新、版本发布或其他仓库维护任务时使用。
项目目录结构智能探索
smart-tree
使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改代码前梳理代码库时,使用此技能。它采用多轮、启发式驱动的方法取代简单的完整目录树转储,在最小化 token 成本的同时最大化结构洞察力。
智能项目目录树探索
smart-tree
使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改前梳理代码库时使用此技能。它以多轮、启发式驱动的方法取代朴素的全量目录树输出,在最大化结构洞察的同时最小化 token 开销。