跳到正文
Skillpedia
部署与云(DevOps)280k · #374

orch-change-feature

它能做什么

这个工具用于修改程序中已经能正常工作的功能,让它的行为变成你想要的样子。它会更新测试、修改代码,并审查这些改动。

适用场景

  • ✓当某个现有功能能正常工作,但你希望它做一些新的事情时。
  • ✓当你想调整行为,同时又不破坏已经能正常运行的部分时。
  • ✓当你希望程序“也”做某事,或“改为”做别的事情时。

技能链接

https://github.com/affaan-m/ECC/blob/main/skills/orch-change-feature/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/orch-change-feature/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“把登录功能改成同时接受带有或不带有“.com”的邮箱地址。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会先更新测试,让测试反映你期望的新行为。然后修改代码,使测试通过,从而确保改动按预期生效。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

orch-change-feature

Actor · action · target: orch · change · feature. Thin wrapper over the shared engine in orch-pipeline.

When to Use

  • An existing feature works, but the desired behavior is different ("change", "adjust", "make it also …", "instead of X do Y").
  • Distinguish from siblings:
    • not broken → not orch-fix-defect (no bug to reproduce).
    • not new → not orch-add-feature (the capability already exists).

Operation settings

  • Default size floor: small — most tweaks are a function or two.
  • Phase mask: 0 → (1 only if the new behavior needs research) → light 2 → 4 → 5 → 6.
  • First move (phase 4): update the existing tests to express the new desired behavior, then change the implementation until they pass. Changing the tests first is what separates a tweak from a fix.

How It Works

  1. Run the orch-pipeline engine with the settings above.
  2. Keep the plan light — only standard+ size warrants the full planner pass.
  3. Stop at Gate 1 (plan / changed-test approval) and Gate 2 (pre-commit).
  4. Add security-reviewer if the change touches a security trigger.

Example

orch-change-feature: make nws-poller alert at 2 warnings instead of 3
→ update threshold tests to new spec → change impl to green
→ code-review → commit  [GATE 2: confirm]
常见问题

修改功能和修复 bug 有什么区别?

修复 bug 是针对已经出错、无法正常工作的情况。修改功能则是针对功能本来可以正常工作,但你希望它表现得不同。

这个工具会创建全新的东西吗?

不会,它是修改已经存在的东西。如果要创建全新的东西,你需要使用其他工具。

这里的“测试”是什么意思?

测试是自动检查,用来确认代码是否按照预期运行。修改功能时,测试也需要同步更新,以匹配新的行为。

详情

作者的原始描述

Orchestrate altering an existing, working feature to new desired behavior — update its tests to the new spec, change the implementation to match, review, and gated commit. Use when behavior is not broken but should be different.

repo: affaan-m/ECC

热度

GitHub 星标
280k
排名
#374
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能