agentrc: Command for GitHub Copilot

.github/prompts/align-cli-webapp-reports.prompt.md

align-cli-webapp-reports is a command for GitHub Copilot from microsoft/agentrc. It costs 27 tokens per session (1,681 once invoked), scanned A, original, MIT.

A debugging command that compares a command-line readiness report with the matching local web report for an AgentRC repository and fixes differences between them.

In plain words
What is it for?
Use it to compare checks, scores, criteria, and report output between the CLI and the local web application, then correct the underlying inconsistency.
Why use it?
It helps find cases where two views of the same repository disagree because of rendering or scoring bugs.

Command for GitHub Copilot ✓ vendor

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is microsoft/agentrc's own configuration. It tells GitHub Copilot how to work on agentrc itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentrc configures →

About the project

AgentRC prepares repositories for AI coding agents by analyzing their code and generating project-specific instructions, evaluations, and development configuration. It is used through a CLI, VS Code extension, or CI pipeline to measure AI readiness, keep context useful, and detect drift; the catalogue entries support these repository-preparation workflows.

microsoft/agentrc · 1,052 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/agentrc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/agentrc/main/.github/prompts/align-cli-webapp-reports.prompt.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/agentrc

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for align-cli-webapp-reports

README.md
[![agentmods](https://agentmods.dev/badge/commands/microsoft/agentrc/align-cli-webapp-reports.svg)](https://agentmods.dev/commands/microsoft/agentrc/align-cli-webapp-reports)
Your own site
<a href="https://agentmods.dev/commands/microsoft/agentrc/align-cli-webapp-reports"><img src="https://agentmods.dev/badge/commands/microsoft/agentrc/align-cli-webapp-reports.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,681 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01681
Opus 5 $0.00014 $0.00840
Sonnet 5 $0.00005 $0.00336
Haiku 4.5 $0.00003 $0.00168

Measured yesterday against content hash 7145300a2865, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

align-cli-webapp-reports scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/prompts/align-cli-webapp-reports.prompt.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are debugging consistency between two readiness report outputs for the AgentRC project:

  1. CLI visual report — generated by npm run dev -- readiness --visual from the repo root (produces an HTML file)
  2. Webapp report — rendered by the local dev server at http://localhost:3000/{owner}/{repo}

Both should produce identical results for the same repository because they share the same core engine (packages/core/src/services/readiness.ts). In practice they can diverge due to rendering differences or scoring logic bugs.

Architecture Reference

Shared Core (source of truth for checks)

  • packages/core/src/services/readiness.ts — All criteria definitions, countStatus(), buildCriteria(), buildExtras(), pillar/level aggregation
  • Criteria scopes: repo (always), app (per-application), area (only with --per-area)
  • countStatus() excludes skipped checks from the denominator when computing pillar pass/total
  • Extras (bonus checks) are not scored — they don't affect levels or totals

CLI Rendering

  • packages/core/src/services/visualReport.ts — Generates the standalone HTML report
  • calculateAiToolingData() — Aggregates AI criteria across repos (counts all including skipped in the hero display)
  • Total checks: report.pillars.reduce((s, p) => s + p.total, 0)
  • Does not render bonus/extras section in HTML output

Webapp Backend

  • webapp/backend/src/services/scanner.js — Clones repo, calls runReadinessReport() from @agentrc/core
  • webapp/backend/src/routes/scan.jsPOST /api/scan endpoint
  • Returns the raw ReadinessReport JSON (same shape as CLI)
  • Uses @agentrc/core as a file:../../packages/core dependency — always uses local source code

Webapp Frontend

  • webapp/frontend/src/report.js — Independent rendering implementation (NOT shared with CLI)
  • buildHero() — Total from report.pillars.reduce((s, p) => s + p.total, 0)
  • buildAiToolingHero() — Renders all AI criteria (including skipped) with pass/total count
  • buildPillarDetails() — Shows per-pillar expandable cards
  • Does render bonus checks section (unlike CLI)
  • Has Service Information section (policy chain, engine signals) — CLI doesn't

Read the full file on GitHub · 162 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 162 lines · 27 tokens per session scan A 7145300a2865

Subscribe to this mod's changes

align-cli-webapp-reports is a command published in the GitHub repository microsoft/agentrc (1,052 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,681 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.