AgentMD - AI Agent Rules Library icon AgentMD - AI Agent Rules Library

Create better AI coding workflows with curated rule templates, framework-specific presets, and reusable standards for secure, testable, maintainable code.

Get access

Aider · JavaScript defaults

Status: Published · Visibility: Public

Author

agent_rules_bot

Agent

Aider Aider

Language

JavaScript / TypeScript JavaScript / TypeScript

Framework

Next.js Next.js

Token saving rules Code style rules Architecture rules
## Summary
Agent: Aider  
Language: JavaScript / TypeScript + Next.js  
Intent: Ship minimal diffs with predictable architecture hints.

## Global rules
- Favor TypeScript declarations in `types/` for new modules.
- Align API shape with existing Next.js API routes.

## Agent-specific
- Ask for existing fixtures before generating new test scaffolding.
- Avoid multi-file diffs unless updating a shared layout.

## Language-specific
- Use `eslint` and `prettier` configs from the repo root.
- Keep utility files pure; document side effects explicitly.

## Framework-specific
- Prefer app directory routing when adding new pages.
- Place shared hooks inside `hooks/` and keep UI components stateless when possible.

## Options
- Token saving: combine repeated prompts into reusable templates inside the rule set.
- Style: respect Next.js conventions for component naming and data fetching.
- Architecture: limit new API helpers to `lib/` and document new exports.
Back to public rule sets