acreadiness-policy — скилл для GitHub Copilot: как настроить
Помогает настраивать, создавать и применять политики проверок готовности AgentRC. Пригодится при настройке strict-режима, фильтрации проверок и гейтинге в CI.
npx skills add github/awesome-copilot --skill acreadiness-policyЧто делает acreadiness-policy
Скилл управляет политиками оценки репозитория в AgentRC. Он генерирует JSON-файлы с секциями criteria, extras и thresholds. С их помощью можно отключить ненужные проверки вроде observability для статических сайтов, изменить вес критериев (от info с весом 0 до critical с весом 5) или зафиксировать минимальный порог прохождения. В репозитории уже есть готовые шаблоны: строгий strict.json, профильный ai-only.json и repo-health-only.json.
Внутри заложены три команды. Команда show показывает активные политики из agentrc.config.json, new создаёт шаблон, а apply запускает утилиту npx -y github:microsoft/agentrc readiness. Файлы конфигурации можно связывать в цепочки через запятую, объединяя базовый профиль организации с переопределениями конкретной команды. При этом скилл предостерегает от полного отключения проверок и предлагает снижать их влияние, чтобы пробелы оставались видимыми в отчете.
Добавлять новую логику через JSON нельзя. Для создания новых критериев потребуется плагин на TypeScript. Если вашему проекту не нужен строгий контроль в пайплайнах CI или кастомные веса проверок, удобнее остаться на стандартных настройках AgentRC.
Какие задачи решает
- отключить нерелевантные проверки репозитория в AgentRC
- задать минимальный порог прохождения проверок для CI
- повысить вес критичных критериев качества кода
- объединить базовую политику организации с правилами команды
Примеры запросов агенту
- /acreadiness-policy new strict-frontend
- /acreadiness-policy show
- Примени политику ./policies/strict.json через /acreadiness-policy apply
Как установить acreadiness-policy
1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill acreadiness-policy2GitHub CLI
gh skill install github/awesome-copilot acreadiness-policy3Вручную: положить файлы
.github/skills/acreadiness-policy/SKILL.md1Через Skills CLI (Vercel)
npx skills add github/awesome-copilot --skill acreadiness-policy -a claude-code2Вручную: положить файлы
~/.claude/skills/acreadiness-policy/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/acreadiness-policy/
Вручную: положить файлы
.agents/skills/acreadiness-policy/SKILL.mdДля всех проектов — ~/.agents/skills/
Вручную: положить файлы
.cursor/skills/acreadiness-policy/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
Командой платформы
gemini skills install https://github.com/github/awesome-copilot --path skills/acreadiness-policyВручную: положить файлы
.devin/skills/acreadiness-policy/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора554
Весь набор →Похожие
Вопросы о acreadiness-policy
Как установить acreadiness-policy в GitHub Copilot?
Выполните команду npx skills add github/awesome-copilot --skill acreadiness-policy или установите скилл через GitHub CLI: gh skill install github/awesome-copilot acreadiness-policy.
Что делает acreadiness-policy?
Скилл помогает создавать и запускать JSON-политики AgentRC, переопределять веса критериев, отключать лишние проверки и настраивать пороги прохождения для пайплайнов.
Можно ли добавить новые правила проверок через JSON-политику?
Нет, политики в JSON умеют только отключать проверки, менять веса и задавать пороги. Для добавления собственной логики проверок потребуется TypeScript-плагин AgentRC.
Исходный текст
SKILL.md · MIT
---
name: acreadiness-policy
description: 'Help the user pick, write, or apply an AgentRC policy. Policies customise readiness scoring by disabling irrelevant checks, overriding impact/level, setting pass-rate thresholds, or chaining org baselines with team overrides. Use when the user asks about strict mode, AI-only scoring, custom weights, CI gating, or wants org-wide standardisation.'
argument-hint: "[show | new <name> | apply <path-or-pkg>] — e.g. /acreadiness-policy show, /acreadiness-policy new strict-frontend"
---
# /acreadiness-policy — AgentRC policies
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.
## Built-in examples
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.
## Policy schema
```jsonc
{
"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 weights
| 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.
## Sub-commands
### `show`
List 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:
1. **What to disable** — irrelevant pillars or extras for their stack (e.g. disable `observability` for a static site).
2. **What to raise** — override `impact` to `high` or `critical` for must-haves (e.g. `readme`, `codeowners`).
3. **Pass-rate threshold** — typical org baselines: `0.7` (lenient), `0.85` (standard), `1.0` (strict).
4. Reference the policy from `agentrc.config.json`:
```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:
```bash
npx -y github:microsoft/agentrc readiness --json --policy ./org-baseline.json,./team-frontend.json
```
## CI gating
Combine policies with `--fail-level` to enforce a minimum maturity level in CI:
```yaml
- run: npx -y github:microsoft/agentrc readiness --policy ./policies/strict.json --fail-level 3
```
## Advanced
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`).
## Operating rules
- **Never silently disable a pillar.** If the user wants to disable `observability`, confirm and explain the trade-off.
- **Prefer overriding `impact` over disabling.** Disabling hides the gap entirely; overriding lets it still appear in the report.
- **Recommend extras stay enabled.** They cost nothing — they don't affect the score.
- **Suggest layering** — most orgs want a baseline policy + per-team overrides chained with `--policy a.json,b.json`.
© github · MIT · github/awesome-copilot