agentleFS
NVIDIAKnown publisherNVIDIA/auto-ontology/CLAUDE.md

auto-ontology

CLAUDE.md9 starsChanged 2 months agoApache-2.0View on GitHub

Full-stack repo: Next.js frontend (/frontend) + FastAPI backend (/auto_ontology). This file is for Auto Ontology maintainers. User/partner agent skills live in skills/ — start at AGENTS.md. Frontend commands run from /frontend: Backend commands run from the repo root: The app factory is create_app() in auto_ontology/server/__main__.py — there is no auto_ontology/server/main.py. To install dependencies: - Frontend: pnpm install from /frontend - Backend: uv sync from repo root A PR is not done until every GitHub Actions workflow passes. After opening one,…

The file

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

6 rules. About 0 are common, 1 is distinctive, and 5 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.

  • 5

    Very specific

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

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

    API layer: Use the requests wrapper from frontend/api/requests.ts — do not call axios directly.

    line 55
  2. Very specific:

    API prefix: All routes under /api/. Routes live in auto_ontology/server/datasources/router.py, orchestration in …

    line 62
  3. Very specific:

    Exception handlers: Use plain def (not async def) for @app.exception_handler functions.

    line 64
  4. Very specific:

    Commit messages: concise imperative style, no Co-Authored-By trailers.

    line 68
  5. Very specific:

    A PR is not done until every GitHub Actions workflow passes: After opening one, poll gh pr checks <number> until no check is pending, then …

    line 73
  6. Distinctive:

    Run these locally first — they are the same gates CI applies, and catching a failure here costs seconds instead of a CI round-trip:

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md
<!-- SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 -->

Auto Ontology

Full-stack repo: Next.js frontend (/frontend) + FastAPI backend (/auto_ontology).

This file is for Auto Ontology maintainers. User/partner agent skills live in skills/ — start at AGENTS.md.

Structure

/frontend/ # Next.js 16 app (React 19, TypeScript, Tailwind CSS 4)
/auto_ontology/      # FastAPI app (Python 3.11+, uv)

Dev Commands

Frontend commands run from /frontend:

CommandDescription
pnpm devStart Next.js on :3000
pnpm buildBuild the frontend
pnpm lintESLint the frontend

Backend commands run from the repo root:

CommandDescription
uv run uvicorn auto_ontology.server.__main__:create_app --factory --reload --host 127.0.0.1 --port 3001Start FastAPI on :3001 with hot reload
uv run python -m auto_ontology.serverStart FastAPI on :3001 without reload (what the container runs)
uv run python -m auto_ontology.ingestion_serviceStart the ingestion service on :3002

The app factory is create_app() in auto_ontology/server/__main__.py — there is no auto_ontology/server/main.py.

To install dependencies:

  • Frontend: pnpm install from /frontend
  • Backend: uv sync from repo root

Frontend Rules

  • Next.js 16: Has breaking changes from prior versions. Read node_modules/next/dist/docs/ before writing Next.js-specific code. See frontend/AGENTS.md for details.
  • Formatting: Prettier — tabs, single quotes, semicolons, 100 char width, trailing commas. After editing ANY frontend file, ALWAYS run pnpm format (or cd frontend && npx prettier --write <file>) to auto-format it. Never rely on manual formatting — always let Prettier handle it. CI will reject unformatted code.
  • Linting: ESLint (Airbnb config). Fix all lint errors; do not disable rules without a comment explaining why.
  • Components: Arrow function components. No class components.
  • Styling: Tailwind CSS 4. Do not write inline styles or separate CSS files for component styling.
  • Types: TypeScript strict mode. No any without a comment. Types go in /frontend/types, enums in /frontend/enums.
  • Testing: Vitest + Playwright.
  • API layer: Use the requests wrapper from frontend/api/requests.ts — do not call axios directly. Base URL and error handling are already centralised there.

Backend Rules

  • The store is Postgres. auto_ontology/dal/ queries it with SQLAlchemy Core (no ORM); auto_ontology/dal/schema.py is the single source of truth for the schema and auto_ontology/dal/session.py owns the pooled engine. Schema changes go through Alembic — uv run alembic revision --autogenerate -m "..." — never by hand-editing a migration that has been applied. Several column types and constraints are deliberate and non-obvious — read the comments in schema.py before changing a table.
  • Formatting/Linting: Ruff (line-length: 88). Run uv run ruff check auto_ontology/ and uv run ruff format auto_ontology/ from repo root before committing.
  • Dependencies: Managed with uv. Add dependencies via uv add, not pip. Do not edit pyproject.toml manually for deps.
  • API prefix: All routes under /api/. Routes live in auto_ontology/server/datasources/router.py, orchestration in auto_ontology/server/datasources/service.py.
  • Type hints: Required on all function signatures.
  • Exception handlers: Use plain def (not async def) for @app.exception_handler functions. They perform no async I/O, so synchronous handlers are preferred.

Git

  • Commit messages: concise imperative style, no Co-Authored-By trailers.
  • Branch from main. Current working branch: fix/architecture.

Opening a PR

A PR is not done until every GitHub Actions workflow passes. After opening one, poll gh pr checks <number> until no check is pending, then fix whatever failed and push again — repeat until the run is green. Report the final state honestly; do not hand back a PR with unexamined or failing checks.

Run these locally first — they are the same gates CI applies, and catching a failure here costs seconds instead of a CI round-trip:

CheckCommandCatches
Ruffuv run ruff check auto_ontology/ && uv run ruff format --check auto_ontology/Backend lint/format
Pytestuv run pytest auto_ontology dev_tools -qBackend tests
OpenAPIuv run python -m dev_tools.generate_backend_openapiStale docs/openapi/*.json
Frontendcd frontend && npx prettier --check . && pnpm lint && pnpm buildFormat, lint, build

The OpenAPI one is the easy one to miss: docs/openapi/backend.json and ingestion.json are committed, and the spec embeds each route's docstring. Editing a docstring on any @router handler — not just changing a signature or model — makes the committed spec stale and fails "Backend spec is up to date". Regenerate and commit the result whenever a route's code or docs change.

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.