Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mooktakimv0.17.1MITIn 1 marketplace
Per-directory AGENTS.md context files for Rails apps (MVC Context), each imported by a one-line CLAUDE.md: survey, generate, migrate the old symlink layout; re-runs audit drift and fill gaps
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rails is MVC. This skill adds a fourth letter: Context. It sets up per-directory context files across a Rails application so that AI agents working in any part of the codebase automatically inherit that directory's local conventions.
/plugin marketplace add mooktakim/skills
/plugin install rails-context@mooktakim
AGENTS.md in each significant directory under app/ and lib/, describing that directory's conventions: naming, base classes, call signatures, return shapes, what a correct new addition looks like, and gotchas.CLAUDE.md beside each one that imports it (@AGENTS.md): every coding agent reads AGENTS.md, and Claude Code, which reads only CLAUDE.md, gets the same content through the import. Edits go to AGENTS.md; CLAUDE.md holds only the import, plus any rule for Claude alone. Plain files, no symlinks.bin/audit_context - a drift-detection script that flags directories whose code has changed since their context file was last touched, plus directories whose files are not yet in the AGENTS.md + importing CLAUDE.md layout, each with the command that converts it. Its output is a signal to review, not proof of staleness.There is no separate audit command: re-running the skill is the audit (see below).
How a directory's conventions reach the agent, whichever tool it uses:
flowchart LR
work["Agent works on<br/>app/services/charge.rb"] --> how{"Which tool?"}
how -->|"Read"| load["Claude Code loads<br/>app/services/CLAUDE.md"]
load -->|"@AGENTS.md import"| agents["app/services/AGENTS.md<br/>the directory's conventions"]
how -->|"Bash, Edit, Write, Grep"| hook["PostToolUse hook"]
hook -->|"hands it over"| agents
other["Codex, Cursor,<br/>other agents"] -->|"read it directly"| agents
Context files describe the shape of a directory, never its contents. "Services are single-purpose command objects named VerbNoun, exposing .call and returning a Result" is allowed; "the main services are X, Y, Z" is forbidden. File lists go stale the moment anyone adds a file, and a stale context file is worse than none - the code is the inventory, and agents can glob and grep it. Context files answer what grep cannot: why the directory is structured this way, what a correct new addition looks like, what mistakes to avoid.
The litmus test: if a sentence would need editing when someone adds one more file of the same kind, the sentence gets deleted. Files aim for 30-100 lines - a density check, not a token budget, since each file loads only for work in its own directory. A file may grow past 100 once it provably holds nothing but app-specific intent, and 150 lines or 10 KB triggers a restructuring review (usually a nested-file split). The root CLAUDE.md loads in every session, so it has its own budget: aim under 8 KB, review at 200 lines or 12 KB. bin/audit_context reports every file past its trigger. Only directories that earn a file get one - a vanilla app/helpers/ gets nothing.
The skill works in four phases, with you approving between them:
references/ (models, controllers, services, components, jobs, views, test). Context files are only written for directories the app actually has and uses - nothing is ever scaffolded. Contradictory patterns get flagged to you rather than papered over.bin/audit_context.npx claudepluginhub mooktakim/skills --plugin rails-contextPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.