← 返回
未分类

conservative-code-edits

Apply conservative project coding rules before editing source code. Use when Codex needs to modify code, resources, configuration, tests, or documentation in an existing software project and should keep changes minimal, preserve architecture and style, avoid unrelated refactors, identify risky shared-code edits, and respect dark-mode color adaptation.
在已有项目中以最小代码改动实现新增功能或者修复 Bug,不影响已有功能,严禁任何无关重构
user_6246a812
未分类 community v1.0.1 2 版本 95238.1 Key: 无需
★ 0
Stars
📥 20
下载
💾 0
安装
2
版本
#latest

概述

Conservative Code Edits

Core Rules

  • Make the smallest necessary change that completes the task.
  • Edit only files directly related to the request.
  • Preserve the existing architecture, interaction logic, state flow, module responsibilities, naming style, and implementation patterns by default.
  • Avoid unrelated refactors, formatting churn, optimizations, cleanups, or deletion of pre-existing unrelated code.
  • Prefer simple, readable changes over new abstractions unless the abstraction is clearly required.
  • Check the likely impact area before editing and verify the result after editing whenever practical.

Confirmation Gates

Ask for confirmation before changing architecture, interaction logic, state flow, module responsibilities, or core implementation style. State the reason, impact area, and risk.

Ask for confirmation before editing shared foundation code. Treat these as shared foundation code:

  • base classes
  • common UI components
  • common utilities
  • network layer
  • storage layer
  • routing
  • logging
  • analytics
  • permissions
  • theme infrastructure

Dark Mode

When a project supports dark mode, do not hardcode fixed UI colors for new or changed UI. Use existing dynamic color resources or theme attributes first. If a new color is unavoidable, define both normal and night variants consistently with the project's current resource style.

Priority

Resolve conflicts in this order:

  1. Explicit user request
  2. Project hard rules
  3. Coding principles

版本历史

共 2 个版本

  • v1.0.1 Initial release 当前
    2026-06-03 12:03 安全 安全
  • v1.0.0 Initial release
    2026-06-03 11:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,992
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,156
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,797