Install
openclaw skills install crucible-forgeSystematic workspace reorganization for AI agent users. Scans workspace, builds safety-first reorganization plan, executes with zero data loss, and verifies...
openclaw skills install crucible-forgeSystematic workspace reorganization for AI agent users. Scans workspace, builds safety-first reorganization plan, executes with zero data loss, and verifies everything works afterward.
Systematic workspace reorganization for AI agent users.
Forge scans your AI agent's workspace, builds a safety-first reorganization plan, executes it with zero data loss, and verifies everything works afterward. Built from a battle-tested methodology used on production AI workspaces.
AI agent workspaces accumulate chaos fast. Files pile up at root. Memory files reference moved documents. Cron jobs point to old paths. Config files drift. One bad reorganization can brick your agent's memory, break running processes, or corrupt critical state files.
Manual cleanup is dangerous. Automated cleanup without safeguards is worse.
forge_scan.py)forge_plan.py)forge_audit.py)# 1. Configure your workspace
cp config_example.py forge_config.py
# Edit forge_config.py with your workspace path, protected files, directory template
# 2. Scan your workspace
python3 forge_scan.py --config forge_config.py
# 3. Generate a reorganization plan
python3 forge_plan.py --config forge_config.py --scan-report scan_report.json
# 4. Review the plan (ALWAYS review before executing)
cat reorg_plan.json
# 5. Run pre-move audit
python3 forge_audit.py --config forge_config.py --phase pre
# 6. Execute the plan (you do this manually or with your own script)
# Forge generates the plan. YOU execute it. This is deliberate.
# 7. Run post-move audit
python3 forge_audit.py --config forge_config.py --phase post --manifest pre_manifest.txt
No file is ever deleted during reorganization. Files are moved, never removed. Even files that appear to be duplicates are preserved until you explicitly confirm deletion.
When a file moves, every reference to that file must update in the same logical step. Forge tracks these as paired operations: move file + update references = one unit. If the reference update fails, the move should be rolled back.
Forge doesn't dictate your directory structure. You configure the template. Forge handles the mechanics of getting there safely.
| File | Purpose |
|---|---|
forge_scan.py | Workspace scanner and reference mapper |
forge_plan.py | Reorganization planner with safety rules |
forge_audit.py | Pre/post audit verification |
config_example.py | Configuration template |
LIMITATIONS.md | What Forge doesn't do |
LICENSE | MIT License |
See config_example.py for the full configuration reference. Key settings:
WORKSPACE_ROOT — Path to your workspacePROTECTED_FILES — Files that must never be modified or movedPROTECTED_DIRS — Directories that must never be touchedDIRECTORY_TEMPLATE — Your desired directory structureBACKUP_DIR — Where backups are storedARCHIVE_DIR — Where "deleted" files actually goREADME_TEMPLATE — Content template for per-directory _README.md filesMIT — See LICENSE file.
This skill loads configuration from a user-provided Python file using importlib.exec_module. This executes the config file as Python code.
.py extension, and size (1MB cap) before executionPROCESS_CHECK_COMMANDS in your config file runs subprocess calls. Only include trusted, pre-validated commands.
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.
DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.
| 🐛 Bug Reports | TheShadowyRose@proton.me |
| ☕ Ko-fi | ko-fi.com/theshadowrose |
| 🛒 Gumroad | shadowyrose.gumroad.com |
| @TheShadowyRose | |
| 🐙 GitHub | github.com/TheShadowRose |
| 🧠 PromptBase | promptbase.com/profile/shadowrose |
Built with OpenClaw — thank you for making this possible.
🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr