version-backup
Skill0 starsChanged 36 days agoMITView on GitHub
在 .cursor/backups/ 下创建时间戳目录,复制受影响的文件。
In this repository11 other files it gives its agents.
- .cursor/rules/00-workflow-entry.mdCursor rule
- .cursor/rules/01-first-principles.mdCursor rule
- .cursor/rules/02-ask-before-act.mdCursor rule
- .cursor/rules/03-goal-alignment.mdCursor rule
- .cursor/rules/04-changelog.mdCursor rule
- .cursor/rules/05-must-complete-mode.mdCursor rule
- .cursor/rules/06-topic-tracing.mdCursor rule
- .cursor/rules/07-dialogue-execute-mode.mdCursor rule
- project-indexSkill
- project-surveySkill
- tts-notifySkill
The file
Files
历史版本备份
触发条件
- 执行重大重构前
- 删除文件前
- 修改核心配置前
- 用户请求"备份当前状态"时
执行流程
第一步:创建快照
python scripts/backup.py snapshot [描述]在 .cursor/backups/ 下创建时间戳目录,复制受影响的文件。
第二步:记录变更日志
追加到 .cursor/backups/changelog.md:
## [timestamp] - [描述]
- 备份文件:[列表]
- 触发原因:[重构/删除/配置变更]
- 操作者:agent第三步:播报
已备份 [N] 个文件到 backups/[timestamp]。备份策略
- 只备份即将被修改/删除的文件(增量备份)
- 备份保留最近 20 个快照
- 超过 20 个时自动清理最旧的
恢复方式
python scripts/backup.py restore [timestamp]目录结构
.cursor/backups/
├── changelog.md
├── 2026-01-01_143000_重构路由/
│ ├── src/routes/index.ts
│ └── src/config.yaml
└── 2026-01-02_091500_删除旧模块/
└── src/legacy/Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

