跳到正文
Skillpedia
部署与云(DevOps)48k · #5616

repo-maintainer

它能做什么

这个 AI 代理可以检查代码项目(仓库)的“健康状况”。它能发现并修复项目组织、依赖过时、文档缺失以及代码质量等方面的常见问题,让项目为发布或长期维护做好准备。

适用场景

  • ✓当你想整理和清理代码项目时。
  • ✓在发布项目新版本之前。
  • ✓想检查项目状态是否良好、是否安全时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/repo-maintainer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/repo-maintainer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“检查并整理我的代码仓库。”

每周 5 个新技能,1 分钟读完。

工作原理

它会读取项目的规则,检查文件、依赖、测试和文档。然后,它会按照项目规则,提出或进行必要的小幅修复。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Repository Maintainer

Overview

Audit repository health, apply authorized repairs narrowly, and finish through the repository's own protected workflow.

When to Use

Use when the user asks to maintain, clean, audit, harden, or prepare a repository for release. Use a more specific security, database, deployment, or release skill when that is the dominant task.

Repository Policy Gate

Before mutation:

  1. Read root and nested AGENTS.md, contributor guidance, maintainer docs, and release instructions.
  2. Inspect the current branch, worktree, staged files, remotes, default branch, and effective branch protection.
  3. Discover repository-native validation, synchronization, merge, and release commands.
  4. Preserve unrelated user work and generated outputs that are not in scope.

If the repository names a mandatory maintainer skill or guarded command, delegate to it instead of inventing a parallel branch, merge, sync, or release path. In agentic-awesome-skills, use antigravity-maintainer-batch-release and npm run merge:batch; main is pull-request-only.

The routine protected checks for agentic-awesome-skills are pr-policy, pr-evidence, source-validation, and artifact-preview. The supported AAS Core preview uses targeted unit tests plus one packed Linux/Node LTS smoke path and Workbench review. Do not resurrect the retired certified-v1 baseline, benchmark, tuning-gold, transaction-fault, race, or frozen OS/runtime matrix as routine merge gates.

Usage

1. Establish the baseline

git status --short --branch
git diff --stat
git diff --cached --stat
git remote -v
git log -5 --oneline

Record the repository's required runtime versions and test commands. Use a clean temporary clone or worktree when existing user changes cannot be isolated safely.

2. Audit independent lanes

Run independent read-only checks in parallel where possible.

Artifacts and Git hygiene

  • untracked caches, coverage, build output, editor files, and test leftovers;
  • tracked large or binary files, accidental secrets, executable-mode drift, and ignored-file gaps;
  • stale branches, detached HEAD, existing staged changes, submodules, and symlinks;
  • generated files whose ownership belongs to CI or a canonical-sync workflow.

Do not delete or rewrite history during the audit.

Dependencies and packaging

  • lockfile and manifest agreement;
  • outdated, vulnerable, duplicate, unused, or end-of-life dependencies;
  • runtime imports incorrectly placed in development dependencies;
  • clean-install, package-content, and executable-entrypoint behavior.

Treat audit-tool output as evidence to verify, not automatic permission to upgrade or remove packages.

CI and release health

  • failing, cancelled, skipped, or stale workflow runs;
  • stale, redundant, or unjustifiably broad runtime matrices and unpinned or obsolete actions;
  • required checks, branch protection, release permissions, and secret boundaries;
  • mismatch between documented and implemented release commands.

Documentation and repository metadata

  • README, changelog, version, examples, links, badges, credits, and support metadata;
  • contribution instructions and PR templates versus current CI policy;
  • generated catalog, site, or API documentation drift.

Code-quality signals

  • dead code, stale implementation markers, debug logging, commented-out code, and missing tests;
  • unsafe defaults, suppressed errors, credential exposure, and environment-specific paths.

For FAF projects only, also inspect declared .faf, .faf-dna, sync, score, and MCP contracts with the project's installed FAF commands.

3. Produce a prioritized decision set

For each finding report:

  • evidence and affected paths;
  • severity and user impact;
  • whether it is safe to fix now, needs approval, or belongs to another workflow;
  • exact validation that proves the repair.

Deduplicate symptoms with the same root cause. Do not mix optional modernization with release blockers.

4. Apply authorized repairs

Make the smallest coherent change set. Keep source and generated-file ownership separate, update tests with behavior changes, and rerun the targeted failing check after each repair group.

Never delete data, rewrite history, rotate credentials, change branch protection, or upgrade across breaking versions without explicit authorization.

5. Validate and publish safely

…

常见问题

什么是“产物”和“整洁度”?

产物是项目生成的文件。整洁度指的是这些文件以及整个项目的组织和干净程度。

什么是“依赖”?

依赖是你的项目运行时所用到的其他代码。代理会检查它们是否为最新版本且安全。

代理会做有风险的改动吗?

不会,它只进行经过授权的小范围修复。未经你明确许可,它不会删除数据、修改重要的项目规则,也不会进行大版本升级。

详情

作者的原始描述

Audit and repair repository hygiene across artifacts, dependencies, CI, docs, Git state, and code-quality signals. Use for repository maintenance, cleanup, health checks, or pre-release hardening.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5616
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能