loopx-change-quality
它能做什么
该技能指导在代码改动即将合并之前,对其进行质量检查,适用于使用 LoopX 目标的项目。适合希望有明确记录证明最终改动已被审查的开发者。
适用场景
- ✓当 LoopX 目标启用了改动质量检查,并且某个改动即将合并时。
- ✓当代码改动需要针对其最终版本的质量回执时。
- ✓当已有的质量回执需要为最终改动进行修正时。
技能链接
https://github.com/loopx-project/loopx/blob/main/skills/loopx-change-quality/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我合并这个 LoopX 目标的代码改动之前,请检查最终版本并记录质量结果。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能让智能体准备一组确切的改动文件,只审查该范围,遵循仓库自己的测试和检查,并在记录回执之前允许一次安全的修复。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
LoopX Change Quality
Use this skill only when the selected goal's
change_quality_qualification.enabled policy is true. LoopX owns the canonical
source but does not install it globally. Install a managed copy in a connected
project for the relevant host:
loopx project-skill install \
--project . \
--skill loopx-change-quality \
--surface codex \
--execute
Use --surface claude-code or --surface opencode for those hosts. Skill
discovery does not activate the capability; product behavior remains
default-off until goal policy enables it.
The CLI is the contract authority. This skill supplies a host-neutral review workflow. Repository instructions, tests, linters, type checkers, and security checks remain the project's quality oracles.
Prepare The Exact Scope
From the repository worktree, run:
loopx --format json change-quality prepare \
--goal-id <goal-id> \
--repo-path . \
--base-ref origin/main
Stop when the packet says disabled or no_changes. When it says
review_required, review only the files and exact fingerprint in the packet.
Read repository-local instructions before judging the change.
Run loopx project-skill status --project . --skill loopx-change-quality when
the host depends on skill discovery. If the managed copy is absent or stale,
preview an explicit project install; do not fall back to a global copy.
Review Rules
Simplify First
Spend the review budget on simplification before broad quality analysis:
- Reuse an established helper or durable repository rule instead of copying behavior or knowledge.
- Remove redundant state, parameters, branches, indirection, and speculative abstraction while preserving behavior.
- Challenge a private helper or wrapper when it is only one to three lines, has at most two production callers, and owns no independent domain invariant, effect, or error boundary.
- Prefer the smallest coherent edit that leaves ownership and intent clearer. Do not create churn when the current shape is already direct and cohesive.
Simplification must preserve decision meaning, including agent-consumed prose. Compare ordering, evidence provenance, modality, qualifiers, continuation and stop conditions before shortening instructions. Unchanged fields and green size tests are insufficient. Follow the repository's budget decision guide; prefer an evidence-backed regression-limit increase when compaction loses useful meaning. Never treat a test ceiling as frozen authority or infer a semantic change is authorized by a size target. Keep this judgment in the existing reuse/simplification and validation evidence rather than a separate receipt.
Write one evidence-backed reuse conclusion and one evidence-backed
simplification conclusion. Do not emit a row for every remaining lens.
Those dimensions are guardrail categories for sparse risks[]: add an item
only when the changed surface, repository instructions, a native validator, or
the proposed simplification raises a concrete risk. LoopX derives each
guardrail's status from risks[] and validation[].
The available review lenses are:
- reuse: established helpers and durable knowledge are reused instead of duplicated;
- type/API boundary: types, schemas, compatibility windows, and caller contracts remain explicit and coherent;
- configuration: configuration stays single-sourced, validated, and free of hidden mode coupling;
- runtime ownership: lifecycle, concurrency, state, and side effects live in the correct boundary;
- quality/simplification: unnecessary indirection, branching, duplication, and speculative abstraction are removed or explicitly justified;
- efficiency: hot paths, repeated work, memory growth, and unbounded loops are considered;
- error/supervision: failures remain observable and actionable without silent fallback or blanket exception handling;
- test/validation: tests and repository-native validators prove intended semantics and important negative paths;
- documentation/comments: names, comments, and docs describe current contracts without stale or duplicated narration;
- security/release: security, privacy, permissions, migrations, and release compatibility are handled at changed boundaries.
The packet projects path-only references to applicable repository instructions, ownership files, build manifests, language hints, and changed surface roots. It also projects a provider-neut
常见问题
这个功能默认开启吗?
不是。只有在目标的策略中开启后,才会运行检查。
它能批准我的合并吗?
不能。该技能表示它从不授予合并或仓库权限。
它会取代我的测试吗?
不会。你项目自己的测试和代码检查仍然是质量检查,本技能与它们一同工作。
详情
作者的原始描述
Qualify the exact final diff for a LoopX-managed goal. Use when goal policy enables change_quality_qualification, before a non-trivial delivery or merge, and when producing or repairing an exact-scope quality receipt. The workflow is language-neutral, permits at most one policy-authorized safe-fix pass, and never grants merge or repository authority.
repo: loopx-project/loopx
热度
- GitHub 星标
- 6.5k
- 排名
- #13872
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
loopx
6.5k教你的智能体设置并运行 LoopX,这是一个本地工具,可在多次聊天会话之间持续跟踪长期目标、任务和证据。
loopx-doc-registry
6.5k教你的智能体记录并索引持久的项目材料,例如设计文档和研究笔记,使未来的智能体能够找到它们。
loopx-material
6.5k指导你的智能体管理项目的已存储研究材料,包括盘点、在各阶段之间移动条目、排序,以及经所有者批准的更改。
loopx-performance-diagnosis
6.5k教你的智能体通过受控测量和性能分析工具,找出程序变慢或占用过多 CPU、内存或磁盘的原因。