conservative-code-edits
其他 活跃维护

conservative-code-edits

addxing/conservative-code-edits

提供面向各类AI编程代理的保守代码修改Skill,可约束代理仅在已有项目内开展最小必要改动,避免无关重构、保护公共基础代码,支持深色模式项目优先调用动态颜色资源,保障改动安全合规。

0
Stars 标星
1
Forks 分支
0
Watchers 关注
2
Open Issues
JavaScript
主要语言
Apache-2.0
开源协议
17 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:addxing/conservative-code-edits
git clone https://github.com/addxing/conservative-code-edits.git
git clone git@github.com:addxing/conservative-code-edits.git
README.md main

Conservative Code Edits

skills.sh

An agent skill for keeping code changes small, scoped, and project-safe. Works with any AI coding tool that supports skills.

Install

npx skills add addxing/conservative-code-edits

DeepSeek Harness

This repo follows the DeepSeek Harness (DSH) Skill format. Clone it into a skills directory and it will be auto-discovered:

# User-level install (available in all projects)
git clone https://github.com/addxing/conservative-code-edits ~/.dsh/skills/conservative-code-edits

# Project-level install (current project only)
git clone https://github.com/addxing/conservative-code-edits .dsh/skills/conservative-code-edits

DSH hot-reloads the skills directory after cloning; the skill becomes available in new sessions.

Or install it as an official bundle plugin in one line (requires pnpm; restart the web app afterwards):

dsh plugin --profile web add "github:addxing/conservative-code-edits#main"

Usage

After installing the skill, ask your AI coding tool to use it when changing code in an existing project:

Use $conservative-code-edits to make this UI change.

You can also rely on automatic triggering when the task involves editing project code, resources, configuration, tests, or documentation.

What It Does

This skill guides an agent to:

  • make the smallest necessary code change
  • preserve existing architecture and implementation style
  • avoid unrelated refactors and formatting churn
  • ask before editing shared foundation code
  • use dynamic color resources when a project supports dark mode

Files

  • SKILL.md - the skill instructions
  • LICENSE.txt - Apache 2.0 license