Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计异常

memory-manage内存管理

Agent Skill

memory-manage 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,273

周安装

52

GitHub Stars

1,882

下载量

412
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:memory-manage(内存管理)
来源仓库:https://github.com/catlog22/claude-code-workflow
仓库路径:skills/memory-manage
安装命令:
npx skills add https://github.com/catlog22/claude-code-workflow --skill memory-manage
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/catlog22/claude-code-workflow --skill memory-manage

简介

memory-manage 统一管理项目记忆文件(CLAUDE.md)与文档生成(API.md/README.md),支持路由分发。

  • 适用于知识库维护与文档自动化场景,可更新行为约束、生成接口说明或提取代码注释。
  • 提供 full/single/file 三种更新粒度,单次操作建议不超过 5 个文件以防上下文超限。
  • 涉及文件写入时会比对历史版本,冲突条目需人工裁决,避免自动覆盖造成信息丢失。
  • 本技能为基础设施运维工具,普通用户无需关注内部结构,按提示选择模式即可安全使用。

SKILL.md

Memory Management Skill

Unified entry point for project memory (CLAUDE.md) updates and documentation (API.md/README.md) generation. Routes to specialized sub-commands via arguments or interactive needs assessment.

Architecture Overview

┌──────────────────────────────────────────────────────┐
│  Memory Manage (Router)                               │
│  → Parse input → Detect mode → Route to phase         │
└───────────────┬──────────────────────────────────────┘
                │
        ┌───────┴───────┐
        ↓               ↓
  ┌───────────┐   ┌───────────┐
  │ CLAUDE.md │   │  Docs     │
  │  管理     │   │  生成     │
  └─────┬─────┘   └─────┬─────┘
        │               │
   ┌────┼────┐     ┌────┴────┐
   ↓    ↓    ↓     ↓         ↓
 Full Related Single Full  Related
 全量  增量   单模块  全量    增量

Execution Flow

Step 1: Parse Input & Route

Detect execution mode from user input:

Auto-Route Rules (priority order):

SignalRouteExamples
Explicit sub-command token→ Direct dispatchupdate-full --tool qwen
Keyword: full, 全量, all, entire + update/claude→ update-full"全量更新claude"
Keyword: related, changed, 增量, diff + update/claude→ update-related"更新变更模块"
Keyword: single, module, 单模块 + path-like token→ update-single"更新 src/auth 模块"
Keyword: docs, documentation, 文档 + full/all/全量→ docs-full"全量生成文档"
Keyword: docs, documentation, 文档 + related/changed/增量→ docs-related"增量生成文档"
Ambiguous or no argumentsAskUserQuestion/memory-manage

Valid sub-command tokens: update-full, update-related, update-single, docs-full, docs-related

Direct dispatch examples:

input = "update-full --tool qwen"
  → subcommand = "update-full", remainingArgs = "--tool qwen"
  → Read phases/01-update-full.md, execute

input = "update-single src/auth --tool gemini"
  → subcommand = "update-single", remainingArgs = "src/auth --tool gemini"
  → Read phases/03-update-single.md, execute

When ambiguous or no arguments, proceed to Step 2.

Step 2: Interactive Needs Assessment

Q1 — 确定内容类别:

AskUserQuestion({
  questions: [{
    question: "你要管理哪类内容?",
    header: "类别",
    multiSelect: false,
    options: [
      {
        label: "CLAUDE.md (项目记忆)",
        description: "更新模块指令文件,帮助Claude理解代码库结构和约定"
      },
      {
        label: "项目文档 (API+README)",
        description: "生成API.md和README.md到.workflow/docs/目录"
      }
    ]
  }]
})

Q2a — CLAUDE.md 管理范围 (用户选了 CLAUDE.md):

AskUserQuestion({
  questions: [{
    question: "CLAUDE.md 更新范围?",
    header: "范围",
    multiSelect: false,
    options: [
      {
        label: "增量更新 (Recommended)",
        description: "仅更新git变更模块及其父级,日常开发首选"
      },
      {
        label: "全量更新",
        description: "更新所有模块,3层架构bottom-up,适合重大重构后"
      },
      {
        label: "单模块更新",
        description: "指定一个模块,Explore深度分析后生成说明书式文档"
      }
    ]
  }]
})

Route mapping:

  • "增量更新" → update-related → Ref: phases/02-update-related.md
  • "全量更新" → update-full → Ref: phases/01-update-full.md
  • "单模块更新" → update-single → continue to Q3

Q2b — 文档生成范围 (用户选了项目文档):

AskUserQuestion({
  questions: [{
    question: "文档生成范围?",
    header: "范围",
    multiSelect: false,
    options: [
      {
        label: "增量生成 (Recommended)",
        description: "仅为git变更模块生成/更新文档,日常开发首选"
      },
      {
        label: "全量生成",
        description: "所有模块+项目级文档(ARCHITECTURE.md等),适合初始化"
      }
    ]
  }]
})

Route mapping:

  • "增量生成" → docs-related → Ref: phases/05-docs-related.md
  • "全量生成" → docs-full → Ref: phases/04-docs-full.md

Q3 — 补充路径 (仅 update-single 需要,且无路径参数时):

AskUserQuestion({
  questions: [{
    question: "请指定要更新的模块路径:",
    header: "路径",
    multiSelect: false,
    options: [
      {
        label: "src",
        description: "src 目录"
      },
      {
        label: ".",
        description: "项目根目录"
      }
    ]
  }]
})

用户可选 "Other" 输入自定义路径。

Step 3: Execute Selected Phase

Based on routing result, read and execute the corresponding phase:

Phase Reference Documents (read on-demand when phase executes):

ModeDocumentPurpose
update-fullphases/01-update-full.mdFull CLAUDE.md update, 3-layer architecture, batched agents
update-relatedphases/02-update-related.mdGit-changed CLAUDE.md update, depth-first
update-singlephases/03-update-single.mdSingle module CLAUDE.md, Explore + handbook style
docs-fullphases/04-docs-full.mdFull API.md + README.md generation
docs-relatedphases/05-docs-related.mdGit-changed docs generation, incremental

Shared Configuration

Tool Fallback Hierarchy

All sub-commands share the same fallback:

--tool gemini  →  [gemini, qwen, codex]  // default
--tool qwen    →  [qwen, gemini, codex]
--tool codex   →  [codex, gemini, qwen]

Common Parameters

ParameterDescriptionDefaultUsed By
`--tool <gemini\qwen\codex>`Primary CLI toolgeminiAll
--path <dir>Target directory.update-full, docs-full
<path> (positional)Module path*(required)*update-single

Batching Thresholds

Sub-CommandDirect ExecutionAgent BatchBatch Size
update-full<20 modules≥20 modules4/agent
update-related<15 modules≥15 modules4/agent
update-singlealways singleN/A1
docs-full<20 modules≥20 modules4/agent
docs-related<15 modules≥15 modules4/agent

Core Rules

  1. Route before execute: Determine sub-command before any execution
  2. Phase doc is truth: All execution logic lives in phase docs, router only dispatches
  3. Read on-demand: Only read the selected phase doc, never load all
  4. Pass arguments through: Forward remaining args unchanged to sub-command
  5. User confirmation: Each sub-command handles its own plan presentation and y/n confirmation

Error Handling

ErrorResolution
Unknown sub-commandFall through to interactive flow
Phase doc not foundAbort with file path error
Missing path for update-singlePrompt via Q3
Sub-command execution failsFollow phase doc's own error handling

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.14%
按下载量换算145

Claude

32.49%
按下载量换算134

Cursor

17.36%
按下载量换算72

Gemini CLI

9.02%
按下载量换算37

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills