agentleFS
vikisingh23vikisingh23/neuraforge-ai/AGENTS.md

neuraforge-ai

AGENTS.md4 starsChanged 7 months agoApache-2.0View on GitHub

You have access to the NeuraForge AI development platform. Use these agents and rules when working on this codebase. When the user asks you to generate code, review code, debug, scaffold, or any development task — follow the appropriate agent instructions below. Always search the codebase before generating new code. Before writing any code: 1. Search the codebase for existing similar code — use the codebase-graph skill (graphify) if it's available, for anything beyond a trivial grep 2. Identify what…

The file

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

11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks you to generate code, review code, debug, scaffold, or any development task — follow the appropriate agent instructions …

    line 7
  2. Distinctive:

    Before writing any code:

    line 11
  3. Very specific:

    Search the codebase for existing similar code — use the codebase-graph skill (graphify) if it's available, for anything beyond a trivial …

    line 12
  4. Very specific:

    Read rules/core/FEEDBACK_PROTOCOL.md in full.

    line 19
  5. Very specific:

    Read rules/core/MINIMAL_SOLUTION.md in full before generating.

    line 30
  6. Distinctive:

    When asked to generate code, detect the stack using the signals below, then follow the corresponding agent.

    line 52
  7. Distinctive:

    Use these file/content signals.

    line 56
  8. Very specific:

    If package.json exists but no framework import is visible yet, ask the user which backend framework (NestJS vs plain Express vs other).

    line 70
  9. Very specific:

    If both .csproj and package.json exist, generate for both and separate the output by stack.

    line 71
  10. Distinctive:

    When in doubt, state your detected stack and ask for confirmation before generating.

    line 72
  11. Distinctive:

    When asked to review code, use the Stack Detection table above, then load:

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

NeuraForge AI — Agent Instructions

You have access to the NeuraForge AI development platform. Use these agents and rules when working on this codebase.

How to Use

When the user asks you to generate code, review code, debug, scaffold, or any development task — follow the appropriate agent instructions below. Always search the codebase before generating new code.

Plan Before Acting

Before writing any code:

  1. Search the codebase for existing similar code — use the codebase-graph skill (graphify) if it's available, for anything beyond a trivial grep
  2. Identify what to reuse, extend, or refactor
  3. Present a brief plan and wait for approval
  4. Then execute

Feedback Protocol (MANDATORY — how agents learn)

Read rules/core/FEEDBACK_PROTOCOL.md in full. Every code-generating agent must:

  1. Before generating — load rules/anti-patterns/{stack}.md and apply every rule listed
  2. Before generating — check if .neuraforge/lessons.md exists; if so, read and apply project-specific rules
  3. After generating — write a feedback log to .neuraforge/feedback/{agent}-{YYYYMMDD}-{id}.md
  4. Tell the user — at the end of every response, show the feedback log path and how to flag mistakes

This is how the agents improve. Every corrected feedback item becomes a new anti-pattern rule.

Minimal Solution Principle (MANDATORY — how much to generate)

Read rules/core/MINIMAL_SOLUTION.md in full before generating. Work down its ladder — does this need to exist, does it already exist, does the framework already do it, is there an approved dependency, can an existing file absorb it — and stop at the first rung that resolves the request. The "never skip" list in that file (audit fields, decimal money, validation, idempotency, pagination, auth, UX states) stays mandatory regardless of how small the request is.

Architecture Principles (enforce on ALL code)

  • Data fetching at the leaf level — each component/widget fetches its own data, no parent prop-drilling
  • Reuse → Extend → Refactor → Create — never duplicate. Search first.
  • No god classes — controllers <150 lines, services <300, components <150
  • Composition over inheritance — DI composition, max 1 level of inheritance
  • Consistent error handling — standard response envelope, domain exceptions
  • Audit everything — createdBy, modifiedBy, createdAt, modifiedAt, soft deletes
  • Pagination on all lists — never return unbounded collections
  • Loading / Error / Empty states — on every data-driven screen
  • API URL paths: always lowercase-hyphenated (kebab-case) — /api/v1/bank-accounts, /api/v1/transaction-history, NOT /api/v1/BankAccounts or /api/v1/bankAccounts. Enforced across ALL stacks (.NET, NestJS, Django, Spring Boot, React, RN, Flutter).

Code Generation

When asked to generate code, detect the stack using the signals below, then follow the corresponding agent.

Stack Detection (content-based — check in order)

Use these file/content signals. Extension alone is not enough.

SignalStack
*.csproj present or *.cs imports Microsoft.AspNetCore.NET Core
package.json contains "@nestjs/core"NestJS
package.json contains "react-native"React Native
package.json contains "react" (and not RN above)React
requirements.txt / *.py imports from rest_frameworkDjango + DRF
requirements.txt / *.py imports from fastapiFastAPI (use django-forge as base, note FastAPI differences)
pom.xml contains spring-boot or build.gradle contains org.springframework.bootSpring Boot
pubspec.yaml present or *.dart files presentFlutter

Tie-break rules:

  • If package.json exists but no framework import is visible yet, ask the user which backend framework (NestJS vs plain Express vs other).
  • If both .csproj and package.json exist, generate for both and separate the output by stack.
  • When in doubt, state your detected stack and ask for confirmation before generating.

Agents by Stack

Backend

  • .NET Core → Read agents/forge.md — EF Core, CQRS, Repository Pattern, FluentValidation
  • NestJS → Read agents/nestjs-forge.md — TypeORM, Guards, Interceptors, Modules
  • Django → Read agents/django-forge.md — DRF, BaseRepository, Celery, Serializers
  • Spring Boot → Read agents/spring-forge.md — JPA, MapStruct, Jakarta Validation, Flyway

Frontend / Mobile

  • React → Read agents/react-forge.md — React Query mandatory, Design Tokens
  • React Native → Read agents/rn-forge.md — Typed Navigation, Platform-Aware
  • Flutter → Read agents/flutter-forge.md — Riverpod, Freezed, GoRouter

Testing

  • Unit/Integration tests → Read agents/test-forge.md — TDD, auto-detects stack, generates unit + integration tests
  • E2E / QA → Read agents/qa-agent.md — web, mobile, API, cross-platform E2E testing (mode auto-detected)

Code Review

When asked to review code, use the Stack Detection table above, then load:

  • .NET → Read agents/dotnet-reviewer.md
  • NestJS → Read agents/nestjs-reviewer.md
  • Django → Read agents/django-reviewer.md
  • Spring Boot → Read agents/spring-reviewer.md
  • React → Read agents/react-reviewer.md
  • React Native → Read agents/rn-reviewer.md
  • Flutter → Read agents/flutter-reviewer.md
  • Architecture → Read agents/architecture-reviewer.md
  • Security → Read agents/security-reviewer.md
  • Performance → Read agents/performance-reviewer.md

Score 0-100. Format: 🔴 Critical / 🟡 Major / 🟢 Minor / 💡 Suggestions.

Developer Productivity

  • Debug → Read agents/debug.md — paste error, get diagnosis + fix
  • PR Review → Read agents/pr-review.md — review git diff, structured output
  • Scaffold → Read agents/scaffold.md — bootstrap new project
  • Refactor → Read agents/refactor.md — break down god classes
  • DB Design → Read agents/db-design.md — plain English → schema + migrations
  • API Design → Read agents/api-design.md — requirements → OpenAPI spec
  • Migrate → Read agents/migrate.md — framework upgrades, language conversions
  • Explain → Read agents/explain.md — codebase documentation
  • Changelog → Read agents/changelog.md — git commits → formatted changelog
  • Deps Audit → Read agents/deps-audit.md — outdated, vulnerable, unused deps

Product & Planning

  • Product Manager → Read agents/product-manager.md — BRS, user stories
  • Devil's Advocate → Read agents/devils-advocate.md — challenge requirements

Rules

Shared standards are in the rules/ directory:

  • rules/core/ARCHITECTURE_PRINCIPLES.md — universal principles
  • rules/core/MINIMAL_SOLUTION.md — how much to generate (MANDATORY, see above)
  • rules/core/NAMING_CONVENTIONS.md — naming standards (if present)
  • rules/core/ERROR_TAXONOMY.md — HTTP codes, error response format
  • rules/core/TESTING_STRATEGY.md — test pyramid, coverage targets
  • rules/backend/ — API design, caching, queues, migrations
  • rules/frontend/ — UX states, state management
  • rules/security/ — token hygiene, rate limiting, security checklist

Codebase Knowledge Graph (optional)

See skills/codebase-graph/SKILL.md — wraps graphify to back the "search codebase first" step above with something more thorough than grep. Entirely optional; every agent works without it.

MCP Servers

This project has MCP servers configured in .mcp.json. Use them when available for Figma design access, Swagger/OpenAPI specs, SonarQube analysis, Playwright testing, and more.

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.