scan 是什么?
Scans the codebase to generate project-doc.md and AGENTS.md. Use when bootstrapping a new agent-driven repo, refreshing project documentation after architectural changes, or running a delta scan to detect drift. Runs a full scan on first use and a smart delta scan on subsequent runs. Uses understand-anything + context-mode when available, falls back to native tools otherwise. Only updates AGENTS.md on detected architectural changes with human confirmation.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
scan,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 scan
请在 Codex 的当前工作环境中安装并检查 scan 这个 Skill。
项目身份:wshobson/agents / scan
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/ship-mate/skills/scan/SKILL.md
已定位的源文件:plugins/ship-mate/skills/scan/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 scan
请在 Claude Code 的当前工作环境中安装并检查 scan 这个 Skill。
项目身份:wshobson/agents / scan
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/ship-mate/skills/scan/SKILL.md
已定位的源文件:plugins/ship-mate/skills/scan/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 scan
请在 Cursor Agent 的当前工作环境中安装并检查 scan 这个 Skill。
项目身份:wshobson/agents / scan
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/ship-mate/skills/scan/SKILL.md
已定位的源文件:plugins/ship-mate/skills/scan/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 scan
请在 当前 Agent 的当前工作环境中安装并检查 scan 这个 Skill。
项目身份:wshobson/agents / scan
来源:https://github.com/wshobson/agents/blob/91ff75307f5668916f3eb77d5ba556266c961376/plugins/ship-mate/skills/scan/SKILL.md
已定位的源文件:plugins/ship-mate/skills/scan/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
plugins/ship-mate/skills/scan/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Scans the codebase to generate project-doc.md and AGENTS.md. Use when bootstrapping a new agent-driven repo, refreshing project documentation after architectural changes, or running a delta scan to detect drift. Runs a full scan on first use and a smart delta scan on subsequent runs. Uses understand-anything + context-mode when available, falls back to native tools otherwise. Only updates AGENTS.md on detected architectural changes with human confirmation.
查看源文件章节 / Source sections
- 原文:Codebase Scanner
- 原文:Step 1: Check Optional Plugin Dependencies
- 原文:Step 2: Determine Scan Mode
- 原文:Step 3A: Full Scan
- 原文:Step 3B: Delta Scan
- 原文:Step 4A: Generate AGENTS.md (First Run Only)
- 原文:Step 4B: Architectural Change Detection (Delta Runs Only)
- 原文:Step 5: Report
原文:Codebase Scanner
You are a technical analyst. Your job is to scan the project codebase and produce accurate, project-specific documentation used by all downstream agents.
原文:Step 1: Check Optional Plugin Dependencies
Check whether the two optional enhancement plugins are available: ``` understand-anything → /plugin list | grep understand-anything context-mode → /plugin list | grep context-mode ``` These plugins are **optional**. They improve scan quality but are not required: - **understand-anything** (Lum1104/Understand-Anything) — provides deeper semantic code analysis - **context-mode** (mksglu/context-mode) — routes large outputs through a sandbox to protect the context window If both are present, use them in Steps 3–4 as described below. If either or both are missing, proceed with the **native fallback** approach: use `find`, `grep`, `cat`, and `git` commands directly, routing large outputs through `ctx_execute` / `ctx_execute_file` if context-mode is available, otherwise summarise inline. > **Note:** To install the optional plugins manually: > ``` > /plugin marketplace add Lum1104/Understand-Anything && /plugin install understand-anything > /plugin marketplace add mksglu/context-mode && /plugin install context-mode@context-mode > ```
原文:Step 2: Determine Scan Mode
Check if `.claude/pipeline/project-doc.md` exists. - **Does not exist** → FULL SCAN (first run) - **Exists** → DELTA SCAN
原文:Step 3A: Full Scan
Use `understand-anything` to analyse the entire codebase. If **context-mode** is available (verified in Step 1), route ALL output through its tools (`ctx_batch_execute` / `ctx_execute_file`) — never dump raw file contents into the main context window. If context-mode is not available, summarise each file's findings inline and avoid printing raw file contents. Produce `.claude/pipeline/project-doc.md` using the following structure (based on the architecture-blueprint-generator pattern): ```md # Project Documentation > Generated: [timestamp] | Mode: FULL ## Tech Stack - Runtime: [e.g. Node.js 20, Python 3.11] - Language: [e.g. TypeScript, Python] - Framework: [e.g. Next.js 14 App Router, FastAPI] - Database: [e.g. PostgreSQL via Prisma] - Styling: [e.g. Tailwind CSS] - State Management: [e.g. Zustand, Redux] ## Dependencies [Key libraries with versions, grouped by: core / dev / testing] ## Architecture Pattern [e.g. Feature-based, Layered MVC, Clean Architecture] [Describe how the project is structured and why] ## Folder Structure [Top-level directory map with purpose of each folder] ## Code Style Conventions [Naming patterns, file naming, import ordering, export patterns] [Inferred from actual code — not guessed] ## Modularity Practices [How concerns are separated, shared module locations, service patterns] ## Data Architecture [Entity relationships, data access patterns, ORM usage] ## Cross-Cutting Concerns [Auth/authz approach, error handling patterns, logging, validation] ## Service Communication [REST / GraphQL / event-driven — document what actually exists] ## Test Coverage - Overall coverage: [X%] - Testing framework: [e.g. Jest, Vitest, Pytest] - Key untested areas: [list] - Test patterns used: [unit / integration / e2e] ## Entry Points [Main files, key config files, environment setup] ## Changed Files [Only present in delta scans — list of files re-scanned] ## Last Scanned [ISO timestamp] ``` After writing `project-doc.md`, proceed to **Step 4** to generate `AGENTS.md`.
原文:Step 3B: Delta Scan
1. Run `git diff HEAD~1 --name-only` to get changed files 2. If no changed files, report "No changes detected — project-doc.md is current" and exit 3. Use `understand-anything` to re-analyse only the changed files; route output through `ctx_execute_file` if context-mode is available, otherwise summarise inline 4. Patch only the affected sections of `.claude/pipeline/project-doc.md` 5. Update the `Last Scanned` and `Changed Files` fields 6. Proceed to **Step 4B** (architectural change detection)
原文:Step 4A: Generate AGENTS.md (First Run Only)
Write `AGENTS.md` to the repo root. This is NOT a copy of `project-doc.md` — it is rewritten as agent instructions, tailored to this specific project. Every agent reads this file first. Before writing AGENTS.md, read and follow the complete [project-specific instruction template](references/agents-template.md), including its security rules and human-confirmed update requirements. If the project is MERN stack (MongoDB + Express + React + Node.js — detected from package.json / requirements), append a `### MERN Stack Notes` section to AGENTS.md covering: use Mongoose middleware over raw queries, handle async errors in Express with a central error handler, avoid storing JWT tokens in localStorage (use httpOnly cookies), and never expose Mongoose error objects directly in API responses.
文件 SHA256:ea94c8b6e00990bf358331dbf0a414d6c28383b1d2df08dbcea27f61a129571f
仓库许可证记录:MIT;repository-license-recorded-scope-unverified,查看来源。
Scans the codebase to generate project-doc.md and AGENTS.md. Use when bootstrapping a new agent-driven repo, refreshing project documentation after architectural changes, or running a delta scan to detect drift. Runs a full scan on first use and a smart delta scan on subsequent runs. Uses understand-anything + context-mode when available, falls back to native tools otherwise. Only updates AGENTS.md on detected architectural changes with human confirmation.
历史收录数据
| 来源仓库 | wshobson/agents |
|---|---|
| Skill源路径 | plugins/ship-mate/skills/scan/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
