Codebase Graph Business Rules logo

Codebase Graph Business Rules

Community
xsoway
codebase-graph-business-rules

Use this skill when a user asks to scan project code, build a Graphify graph, and produce whole-project business rules; triggers include 项目业务规则、全量功能梳理、代码建图谱 and codebase business rules.

Overview

Publisherxsoway
Repositorycodebase-graph-prd-rules
Skill namecodebase-graph-business-rules
Stars
51
Forks
7
Bundled files
10
LicenseMIT
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.

  • 10 bundled files

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

  • Open source

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

Installation

Install the Codebase Graph Business Rules 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/xsoway/codebase-graph-prd-rules/tree/main/codebase-graph-business-rules
  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/xsoway/codebase-graph-prd-rules.git /tmp/codebase-graph-prd-rules
mkdir -p .claude/skills
cp -r /tmp/codebase-graph-prd-rules/codebase-graph-business-rules .claude/skills/codebase-graph-business-rules
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codebase Graph Business Rules 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 Codebase Graph Business Rules 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 Codebase Graph Business Rules 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.

全项目图谱化业务规则

从项目代码建立 Graphify 图谱、复核源码,并生成面向非开发者的全量业务规则文档。仅分析和写文档,除非用户另行授权,不改业务代码、数据或外部系统。

何时使用

  • 用户要求扫描整个项目、整理全部功能、模块、状态、数据关系或端到端链路。
  • 用户要求先建代码图谱,再基于图谱生成业务规则、流程图、测试范围或 PRD 基线。
  • 已有规则文档需要用代码和图谱做全量补漏或追溯。

不用于只分析一个明确模块;该场景使用 codebase-graph-module-rules。

输出格式选项

  • 默认:项目本地 docs/ 下的一份 Markdown 业务规则基线。
  • 用户明确要求时:附加规则账本 CSV/JSON;仍保留 Markdown 作为业务阅读主稿。

如何使用

  1. 必须先读 完整执行规范,再确认项目根、源码范围和已有文档。
  2. 建/刷新 Graphify 图谱后,读取 图谱操作与证据边界;图谱负责发现关系,源码、SQL/XML、配置才确认事实。
  3. 按 文档与测试契约 生成一份集成文档;相同模块合并到同一节,不在末尾重复追加。
  4. 需要输出骨架或核对成稿结构时,参考 示例。
  5. 交付前运行 scripts/verify_skill_package.py . 验证 Skill 包;实际项目文档还须运行项目已有校验或按 Prompt 执行最小引用校验。

参考文件

  • 需要建图、查询、语义提取或处理无可用 LLM 凭据时,读 references/graphify-and-evidence.md。
  • 需要决定模块目录、表格、流程图、测试矩阵及证据格式时,读 references/document-contract.md。
  • 需要回归 Skill 行为时,读 evals/eval.yaml 与匹配 case;Eval 配置不代表真实项目已被分析。

常见误区

  • 把图谱推断边当作业务事实,或仅凭类名/注释下结论。
  • 将资格过滤、候选排序和实际执行/回滚混成“优先级”。
  • 因同一功能有多个链路而在文档最后新增重复模块;应合并为同一模块的分支。
  • 把静态文档校验写成真实接口、任务、数据库或生产环境已验证。

最佳实践

  • 以入口点、核心实体、任务、消息、持久化和外部边界建立完整链路,再按业务模块组织内容。
  • 每条关键规则记录来源文件/行号、事实状态、例外和可验证测试点。
  • 对未检视的外部协议、运行配置、调度表达式和数据库数据明确写“待确认/未验证”。

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 Codebase Graph Business Rules AI skill do?

Use this skill when a user asks to scan project code, build a Graphify graph, and produce whole-project business rules; triggers include 项目业务规则、全量功能梳理、代码建图谱 and codebase business rules.

Why use Codebase Graph Business Rules on TypingMind?

Because you install it once and use it with any model. Codebase Graph Business Rules 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 Codebase Graph Business Rules in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/xsoway/codebase-graph-prd-rules/tree/main/codebase-graph-business-rules. 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 Codebase Graph Business Rules?

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 Codebase Graph Business Rules?

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

Is the Codebase Graph Business Rules AI skill free?

Yes. It is published on GitHub by xsoway under the MIT license. 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 👇