AgentRC Readiness Policy

AgentRC Readiness Policy

Helps pick, write or apply an AgentRC policy that customises readiness scoring by disabling checks, overriding impact and setting pass-rate thresholds, including CI gating.

Skill files1 file
SKILL.md97 lines
1
---
2
name: acreadiness-policy
3
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.'
4
argument-hint: "[show | new <name> | apply <path-or-pkg>] — e.g. /acreadiness-policy show, /acreadiness-policy new strict-frontend"
5
---
6
7
# /acreadiness-policy — AgentRC policies
8
9
Use this skill when the user asks about **policies**, **strict mode**, **custom scoring**, **disabling checks**, **org standards**, or **CI gating** of readiness.
10
11
A policy is a small JSON file with three optional sections — `criteria`, `extras`, `thresholds` — that customise how AgentRC scores readiness.
12
13
## Built-in examples
14
15
AgentRC ships with three example policies in `examples/policies/`:
16
17
| Policy | What it does |
18
|---|---|
19
| `strict.json` | 100% pass rate, raises impact on key criteria |
20
| `ai-only.json` | Disables all repo-health checks, focuses on AI tooling |
21
| `repo-health-only.json` | Disables AI checks, focuses on traditional quality |
22
23
Recommend these as starting points before writing a custom policy.
24
25
## Policy schema
26
27
```jsonc
28
{
29
"name": "my-policy",
30
"criteria": {
31
"disable": ["env-example", "observability", "dependabot"],
32
"override": {
33
"readme": { "impact": "high", "level": 2 },
34
"lint-config": { "title": "Linter required" }
35
}
36
},
37
"extras": {
38
"disable": ["pre-commit"]
39
},
40
"thresholds": {
41
"passRate": 0.9
42
}
43
}
44
```
45
46
### Impact weights
47
48
| Impact | Weight |
49
|---|---|
50
| critical | 5 |
51
| high | 4 |
52
| medium | 3 |
53
| low | 2 |
54
| info | 0 |
55
56
`Score = 1 − (deductions / max possible weight)`. Grades: **A** ≥ 0.9, **B** ≥ 0.8, **C** ≥ 0.7, **D** ≥ 0.6, **F** < 0.6.
57
58
## Sub-commands
59
60
### `show`
61
List policies currently in effect (from `agentrc.config.json` `policies` array, or none).
62
63
### `new <name>`
64
Scaffold `policies/<name>.json` with sensible defaults. Walk the user through:
65
1. **What to disable** — irrelevant pillars or extras for their stack (e.g. disable `observability` for a static site).
66
2. **What to raise** — override `impact` to `high` or `critical` for must-haves (e.g. `readme`, `codeowners`).
67
3. **Pass-rate threshold** — typical org baselines: `0.7` (lenient), `0.85` (standard), `1.0` (strict).
68
4. Reference the policy from `agentrc.config.json`:
69
```json
70
{ "policies": ["./policies/<name>.json"] }
71
```
72
73
### `apply <path-or-pkg>`
74
Run `agentrc readiness --json --policy <source>` and re-render the report by handing off to the `assess` skill / `ai-readiness-reporter` agent. Supports chaining:
75
```bash
76
npx -y github:microsoft/agentrc readiness --json --policy ./org-baseline.json,./team-frontend.json
77
```
78
79
## CI gating
80
81
Combine policies with `--fail-level` to enforce a minimum maturity level in CI:
82
83
```yaml
84
- run: npx -y github:microsoft/agentrc readiness --policy ./policies/strict.json --fail-level 3
85
```
86
87
## Advanced
88
89
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`).
90
91
## Operating rules
92
93
- **Never silently disable a pillar.** If the user wants to disable `observability`, confirm and explain the trade-off.
94
- **Prefer overriding `impact` over disabling.** Disabling hides the gap entirely; overriding lets it still appear in the report.
95
- **Recommend extras stay enabled.** They cost nothing — they don't affect the score.
96
- **Suggest layering** — most orgs want a baseline policy + per-team overrides chained with `--policy a.json,b.json`.
97

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…