agentleFS
joshydavidjoshydavid/agent-j/AGENTS.md

agent-j

AGENTS.md1 starsChanged 7 months agoMITView on GitHub

This project uses Next.js 16+ with MANDATORY MCP integration.

The file

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 1 is distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Initialize First: ALWAYS call next-devtools.init({ project_path: "." }) at the start of every session.

    line 7
  2. Very specific:

    Docs-First: NEVER guess Next.js APIs. Use next-devtools.nextjs_docs for ALL queries.

    line 8
  3. Very specific:

    Runtime Diagnostics: Use next-devtools.nextjs_index and nextjs_call to inspect the running app before making changes.

    line 9
  4. Distinctive:

    Project Showcases: Use a structured layout for project entries including: Title, Tech Stack (icons preferred), Description, and GitHub/Live …

    line 34
  5. Very specific:

    Performance: Ensure high Lighthouse scores by optimizing images and leveraging Next.js Font optimization.

    line 38
  6. Very specific:

    Server Components: Default to RSC. Use 'use client' only for interactive UI (e.g., mobile nav toggle, contact form, or theme switcher).

    line 42
  7. Very specific:

    shadcn/ui: Use bun x shadcn@latest add [component] for all base UI elements.

    line 43
  8. Very specific:

    Icons: Use lucide-react for general icons and simple svg components for brand-specific tech logos.

    line 44
  9. Very specific:

    Bun Priority: Always use bun (e.g., bun dev, bun add, bun run format) for terminal commands.

    line 49
  10. Very specific:

    MCP Verification: Use browser_eval to verify UI changes in a real browser context.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md
<!-- BEGIN:nextjs-agent-rules -->

Next.js 16+ Development Protocol

This project uses Next.js 16+ with MANDATORY MCP integration.

  1. Initialize First: ALWAYS call next-devtools.init({ project_path: "." }) at the start of every session.
  2. Docs-First: NEVER guess Next.js APIs. Use next-devtools.nextjs_docs for ALL queries. Read nextjs-docs://llms-index first.
  3. Runtime Diagnostics: Use next-devtools.nextjs_index and nextjs_call to inspect the running app before making changes.
  4. Async APIs: Be strictly compliant with async params, searchParams, cookies(), and headers().
  5. Cache Components: This project is prepared for Cache Components. Use "use cache" where appropriate.
<!-- END:nextjs-agent-rules -->

Project Context: Software Engineer Portfolio

Overview

  • This project is a Personal Portfolio Showcase for a Software Engineer.
  • Goal: Highlight technical expertise, project history, and professional identity with a clean, high-performance UI.

Core Tech Stack

  • Framework: Next.js 16+ (App Router)
  • Runtime/Package Manager: Bun (Use bun for all commands)
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui
  • State Management: React Server Components (RSC) by default.
  • Language: TypeScript (Strict mode)

Portfolio-Specific Guidelines

  • Visual Style: Minimalist, modern, and developer-centric. Use subtle animations (e.g., Framer Motion) for page transitions.
  • Project Showcases: Use a structured layout for project entries including: Title, Tech Stack (icons preferred), Description, and GitHub/Live Demo links.
  • Content Management:
    • Static blog content: content/blog/*.md
    • Portfolio data: app/projects/data.ts and app/blog/data.ts
  • Performance: Ensure high Lighthouse scores by optimizing images and leveraging Next.js Font optimization. Use nextjs_call with get_diagnostics to verify performance.

Coding Standards

  • Server Components: Default to RSC. Use 'use client' only for interactive UI (e.g., mobile nav toggle, contact form, or theme switcher).
  • shadcn/ui: Use bun x shadcn@latest add [component] for all base UI elements.
  • Icons: Use lucide-react for general icons and simple svg components for brand-specific tech logos.
  • Data Flow: Strictly follow the unidirectional flow: Models/Types -> Data/Repositories -> UI Components.

Execution Rules

  • Bun Priority: Always use bun (e.g., bun dev, bun add, bun run format) for terminal commands.
  • MCP Verification: Use browser_eval to verify UI changes in a real browser context.
  • Accessibility: Prioritize A11y. Use browser_eval to run accessibility audits if needed.

Quality Gate (MANDATORY before every commit)

  • Single Command Check: bun run harness (Runs Lint, Types, and Build checks).

Git Conventions

  • Format: <type>(<scope>): <description> (e.g., feat(ui): add navbar with shadcn)
  • Vibe Check: Lowercase description, imperative mood, no period at the end.
  • Atomic Commits: One logical change per commit.
  • Branching: master (production), feat/* (development), fix/* (hotfixes).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.