project-conventions

project-conventions is a skill for Claude Code from ag0os/rails-dev-plugin. It costs 97 tokens per session (1,159 once invoked), scanned A, original, MIT.

A guide that scans a codebase to find its existing coding conventions and produces a summary of them. It checks patterns such as testing, authentication, jobs, error handling, and front-end structure.

In plain words
What is it for?
Use it before writing code in an unfamiliar repository, especially when you need to match its Rails architecture, tests, services, authentication, or background-job setup.
Why use it?
It helps generated code fit the project instead of introducing unrelated or inconsistent patterns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the rails-dev-plugin plugin — 19 skills, 11 agents shipped together

Good fit Use it before writing code in an unfamiliar repository, especially when you need to match its Rails architecture, tests, services, authentication, or background-job setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ag0os/rails-dev-plugin/project-conventions
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 ag0os/rails-dev-plugin --skill project-conventions
Clone the repo
git clone --depth 1 https://github.com/ag0os/rails-dev-plugin

Made for: Claude Code.

Or install rails-dev-plugin, the plugin that ships this one along with the rest of its 19 skills, 11 agents.

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 project-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/ag0os/rails-dev-plugin/project-conventions/github.svg)](https://agentmods.dev/skills/ag0os/rails-dev-plugin/project-conventions)
Your own site
<a href="https://agentmods.dev/skills/ag0os/rails-dev-plugin/project-conventions"><img src="https://agentmods.dev/badge/skills/ag0os/rails-dev-plugin/project-conventions/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 project-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/ag0os/rails-dev-plugin/project-conventions"><img src="https://agentmods.dev/badge/skills/ag0os/rails-dev-plugin/project-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,159 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.00097 $0.01159
Opus 5.5 $0.00039 $0.00464
Sonnet 5.5 $0.00019 $0.00232
Haiku 4.5 $0.00010 $0.00116

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

Security

Grade A, and why

project-conventions 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 3mo 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/project-conventions/SKILL.md · 98 lines

How it starts

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

Project Conventions Detection

Purpose

Auto-detect project-specific patterns so agents generate code matching the project, not generic Rails. Produces a Convention Fingerprint — a structured summary of observed patterns. Scan the codebase; do not ask the developer what patterns they use.

Fingerprint vs. Architecture Axes

This skill is the canonical source for orthogonal project facts — facts that are independent of architecture and must never be inferred from a "profile":

  • test framework and data strategy (Minitest/RSpec, fixtures/factories)
  • job backend, cache store, real-time backend (Solid Queue/Sidekiq, Solid Cache/Redis)
  • auth library and authorization library (built-in/Devise, none/Pundit)
  • serialization library, pagination library, custom base classes

A project with extracted service objects can still use Minitest; an omakase app can run Sidekiq. Skills consume these fingerprint fields directly — they do not branch on an architecture profile to guess them.

Architecture itself — where logic lives and html vs api delivery — is the separate concern of rails-stack-profiles (Axis A and Axis B). The fingerprint detects facts; the axes classify architecture. The two are resolved independently and both cached for the session.

Convention Categories

Category Detects Key Agents
Service Objects base class, entry point, naming, result type rails-service, rails-architect
Auth strategy, modules, custom controllers, token approach rails-controller, rails-auth
Testing framework specifics, shared examples, custom matchers, spec style rails-test
Base Classes custom ApplicationX classes all agents
Error Handling exception hierarchy, rescue_from patterns rails-controller, rails-service
Jobs base config, queue names, naming pattern, retry strategy rails-jobs
Controllers pagination, authorization, response helpers rails-controller, rails-api
Domain Model key entities, complexity, namespace structure rails-model, rails-architect
Serialization library, envelope format, naming rails-api
Frontend CSS framework, Stimulus patterns, component library, bundler rails-views, rails-hotwire

Read the full file on GitHub · 98 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. 3mo ago First seen · 98 lines · 97 tokens per session scan A e5c8a0d61058

Subscribe to this mod's changes

project-conventions is a skill published in the GitHub repository ag0os/rails-dev-plugin (5 stars, last pushed 6mo ago), licensed MIT. It adds 97 tokens to every session and 1,159 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-08-31.

Related

project-conventions compared with skills from other repositories

project-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
project-conventionsag0os/rails-dev-pluginSkill56mo agoMITA97Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.2ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k9d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k3d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9743d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex