AGENTS.md
generative_ui_agents/ai-dashboard-canvas-agent/AGENTS.mdAGENTS.md
Quality
86/100
Scores the file, not the repository.Length
395 words
9 headings · 0 code blocksRepository
130k
— · pushed 1 days agoLast changed
3 days ago
First indexed 3 days ago.1# Repository Guidelines23## Project Structure & Module Organization45- Frontend (Next.js + TypeScript): `src/app/**` (pages: `page.tsx`, `layout.tsx`, styles: `globals.css`). API route for CopilotKit: `src/app/api/copilotkit/route.ts`.6- Agent (ADK/Python): `agent/agent.py`, virtual env in `agent/.venv`, deps in `agent/requirements.txt`.7- Public assets: `public/`. Config: `next.config.ts`, `tsconfig.json`, `eslint.config.mjs`.8- Scripts: `scripts/run-agent.sh`, `scripts/setup-agent.sh`.910## Build, Test, and Development1112- `npm run dev` — runs UI (`next dev --turbopack`) and the Python agent concurrently.13- `npm run dev:ui` — frontend only; useful for UI iteration.14- `npm run dev:agent` — agent only; activates `.venv` and runs `agent.py`.15- `npm run build` — production build for the Next.js app.16- `npm start` — serve the built app.17- `npm run lint` — lint the frontend with Next/ESLint.18- First-time setup installs the agent via `postinstall` (creates `.venv` and installs Python deps).1920## Coding Style & Naming Conventions2122- TypeScript/React: 2-space indent, PascalCase components, camelCase variables, file-based routing under `src/app/**`.23- Python agent: follow PEP 8; keep modules small and composable.24- Linting: Next.js ESLint config (`npm run lint`). Prefer explicit types in exported APIs.25- Components: colocate with usage; export from an `index.ts` when creating reusable modules.2627## Testing Guidelines2829- Currently no test harness. When adding tests:30 - Frontend: Jest/Vitest in `src/__tests__/` with `*.test.ts(x)`.31 - Agent: `pytest` in `agent/tests/` with `test_*.py`.32 - Aim for high coverage on data shaping (dashboard spec generation, adapters).3334## Commit & Pull Request Guidelines3536- Conventional Commits: `type(scope): message`.37 - Types: `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `ci`.38 - Example: `feat(charts): support pie charts`.39- PRs: clear description, linked issue, before/after screenshots or JSON spec samples, and testing notes.40- Keep PRs focused; call out env/config changes explicitly.4142## Environment, Security & Config4344- Place secrets in `.env.local` (frontend) and `agent/.env` (agent). Never commit secrets.45- Example keys (adjust to your provider):46 - Frontend: `NEXT_PUBLIC_CPK_ENDPOINT=/api/copilotkit`.47 - Agent: `GOOGLE_API_KEY=...` (Gemini), or `OPENAI_API_KEY=...` if applicable.48- Validate/sanitize prompts; avoid logging PII. Prefer `INFO` logs with redaction.4950## Charts & CopilotKit Tips5152- Dashboard spec (example): `{ "type": "line", "title": "Revenue", "x": "date", "y": "revenue" }`.53- Supported types to target in UI: `line`, `bar`, `pie`54- Naming: use singular `x`/`y` for series55- Recharts via CPK: map spec→props; e.g., `LineChart` with `dataKey={spec.y}` and `XAxis dataKey={spec.x}`;5657## Architecture Overview5859- Next.js app hosts CopilotKit UI and API route; Python agent performs ADK/Gemini orchestration. `npm run dev` runs both together.60
Also in Shubhamsaboo/awesome-llm-apps
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 |
|---|---|---|---|---|---|
| Shubhamsaboo/awesome-llm-appsgenerative_ui_agents/generative-ui-starter-project/CLAUDE.md · 130k | CLAUDE.md | setupbuildarchdependencies+2 | 85/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+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 | |
| OnlyTerp/prompt-cache-skillsAGENTS.md · 112 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| vllm-project/vllmAGENTS.md · 88k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 3 days ago |
