lov-refactor-modular SKILL.md skillA
lov-refactor-modular from lovstudio/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add lovstudio/skills/lov-refactor-modular@v1.2.3Pins v1.2.3 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- lovstudio/skills
- Path
skills/refactor-modular/SKILL.md- Versions recorded
- 3
- Latest version
- v1.2.3, committed Sep 25, 2026
- First version recorded
- Sep 7, 2026
- Size
- 3,070 bytes
- Repository stars
- 72
- License
- MIT
按职责拆分长文件并保持公共接口、依赖和行为一致。支持明确输入与结果回读。Use to refactor a large file into.
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
# 模块拆分师 · Module Refactorer 按职责拆分长文件并保持公共接口、依赖和行为一致。 ## Triggers ### Activate when - “按职责拆分长文件并保持公共接口、依赖和行为一致。” - “Refactor a large file into cohesive modules.” ### Do not activate when - 只是查询本 Skill 的说明,或请求与上述结果无关的任务;不执行实际业务操作。 - 用户仅要预览或审查时,不进入修改、提交或发布分支。 ## Execution boundary 自然语言请求即可触发;无需旧 slash 路径、参数插值或指定助手。明确解析当前请求中的 项目、目标文件、选项与输出位置;用当前宿主实际提供的文件、搜索、CLI 和浏览器能力。 项目依赖版本与外部 API 在执行时核实,不能假设示例是现行配置。随包脚本从 Skill 根解析, 业务文件从目标项目根解析。先读当前状态,保护已有未提交内容与其他任务的暂存区。 分析、预览请求保持只读;修改、提交、推送、部署和发布各依当前请求的明确范围执行。 不绕过保护、自动发送消息、强制结束用户进程或抢前台。失败保留可诊断原始错误。 ## Workflow 1. 读取目标文件、调用方、导出接口、状态和副作用,找出真正可分离职责;长度本身不是拆分理由。 2. 提出最少模块及依赖方向,保留项目既有命名约定;纯计划请求只交付结构方案。 3. 逐模块移动实现并更新 import/export,避免桶文件引入循环、初始化顺序变化和共享状态复制。 4. 检查公共 API、异常、异步时序与资源释放,保留必要兼容导出,不将内部函数无谓公开。 5. 运行类型检查与相关行为测试,交付新文件职责及依赖图。 ## Composition 执行前读取 [能力组合](references/skill-composition.md),按明确制品交接相邻能力。 ## Runtime context (shared) 运行前读取本包 `skill.yaml` 与 [Profile 合同](references/user-profile.md)。优先级为当前请求、 项目上下文、本 Skill records、共享 preferences、brand/user Profile、安全默认值。 只读取声明字段;没有专用运行时的宿主可使用 `scripts/profile_store.py` 读取共享 Profile。 配置缺失只问影响结果的一个问题。用户明确要求长期保存的值通过该脚本原子写入, 报告实际路径;不保存推断、凭据或其他任务的资料。
Read the whole file at its exact version.
How to install
mdr add lovstudio/skills/lov-refactor-modular@sha256:c55d2b0878158c93The line at the top of this page pins the label v1.2.3, 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_pqq4almmmqvffple)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Sep 7, 2026 and Sep 25, 2026, about one every 9 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| v1.2.3 latest | 2026-09-25 | 4b67fd1 | 3,070 B | A | view · diff |
| v1.2.1 | 2026-09-07 | a09848e | 3,070 B | A | view · diff |
| v1.2.1 | 2026-09-07 | c122fff | 3,052 B | A | view |
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 (3070 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
lovstudio/skills · 72 stars · license MIT · pushed 2026-11-06 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_pqq4almmmqvffple GET https://markdownregistry.com/api/v1/resolve?ref=lovstudio/skills/lov-refactor-modular GET https://markdownregistry.com/api/v1/blob/c55d2b0878158c931d0ade95229ff1ac84cd94c16d0ac37a95387022a9f55af2
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.