texera / frontend
AGENTS.md317 starsChanged 3 months agoApache-2.0View on GitHub
Scoped agent rules for frontend/. Loaded automatically on top of the repo-root AGENTS.md. Start at README.md for the stack, prerequisites, common commands, the testing entry-point, and the project layout. This file only carries what is not already in the README — placement rules, agent-relevant conventions, the testing checklist, and deeper pointers. The layout table in README.md tells you where things live; these rules tell you where new things go. Read TESTING.md — the canonical testing reference for both humans and…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
Reuse shared test infrastructure: before inventing parallel one-off mocks.
- Very specific: line 45
Read TESTING.md — the canonical testing reference for both humans and agents.
- Very specific: line 47
Call fixture.detectChanges() at least once.
≈ “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.
Files
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->AGENTS.md — frontend
Scoped agent rules for frontend/. Loaded automatically on top of the repo-root AGENTS.md.
Start at README.md for the stack, prerequisites, common commands, the testing entry-point, and the project layout. This file only carries what is not already in the README — placement rules, agent-relevant conventions, the testing checklist, and deeper pointers.
Placement rules
The layout table in README.md tells you where things live; these rules tell you where new things go.
- Components, services, and types live next to their feature. A new workspace service goes in
src/app/workspace/service/<feature>/, not in a flat global bucket. Stub…Servicedoubles live next to the real service (stub-operator-metadata.service.tssits alongsideoperator-metadata.service.ts). Specs import the stub by name; this keeps the mock surface consistent across the codebase.- Types shared across more than one feature area go in
src/app/common/type/. Types owned by a single feature stay with that feature. - Do not hand-edit codegen or vendored files:
src/app/common/type/proto/**— generated protobuf TypeScript.src/app/common/formly/{array,object,multischema,null}.type.ts— vendored upstream under a separate license.
Conventions
- Components are standalone. Declare them in
imports:, neverdeclarations:(the latter errors at compile time). The same applies insideTestBed.configureTestingModule({...}). - Run
yarn format:fixbefore pushing;yarn format:cimirrors what CI runs. ESLint and Prettier are wired together viaprettier-eslint. - Reuse shared test infrastructure before inventing parallel one-off mocks. If a service already has a
Stub…Service, extend the stub rather than ship a new partial mock from inside a spec.
Before writing or fixing a spec
Read TESTING.md — the canonical testing reference for both humans and agents. It ships the recipes, anti-patterns, jsdom-vs-browser-mode decision, and coverage troubleshooting checklist. The three rules that surface most often in PR review:
- Call
fixture.detectChanges()at least once. Without it.component.htmlcoverage stays at 0 % even when the spec passes. - Standalone components go in
imports:, notdeclarations:. beforeEachisasync () => { ... }, notwaitForAsync(() => …).
Pointers
- Repo-wide testing philosophy ("Tests come first" — TDD, characterization tests, every test covers a specific failure mode):
../AGENTS.md§"Tests come first". - Architecture map (where the backend services live, what they own):
../AGENTS.md§"Architecture Map". - Coverage dashboard: app.codecov.io/gh/apache/texera.
- Vitest browser-mode setup rationale: #5017.
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
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.

