modern-web-guidance-src: Skill for Claude Code

.agents/skills/dev-prompt-canary/SKILL.md

dev-prompt-canary is a skill for Claude Code, Codex from GoogleChrome/modern-web-guidance-src. It costs 106 tokens per session (1,453 once invoked), scanned A, original, Apache-2.0.

An empirical check for changes to developer prompts and grading code in an evaluation system. It regenerates task and grader files and tests a separate solution to catch behavior that ordinary text-based unit tests may miss.

In plain words
What is it for?
Use it when changing the named authoring or grading files to run fast incremental checks and a held-out canary evaluation.
Why use it?
A prompt can still produce bad generated tasks or graders even when tests only confirm that expected words appear in the template.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions Codex.

This is GoogleChrome/modern-web-guidance-src's own configuration. It tells Claude Code and Codex how to work on modern-web-guidance-src 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 modern-web-guidance-src configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ln -s ../../node_modules .worktrees/canary-eval/node_modules.

About the project

Modern Web Guidance is a source repository for coding-agent skills that provide web-platform guidance, recommended practices, and browser compatibility information. It helps coding agents choose newer web APIs and patterns when generating web applications. The catalogue skills are the guidance produced and maintained by this project.

GoogleChrome/modern-web-guidance-src · 1,202 stars · on GitHub · goo.gle

Reuse

Borrowing it

Nothing to install: this file belongs to GoogleChrome/modern-web-guidance-src. 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/GoogleChrome/modern-web-guidance-src/main/.agents/skills/dev-prompt-canary/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/GoogleChrome/modern-web-guidance-src

Made for: Claude Code, Codex.

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 dev-prompt-canary

README.md
[![agentmods](https://agentmods.dev/badge/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary/github.svg)](https://agentmods.dev/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary)
Your own site
<a href="https://agentmods.dev/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary"><img src="https://agentmods.dev/badge/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dev-prompt-canary

Your own site · 80×15
<a href="https://agentmods.dev/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary"><img src="https://agentmods.dev/badge/skills/googlechrome/modern-web-guidance-src/dev-prompt-canary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,453 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.00106 $0.01453
Opus 5.5 $0.00042 $0.00581
Sonnet 5.5 $0.00021 $0.00291
Haiku 4.5 $0.00011 $0.00145

Measured 4d ago against content hash cd2f2991b17c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dev-prompt-canary 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 4d ago.

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.

.agents/skills/dev-prompt-canary/SKILL.md · 75 lines

How it starts

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

gd dev Prompt Canary Validation

Unit tests in src/authoring/dev-prompts.test.ts only verify substring presence in prompt templates—they cannot catch behavioral regressions in what the LLM actually generates.

Whenever you modify src/authoring/dev-prompts.ts, src/authoring/dev.ts, src/grading/generate-grader.ts, or src/grading/template.grader.ts, run this fast empirical canary workflow to verify that generated task.md and grader.ts files obey the rules in project-evals.


1. Incremental Regeneration Mechanics (~4 Minutes Total)

Running gd dev <guide> from scratch takes ~25 minutes per guide because it generates 3 golden solution patches, a zero-passrate.patch, task.md, grader.ts, and runs full evaluations.

Instead, use dev.ts's incremental file-existence checks inside a throwaway worktree:

  • task.md Only (~45s for 8 targets): Keep existing patches and graders untouched. Call extractGuideDescription + buildTargetTaskPrompt + runAgent in a small runner script (or delete only targets/<app>/task.md and run devGuide(dir, { test: false, targets: [app] })).
  • grader.ts Only (~2–3 mins per target): Keep targets/<app>/patches/*-solution.patch, zero-passrate.patch, and task.md untouched. Delete only targets/<app>/grader.ts, then run devGuide(dir, { test: false, targets: [app] }) to regenerate and calibrate grader.ts.

2. Execution Workflow

Step 1: Create an Isolated Scratch Worktree

Never mutate guides/ inside your active feature worktree. Branch a temporary worktree off your candidate commit:

git worktree add -B exp/canary-eval .worktrees/canary-eval HEAD
ln -s ../../node_modules .worktrees/canary-eval/node_modules
ln -s ../../.env .worktrees/canary-eval/.env

Read the full file on GitHub · 75 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. 4d ago First seen · 75 lines · 106 tokens per session scan A cd2f2991b17c

Subscribe to this mod's changes

dev-prompt-canary is a skill published in the GitHub repository GoogleChrome/modern-web-guidance-src (1,202 stars, last pushed today), licensed Apache-2.0. It adds 106 tokens to every session and 1,453 once invoked, about $0.0004 per session on Opus 5.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-10-23.

Related

Other skills, from other repositories

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

tika-eval-compare

Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".

apache/tika · 50 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens

atmos-validation

Validate Atmos projects, components, arbitrary JSON Schema inputs, EditorConfig, and GitHub Actions; use affected-file selection and native CI annotations.

cloudposse/atmos · 31 tokens

skill-benchmark

Benchmark AI skill effectiveness by measuring implementation quality against legacy constraints.

HoangNguyen0403/agent-skills-standard · 16 tokens