reuse-before-build SKILL.md skillA
reuse-before-build from nangongwentian-fe/jay-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add nangongwentian-fe/jay-skills/reuse-before-build@git:20261024.480cfc7Pins git:20261024.480cfc7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- nangongwentian-fe/jay-skills
- Path
skills/reuse-before-build/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261024.480cfc7, committed Oct 24, 2026
- Size
- 5,836 bytes
- Repository stars
- 12
- License
- none declared
在新增或替换任何代码实现前调查复用机会,涵盖组件、工具函数、后端、脚本及业务功能。先核实项目封装、标准能力和已安装依赖;没有合适能力时主动联网比较成熟方案,推荐并获得选型确认后实现。适用于跨语言、跨技术栈的编码任务;纯文案和格式调整无需触发。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 实现前先发现和复用 把能力调查放在实现之前。自己能写出来,不是选择自研的依据。所有新增或替换实现都检查,包括简单业务逻辑;按用户需要的完整能力分组,不对每行代码单独选型。遵守用户已指定的技术路线、已有授权与项目约束,不把调查扩展成全项目改造。 ## 1. 明确能力并检查本地证据 从任务中确认功能、输入输出、运行环境及必要约束。先检查,再编辑该能力的实现: - 查找项目现有组件、业务封装、工具函数及邻近使用方式,判断是否适用。 - 检查语言标准库和运行平台的原生能力。 - 读取相关依赖清单、锁定版本和实际安装包;用对应版本的导出、类型、随包文档或示例核实能力。若依赖未安装,明确这一限制,结合锁定版本和官方版本文档核实,不把声明范围当成实际版本。 - 不因为当前文件没有 import 就认定项目没有该能力;不因为最新版文档提供某 API 就认定当前安装版本也有。 给出简短结论:复用什么、何处证明其适用、还需哪些适配。无需展示完整检索日志。复用项目内部代码时仍须遵守模块边界,不能为了复用引入不合理耦合。 ## 2. 有合适能力:直接复用 任务已经授权且现有能力适用时,直接使用,无需额外询问。优先沿用项目的合适封装和约定;封装不适用时核查底层公开能力,不机械复用错误抽象。 使用组件、函数或 SDK 的真实公开接口。允许样式、数据映射和业务连接;不要用“适配器”或“封装”的名义重新写一遍依赖已有的状态机、算法或交互。不要为了验证猜测修改依赖源码。 “部分覆盖”要明确拆分:现有能力负责哪些部分,剩余哪些能力仍需调查。保持用户要求的行为,不能为了方便套库默默删减功能。 ## 3. 本地存在缺口:先联网调查 在编写替代实现前,主动搜索成熟库、官方组件、SDK、标准方案或其他适合当前任务的解决方式。所有未被本地能力合理覆盖的新增实现都经过这一步,包括业务专用逻辑;不要求每个业务规则都有对应的库。 依据功能与实际环境搜索,使用官方文档、官方仓库、版本记录核实候选。搜索摘要只能发现线索,不能作为能力或维护状态的最终证据。调查应足以判断可行性,无需无休止搜索;优先形成少量真正适用的候选。对证据不足的能力、兼容性或费用明确标注,不能编造结论。 网络不可用时说明受阻项,不能声称没有成熟方案,也不能自动开始自研。继续完成不依赖该选型的工作,向用户说明恢复调查或明确授权自研等可选路径。 ## 4. 比较、推荐并确认路线 通常比较 2–3 个实际可行方案;只有一个或没有候选时如实说明,不凑数。可用紧凑表格: | 方案及官方来源 | 能力覆盖与缺口 | 环境/版本兼容性 | 接入和维护成本 | | --- | --- | --- | --- | …
Read the whole file at its exact version.
How to install
mdr add nangongwentian-fe/jay-skills/reuse-before-build@sha256:98476a2cc3ba670cThe line at the top of this page pins the label git:20261024.480cfc7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_a6pz42mvwyiqjboi)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 24, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5836 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
nangongwentian-fe/jay-skills · 12 stars · license none declared · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_a6pz42mvwyiqjboi GET https://markdownregistry.com/api/v1/resolve?ref=nangongwentian-fe/jay-skills/reuse-before-build GET https://markdownregistry.com/api/v1/blob/98476a2cc3ba670ca2be4ed88de7c7055b717cc269c63087516455017494a444
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.