Agent skill

preserve-existing-code-rule

This rule instructs the AI to preserve existing code and functionalities, avoiding unnecessary removal of code.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/preserve-existing-code-rule

SKILL.md

Preserve Existing Code Rule Skill

  • Don't remove unrelated code or functionalities. Pay attention to preserving existing structures.

Memory Protocol (MANDATORY)

Before starting:

bash
cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Didn't find tool you were looking for?

Be as detailed as possible for better results