add-convention

add-convention is a skill for Claude Code, Codex from EvolveHQ/docflow. It costs 150 tokens per session (2,530 once invoked), scanned A, original, MIT.

A guided tool for deciding whether a reusable rule or naming practice belongs in a repository’s documentation, and where to record it.

In plain words
What is it for?
Use it to assess and route a convention to AGENTS.md, CONVENTIONS.md, a glossary, or an architecture decision record.
Why use it?
It prevents one-off decisions or duplicate guidance from being added as permanent project rules.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions AGENTS.md.

Part of the docflow plugin — 14 skills shipped together

Good fit Use it to assess and route a convention to AGENTS.md, CONVENTIONS.md, a glossary, or an architecture decision record.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evolvehq/docflow/add-convention
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.

Any agent
npx skills add EvolveHQ/docflow --skill add-convention
Clone the repo
git clone --depth 1 https://github.com/EvolveHQ/docflow

Made for: Claude Code, Codex.

Or install docflow, the plugin that ships this one along with the rest of its 14 skills.

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 add-convention

README.md
[![agentmods](https://agentmods.dev/badge/skills/evolvehq/docflow/add-convention/github.svg)](https://agentmods.dev/skills/evolvehq/docflow/add-convention)
Your own site
<a href="https://agentmods.dev/skills/evolvehq/docflow/add-convention"><img src="https://agentmods.dev/badge/skills/evolvehq/docflow/add-convention/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 add-convention

Your own site · 80×15
<a href="https://agentmods.dev/skills/evolvehq/docflow/add-convention"><img src="https://agentmods.dev/badge/skills/evolvehq/docflow/add-convention.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,530 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.00150 $0.02530
Opus 5.5 $0.00060 $0.01012
Sonnet 5.5 $0.00030 $0.00506
Haiku 4.5 $0.00015 $0.00253

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

Security

Grade A, and why

add-convention 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 11d 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.

plugins/docflow/skills/add-convention/SKILL.md · 190 lines

How it starts

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

add-convention

Add a convention — but only after assessing whether it should exist and where it belongs. This skill is a gatekeeper and a router, not a stenographer.

Step 0 — Preconditions and context

  1. Confirm the repo is bootstrapped.
  2. Read CONVENTIONS.md and AGENTS.md in full so you can detect overlap with existing rules and judge fit.

Step 0.5 — Assessment (run first)

Run the shared assessment protocol; the triage (Step 1) and routing (Step 2) questions are asked under it:

  • Reuse supplied answers first. Treat applicable choices already supplied in the request or this session, including depth, as answered. Summarise them without asking again; defaults never replace explicit choices. If every material choice is supplied, proceed. Ask only about a material missing or conflicting choice. A repository preference alone is not a current answer or execution grant.

  • Depth selector for unresolved choices. If depth is not supplied and choices remain, ask how deep this assessment should go: express — every choice takes its recommended default; only questions with no derivable default (the free-text essentials) are still asked; guided — only the questions marked high-impact below, plus the free-text essentials; full — every question below. If the repo's CONVENTIONS.md records an Assessment depth:, pre-select it as the recommended option when asking; a recorded depth is never applied silently. Otherwise recommend full when the request arrived with little or no context and express when it is already fully specified. At any question the operator may answer "defaults from here" or "go deeper"; honour the switch immediately.

  • Ask questions one at a time, each with a recommended option and a one-line reason; wait for each answer.

  • Use structured selection (single- or multiple-choice). If the host exposes a structured single-/multi-select question tool, use it and mark the recommended option; otherwise list options A/B/C in plain text and name the recommended one. Use free text only where an enumerable set is impossible (e.g. the exact wording).

  • The operator decides. Never proceed past a question without an answer, and never guess scope when invoked with no context.

Read the full file on GitHub · 190 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed · +68 lines badc78678c4b
  2. 1mo ago Changed · +16 lines b31c865e9897
  3. 1mo ago First seen · 106 lines · 150 tokens per session scan A 0383027112ce

Subscribe to this mod's changes

add-convention is a skill published in the GitHub repository EvolveHQ/docflow (16 stars, last pushed 3d ago), licensed MIT. It adds 150 tokens to every session and 2,530 once invoked, about $0.0006 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-08-31.

Related

Other skills, from other repositories

adr-integration

This skill should be used when the user asks about "ADR integration", "ADR CI/CD", "ADR tooling", "ADR automation", "export ADRs", "ADR documentation site", or needs guidance on integrating ADRs with CI/CD, documentation sites, and other tools.

zircote-plugins/adr · 59 tokens

adr-decision-drivers

This skill should be used when the user asks about "decision drivers", "architectural forces", "quality attributes", "how to identify trade-offs", "non-functional requirements for ADRs", or needs help identifying, documenting, and weighing the forces that influence architectural decisions.

zircote-plugins/adr · 60 tokens

adr-compliance

This skill should be used when the user asks about "ADR compliance", "architecture compliance", "ADR audit", "enforce ADRs", "check code against ADRs", "ADR violations", or needs guidance on auditing code compliance with accepted architectural decision records.

zircote-plugins/adr · 56 tokens

adr-fundamentals

This skill should be used when the user asks "what is an ADR", "when should I create an ADR", "ADR best practices", "architecture decision records", "ADR lifecycle", "how to document architecture decisions", or needs guidance on ADR fundamentals, when to create ADRs, or ADR lifecycle management.

zircote-plugins/adr · 68 tokens

adr-quality

This skill should be used when the user asks about "ADR quality", "review ADR", "ADR checklist", "improve ADR", "ADR validation", "good ADR examples", or needs guidance on evaluating, improving, and maintaining high-quality architectural decision records.

zircote-plugins/adr · 55 tokens

atlas-adr

Write an Architecture Decision Record — document what was decided, why, what alternatives were considered, and what trade-offs were accepted. Use when asked to "write an ADR", "document this decision", or "why did we choose X".

tonone-ai/tonone · 51 tokens