AGENTS.md
app/AGENTS.mdAGENTS.md
Quality
52/100
Scores the file, not the repository.Length
164 words
6 headings · 0 code blocksRepository
16k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# App23## Directory Structure45- `app/components/` - ViewComponent-based UI components (Ruby + ERB)6- `app/contracts/` - Validation and authorization contracts7- `app/controllers/` - Rails controllers8- `app/models/` - ActiveRecord models9- `app/services/` - Service objects (business logic)10- `app/workers/` - Background job workers1112## Code Style Guidelines1314### Ruby15- Follow [Ruby community style guide](https://github.com/bbatsov/ruby-style-guide)16- Use service objects for complex business logic (return `ServiceResult`)17- Use contracts for validation and authorization18- Keep controllers thin, models focused19- Document with [YARD](https://yardoc.org/)20- Write RSpec tests for all new features21- **Work package identifiers**: `WorkPackage.find("PROJ-42")` resolves semantic identifiers transparently. Use `find_by_display_id` only when input could legitimately be numeric OR semantic (controllers, URL-driven components, macro resolvers). Low-level code (queries, filters, services) should stick to `find_by(id:)` with primary keys. See `app/models/work_package/semantic_identifier/finder_methods.rb`.2223### Templates24- Use ERB for server-rendered views25- Use ViewComponents for reusable UI (with Lookbook previews)26- Lint with erb_lint before committing2728## Translations2930- UI strings must use translation keys (never hard-coded)31
Also in opf/openproject
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| opf/openprojectfrontend/AGENTS.md · 16k | AGENTS.md | setuptestlint-formatstyle+3 | 88/100 | 3 days ago | |
| opf/openprojectspec/AGENTS.md · 16k | AGENTS.md | teststylearch | 77/100 | 3 days ago | |
| opf/openproject.github/copilot-instructions.md · 16k | Copilot instructions | setuplint-formatgitdatabase+1 | 73/100 | 3 days ago | |
| opf/openprojectAGENTS.md · 16k | AGENTS.md | setuplint-formatarchtypes+3 | 90/100 | 3 days ago | |
| opf/openprojectconfig/AGENTS.md · 16k | AGENTS.md | no sections | 46/100 | 3 days ago | |
| opf/openprojectdb/AGENTS.md · 16k | AGENTS.md | styledatabase | 55/100 | 3 days ago | |
| opf/openprojectdocker/dev/AGENTS.md · 16k | AGENTS.md | setuptestdatabase | 74/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| rails/railsAGENTS.md · 59k | AGENTS.md | teststylearchgit+4 | 100/100 | 3 days ago | |
| react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126k | AGENTS.md | testlint-formatstylearch+4 | 99/100 | 3 days ago | |
| dotCMS/corecore-web/apps/dotcms-ui/AGENTS.md · 949 | AGENTS.md | buildteststyledependencies+3 | 94/100 | 3 days ago | |
| Freika/dawarichAGENTS.md · 10.0k | AGENTS.md | buildtestlint-formatstyle+4 | 94/100 | 2 days ago | |
| akodkod/operandiAGENTS.md · 73 | AGENTS.md | buildteststyletesting-strategy+3 | 93/100 | 3 days ago | |
| rubocop/rubocopAGENTS.md · 13k | AGENTS.md | stylearchgitagent-behaviour+1 | 90/100 | 3 days ago | |
| opf/openprojectAGENTS.md · 16k | AGENTS.md | setuplint-formatarchtypes+3 | 90/100 | 3 days ago |
