360 Secure SkillHub
360 安全技能中心

Workspace Maintenance

通过 dry-run 审计脚本、文档索引刷新和归档分桶,对工作区 markdown 文档做非破坏性维护:生成删除候选供人工复核,移动陈旧快照与进度文档并保留移动清单,更新活动任务状态,不自动删除文件。

houseofjuici
houseofjuici
热度 79.37
最近更新 2026-05-11 17:26:25
分类:效率依赖:读写文件 / 代码执行应用场景:工作流 / 任务管理 / 笔记整理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add workspace-maintenance
Metadata
name
workspace-maintenance
description
Maintain workspace documentation hygiene and discoverability. Use when organizing markdown sprawl, updating doc indexes, archiving stale progress/status snapshots, generating dry-run cleanup candidate lists, and keeping memory/task control files aligned without deleting files automatically.

Workspace Maintenance

Run a non-destructive maintenance cycle that keeps docs findable and the root clean.

Execute Maintenance Cycle

  1. Run dry-run retention audit script:
    • scripts/archive-retention-audit.sh
  2. Regenerate or refresh docs index if categories changed.
  3. Ensure active control files remain in root (do not move them).
  4. Move stale snapshot/status/progress docs to archive buckets.
  5. Update active task tracker with maintenance completion timestamp.
  6. Produce human review list for deletion candidates (never delete automatically).

Constraints

  • Never delete files automatically.
  • Never move identity/control files out of root.
  • Keep changes reversible (moves + manifests).
  • Always produce a dry-run candidate report.

Archive Buckets

  • docs/archive/meridian-snapshots/
  • docs/archive/general-progress/
  • docs/archive/session-hygiene/

Required Outputs

  • Updated dry-run candidates file in archive
  • Updated active task status entry
  • Move manifest for any batch relocation
  • Brief completion summary

Use Bundled Script

  • scripts/archive-retention-audit.sh generates current dry-run deletion candidates.