Token导航 LogoToken导航

Agent Skill · 研究检索

agent-friendly-codebase(Agent 友好的代码库)

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

agent-friendly-codebase 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 53,729。

总安装 524周安装 21GitHub Stars 2下载 170核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hornet1130/agent-friendly-codebase --skill agent-friendly-codebase

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词或任务场景快速定位候选结果时使用。适用于代码库审计和 AI 友好性评估,提供结构化问题发现和优先级排序。通过 npx skills add 命令从 GitHub 安装,需确认权限范围和是否触发文件读写。

建议在安装前检查维护状态和命令执行边界,避免越权操作。agent-friendly-codebase 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/agent-friendly-codebase

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hornet1130/agent-friendly-codebase --skill age…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agent-friendly-codebase 怎么安装?

在终端执行 npx skills add https://github.com/hornet1130/agent-friendly-codebase --skill agent-friendl…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-friendly-codebase 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-friendly-codebase 需要什么权限?

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

agent-friendly-codebase 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

agent-friendly-codebase 用的人多吗?

公开数据是累计安装 524 次,近一周安装 21 次,下载 170 次,GitHub 2 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-friendly-codebase 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
agent-friendly-codebase

Agent 友好的代码库 · 本页

5242需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Agent-Friendly Codebase Audit

You are an AFC audit team conducting a structured investigation of a bounded work area. Your job is to uncover what makes this codebase hard for AI agents to work in, then tell the team exactly what's wrong and what to fix, in priority order.

The core insight: agents do what's written. What isn't written gets inferred. Inference fails. That failure compounds — like autoregressive token generation, one bad early judgment poisons everything built on top of it.

An agent-friendly codebase lets an agent:

  • reach relevant context with low exploration cost
  • make bounded changes with a predictable blast radius
  • verify changes with a short trusted proof path
  • hand off or split work with low ambiguity

Work area

A work area is an app, package, or service — a unit with its own entrypoints, public contracts, build/test/lint commands, and tests. This is the natural audit boundary because AFC scoring categories (commands, contracts, guidance hierarchy, verification) only have meaning at this level.

If the user points at a file, function, or feature directory, expand scope to the app or package it belongs to.

If the user names a path without specifying scope, propose a work area boundary by examining dependencies and contract surfaces. Present the proposed boundary for confirmation before proceeding.

If the area is too large for a single audit pass (e.g., a monorepo root or an app with many independent feature areas), recommend splitting into sub-areas and list them. Each sub-area can be audited independently — and in parallel if the environment supports subagents or agent teams. When parallel audits complete, aggregate into a single report: per-area AFC Scores, combined findings ordered by impact, and a unified improvement roadmap.

Examples: apps/web, apps/api, packages/shared/http-client

Workflow and output

Follow these steps in order. The output of each step becomes a section in the final report.

Step 1 — Bound the area

Identify the work area and produce the Area profile:

  • Bounded paths, entrypoints, key contracts
  • Canonical commands (install, build, test, lint, dev) and proof path
  • If the user mentions parallel agents or handoff, also map ownership lanes, handoff boundaries, and collision hotspots

Step 2 — Scan for friction patterns

Scan the area for patterns A, B, C, D (see "The four agent-friction patterns" below). Collect evidence.

Step 3 — Score

Score each category S1–S5 (see "AFC Score" below). Follow the scoring discipline: evidence first, score second.

Produce the AFC Score section: per-category score with evidence, total, and band.

Step 4 — Surface findings

Produce the Findings section. For each finding:

  • Finding: what's wrong
  • Pattern: A / B / C / D
  • Evidence: file paths, code, concrete observations
  • Agent impact: what an agent would do wrong because of this

Order by impact, not by category.

Step 5 — Build improvement roadmap

Produce the Improvement roadmap organized by maturity level (see "AFC maturity model" below), not by finding.

  • L1 — Enforce: tooling gates the team can add now
  • L2 — Document: what to write down so agents stop inferring
  • L3 — Specify: structural changes for machine-verified compliance

Each item must be specific enough to assign — file path, threshold, artifact name.

The four agent-friction patterns

Actively scan for these in Step 2. Each one is a distinct source of agent error.

Pattern A — Tacit knowledge

Things the team "just knows" but aren't written anywhere. A 5-year engineer knows "this API is only called with a valid agtCode." The agent doesn't — it infers, and inference fails.

Evidence: unexplained constraints, undocumented field semantics, "legacy" code with no recorded reason, business rules in Slack but not in code.

Pattern B — Code/doc divergence

README says one thing, code does another. The agent can't judge which to trust. Stale docs actively poison context — worse than no docs at all.

Evidence: outdated README, stale CLAUDE.md rules, comments describing what the code did months ago.

Pattern C — Competing patterns

Two ways to do the same thing coexist. The agent picks by frequency, not intent. CLAUDE.md says "use Jotai" but 40 Recoil files outnumber 3 Jotai files. Frequency beats documentation.

Evidence: multiple libraries for the same concern, two import styles, mixed async patterns, in-progress migration with no status marker.

Pattern D — No feedback loop

Without tests the agent can't verify its own work. It reports "done" and validation falls entirely to the human. Tests are the agent's only feedback loop.

Evidence: low test count, no CI gate, validation requiring manual inspection, no runnable proof path.

AFC Score

5 categories, each 0–20. Total 0–100, expressed as AFC Score (%).

Bands: Good >= 80, So-so 50–79, Bad < 50

Scoring anchors

ScoreMeaning
0absent — effectively unusable
5weak — mostly implicit
10partial — important gaps remain
15solid — moderate friction only
20explicit — current, low ambiguity

In-between scores allowed when evidence supports it. Must items present → above 10. Must items complete and working → 15. Should items → toward 20.

Scoring discipline

  1. Evidence first, score second. List what you found before assigning a number. Never score then justify.
  2. Each score must cite a specific file, section, or command. No evidence → score 0 or 5.
  3. Default to the lower score when between two anchors. Upgrade only with clear evidence.
  4. Absence = 0, not unknown. If reasonable exploration finds nothing, score 0.

S1. Boundary & entrypoints (0–20)

Can the agent find where to start and where to stop?

  • Must: name the primary paths, entrypoints, dependencies and reverse dependencies
  • Should: document usual starting files, keep frequently edited files easy to find

S2. Commands & environment (0–20)

Can the agent build, test, and run without human memory?

  • Must: define canonical install, build, test, lint, dev commands and keep them reproducible
  • Must: provide at least one automated validation path covering representative task types
  • Must: identify main logs, error paths, or state checkpoints
  • Should: area-scoped validation commands, common failure causes and workarounds, reusable fixtures/seeds/mocks/snapshots, regression coverage to catch obvious spillover
  • Should: debug starting points for common failures, env/config mismatch easy to check

S3. Contracts & change surface (0–20)

Can the agent predict blast radius from what's visible?

  • Must: expose public contracts (routes, APIs, schemas, DTOs, env dependencies) and external system boundaries
  • Must: make the common edit surface observable, explain when cross-boundary edits are required
  • Should: document failure modes, include input/output examples, expose shared package blast radius, avoid turning a small feature change into a repo-wide edit

S4. Context hierarchy & economy (0–20)

Is guidance high-signal, layered, and appropriately scoped?

  • Must: keep always-loaded rules short and high signal, push detail to supporting files
  • Must: distinguish repo-wide guidance from area-local guidance, let specific rules refine broader ones
  • Budget: root ~100-200 lines, area ~50-150 lines
  • Should: narrowing path root → app/service → feature/package, area-local skills close to code

S5. Examples, verification & persistence (0–20)

Can the agent learn from examples and verify its own work?

  • Must: provide at least one canonical example for a representative task type
  • Must: externalize recurring patterns, mistakes, conventions into docs, skills, tests, or ADRs
  • Must: define a lightweight audit rubric and proof path
  • Should: cover recurring tasks with diffs/PRs, structured gotchas and debug notes, explicit place for learned patterns, keep proof outputs when changes matter

AFC maturity model

Use these levels to frame improvement recommendations in Step 5. Each level is independently valuable.

L1 — Safety net: make wrong things impossible

Enforce via tooling. lint, tsc, build, test give immediate pass/fail.

CLAUDE.md can say "don't use Recoil" — but subagents may never see CLAUDE.md. A no-restricted-imports lint rule fires every time.

Examples: no-restricted-imports, pre-commit hooks on generated files, strict TS + no as any, coverage ratchet, codegen drift check.

L2 — Explicitness: make tacit knowledge explicit

Document what tooling can't enforce. Reduce inference.

Examples: single canonical pattern per problem, pipeline docs (source → generator → output → trigger), directory structure in CLAUDE.md, migration status table, "why" comments, domain glossary.

CLAUDE.md at app/package root only. More than that and noise exceeds signal.

L3 — Spec-driven: specs as input, machines verify compliance

The clearest input for an agent is a specification. Compliance is machine-verified.

Examples: SPEC.md → schema → test → implementation, Storybook stories as visual specs, scaffold generators, required SPEC.md per module.

L1 blocks what's forbidden. L3 verifies what's required.

Guardrails

  • More documentation is not improvement by default. Noisy docs burn context.
  • Prefer area-scoped guidance over repo-wide blanket rules.
  • Prefer executable verification over narrative claims.
  • Prefer a few high-value artifacts over documentation sprawl.
  • Be specific. "Add tests" is not a finding. Name the file, the gap, the impact.
  • Mark partial evidence as estimated or missing.

平台分布

Codex

33.29%
按下载量换算57

Claude

30.28%
按下载量换算51

Cursor

19.45%
按下载量换算33

Gemini CLI

8.37%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills