Codebase Graph Module Rules logo

Codebase Graph Module Rules

Community
xsoway
codebase-graph-module-rules

Use this skill when a user provides a feature description or module name and needs Graphify-backed detailed rules, links, sorting, flows, and test coverage; triggers include 模块业务规则、功能规则梳理、线索包规则 and feature business rules.

Overview

Publisherxsoway
Repositorycodebase-graph-prd-rules
Skill namecodebase-graph-module-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 Module 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-module-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-module-rules .claude/skills/codebase-graph-module-rules
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codebase Graph Module 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 Module 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 Module 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 图谱,再由源码确认业务事实,输出详细规则、依赖链路、排序、流程图与测试说明。仅分析和生成文档,不改业务系统。

何时使用

  • 用户给出具体需求描述、业务名、领域对象或功能模块,要求从代码讲清“它到底怎么工作”。
  • 用户要求专项梳理排序、限额、状态、分发、结算、审批、风控等复杂业务规则。
  • 用户需要某模块可交付给产品、运营、测试人员阅读的规则与测试专项文档。

不用于无模块边界的全项目盘点;该场景使用 codebase-graph-business-rules。

输出格式选项

  • 默认:项目本地 docs/ 下的模块专项 Markdown。
  • 用户明确要求时:附加测试用例表、决策表或来源账本 CSV/JSON。

如何使用

  1. 必须先读 完整执行规范,将用户术语映射为代码候选,再确认最小依赖边界。
  2. 建/刷新图谱后,按 模块图谱检索规则 运行邻域与路径查询;图谱只定位,源码/SQL/配置确认规则。
  3. 按 专项文档与测试契约 写一个合并模块章节,区分过滤、排序和运行时控制。
  4. 需要核对最小交付结构时,读 示例。
  5. 交付前运行 scripts/verify_skill_package.py . 验证 Skill 包;再运行项目文档的来源/结构校验。

参考文件

  • 需要将自然语言需求映射到入口、实体、任务、Mapper、配置和外部系统时,读 references/module-discovery.md。
  • 需要写规则表、排序决策、状态图或测试矩阵时,读 references/module-document-contract.md。
  • 需要回归 Skill 行为时,读 evals/eval.yaml 和对应 case;Eval 不代替真实项目分析。

常见误区

  • 只查一个类,遗漏消息入口、定时任务、Mapper/SQL、配置或专属分支。
  • 把“未通过条件”写成排序低,或把排序靠前写成必然发送/执行。
  • 声称并列排序有稳定业务优先级,但比较器/SQL没有最终键。
  • 未经授权调用真实下游、修改数据或在文档中泄露凭据。

最佳实践

  • 用“触发 → 编排 → 决策 → 数据/日志 → 外部结果”的路径定义模块边界。
  • 为每一条关键规则准备条件、结论、例外、来源和可观察测试断言。
  • 对外部协议、动态配置、数据库真实数据和调度频率保持证据边界。

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 Module Rules AI skill do?

Use this skill when a user provides a feature description or module name and needs Graphify-backed detailed rules, links, sorting, flows, and test coverage; triggers include 模块业务规则、功能规则梳理、线索包规则 and feature business rules.

Why use Codebase Graph Module Rules on TypingMind?

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

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

Is the Codebase Graph Module 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 👇