Cfn edit safety

From masharratt/claude-flow-novice · View interactive version

Cfn edit safety is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Pre-edit backup + post-edit validation for safe file edits. Use to capture file state before edits, validate changes after edits, revert files to prior state, or ensure edit safety via auto backup/validation hooks.

How to use this skill

Skill file

Edit Safety Skill (Mega-Skill)

Version: 1.0.0

Purpose: Pre-edit backup and post-edit validation

Status: Production

Consolidates: cfn-hook-pipeline, pre-edit-backup

Confidence: 8.5/10 (mandatory paired workflow in CLAUDE.md)


Overview

This mega-skill provides complete edit safety:


Directory Structure

edit-safety/
├── SKILL.md
├── lib/
│   ├── backup/           # From pre-edit-backup
│   └── hooks/            # From cfn-hook-pipeline
└── cli/

Workflow

  1. Pre-edit: edit-safety/lib/backup/ captures file state
  2. Edit occurs
  3. Post-edit: edit-safety/lib/hooks/ validates changes
  4. If needed: Revert via backup

Migration Paths

| Old Path | New Path |

|----------|----------|

| pre-edit-backup/ | edit-safety/lib/backup/ |

| cfn-hook-pipeline/ | edit-safety/lib/hooks/ |


Version History

1.0.0 (2025-12-02)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.