Restructure an existing project into the standard directory/file blueprint with backups.
/plugin marketplace add syfyufei/adrian-marketplace/plugin install project-management@LLM-Research-MarketplaceUpgrade an existing project to the canonical layout while preserving data by creating a timestamped backup and normalizing directories.
root (project path), backup (default true), remove_nonstandard (default true), and force flags.ls "$root"; abort with actionable error if missing.../config/config.json -> standard_structure.if [ "$backup" = "true" ]; then
ts=$(date +%Y%m%d_%H%M%S)
backup_dir="$(dirname "$root")/$(basename "$root")_backup_$ts"
cp -R "$root" "$backup_dir"
fi
Report backup path.mkdir -p "$root/$dir" while tracking which ones were added..git, .claude*)..py/.ipynb, suggest moving into codes/.*.png, *.svg, *.pdf), suggest paper/figures/.
Confirm before moving unless force=true.if [ "$remove_nonstandard" = "true" ]; then
# list directories not in required set + allowed hidden ones
fi
Always log deletions; skip if uncertain..gitignore, project.yml, .project-config.json using update_existing=true semantics (overwrite while keeping backups). Mention fields updated (e.g., restructure date).Restructured ~/projects/ablation-study
- Backup: ~/projects/ablation-study_backup_20250214_103255
- Created dirs: paper/manuscripts, pre/poster
- Moved scripts -> codes/, PNGs -> paper/figures/
- Removed non-standard dir: old-notes/
Templates refreshed with restructure date 2025-02-14.
Next: run /project-management:validate to confirm compliance.