AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
87/100
Scores the file, not the repository.Length
509 words
6 headings · 0 code blocksRepository
186k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# AutoGPT Platform Contribution Guide23This guide provides context for coding agents when updating the **autogpt_platform** folder.45## Directory overview67- `autogpt_platform/backend` – FastAPI based backend service.8- `autogpt_platform/autogpt_libs` – Shared Python libraries.9- `autogpt_platform/frontend` – Next.js + Typescript frontend.10- `autogpt_platform/docker-compose.yml` – development stack.1112See `docs/content/platform/getting-started.md` for setup instructions.1314## Code style1516- Format Python code with `poetry run format`.17- Format frontend code using `pnpm format`.1819## Frontend guidelines:2021See `/frontend/CONTRIBUTING.md` for complete patterns. Quick reference:22231. **Pages**: Create in `src/app/(platform)/feature-name/page.tsx`24 - Add `usePageName.ts` hook for logic25 - Put sub-components in local `components/` folder262. **Components**: Structure as `ComponentName/ComponentName.tsx` + `useComponentName.ts` + `helpers.ts`27 - Use design system components from `src/components/` (atoms, molecules, organisms)28 - Never use `src/components/__legacy__/*`293. **Data fetching**: Use generated API hooks from `@/app/api/__generated__/endpoints/`30 - Regenerate with `pnpm generate:api`31 - Pattern: `use{Method}{Version}{OperationName}`324. **Styling**: Tailwind CSS only, use design tokens, Phosphor Icons only335. **Testing**: Integration tests (Vitest + RTL + MSW) are the default (~90%, page-level). Playwright for E2E critical flows. Storybook for design system components. See `autogpt_platform/frontend/TESTING.md`346. **Code conventions**: Function declarations (not arrow functions) for components/handlers3536- Component props should be `interface Props { ... }` (not exported) unless the interface needs to be used outside the component37- Separate render logic from business logic (component.tsx + useComponent.ts + helpers.ts)38- Colocate state when possible and avoid creating large components, use sub-components ( local `/components` folder next to the parent component ) when sensible39- Avoid large hooks, abstract logic into `helpers.ts` files when sensible40- Use function declarations for components, arrow functions only for callbacks41- No barrel files or `index.ts` re-exports42- Avoid comments at all times unless the code is very complex43- Do not use `useCallback` or `useMemo` unless asked to optimise a given function44- Do not type hook returns, let Typescript infer as much as possible45- Never type with `any`, if not types available use `unknown`4647## Testing4849- Backend: `poetry run test` (runs pytest with a docker based postgres + prisma).50- Frontend integration tests: `pnpm test:unit` (Vitest + RTL + MSW, primary testing approach).51- Frontend E2E tests: `pnpm test` or `pnpm test-ui` for Playwright tests.52- See `autogpt_platform/frontend/TESTING.md` for the full testing strategy.5354Always run the relevant linters and tests before committing.55Use conventional commit messages for all commits (e.g. `feat(backend): add API`).56Types: - feat - fix - refactor - ci - dx (developer experience)57Scopes: - platform - platform/library - platform/marketplace - backend - backend/executor - frontend - frontend/library - frontend/marketplace - blocks5859## Pull requests6061- Use the template in `.github/PULL_REQUEST_TEMPLATE.md`.62- Rely on the pre-commit checks for linting and formatting63- Fill out the **Changes** section and the checklist.64- Use conventional commit titles with a scope (e.g. `feat(frontend): add feature`).65- Keep out-of-scope changes under 20% of the PR.66- Ensure PR descriptions are complete.67- For changes touching `data/*.py`, validate user ID checks or explain why not needed.68- If adding protected frontend routes, update `frontend/lib/supabase/middleware.ts`.69- Use the linear ticket branch structure if given codex/open-1668-resume-dropped-runs70
Also in Significant-Gravitas/AutoGPT
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 |
|---|---|---|---|---|---|
| Significant-Gravitas/AutoGPTautogpt_platform/frontend/src/tests/AGENTS.md · 186k | AGENTS.md | teststylearchtypes+2 | 81/100 | 3 days ago | |
| Significant-Gravitas/AutoGPT.github/copilot-instructions.md · 186k | Copilot instructions | setupbuildtestlint-format+10 | 88/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/AGENTS.md · 186k | AGENTS.md | setuptestarchtesting-strategy+3 | 77/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/backend/AGENTS.md · 186k | AGENTS.md | setuptestlint-formatstyle+9 | 81/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/backend/backend/copilot/graphiti/AGENTS.md · 186k | AGENTS.md | styleperformance | 66/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/frontend/AGENTS.md · 186k | AGENTS.md | setupbuildtestlint-format+7 | 96/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/CLAUDE.md · 186k | CLAUDE.md | setuptestlint-formatstyle+7 | 89/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/direct_benchmark/CLAUDE.md · 186k | CLAUDE.md | setuptestlint-formatarch+4 | 78/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/forge/CLAUDE.md · 186k | CLAUDE.md | teststylearchtypes+3 | 73/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTclassic/original_autogpt/CLAUDE.md · 186k | CLAUDE.md | testarchuiperformance+2 | 90/100 | 3 days ago | |
| Significant-Gravitas/AutoGPT.claude/skills/vercel-react-best-practices/AGENTS.md · 186k | AGENTS.md | buildlint-formatstyledependencies+4 | 61/100 | 3 days ago |
Diff against autogpt_platform/frontend/src/tests/AGENTS.md Diff against .github/copilot-instructions.md Diff against autogpt_platform/AGENTS.md Diff against autogpt_platform/backend/AGENTS.md Diff against autogpt_platform/backend/backend/copilot/graphiti/AGENTS.md Diff against autogpt_platform/frontend/AGENTS.md Diff against classic/CLAUDE.md Diff against classic/direct_benchmark/CLAUDE.md Diff against classic/forge/CLAUDE.md Diff against classic/original_autogpt/CLAUDE.md Diff against .claude/skills/vercel-react-best-practices/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| vllm-project/vllmAGENTS.md · 88k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
