Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pas
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-acreadiness-policy-d5c7f0fd470b ,按照其中的说明把「acreadiness-policy」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill when the user asks about policies, strict mode, custom scoring, disabling checks, org standards, or CI gating of readiness.
A policy is a small JSON file with three optional sections — criteria, extras, thresholds — that customise how AgentRC scores readiness.
AgentRC ships with three example policies in examples/policies/:
| Policy | What it does |
|---|---|
strict.json | 100% pass rate, raises impact on key criteria |
ai-only.json | Disables all repo-health checks, focuses on AI tooling |
repo-health-only.json | Disables AI checks, focuses on traditional quality |
Recommend these as starting points before writing a custom policy.
{
"name": "my-policy",
"criteria": {
"disable": ["env-example", "observability", "dependabot"],
"override": {
"readme": { "impact": "high", "level": 2 },
"lint-config": { "title": "Linter required" }
}
},
"extras": {
"disable": ["pre-commit"]
},
"thresholds": {
"passRate": 0.9
}
}
| Impact | Weight |
|---|---|
| critical | 5 |
| high | 4 |
| medium | 3 |
| low | 2 |
| info | 0 |
Score = 1 − (deductions / max possible weight). Grades: A ≥ 0.9, B ≥ 0.8, C ≥ 0.7, D ≥ 0.6, F < 0.6.
showList policies currently in effect (from agentrc.config.json policies array, or none).
new <name>Scaffold policies/<name>.json with sensible defaults. Walk the user through:
observability for a static site).impact to high or critical for must-haves (e.g. readme, codeowners).0.7 (lenient), 0.85 (standard), 1.0 (strict).agentrc.config.json:
{ "policies": ["./policies/<name>.json"] }
apply <path-or-pkg>Run agentrc readiness --json --policy <source> and re-render the report by handing off to the assess skill / ai-readiness-reporter agent. Supports chaining:
npx -y github:microsoft/agentrc readiness --json --policy ./org-baseline.json,./team-frontend.json
Combine policies with --fail-level to enforce a minimum maturity level in CI:
- run: npx -y github:microsoft/agentrc readiness --policy ./policies/strict.json --fail-level 3
JSON policies can disable, override, and set thresholds — but cannot add new criteria. For new detection logic, point users at AgentRC's TypeScript plugin system (docs/dev/plugins.md).
observability, confirm and explain the trade-off.impact over disabling. Disabling hides the gap entirely; overriding lets it still appear in the report.--policy a.json,b.json.