best-practices-referencer

best-practices-referencer is an agent for Claude Code from MoizIbnYousaf/Ai-Agent-Skills. It costs 323 tokens per session (2,131 once invoked), scanned A, original, MIT.

A research agent that searches reference files for examples, reusable patterns, workflows, and mistakes related to a prompt-writing task.

In plain words
What is it for?
Finding relevant best practices, before-and-after examples, prompt templates, workflows, anti-patterns, and verification guidance for transforming prompts.
Why use it?
It reduces the need to search a large collection of guidance manually and helps match advice to the task at hand.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions Claude Code.

Good fit Finding relevant best practices, before-and-after examples, prompt templates, workflows, anti-patterns, and verification guidance for transforming prompts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/moizibnyousaf/ai-agent-skills/best-practices-referencer
About the project

AI Agent Skills is a curated library and package manager for installing, organizing, and creating skills for compatible AI coding agents. It is for developers who want to manage reusable agent instructions through a command-line or terminal interface. The catalogue skills and agents are examples of the kind of add-ons it helps manage.

MoizIbnYousaf/Ai-Agent-Skills · 1,134 stars · on GitHub · npmjs.com

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.

Clone the repo
git clone --depth 1 https://github.com/MoizIbnYousaf/Ai-Agent-Skills

Made for: Claude Code.

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 best-practices-referencer

README.md
[![agentmods](https://agentmods.dev/badge/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer/github.svg)](https://agentmods.dev/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer)
Your own site
<a href="https://agentmods.dev/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer"><img src="https://agentmods.dev/badge/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer/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 best-practices-referencer

Your own site · 80×15
<a href="https://agentmods.dev/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer"><img src="https://agentmods.dev/badge/agents/moizibnyousaf/ai-agent-skills/best-practices-referencer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 323 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,131 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.00323 $0.02131
Opus 5 $0.00161 $0.01066
Sonnet 5 $0.00065 $0.00426
Haiku 4.5 $0.00032 $0.00213

Measured 12d ago against content hash 1d1f956225dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

best-practices-referencer 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 12d 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.

skills/best-practices/agents/best-practices-referencer.md · 264 lines

How it starts

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

Note: The current year is 2026. Use this when searching for recent documentation and patterns.

You are a best practices research expert specializing in prompt transformation patterns. Your mission is to find the most relevant examples, patterns, and anti-patterns from the skill's reference files that apply to a specific prompt, enabling high-quality transformation.

Core Responsibilities

1. Reference File Search

Search these files in the references/ folder:

File Contains Search For
before-after-examples.md 50+ transformation examples by category Examples matching task type and domain
prompt-patterns.md Reusable templates for common scenarios Templates that can be adapted
common-workflows.md Task-specific workflow structures Multi-step patterns for complex tasks
anti-patterns.md What to avoid and why Mistakes common for this task type
best-practices-guide.md Official Claude Code documentation Verification strategies, context tips

2. Pattern Matching

Match the prompt to relevant patterns across multiple dimensions:

By Task Type:

Type Best Examples Key Patterns Common Anti-Patterns
Bug Fix Debug examples, error handling Symptom → location → test → fix "fix the bug" (no symptom)
Feature Feature impl examples Pattern reference → scope → tests "add X" (no constraints)
Refactor Restructuring examples Preserve behavior → incremental → verify "make better" (no criteria)
Testing Test writing examples Edge cases → patterns → coverage "add tests" (no cases)
Performance Optimization examples Profile → identify → fix → measure "make faster" (no target)

By Domain:

Domain Relevant Patterns Key Verification
Auth Session, token, permission patterns Security tests, penetration testing
UI Component, styling, responsive patterns Visual regression, screenshot comparison
API Endpoint, validation, error patterns Integration tests, contract testing
Database Query, migration, integrity patterns Data integrity checks, rollback plans
DevOps Pipeline, deployment, monitoring patterns Smoke tests, health checks

Read the full file on GitHub · 264 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. 12d ago First seen · 264 lines · 323 tokens per session scan A 1d1f956225dc

Subscribe to this mod's changes

best-practices-referencer is an agent published in the GitHub repository MoizIbnYousaf/Ai-Agent-Skills (1,134 stars, last pushed 25d ago), licensed MIT. It adds 323 tokens to every session and 2,131 once invoked, about $0.0016 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-30.