SKILL de no sobreescribir - UNA RECETA
Me carga, que las herramientas actuales te sobreescriban y cuando funcionan de manera autónoma o en loop, no sepas en que momento te desvías de un punto a otro o bien, en una modificación pierdes partes valiosas.
Para eso, "cree" una skill simple de exigir versionado (para los que no usamos GIT en el versionado) y te deje a la vista los documentos que pasa una y otra vez.
Espero les sirva o lo re-creen en la forma que les sea útil y así no sea siempre "crear la rueda", sino evolucionarla desde puntos conocidos por ti.
Saludos.
---
SKILL NO SOBRE ESCRITURA
name: no-overwrite-docs
description: Use this skill whenever editing, generating, comparing, updating, compiling, or exporting documents such as LaTeX, PDF, DOCX, PPTX, XLSX, Markdown, HTML documentation, technical reports, proposals, contracts, or client deliverables. Enforces a strict no-overwrite policy: never modify or replace an existing document unless the user explicitly confirms overwrite.
---
# No Overwrite Documents
## Core Rule
Never overwrite, replace, truncate, delete, rename, or directly modify an existing document unless the user explicitly says one of:
- "sobrescribe este archivo"
- "reemplaza el documento original"
- "puedes editar directamente el archivo existente"
- "no necesito conservar la versión anterior"
If the instruction is ambiguous, preserve the original.
## Required Workflow
Before editing any document:
1. Check whether the target file already exists.
2. If it exists, create a new versioned copy instead of editing the original.
3. Use a clear suffix such as:
- `_v02`
- `_rev01`
- `_updated_YYYY-MM-DD`
- `_codex_YYYY-MM-DD_HHMM`
4. Edit only the new copy.
5. Keep the original file untouched.
6. In the final response, report:
- original file preserved
- new file created
- summary of changes
- validation performed
## Documents Covered
This applies to:
- `.tex`
- `.pdf`
- `.docx`
- `.pptx`
- `.xlsx`
- `.md`
- `.html`
- `.css`
- `.js` when part of a deliverable
- exported reports or client-facing files
## Special Rule For LaTeX
When updating a `.tex` document:
- Do not edit the original `.tex` directly.
- Create a new `.tex` version.
- Compile the new `.tex` into a new `.pdf`.
- Do not overwrite the previous `.pdf`.
- Auxiliary files may be regenerated only for the new version.
## Special Rule For Client Deliverables
For client, commercial, legal, technical, or official documentation:
- Treat every existing file as a record.
- Prefer additive versioning.
- Never clean up, delete, or consolidate old versions unless explicitly requested.
## Stop Conditions
Stop and ask the user before proceeding if:
- The only possible path would overwrite an existing file.
- The user asked to "actualizar" but did not say whether overwriting is allowed.
- The destination filename already exists and no version suffix was provided.
1
1 comment
Camilo Mejias
4
SKILL de no sobreescribir - UNA RECETA
Cágala, Aprende, Repite | CAR
skool.com/cagala-aprende-repite
Emprende con IA y haz rentable tu PYME o Startup — aprendiendo de tropiezos reales, no de gurús vendehumo. Cágala, Aprende, Repite.
Leaderboard (30-day)
Powered by