agent-ready-codebase by casper-studios/casper-marketplace
npx skills add https://github.com/casper-studios/casper-marketplace --skill agent-ready-codebase当智能体在处理一个代码库时遇到困难,这通常反映并放大了该代码库本身存在的弱点。本技能依据决定智能体有效性的五项原则来评估代码库,并为改进每一项提供具体指导。它能适应项目的编程语言和技术栈。
基于文章 "AI Is Forcing Us To Write Good Code"。
根据上下文确定运行模式:
如果模式不明确,请询问。
要对代码库进行审计,请按以下步骤进行:
通过检查项目文件(例如 package.json、go.mod、Gemfile、、)来识别主要编程语言、测试框架、构建系统和数据库。这将决定适用哪些工具推荐。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
pyproject.tomlCargo.toml阅读 references/checklist.md 以获取每项原则的详细标准。对于每项原则,确定当前状态:
utils、helpers、common)。评估文件名是否传达了领域目的。any/无类型 的缺口。将发现以表格形式呈现,每项原则一行:
| 原则 | 评级 | 关键发现 |
|---|---|---|
| 测试覆盖率 | 强 / 足够 / 弱 | 例如:"87% 覆盖率,无 CI 强制执行" |
| 文件结构 | 强 / 足够 / 弱 | 例如:"3 个文件超过 500 行,2 个'大杂烩'工具文件" |
| 类型系统 | 强 / 足够 / 弱 | 例如:"严格的 TypeScript,但无 API 模式生成" |
| 开发环境 | 强 / 足够 / 弱 | 例如:"手动 8 步设置,无并发支持" |
| 自动化执行 | 强 / 足够 / 弱 | 例如:"配置了 ESLint 但未集成到 CI 中" |
对最弱的原则进行排序,并为前 2-3 项建议具体的后续步骤。每条建议都应参考项目的实际技术栈和工具。
当指导改进特定原则时:
references/checklist.md 中的相关部分最反直觉的原则值得强调。在达到 100% 行覆盖率时:
checklist.md —— 针对五项原则中每一项的详细评估标准,包括特定技术栈的工具、关键指标(强/足够/弱)和指导。在执行审计或提供任何原则的详细指导时,请加载此文件。每周安装量
131
代码仓库
GitHub 星标数
10
首次出现
2026年2月24日
安全审计
安装于
opencode131
gemini-cli131
github-copilot131
codex131
kimi-cli131
amp131
When agents struggle with a codebase, they are reflecting and amplifying the codebase's existing weaknesses. This skill evaluates codebases against five principles that determine agent effectiveness, and provides concrete guidance to improve each one. It adapts to the project's language and stack.
Based on "AI Is Forcing Us To Write Good Code".
Determine which mode to operate in based on context:
If the mode is unclear, ask.
To audit a codebase, work through these steps:
Identify the primary language, test framework, build system, and database by examining project files (e.g. package.json, go.mod, Gemfile, pyproject.toml, Cargo.toml). This determines which tooling recommendations apply.
Read references/checklist.md for detailed criteria per principle. For each principle, determine the current state:
utils, helpers, common). Assess whether filenames communicate domain purpose.any/untyped gaps.Present findings as a table with one row per principle:
| Principle | Rating | Key Finding |
|---|---|---|
| Test Coverage | Strong / Adequate / Weak | e.g. "87% coverage, no CI enforcement" |
| File Structure | Strong / Adequate / Weak | e.g. "3 files over 500 lines, 2 catch-all utils files" |
| Types | Strong / Adequate / Weak | e.g. "Strict TS, but no API schema generation" |
| Dev Environments | Strong / Adequate / Weak | e.g. "Manual 8-step setup, no concurrent support" |
| Enforcement | Strong / Adequate / Weak | e.g. "ESLint configured but not in CI" |
Rank the weakest principles and suggest concrete next steps for the top 2-3. Each recommendation should reference the project's actual stack and tooling.
When guiding improvements to a specific principle:
references/checklist.md for the relevant sectionThe most counterintuitive principle deserves emphasis. At 100% line coverage:
checklist.md -- Detailed evaluation criteria for each of the five principles, including stack-specific tooling, key indicators (Strong/Adequate/Weak), and guidance. Load this file when performing an audit or providing detailed guidance on any principle.Weekly Installs
131
Repository
GitHub Stars
10
First Seen
Feb 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode131
gemini-cli131
github-copilot131
codex131
kimi-cli131
amp131
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
43,100 周安装
日志聚合系统搭建指南:ELK Stack配置、Logstash管道与Kibana监控最佳实践
150 周安装
功能开关系统 (Feature Flag System) - 渐进式发布、A/B测试与紧急开关实现指南
147 周安装
MJML 电子邮件模板:.NET 中构建跨客户端响应式邮件模板解决方案
149 周安装
freee API 集成指南:会计/人事/发票/工时/销售管理API调用与认证教程
152 周安装
PWA开发专家指南:Service Worker缓存、离线功能与Web应用安装全攻略
150 周安装
需求与规范技能:用户故事撰写、验收标准定义、需求文档结构完整指南
148 周安装