Reverse Scan logo

Reverse Scan

Organization
91160
reverse-scan

深度业务代码扫描 Skill。从已有代码自底向上提取函数级知识卡片、调用关系图、模块地图, 并为每个已有模块反推 DES + REQ,建立完整的代码认知层。 **核心原则:** 代码是唯一事实源。所有上层知识(模块划分、业务架构、业务流程) 必须从底层代码事实中聚合涌现,禁止从目录结构或文件命名猜测先入为主。 **必须在以下场景触发:** - 旧项目初始化时,由主工作流自动调用 - 用户说"深度扫描"、"扫描代码"、"生成知识卡片"、"逆向扫描" - 用户说"重新扫描"(全量重新执行,备份已有产出) **产出位置:** .project/reverse-scan/(独立于正向 Spec 体系)

Overview

Publisher91160
Repositoryskills
Skill namereverse-scan
Stars
21
Forks
3
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by 91160 on GitHub. Read the source before you install it.

Installation

Install the Reverse Scan AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/91160/skills/tree/master/skills/ny-sdd-workflow/tools/reverse-scan
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/91160/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/ny-sdd-workflow/tools/reverse-scan .claude/skills/reverse-scan
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Reverse Scan in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Reverse Scan on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Reverse Scan is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Reverse Scan — 深度业务代码扫描 Skill

定位

为没有 Spec 体系的遗留项目建立完整的代码认知层,使后续编码能精准复用已有的业务逻辑、函数方法、中间件封装和架构模式。

产出物与正向 Spec 体系(.project/specs/master/)路径隔离,不污染 index.md。

输入前提

本 Skill 被调用时,以下信息应已由调用方准备就绪:

前提说明
project-profile.md 已有技术栈、外部依赖基础扫描已完成
frontend-context.md / backend-context.md 已生成前后端规范已提取
.docs/ 已扫描(如有文档)文档已处理

如以上前提未就绪,Skill 在对应步骤中自行补全。

执行指令

读取本 Skill 目录下的 rules/scan-workflow.md,按其中的流程逐步执行。

模板文件位于 rules/card-template.md,在生成知识卡片、模块地图、DES、REQ 时读取对应模板。

执行模式

本 Skill 支持两种模式(详见 rules/scan-workflow.md §0):

  • auto(默认):全自动执行。H-01~H-04 类软暂停由 AI 按置信度自决并记入 grey-decisions.md,Phase 6 末尾一次性集中复核。仅 H-05(需人工补充信息)/ H-06(验证不通过)/ H-07(审计循环超限)三类硬暂停会中断流程。
  • interactive:每个 Phase 末尾对累积的软暂停项批量暂停确认。

调用规则: 未指定时默认 auto;用户明确说"交互扫描 / 每步确认"才切 interactive。Phase、审计、模块、Step 之间一律不得输出"是否继续"类提问。

产出物清单

执行完毕后,.project/reverse-scan/ 目录下必须存在以下文件:

认知层产出

文件路径说明
knowledge-cards/*.md逐文件知识卡片(函数级业务语义、调用关系、数据操作)
call-graph.md全局调用关系图 + 被多方调用的关键节点
module-map.md模块地图(已有模块划分 + 职责 + 依赖关系)
db-schema.md完整数据库结构(表/字段/类型/约束/索引/外键)

Spec 快照(已有模块的逆向 Spec,仅供参考)

文件路径说明
specs/requirements/REQ-{xx}-{name}.md已有模块的需求规格(从代码反推)
specs/design/DES-{xx}-{name}.md已有模块的设计规格(从代码反推)

过程与验证

文件路径说明
verification-report.md全局交叉验证报告
grey-decisions.md灰色决策日志(所有暂停点的决策记录)
scan-summary.md扫描完成报告(统计信息 + 审计结果)

合并就绪文件(供主工作流读取合并,本 Skill 不直接写入主工作流文件)

文件路径内容主工作流合并目标
profile-patch.md「业务架构」「业务流程」区块(自底向上涌现)由主工作流合并到 project-profile.md
overview.md项目全景文档一~七章(基于全量认知生成)由主工作流合并到 .outdocs/project-overview.md
api-doc.md从 DES 提取的全量接口文档由主工作流合并到 .outdocs/api-doc.md
scan-summary.md扫描完成报告(含统计信息 + 审计结果)由主工作流追加到 context.md

产出物更新规则

  • 首次调用:旧项目初始化时执行一次,产出完整认知层
  • 快照不可变:本 Skill 产出为初始化时的快照,编码过程中不回写更新
  • 全量重扫:用户说"重新扫描" → AI 备份 .project/reverse-scan/ 为 .project/reverse-scan.bak/,重新执行本 Skill

下游消费方式

本 Skill 的产出物供主工作流按需加载。主工作流自行决定何时加载哪些文件,本 Skill 不感知主工作流的阶段编号。

产出物 → 消费场景映射:

产出物典型消费场景用途
module-map.md任务拆分判断新需求归入已有模块还是新建模块
知识卡片需求分析 / 方案设计 / 编码 / 审计精确界定新旧边界、精准复用已有方法
call-graph.md方案设计 / 影响面评估确保新 API 不重复、评估变更波及范围
db-schema.md方案设计 / 文档学习 / 影响面评估确认表结构和字段约束、评估数据关联
reverse-scan REQ需求分析了解已有功能和验收标准
reverse-scan DES方案设计 / 编码了解已有技术方案和核心流程
profile-patch.md初始化合并业务架构/流程写入 project-profile.md
overview.md初始化合并项目全景文档
api-doc.md初始化合并全量接口文档

条件加载规则:.project/reverse-scan/ 存在时加载,不存在时跳过(主工作流走兜底)。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Reverse Scan AI skill do?

深度业务代码扫描 Skill。从已有代码自底向上提取函数级知识卡片、调用关系图、模块地图, 并为每个已有模块反推 DES + REQ,建立完整的代码认知层。 **核心原则:** 代码是唯一事实源。所有上层知识(模块划分、业务架构、业务流程) 必须从底层代码事实中聚合涌现,禁止从目录结构或文件命名猜测先入为主。 **必须在以下场景触发:** - 旧项目初始化时,由主工作流自动调用 - 用户说"深度扫描"、"扫描代码"、"生成知识卡片"、"逆向扫描" - 用户说"重新扫描"(全量重新执行,备份已有产出) **产出位置:** .project/reverse-scan/(独立于正向 Spec 体系)

Why use Reverse Scan on TypingMind?

Because you install it once and use it with any model. Reverse Scan is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Reverse Scan in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/91160/skills/tree/master/skills/ny-sdd-workflow/tools/reverse-scan. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Reverse Scan?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Reverse Scan?

As many as you like. As long as a model supports skills, you can use Reverse Scan with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Reverse Scan AI skill free?

It is published on GitHub by 91160. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇