Skip to content

docs: Add agent docs - #7983

Merged
camdecoster merged 4 commits into
mainfrom
cam/7982/add-agent-docs
Aug 24, 2026
Merged

docs: Add agent docs#7983
camdecoster merged 4 commits into
mainfrom
cam/7982/add-agent-docs

Conversation

@camdecoster

@camdecoster camdecoster commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Add agent docs to the repo.

Closes #7982.

Changes

  • Add AGENTS.md
  • Add .agents folder and docs within

Testing

Read through the instructions.

@camdecoster camdecoster added the no-draftlog The associated PR doesn't require a draftlog and the CI check will be skipped. label Aug 24, 2026
Comment thread .agents/architecture.md

The methods you touch most:

- `attributes` - the JSON-serializable attribute declarations that feed the schema

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: attributes isn't a function/method but rather an object.

Comment thread .agents/architecture.md Outdated

## The schema

`test/plot-schema.json` is generated output that records the proposed API. Any change to an attribute or an attribute description changes this file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`test/plot-schema.json` is generated output that records the proposed API. Any change to an attribute or an attribute description changes this file.
`test/plot-schema.json` is generated output that captures the full plotly.js API. Any change to an attribute or an attribute description changes this file.

Base automatically changed from v4.0 to master August 24, 2026 18:46
Comment thread .agents/code-style.md Outdated

Format only files you created. Never pass a directory, and never format a file that already existed. The CLI formats a whole file at a time, and this repository is not formatted from end to end, so either one rewrites lines your change never touched and buries the real diff.

In an existing file, write the lines you add by hand, to the settings above. That means single quotes, a four-space indent, no trailing comma, and no line past 120 columns. The settings are the house style, so follow them even when the lines around yours predate them. If you formatted such a file by accident, undo your changes and redo the edit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In an existing file, write the lines you add by hand, to the settings above. That means single quotes, a four-space indent, no trailing comma, and no line past 120 columns. The settings are the house style, so follow them even when the lines around yours predate them. If you formatted such a file by accident, undo your changes and redo the edit.
In an existing file, write the lines you add by hand, to follow the rules outlined in `biome.json`. The settings are the house style, so follow them even when the lines around yours predate them. If you formatted such a file by accident, undo your changes and redo the edit.

IMO it's better not to list specific rules here, to avoid confusion if we change formatting rules in the future. Just point to the rules file.

Comment thread .agents/code-style.md Outdated

## Formatting

Biome owns formatting. The JavaScript rules live in `biome.json`: single quotes, a four-space indent, no trailing commas, and a 120 column line width.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Biome owns formatting. The JavaScript rules live in `biome.json`: single quotes, a four-space indent, no trailing commas, and a 120 column line width.
Biome owns formatting. The JavaScript rules live in `biome.json`.

Comment thread .agents/pr-checklist.md Outdated
- [ ] A human asked for the pull request. If nobody asked, you open the issue and stop.
- [ ] A human reviewed the code
- [ ] You saw the rendered plot, for any change that moves pixels
- [ ] You read the last few merged pull requests and matched their shape

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [ ] You read the last few merged pull requests and matched their shape
- [ ] You read the last few merged pull requests by library maintainers and matched their shape

Comment thread .agents/pr-checklist.md Outdated
## Generated output

- [ ] `npm run schema` ran after any attribute or description edit
- [ ] `test/plot-schema.json` and `src/types/generated/schema.d.ts` are staged

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- [ ] `test/plot-schema.json` and `src/types/generated/schema.d.ts` are staged
- [ ] `test/plot-schema.json` and `src/types/generated/schema.d.ts` are committed if needed

Comment thread .agents/testing.md Outdated

## Image tests

An image test is a mock plus a baseline PNG.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An image test is a mock plus a baseline PNG.
An image test is a JSON mock file plus a baseline PNG image.

Comment thread .agents/testing.md Outdated

`--nowatch` turns off the watch mode, so the run exits after one pass instead of waiting for the next file change. Pass the exact file basename without the `_test.js` suffix, which the karma config appends for you. The name is not a substring: `-- bar` runs `bar_test.js` alone, and a partial name such as `hover_lab` matches no file, so the run finds nothing to do. Several names in one command run several suites.

Write a test for every behavior change. A bug fix needs a test that fails before the fix.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Write a test for every behavior change. A bug fix needs a test that fails before the fix.
Write or modify a test for every behavior change. A bug fix needs a test that fails before the fix.

emilykl
emilykl previously approved these changes Aug 24, 2026
@camdecoster
camdecoster marked this pull request as ready for review August 24, 2026 22:29
@camdecoster
camdecoster merged commit ba10ef7 into main Aug 24, 2026
80 checks passed
@camdecoster
camdecoster deleted the cam/7982/add-agent-docs branch August 24, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-draftlog The associated PR doesn't require a draftlog and the CI check will be skipped.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE]: Add agent specific docs

2 participants