AgentSkillsCN

update-codemaps

迁移并运行Claude命令update-codemaps.md中的工作流程。当被要求执行与“代码映射更新”相关的任务时,例如:深入分析代码库结构,更新架构文档。

SKILL.md
--- frontmatter
name: "update-codemaps"
description: "Migrate and run the workflow from Claude command update-codemaps.md. Use when asked to perform tasks matching update-codemaps, for example: Analyze the codebase structure and update architecture documentation:"

Update Codemaps

Overview

Use this skill to execute the existing workflow migrated from update-codemaps.md. Follow the playbook below and adapt commands to the current repository context.

Playbook

Update Codemaps

Analyze the codebase structure and update architecture documentation:

  1. Scan all source files for imports, exports, and dependencies

  2. Generate token-lean codemaps in the following format:

    • codemaps/architecture.md - Overall architecture
    • codemaps/backend.md - Backend structure
    • codemaps/frontend.md - Frontend structure
    • codemaps/data.md - Data models and schemas
  3. Calculate diff percentage from previous version

  4. If changes > 30%, request user approval before updating

  5. Add freshness timestamp to each codemap

  6. Save reports to .reports/codemap-diff.txt

Use TypeScript/Node.js for analysis. Focus on high-level structure, not implementation details.