{"kind":"Skill","metadata":{"namespace":"community","name":"acreadiness-policy","version":"0.1.0"},"spec":{"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.","files":{"SKILL.md":"---\nname: acreadiness-policy\ndescription: '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.'\nargument-hint: \"[show | new \u003cname\u003e | apply \u003cpath-or-pkg\u003e] — e.g. /acreadiness-policy show, /acreadiness-policy new strict-frontend\"\n---\n\n# /acreadiness-policy — AgentRC policies\n\nUse this skill when the user asks about **policies**, **strict mode**, **custom scoring**, **disabling checks**, **org standards**, or **CI gating** of readiness.\n\nA policy is a small JSON file with three optional sections — `criteria`, `extras`, `thresholds` — that customise how AgentRC scores readiness.\n\n## Built-in examples\n\nAgentRC ships with three example policies in `examples/policies/`:\n\n| Policy | What it does |\n|---|---|\n| `strict.json` | 100% pass rate, raises impact on key criteria |\n| `ai-only.json` | Disables all repo-health checks, focuses on AI tooling |\n| `repo-health-only.json` | Disables AI checks, focuses on traditional quality |\n\nRecommend these as starting points before writing a custom policy.\n\n## Policy schema\n\n```jsonc\n{\n  \"name\": \"my-policy\",\n  \"criteria\": {\n    \"disable\":  [\"env-example\", \"observability\", \"dependabot\"],\n    \"override\": {\n      \"readme\":      { \"impact\": \"high\", \"level\": 2 },\n      \"lint-config\": { \"title\": \"Linter required\" }\n    }\n  },\n  \"extras\": {\n    \"disable\": [\"pre-commit\"]\n  },\n  \"thresholds\": {\n    \"passRate\": 0.9\n  }\n}\n```\n\n### Impact weights\n\n| Impact | Weight |\n|---|---|\n| critical | 5 |\n| high | 4 |\n| medium | 3 |\n| low | 2 |\n| info | 0 |\n\n`Score = 1 − (deductions / max possible weight)`. Grades: **A** ≥ 0.9, **B** ≥ 0.8, **C** ≥ 0.7, **D** ≥ 0.6, **F** \u003c 0.6.\n\n## Sub-commands\n\n### `show`\nList policies currently in effect (from `agentrc.config.json` `policies` array, or none).\n\n### `new \u003cname\u003e`\nScaffold `policies/\u003cname\u003e.json` with sensible defaults. Walk the user through:\n1. **What to disable** — irrelevant pillars or extras for their stack (e.g. disable `observability` for a static site).\n2. **What to raise** — override `impact` to `high` or `critical` for must-haves (e.g. `readme`, `codeowners`).\n3. **Pass-rate threshold** — typical org baselines: `0.7` (lenient), `0.85` (standard), `1.0` (strict).\n4. Reference the policy from `agentrc.config.json`:\n   ```json\n   { \"policies\": [\"./policies/\u003cname\u003e.json\"] }\n   ```\n\n### `apply \u003cpath-or-pkg\u003e`\nRun `agentrc readiness --json --policy \u003csource\u003e` and re-render the report by handing off to the `assess` skill / `ai-readiness-reporter` agent. Supports chaining:\n```bash\nnpx -y github:microsoft/agentrc readiness --json --policy ./org-baseline.json,./team-frontend.json\n```\n\n## CI gating\n\nCombine policies with `--fail-level` to enforce a minimum maturity level in CI:\n\n```yaml\n- run: npx -y github:microsoft/agentrc readiness --policy ./policies/strict.json --fail-level 3\n```\n\n## Advanced\n\nJSON 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`).\n\n## Operating rules\n\n- **Never silently disable a pillar.** If the user wants to disable `observability`, confirm and explain the trade-off.\n- **Prefer overriding `impact` over disabling.** Disabling hides the gap entirely; overriding lets it still appear in the report.\n- **Recommend extras stay enabled.** They cost nothing — they don't affect the score.\n- **Suggest layering** — most orgs want a baseline policy + per-team overrides chained with `--policy a.json,b.json`.\n"},"import":{"commit_sha":"541b7819d8c3545c6df122491af4fa1eae415779","imported_at":"2026-05-18T20:05:35Z","license_text":"MIT License\n\nCopyright GitHub, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","owner":"github","repo":"github/awesome-copilot","source_url":"https://github.com/github/awesome-copilot/tree/541b7819d8c3545c6df122491af4fa1eae415779/plugins/acreadiness-cockpit/skills/acreadiness-policy"}},"content_hash":[213,96,3,42,165,48,172,243,22,38,75,42,247,160,151,64,17,116,84,176,187,128,185,132,40,55,24,192,0,112,214,158],"trust_level":"unsigned","yanked":false}
