housekeeping
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHousekeeping (AGENTS/CLAUDE Architecture)
仓库整理(AGENTS/CLAUDE架构)
Use this skill when work is about organizing or modernizing / context systems.
AGENTS.mdCLAUDE.md当你需要对/上下文系统进行整理或现代化改造时,可使用本skill。
AGENTS.mdCLAUDE.mdOperating rules
操作规则
- Keep root concise: critical guardrails, task router, canonical commands, and links.
AGENTS.md - Prefer scoped instruction files in dense areas (,
apps/frontend,infra, etc.).apps/agent - Move deep or volatile details into , not root
.agents/repo-context/*.AGENTS.md - Curate continuously: deduplicate, resolve contradictions, and remove stale guidance.
- Preserve behavior intent during migrations; change structure first, then tighten wording.
- 保持根目录简洁:仅保留关键约束规则、任务路由、标准命令及链接。
AGENTS.md - 优先在特定领域目录(、
apps/frontend、infra等)中使用限定范围的指令文件。apps/agent - 将深度或易变的细节迁移至,而非根目录
.agents/repo-context/*。AGENTS.md - 持续维护:去重、解决矛盾内容、移除过时指引。
- 迁移过程中保留行为意图:先调整结构,再优化措辞。
Workflow
工作流
- Assess current state (concise router vs mixed/legacy monolith).
- Select target architecture from references.
- Migrate content into scoped files and deep docs.
AGENTS.md - Rewrite root as a short router.
AGENTS.md - Add freshness metadata for volatile facts where feasible.
- Verify links/routes and remove conflicting duplicate rules.
- 评估当前状态(简洁路由型 vs 混合/遗留单体型)。
- 从参考资料中选择目标架构。
- 将内容迁移至限定范围的文件及深度文档中。
AGENTS.md - 将根目录重写为简短的路由文档。
AGENTS.md - 尽可能为易变信息添加新鲜度元数据。
- 验证链接/路由,移除冲突的重复规则。
Reference triggers (open when clearly relevant)
参考触发条件(明确相关时打开)
- AGENTS/CLAUDE architecture, progressive disclosure, or context-memory organization ->
skills/housekeeping/references/agents-architecture.md - Legacy monolithic AGENTS cleanup, contradiction pruning, or migration planning ->
skills/housekeeping/references/migration-playbook.md
- AGENTS/CLAUDE架构、渐进式披露或上下文记忆组织 ->
skills/housekeeping/references/agents-architecture.md - 遗留单体AGENTS清理、矛盾内容梳理或迁移规划 ->
skills/housekeeping/references/migration-playbook.md
References
参考资料
- - References index for this skill
skills/housekeeping/references/index.md - - Target architecture, file tree, and root template
skills/housekeeping/references/agents-architecture.md - - Legacy-to-modern migration workflow and checklist
skills/housekeeping/references/migration-playbook.md
- - 本skill的参考资料索引
skills/housekeeping/references/index.md - - 目标架构、文件树及根目录模板
skills/housekeeping/references/agents-architecture.md - - 遗留系统到现代化系统的迁移工作流及检查清单
skills/housekeeping/references/migration-playbook.md