Agent Skills: Surgical Patch Workflow

Execute a surgical code patch based on a pre-defined plan.

UncategorizedID: mkalhitti-cloud/universal-or-strategy/patch

Install this agent skill to your local

pnpm dlx add-skill https://github.com/mkalhitti-cloud/universal-or-strategy/tree/HEAD/.claude/skills/patch

Skill Files

Browse the full folder contents for patch.

Download Skill

Loading file tree…

.claude/skills/patch/SKILL.md

Skill Metadata

Name
patch
Description
Execute a surgical code patch based on a pre-defined plan.

Surgical Patch Workflow

Use this skill when implementing a numbered build or a specific mission brief.

1. Analysis

  • Read the patch plan/mission brief thoroughly.
  • Locate target code using grep (NEVER read the entire file if >500 lines).
  • Confirm files and line ranges with the Director before editing.

2. Execution

  • Apply edits one file at a time.
  • Follow the backup convention: cp file.cs file.cs.yyyyMMdd_HHmm.bak.
  • If a bulk operation is needed, write a temporary Python script to handle it safely.

3. Verification

  • Mandatory: Perform a secondary audit immediately after applying the fix.
  • Check callers of modified functions for regressions.
  • Look for state sync issues introduced by the change.

4. Documentation

  • Update the task.md or mission brief status.
  • Provide a concise summary of applied changes in trading terms.

Precision Surgery Protocol Enabled.