~clean

GitHub

执行~clean命令,扫描并归档已完成方案包,清理临时文件,更新状态索引及摘要。

skills/commands/clean/SKILL.md hellowind777/helloagents

Trigger Scenarios

需要归档已完成方案 清理项目临时文件

Install

npx skills add hellowind777/helloagents --skill ~clean -g -y
More Options

Non-standard path

npx skills add https://github.com/hellowind777/helloagents/tree/main/skills/commands/clean -g -y

Use without installing

npx skills use hellowind777/helloagents@~clean

指定 Agent (Claude Code)

npx skills add hellowind777/helloagents --skill ~clean -a claude-code -g -y

安装 repo 全部 skill

npx skills add hellowind777/helloagents --all -g -y

预览 repo 内 skill

npx skills add hellowind777/helloagents --list

SKILL.md

Frontmatter
{
    "name": "~clean",
    "policy": {
        "allow_implicit_invocation": false
    },
    "description": "清理临时文件、缓存和归档已完成方案包(~clean 命令)"
}

Trigger: ~clean

执行 ~clean 时,方案包归档、临时文件清理和状态文件更新范围按当前已加载的 HelloAGENTS 规则执行;本命令只负责判定哪些方案包可以清理,以及输出清理摘要。 .helloagents/ 在本 skill 中统一按项目级存储路径理解:状态文件只使用 state_path,临时运行态文件保持项目本地;若 project_store_mode=repo-sharedplans/archive/ 按当前上下文中已注入的项目知识/方案目录解析。

流程

  1. 扫描 .helloagents/plans/ 下的方案包(按当前项目存储模式解析;project_store_mode=repo-shared 时使用共享知识/方案目录)
  2. 判定完成状态:优先以 tasks.md 中所有任务已标记 [√] 为准;只有任务清单无法判断时,才读取 state_path 中与当前方案一致的“主线目标”+“正在做什么”作为辅助信息
  3. 已完成的方案包 → 按 HelloAGENTS 归档规则移入 .helloagents/archive/YYYY-MM/(按当前项目存储模式解析),并同步更新 .helloagents/archive/_index.md
  4. 清理 HelloAGENTS 临时文件
  5. 按 HelloAGENTS 流程状态规则更新 state_path;若当前状态指向已归档方案包,则清空对应方案路径
  6. 输出清理摘要(归档了几个方案包、清理了哪些文件)

不删除

  • 除按流程状态规则必须重写的 state_path 外,不删除流程状态文件
  • 不删除知识文件或项目级设计契约

Version History

  • 79c0b48 Current 2026-08-20 08:25

Same Skill Collection

skills/commands/auto/SKILL.md
skills/commands/loop/SKILL.md
skills/hello-api/SKILL.md
skills/hello-data/SKILL.md
skills/hello-errors/SKILL.md
skills/hello-perf/SKILL.md
skills/hello-security/SKILL.md
skills/hello-test/SKILL.md
skills/hello-ui/SKILL.md
skills/hello-write/SKILL.md
skills/_meta/SKILL.md
skills/commands/ask/SKILL.md
skills/commands/commit/SKILL.md
skills/commands/help/SKILL.md
skills/commands/init/SKILL.md
skills/commands/plan/SKILL.md
skills/commands/prd/SKILL.md
skills/commands/qa/SKILL.md
skills/commands/test/SKILL.md
skills/hello-arch/SKILL.md
skills/hello-debug/SKILL.md
skills/hello-reflect/SKILL.md
skills/hello-subagent/SKILL.md
skills/helloagents/SKILL.md
skills/qa-review/SKILL.md

Metadata

Files
0
Version
79c0b48
Hash
10bf7798
Indexed
2026-08-20 08:25

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 04:27
浙ICP备14020137号-1 $방문자$