AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
88/100
Scores the file, not the repository.Length
824 words
15 headings · 2 code blocksRepository
0
— · pushed 12 days agoLast changed
3 days ago
First indexed 3 days ago.1# AGENTS.md23These instructions apply to the entire repository.45## Stack67- Use Node.js 20.9.0 or newer.8- App is Next.js portfolio site with page routes under `pages/`.9- Shared UI lives under `components/`.10- Extracted design-system primitives live under `components/design-system/`.11- Static assets live under `static/`.12- Static export output lives under `out/`.1314## Design Context1516- Read `PRODUCT.md` before making UX, copy, or layout decisions.17- Read `DESIGN.md` before changing colors, type, spacing, elevation, or component styling.18- Reuse existing tokens and primitives from `components/design-system/` before adding new hard-coded values.19- Keep portfolio feel aligned with current design direction: light paper background, Trirong + Rubik typography, selective project accent colors, soft shadows, restrained motion.2021## Working Rules2223- Prefer small, low-churn edits over broad rewrites.24- When a visual pattern is repeated 3+ times, extract into `components/design-system/` or an existing shared component instead of duplicating it again.25- Avoid modifying `package-lock.json` unless dependency work requires it.26- If you change source UI code, do not hand-edit `out/`; regenerate via build.2728## Verification2930- After making code changes, run:31```bash32 npm test33 npm run build34```35- Ensure both commands succeed before committing.36- `npm run build` performs static export and refreshes `out/`, including `out/.nojekyll`.3738## Repo Notes3940- `npm run build` is cross-platform. Keep it that way; do not reintroduce Windows-only shell snippets.41- Repository contains generated static HTML at root and under `out/`. Treat `pages/` and `components/` as source of truth.42- Jest tests live under `components/__tests__/`.4344## Commits4546- Follow Conventional Commits for commit messages.474849## Scope control5051Before editing, inspect the repository state:5253- Run `git status —short`54- Run `git diff —stat`55- If the diff is large, identify the largest changed files before editing.5657## Generated files5859Do not edit, stage, commit, or include generated output unless explicitly instructed.6061Treat these paths as generated:6263- `out/**`64- `.next/**`65- `dist/**`66- `build/**`67- `coverage/**`68- `.turbo/**`69- `.vercel/**`70- `node_modules/**`71- `*.map`72- `*.min.js`73- `*.min.css`74- generated lockfile churn not directly related to the requested change7576If a build command modifies generated files, leave them unstaged and report that they changed.7778## Commit and diff hygiene7980Keep changes small and source-focused.8182Prefer changing:8384- `src/**`85- `app/**`86- `pages/**`87- `components/**`88- `public/**` only when actual static assets intentionally change89- config files only when required9091Avoid mixing:9293- source changes94- formatting-only changes95- dependency updates96- generated build output97- deployment artifacts9899If deployment output is required, make it a separate deployment-only commit or branch, not part of the implementation diff.100101## Next.js / GitHub Pages102103For normal development tasks, do not commit `out/`.104105`out/` is deployment output, not source code. If GitHub Pages deployment needs it, use a separate deploy workflow, deploy branch, or explicit deployment step.106107108Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.109110**Tradeoff:** These guidelines bias toward caution over speed. For trivial tasks, use judgment.111112## 1. Think Before Coding113114**Don't assume. Don't hide confusion. Surface tradeoffs.**115116Before implementing:117- State your assumptions explicitly. If uncertain, ask.118- If multiple interpretations exist, present them - don't pick silently.119- If a simpler approach exists, say so. Push back when warranted.120- If something is unclear, stop. Name what's confusing. Ask.121122## 2. Simplicity First123124**Minimum code that solves the problem. Nothing speculative.**125126- No features beyond what was asked.127- No abstractions for single-use code.128- No "flexibility" or "configurability" that wasn't requested.129- No error handling for impossible scenarios.130- If you write 200 lines and it could be 50, rewrite it.131132Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.133134## 3. Surgical Changes135136**Touch only what you must. Clean up only your own mess.**137138When editing existing code:139- Don't "improve" adjacent code, comments, or formatting.140- Don't refactor things that aren't broken.141- Match existing style, even if you'd do it differently.142- If you notice unrelated dead code, mention it - don't delete it.143144When your changes create orphans:145- Remove imports/variables/functions that YOUR changes made unused.146- Don't remove pre-existing dead code unless asked.147148The test: Every changed line should trace directly to the user's request.149150## 4. Goal-Driven Execution151152**Define success criteria. Loop until verified.**153154Transform tasks into verifiable goals:155- "Add validation" → "Write tests for invalid inputs, then make them pass"156- "Fix the bug" → "Write a test that reproduces it, then make it pass"157- "Refactor X" → "Ensure tests pass before and after"158159For multi-step tasks, state a brief plan:160```1611. [Step] → verify: [check]1622. [Step] → verify: [check]1633. [Step] → verify: [check]164```165166Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.167168---169170**These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.171
Also in harritaito/harritaito.github.io
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 |
|---|---|---|---|---|---|
| harritaito/harritaito.github.io.clinerules/10-ui.md · 0 | Cline rules | teststyleuido-not | 40/100 | 3 days ago | |
| harritaito/harritaito.github.io.clinerules/00-project.md · 0 | Cline rules | buildteststylegit+2 | 78/100 | 3 days ago | |
| harritaito/harritaito.github.io.clinerules/20-docs.md · 0 | Cline rules | buildteststyledo-not+1 | 52/100 | 3 days ago | |
| harritaito/harritaito.github.io.clinerules/30-tests.md · 0 | Cline rules | teststyletesting-strategydo-not | 40/100 | 3 days ago | |
| harritaito/harritaito.github.io.codex/AGENTS.md · 0 | AGENTS.md | buildteststylegit+1 | 45/100 | 3 days ago | |
| harritaito/harritaito.github.ioCLAUDE.md · 0 | CLAUDE.md | agent-behaviour | 50/100 | 3 days ago |
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 | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 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 | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
