AGENT SKILL

参考代码库上下文集成

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

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

  1. Clone — Pull the source code into _blueprint/context/{package-name}/repo. Use git clone --depth 1 to save space.
  2. Template — Use the template in assets/README-template.md to create _blueprint/context/{package-name}/README.md.
  3. Analyze — Run tree -L 2 on the new repo to populate the Filetree section.
  4. Index — Update SYLLABUS.md to include the new context entry.

Guidelines

  • Naming: Use lowercase, hyphenated names for the package folder (e.g., playwright-cli).
  • Depth: Always use --depth 1 when 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"

  1. Identify name: playwright-cli
  2. Create dir: mkdir -p _blueprint/context/playwright-cli/repo
  3. Clone: git clone --depth 1 https://github.com/microsoft/playwright-cli.git _blueprint/context/playwright-cli/repo
  4. Generate README: Analyze the repo and write the README.
  5. Update SYLLABUS: Add to the "Blueprints & Context" section.

04 同仓库更多 Skills

NicholasGrundl
NicholasGrundl/dockmaster

项目结构智能探索

smart-tree

使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改前梳理代码库时使用此技能。它以多轮、启发式驱动的方式取代简单的完整目录树输出,在最大限度降低 token 消耗的同时最大化结构洞察。

软件开发工程师代码实现
★ 0
NicholasGrundl
NicholasGrundl/dockmaster

Playwright 浏览器自动化

playwright-cli

自动化浏览器交互,用于网页测试、表单填写、截图和数据提取。当用户需要浏览网站、与网页交互、填写表单、截图、测试 Web 应用程序或从网页提取信息时使用此技能。

测试工程师浏览器自动化与网页交互
★ 0
NicholasGrundl
NicholasGrundl/dockmaster

Playwright 浏览器自动化测试

playwright-cli

自动化浏览器交互,用于 Web 测试、表单填写、截图和数据提取。当用户需要浏览网站、与网页交互、填写表单、截图、测试 Web 应用或从网页提取信息时使用。

测试工程师浏览器自动化与网页交互
★ 0
NicholasGrundl
NicholasGrundl/dockmaster

Playwright-CLI 仓库维护工作流

dev

playwright-cli 仓库的开发工作流。当用户询问依赖滚动更新、版本发布或其他仓库维护任务时使用。

软件开发工程师代码仓库协作管理
★ 0
NicholasGrundl
NicholasGrundl/dockmaster

项目目录结构智能探索

smart-tree

使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改代码前梳理代码库时,使用此技能。它采用多轮、启发式驱动的方法取代简单的完整目录树转储,在最小化 token 成本的同时最大化结构洞察力。

软件开发工程师开发参考
★ 0
NicholasGrundl
NicholasGrundl/dockmaster

智能项目目录树探索

smart-tree

使用 `tree` 命令进行智能文件系统探索。当您需要了解项目结构、查找与任务相关的文件,或在修改前梳理代码库时使用此技能。它以多轮、启发式驱动的方法取代朴素的全量目录树输出,在最大化结构洞察的同时最小化 token 开销。

软件开发工程师开发环境与工具链管理
★ 0