claude-ruby-grape-rails markdown-review.instructions.md

A set of review rules for Markdown files used as instructions for coding agents rather than as documents for people. It covers agent and skill metadata, command formatting, and consistency checks.

In plain words
What is it for?
Use it to review agent and skill Markdown files, especially their frontmatter, imperative wording, shell commands, and formatting.
Why use it?
It helps catch instruction files that contain unsuitable teaching prose, invalid metadata, or unclear command structure.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/slbug/claude-ruby-grape-rails/markdown-review
Clone the repo
git clone --depth 1 https://github.com/slbug/claude-ruby-grape-rails

Made for: GitHub Copilot.

Per session 1,713 This file is loaded in full into every session.
When invoked 1,713 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01713 $0.01713
Opus 5 $0.00856 $0.00856
Sonnet 5 $0.00343 $0.00343
Haiku 4.5 $0.00171 $0.00171

Measured 2d ago against content hash 490256e8e1d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-ruby-grape-rails markdown-review.instructions.md 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 2d 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.

.github/instructions/markdown-review.instructions.md · 147 lines

How it starts

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

Markdown File Review Rules

Audience: Agents, Not Humans

Markdown in this repo loads into agent context at runtime. Flag prose that violates the imperative-only rule:

  • Tutorial narration ("first do X, then Y, this teaches…") → flag
  • Reasoning preludes before commands → flag
  • # thinking/checklist lines inside Bash command bodies (preference #6) → flag, suggest markdown table or prose lead-in
  • Long explanatory paragraphs where a table fits → flag

Exception files (human-facing, narrative OK): README.md, CHANGELOG.md, files under scripts/ (executable code), files under lab/eval/ (test fixtures).

Skill and Agent Frontmatter

Files under plugins/**/skills/ and plugins/**/agents/ use YAML frontmatter between --- delimiters. This is Claude Code plugin syntax, not standard markdown metadata.

Valid frontmatter fields for skills: name, description (single field per agentskills.io canon — no when_to_use), argument-hint, arguments, effort, disable-model-invocation, user-invocable, allowed-tools, disallowed-tools, model, context, agent, hooks, shell. The paths: field is documented in CC skill schema but empirically non-functional at plugin scope; do NOT add it to plugin SKILL.md (project-level .claude/rules/*.md paths: remains functional and is a separate mechanism).

Valid frontmatter fields for agents (general subagent surface, see https://docs.claude.com/en/docs/claude-code/sub-agents): name, description, model, effort, maxTurns, tools, disallowedTools, skills, memory, background, isolation, omitClaudeMd, color, initialPrompt. Plugin-shipped agents under plugins/**/agents/ are narrowed by the plugins reference (https://docs.claude.com/en/docs/claude-code/plugins-reference) to the subset CC honors on plugin agents — do not add color or initialPrompt to plugin-shipped agents (see plugin-review.instructions.md for the narrowed set).

Runtime Variables

These are NOT errors — they are resolved at runtime by Claude Code:

  • ${CLAUDE_SKILL_DIR} — path to the skill's own directory
  • ${CLAUDE_PLUGIN_ROOT} — path to the plugin root
  • ${CLAUDE_PLUGIN_DATA} — persistent plugin data directory

Read the full file on GitHub · 147 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. 2d ago First seen · 147 lines · 1,713 tokens per session scan A 490256e8e1d9

Subscribe to this mod's changes

claude-ruby-grape-rails markdown-review.instructions.md is an instructions file published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed 3d ago), licensed MIT. It adds 1,713 tokens to every session, about $0.0086 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-08-31.