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.

Install it, pinned
mdr add nangongwentian-fe/jay-skills/reuse-before-build@git:20261024.480cfc7

Pins 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

The exact contents, by fingerprint
mdr add nangongwentian-fe/jay-skills/reuse-before-build@sha256:98476a2cc3ba670c

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_a6pz42mvwyiqjboi.svg)](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.

versioncommittedcommitsizeaudit
git:20261024.480cfc7 latest2026-10-24 480cfc7 5,836 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from nangongwentian-fe/jay-skills

buddy-reroll SKILL.md skill
nangongwentian-fe/jay-skills · skills/buddy-reroll/SKILL.md · Reroll a Claude Code companion to match a requested species, rarity or shiny variant. Use for explicit buddy…
git:20261018.4caf5d8 · audit A · 12 stars
chrome-browser-validation SKILL.md skill
nangongwentian-fe/jay-skills · skills/chrome-browser-validation/SKILL.md · 使用官方 @Chrome 插件连接用户现有 Chrome,进行网页调试、交互测试和视觉验收。跨项目适用于开发完成后的浏览器验证及现有网页问题复现;代码静态检查和单元测试不受此浏览器选择约束。
git:20261030.ef8191b · audit A · 12 stars
clean-wechat-wps-storage SKILL.md skill
nangongwentian-fe/jay-skills · skills/clean-wechat-wps-storage/SKILL.md · Scan macOS WeChat/WPS disk usage and move selected data to Trash after the cleanup plan is confirmed. Use for app…
git:20261018.4caf5d8 · audit A · 12 stars
codex-imagegen SKILL.md skill
nangongwentian-fe/jay-skills · skills/codex-imagegen/SKILL.md · Generate or edit images via Codex CLI when no native tool is available, or recover outputs from an existing CLI image…
git:20261018.4caf5d8 · audit A · 12 stars
commit-before-deploy SKILL.md skill
nangongwentian-fe/jay-skills · skills/commit-before-deploy/SKILL.md · 部署 Git 项目前先验证、提交并推送本次发布代码,确认远端提交后才构建和发布。适用于 DEV、UAT、生产等代码部署任务;只编写技能、检查或制定计划不触发发布。
git:20261103.c1852b4 · audit A · 12 stars
daily-work-summary SKILL.md skill
nangongwentian-fe/jay-skills · skills/daily-work-summary/SKILL.md · 按指定仓库和日期,从本人 Git 提交生成每日工作总结。适用于日报与按日期汇总已提交工作。
git:20261018.4caf5d8 · audit A · 12 stars
delivery-context SKILL.md skill
nangongwentian-fe/jay-skills · skills/delivery-context/SKILL.md · Calibrate deliverables to the author's role, actual audience, intended use and acceptance criteria before creating or…
git:20261101.0b2a671 · audit A · 12 stars
dts-docs SKILL.md skill
nangongwentian-fe/jay-skills · skills/dts-docs/SKILL.md · 使用飞渡科技 DTS 产品进行开发、配置、操作或排障时,识别产品和版本并查询匹配的官方文档。适用于 DTS Cloud、CloudMaster、NodeService、Explorer、Engine、JavaScript SDK,以及…
git:20261029.0b1d958 · audit A · 12 stars
find-docs SKILL.md skill
nangongwentian-fe/jay-skills · skills/find-docs/SKILL.md · Look up current library, API and CLI syntax, configuration or version-specific behavior with Context7. Use for…
git:20261018.4caf5d8 · audit A · 12 stars
finish-cleanly SKILL.md skill
nangongwentian-fe/jay-skills · skills/finish-cleanly/SKILL.md · 在任务完成、准备最终交付或用户要求收尾时,核实最终成果并自动清理本任务已无用途的临时文件及重复交付副本。默认只保留最终成果,不反复询问清理许可;保护用户文件、依赖、必要证据及回滚资料。适用于产生本地过程文件的任务收尾,不用于全盘清理或每次中…
git:20261024.480cfc7 · audit A · 12 stars
git-topic-commit-push SKILL.md skill
nangongwentian-fe/jay-skills · skills/git-topic-commit-push/SKILL.md · Group authorized Git changes into coherent commits and push when requested. Use for topical commit or commit-and-push…
git:20261018.4caf5d8 · audit A · 12 stars
goal-first SKILL.md skill
nangongwentian-fe/jay-skills · skills/goal-first/SKILL.md · Understand the user's intended outcome, independently assess the proposed approach, and proactively find better ways to…
git:20261030.252c74d · audit A · 12 stars

Every file in nangongwentian-fe/jay-skills

Browse by kind, by grade A, or by owner.