计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
lov-organize-storage【效率与协作】按项目、用途与生命周期盘点整块存储盘,规划同卷安全重命名与迁移,输出映射、回滚记录和不可删除门禁。Use when a drive or archive folder is messy or needs project-based organization.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: lov-organize-storage description: 按项目、用途与生命周期盘点整块存储盘,规划同卷安全重命名与迁移,输出映射、回滚记录和不可删除门禁。Use when a drive or archive folder is messy or needs project-based organization. license: MIT compatibility: "Python 3.8+; macOS/Linux; same-volume rename; no external service required." depends_on:
把一整块存储盘或大型归档目录从「按类型堆放」改成「按项目分类」:先只读盘点,再给出最小迁移映射,最后用同卷 rename 执行并留下映射、日志和回滚脚本。默认不删除任何文件。
lov-better-project-structure。lov-safe-dedupe;本 Skill 只做只读重复信号,不执行删除。lov-migrate-camera-media。lov-clean-mac。lov-rename-project。inventory 与 plan 不修改目标盘。apply --confirm。.Trashes、.Spotlight-V100、.fseventsd、$RECYCLE.BIN、System Volume Information。Every generated Skill is connected to the shared user-profile/v1 contract in
skill.yaml. Read the shared user, brand, workspace, preferences, and this
Skill's skills.lov-organize-storage namespace at the start of every run. Keep
the source portable: resolved personal values belong in the shared profile,
never here.
When the user directly states a durable preference or workspace fact, persist
it through scripts/profile_store.py and report the saved profile path. Put
Skill-specific values under records.<field>; use brand.<field> or
user.<field> for shared values. Do not persist inferred secrets, credentials,
or private paths.
See references/user-profile.md for the complete contract.
Read references/skill-composition.md before deciding whether to invoke or
extend any adjacent capability. The record distinguishes optional upstream and
downstream handoffs from embedded Kit modules. This Skill stays a Single Skill:
the inventory, taxonomy, plan, apply, and verify stages share one safety model
and one migration log.
You MUST follow these steps in order.
SKILL_DIR if the environment provides it.scripts/storage_organizer.py, references/storage-taxonomy.md,
references/safety-gates.md, and references/skill-composition.md exist
before work. If one is missing, stop and name the expected relative path.context.profile with the precedence: current request, project
context, Skill-specific records, shared preferences, shared user/brand
profile, then safe defaults.export SKILL_DIR="/path/to/lov-organize-storage"
python3 "$SKILL_DIR/scripts/profile_store.py" read \
--skill-id lov-organize-storage --pretty
.Trashes during inventory; record its size and
contents count only.name 1.ext, name 2.ext) as a read-only
signal. Deduplication and deletion belong to a separate capability.python3 "$SKILL_DIR/scripts/storage_organizer.py" inventory \
--root "/Volumes/Example" \
--sizes \
--out /tmp/storage-inventory.json
Read references/storage-taxonomy.md. Use this order:
01_项目/.02_个人归档/.03_媒体库/.04_应用数据/.99_管理/.Preserve existing internal conventions. In particular, camera ingest
directories keep 原始素材/、处理素材/、转存校验/ where they already exist.
Date-sliced snapshots are not duplicates and must not be merged merely to make
the tree shallower.
python3 "$SKILL_DIR/scripts/storage_organizer.py" plan \
--root "/Volumes/Example" \
--map /tmp/storage-move-map.json \
--out /tmp/storage-move-plan.json
Read references/safety-gates.md and resolve every hard block before asking for
confirmation. A plan with warnings is not approval to execute.
Report at minimum:
Only an explicit user confirmation advances to apply. If the user changes the scope, rerun the plan instead of editing the old plan in place.
python3 "$SKILL_DIR/scripts/storage_organizer.py" apply \
--plan /tmp/storage-move-plan.json \
--confirm \
--accept-warnings \
--log-dir "/Volumes/Example/99_管理/迁移记录_2026-09-10"
The apply command:
._* sidecars when the filesystem does not move them
automatically;mapping.json and rollback.sh before reporting success;python3 "$SKILL_DIR/scripts/storage_organizer.py" verify \
--plan /tmp/storage-move-plan.json \
--log-dir "/Volumes/Example/99_管理/迁移记录_2026-09-10"
Verify every destination exists, every source is gone, and sidecars are paired. Compare pre/post top-level totals. Report the new tree, old → new mapping, rollback path, untouched system directories, and every item left for a separate decision.
lov-safe-dedupe after a full hash and quarantine.lov-clean-mac.lov-migrate-camera-media.lov-better-project-structure.lov-branding-consistency review to the public copy only.scripts/validate_skill.py.du is optional and used only when --sizes
is requested.lov-branding-consistency is the only optional sibling review for public
report copy; it is not needed for migration mechanics.