prompt-repetition
82提升轻量级模型准确率
当问题出现在重要信息之后时,轻量级模型可能会遗漏上下文。此技能会在带有防护规则的情况下重复合适的提示词,以提升所选任务的准确率。
安全地重构代码
复杂代码会拖慢变更并提高回归风险。此技能通过测试、提取模式和验证步骤,指导保持行为不变的重构。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "code-refactoring" from https://skillstore.io/skills/supercent-io-code-refactoring.md and its manifest at https://skillstore.io/api/skills/supercent-io-code-refactoring/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“code-refactoring”。 一个很长的订单处理函数混合了验证、定价、库存检查和持久化。
预期结果:
正在使用“code-refactoring”。 两个用户查询函数重复了活跃用户筛选条件和选定字段。
预期结果:
正在使用“code-refactoring”。 一个支付处理器针对多种支付方式使用了很长的条件判断。
预期结果:
The static findings are false positives caused by Markdown code fences, TypeScript examples, reference links, and relative documentation links in SKILL.md. No prompt injection, data exfiltration intent, hidden execution logic, or unsafe filesystem behavior was found. The skill is a documentation-only refactoring guide with normal test and lint validation examples.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/supercent-io-code-refactoring/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/supercent-io-code-refactoring?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/supercent-io-code-refactoring?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/supercent-io-code-refactoring/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/supercent-io-code-refactoring.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>supercent-io. (2026). code-refactoring security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/supercent-io-code-refactoring/audits/5@techreport{supercent-io-supercent-io-code-refactoring-2026,
author = {supercent-io},
title = {code-refactoring security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/supercent-io-code-refactoring/audits/5},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "code-refactoring security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "supercent-io"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/supercent-io-code-refactoring/audits/5"
identifiers:
- type: other
value: "skillstore:supercent-io-code-refactoring:audit:5"
description: "Skillstore immutable audit report identifier"
在保持输入、输出和副作用不变的情况下,将长函数拆分为命名方法。
在向现有模块添加新行为之前,减少重复并明确边界。
检查计划中的重构是否包含测试、行为验证、风险说明和后续工作。
审查所选代码。识别重复、过长方法和简单的 Extract Method 机会。保持行为不变。
为重构此模块创建清单。包括要运行的测试、要保持的行为以及需要关注的风险。
分析这段代码并提出分步重构计划。分离职责、移除重复,并定义每一步后的验证方式。
为此子系统设计增量式重构策略。包括依赖边界、测试覆盖缺口、回滚点和审查检查点。
作者
supercent-io许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
f93e9bb0daca99badb6a7e574b97737155d57cb3
维护新鲜度
2026/7/18
使用量
35 次下载 · 89 次浏览
文件结构
📄 SKILL.md
提升轻量级模型准确率
当问题出现在重要信息之后时,轻量级模型可能会遗漏上下文。此技能会在带有防护规则的情况下重复合适的提示词,以提升所选任务的准确率。
设计更好的 REST 和 GraphQL API
API 团队需要在实现开始之前建立一致的契约。此技能可指导资源设计、请求格式、错误、版本控制和文档编写。
创建用户指南和教程
文档团队需要清晰的产品帮助内容,让用户无需支持即可按步骤操作。此技能可为最终用户构建入门指南、操作方法文章、教程和 FAQ。
系统化调试代码问题
当症状掩盖真正原因时,Bug 会浪费工程时间。此技能指导结构化复现、隔离、根因分析、修复和回归预防。
规划敏捷任务和用户故事
团队经常收到宽泛的功能请求,却缺少清晰的任务、优先级或验收标准。此技能会将功能想法转化为用户故事、冲刺待办事项、依赖项和完成定义检查。
开展更好的 Sprint 回顾会议
Sprint 团队需要结构化反思,以将问题转化为切实改进。此技能会引导 Claude、Codex 或 Claude Code 完成回顾会议格式、行动项和跟进实践。
分析代码模式和架构
由 C0ntr0lledCha0s
大型代码库中隐藏着重复结构和不清晰的架构选择。此技能可发现模式、解释其意图,并突出实际的重构机会。
通过红-绿-重构指导 TDD
由 mattpocock
当团队测试内部实现或预先编写过多测试时,测试优先的工作方式往往会变得脆弱。此 skill 引导 Codex、Claude 和 Claude Code 完成以行为为重点的红-绿-重构循环。
按 AST 结构搜索代码
由 0xDarkMatter
文本搜索会遗漏语义关系并产生大量噪声匹配。此技能使用 ast-grep 模式定位代码结构,并为针对性重构做好准备。
构建可靠的测试自动化
由 89jobrien
薄弱的测试会拖慢发布并掩盖回归问题。此技能可指导测试策略、TDD、自动化、覆盖率审查以及 Playwright Web 检查。
使用结构化质量检查审查代码
由 alirezarezvani
代码审查可能会漏掉质量、安全性和可维护性问题。此技能通过脚本、检查清单和报告生成来指导结构化审查。
更快查找代码上下文
由 89jobrien
开发者常常花时间追踪代码为何存在以及哪些内容依赖它。此技能会提示 Claude、Codex 或 Claude Code 在进行更改前收集相关图谱知识、调用方、imports 和测试。