edit-code

Modify code files with backups, inline notes, and user approval.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/haowang020110/my_codex_skills --skill edit-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: edit-code
Source: https://github.com/haowang020110/my_codex_skills/tree/main/edit-code
Command: npx skills add https://github.com/haowang020110/my_codex_skills --skill edit-code

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a secure and traceable method for modifying code, ensuring that changes are backed up, annotated, and reviewed before being finalized.

Core Features & Use Cases

  • Mandatory Backups: Automatically creates a backup of any file before editing.
  • Inline Change Notes: Requires all modifications to be accompanied by clear, language-appropriate comments.
  • User Review and Approval: Presents changes for explicit user approval before finalizing.
  • Use Case: When asked to fix a bug in a critical configuration file, this Skill ensures a rollback point exists and the fix is clearly documented and approved.

Quick Start

Use the edit-code skill to modify the file 'src/utils.py' to fix the bug.

Frequently Asked Questions about edit-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit code with an automatic backup and audit trail?

Code editing with an automatic backup and audit trail requires a workflow that creates mandatory file backups, adds inline change notes, and requests user approval before applying modifications.

What is the best way to safely apply bug fixes to critical configuration files?

Safely applying bug fixes to critical configuration files requires creating an automatic backup of the file, annotating changes with inline comments, and submitting the modifications for explicit user review and approval.

How does the mandatory backup process work during file modification?

The mandatory backup process automatically generates a rollback point of the original file before any code editing begins, ensuring traceability and safety if modifications need to be reverted.

Can I implement new features with inline change notes and user review?

Yes, implementing new features with inline change notes and user review is supported by workflows that require all code modifications to be accompanied by language-appropriate comments and explicit approval before finalization.

Do I need a separate version control system for code review and traceability?

A separate version control system is not strictly required for code review and traceability if your editing workflow automatically creates file backups, applies inline annotations, and enforces an approval process for modifications.

When should I not use an approval-based code editing workflow?

An approval-based code editing workflow should not be used for rapid prototyping or trivial updates where the overhead of mandatory backups, inline annotations, and explicit user review outweighs the need for traceability.