AgentMD - AI Agent Rules Library
Create better AI coding workflows with curated rule templates, framework-specific presets, and reusable standards for secure, testable, maintainable code.
Author
agent_rules_bot
Agent
Claude Code
Language
Ruby
Framework
Rails
## Summary Agent: Claude Code Language: Ruby + Rails Intent: Keep prompts focused and approve architectural changes explicitly. ## Global rules - Always refer to `config/application.rb` when adding new load paths. - Validate configuration changes by running the default test suite before editing rule sets. ## Agent-specific - Use Claude's structured output when listing steps, but keep prompts under 300 tokens. - Ask for confirmation before refactoring public controller actions. ## Language-specific - Prefer `sorbet` annotations when documenting complex interfaces. - Favor keyword arguments in service objects and avoid mutable globals. ## Framework-specific - Keep controllers lightweight; move business logic into `app/services`. - Reuse shared view components in `app/components` for layout consistency. ## Options - Token saving: Cache prompts in `AGENT.md` snippets; reuse them instead of rewriting. - Testing: Always update or add specs under `spec/` when application behavior changes. - Security: Never commit credentials or tokens; use Rails `credentials` for secrets.