Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

cdd-maintainCDD 维护

Agent Skill

cdd-maintain 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

225

周安装

9

GitHub Stars

1

下载量

73
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ruphware/cdd-skills --skill cdd-maintain

简介

cdd-maintain 用于归档长期 CDD 文件、审计支持文档漂移并提出刷新建议,适合在 Codex、Claude、Cursor、Gemini CLI 中维护项目健康度时使用。

  • 它应用安全归档策略,询问后再删除邻近过期文件,防止误删重要资产。
  • 支持医生式体检,扫描代码异味与死代码信号,输出 refactor 候选列表。
  • 使用前应确认 JOURNAL 与 specs 文档最新,避免基于过时信息做出错误判断。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

CDD Maintain (explicit-only)

Use this skill for explicit codebase maintenance: archive long CDD files, audit support-doc drift, propose approval-gated documentation refreshes, and doctor the repo for refactor and dead-code signals.

Sources of truth

Read:

  • AGENTS.md
  • README.md
  • TODO.md and adjacent TODO*.md
  • docs/JOURNAL.md
  • docs/INDEX.md
  • docs/specs/prd.md
  • docs/specs/blueprint.md
  • docs/prompts/PROMPT-INDEX.md if present
  • repo manifests, entrypoints, and test/lint/typecheck config as needed for code-health checks

Safe archive behavior

  • Apply safe archive moves immediately.
  • Ask before deleting stale adjacent TODO*.md files.
  • Do not delete or rewrite application code as part of maintenance.
  • Do not silently rewrite support docs as part of maintenance.

TODO archive rules

  • Check TODO.md and adjacent TODO*.md files.
  • Treat a step as archiveable only when its task list is fully complete under the repo's current TODO style.
  • If step completion is ambiguous, leave that step in place and report it.
  • Preserve top-to-bottom TODO history: archive only from the oldest contiguous archiveable block near the top of the active step list.
  • Never archive a step from the middle or tail of the active TODO file.
  • Do not leapfrog an older incomplete or ambiguous step in order to archive later completed steps below it.
  • Retain the newest 3 step headings in each active TODO file.
  • Archive older completed steps when a TODO file is long enough to need trimming.
  • Treat a TODO file as long when it has more than 6 step headings or clearly accumulated completed historical steps beyond the retained active window.
  • Move archived sections into docs/archive/.
  • Use archive filenames:

- TODO.md -> docs/archive/TODO_YYYY-MM-DD.md - TODO-foo.md -> docs/archive/TODO-foo_YYYY-MM-DD.md

  • If the same-day archive file already exists, append the newly archived sections instead of overwriting it.
  • If older incomplete or ambiguous steps block a clean top trim, do not archive later completed steps; report archival as blocked by non-contiguous active history.
  • After archiving, keep the active TODO file focused on the retained newest 3 step headings plus any older incomplete or ambiguous steps that could not be archived safely.

Stale adjacent TODO file handling

  • For adjacent TODO*.md files, check last activity using git log -1 timestamp when available.
  • If git history is unavailable, fall back to filesystem mtime.
  • If an adjacent TODO file is older than 14 days and has no remaining active work after safe archiving, ask the user once for approval before deleting those stale files.
  • Group all such stale-file deletions into one approval request.

Journal archive rules

  • Read the archive or rotation guidance at the top of docs/JOURNAL.md.
  • Archive docs/JOURNAL.md only according to the rules defined there.
  • If docs/JOURNAL.md has no clear archive rule near the top, do not invent one; skip journal archival and report that it was skipped.

Support documentation drift review

  • Treat README.md, docs/specs/prd.md, and docs/specs/blueprint.md as canonical support docs.
  • Also review docs/INDEX.md and docs/prompts/PROMPT-INDEX.md when present as support-doc navigation surfaces.
  • Compare each support doc against the current repo state using manifests, entrypoints, scripts, active TODO/JOURNAL context, and the other support docs.
  • Check whether setup/dev/test/build instructions, documented workflows, active features, architecture notes, and referenced doc paths still match the repo.
  • Classify each support doc as current, drifted, missing, or unclear.
  • If a support doc is missing, report it explicitly and do not fabricate it automatically as part of maintenance.
  • If README.md or docs/specs/* has drifted, prepare the needed edits and show them to the user before applying anything.
  • Do not silently refresh README.md, docs/specs/prd.md, docs/specs/blueprint.md, docs/INDEX.md, or docs/prompts/PROMPT-INDEX.md.
  • Ask once for documentation approval using a single grouped confirmation such as: Approve and apply these documentation updates?
  • Keep documentation approval separate from stale TODO deletion approval so the user can approve doc updates without approving file deletions.
  • If the user approves, apply only the approved support-doc edits and then report them.
  • If the user does not approve, leave support docs unchanged and report the remaining drift clearly.

INDEX freshness

  • Check how old docs/INDEX.md is using the last git change when available, otherwise filesystem mtime.
  • Report the exact age in days.
  • Classify freshness as:

- fresh for 0-14 days - stale for 15-30 days - very stale for over 30 days or clearly older than current TODO or journal activity

Codebase doctoring

  • Check the severity of files and areas that appear to need refactoring.
  • Use repo-native lint, typecheck, or unused-code tooling when present.
  • Otherwise use conservative heuristic scans for:

- orphaned files or modules - dead or unreachable code paths - unused exports or duplicate retired implementation paths - stale feature code that no longer appears wired into entrypoints

  • Report findings with both:

- severity: high, medium, or low - confidence: confirmed, probable, or possible

  • Never auto-delete code.
  • Do not create TODO or refactor files automatically.

Output

Return a maintenance report that includes:

  • Archive actions applied
  • Deletion approval needed
  • Journal archive status
  • Support documentation status
  • Documentation updates proposed or Documentation updates applied
  • Documentation approval needed
  • INDEX freshness
  • Refactor severity summary
  • Dead/orphan code findings
  • Recommended next action

Recommend follow-up such as cdd-index, cdd-refactor, cdd-plan, or direct cleanup work when supported by the findings, but do not create those artifacts automatically.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.76%
按下载量换算27

Claude

28.32%
按下载量换算21

Cursor

18.54%
按下载量换算14

Gemini CLI

8.64%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills