Skip to content

Conversation

@jkowall
Copy link
Collaborator

@jkowall jkowall commented Dec 26, 2025

Summary

This PR enhances the AGENTS.md file with more comprehensive guidance for AI agents working on the documentation.

Changes

  • Testing and Verification: Added step-by-step instructions for verifying changes locally:

    • Setup with npm install
    • Running the site locally with make develop
    • Building the site with npm run build
    • Running all quality checks before PR submission
  • Spellchecking Guidance: Added detailed information about:

    • The cspell configuration in .cspell.yml
    • Dictionary files in .cspell/ directory
    • How to add words to project-words.txt (sorted alphabetically)
    • How to add names to project-names-src.txt
    • Verifying spellcheck passes
  • Documentation Versioning: Added guidance on:

    • Where to make changes (_dev/ vs versioned directories)
    • When to backport fixes to existing versions
  • Human-Centric Guidelines Reference: Added note pointing to CONTRIBUTING.md for DCO signing, PR etiquette, and community interaction guidelines.

  • Troubleshooting: Added section for spellcheck failures.

Testing

  • Verified locally that the markdown renders correctly

Copilot AI review requested due to automatic review settings December 26, 2025 13:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances documentation for AI agents and expands the frontend UI configuration reference. It adds comprehensive testing and spellchecking instructions to AGENTS.md while documenting several previously undocumented UI configuration options.

Key changes:

  • Added step-by-step testing and verification workflow to AGENTS.md
  • Documented spellcheck configuration and dictionary management for AI agents
  • Expanded frontend-ui.md with detailed configuration options for themes, critical path, tag prefixes, trace graphs, and UI controls

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
AGENTS.md Adds comprehensive testing/verification steps, spellchecking guidance, and documentation versioning instructions for AI agents
content/docs/v2/_dev/deployment/frontend-ui.md Documents new UI configuration options including themes, critical path visualization, top tag prefixes, trace graph settings, and UI control toggles
.cspell/project-words.txt Adds "Emscripten" (GraphViz module technology) to the custom dictionary in correct alphabetical order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

AGENTS.md Outdated
Comment on lines 104 to 121
### Code Quality Checks

Before creating a PR, run the following checks to ensure CI passes:

```bash
npm run check:format # Check code formatting
npm run check:spelling # Run spellcheck
npm run check:links:internal # Check internal links
npm run check:filenames # Check filename conventions
```

To automatically fix issues:

```bash
npm run fix:format # Fix formatting issues
npm run fix:filenames # Fix filename convention violations
```

Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

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

This "Code Quality Checks" section duplicates content already covered in the "Testing and Verifying Changes" section above (lines 79-102). The commands and instructions are identical. Consider removing this duplicate section to avoid redundancy and confusion.

Suggested change
### Code Quality Checks
Before creating a PR, run the following checks to ensure CI passes:
```bash
npm run check:format # Check code formatting
npm run check:spelling # Run spellcheck
npm run check:links:internal # Check internal links
npm run check:filenames # Check filename conventions
```
To automatically fix issues:
```bash
npm run fix:format # Fix formatting issues
npm run fix:filenames # Fix filename convention violations
```

Copilot uses AI. Check for mistakes.
Comment on lines +22 to +25
**For human-centric guidelines** such as DCO (Developer Certificate of Origin)
signing, PR etiquette, and community interaction, refer to [CONTRIBUTING.md](CONTRIBUTING.md)
and the [general contributing guidelines](https://github.com/jaegertracing/jaeger/blob/main/CONTRIBUTING_GUIDELINES.md).

Copy link
Member

Choose a reason for hiding this comment

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

redundant, everything is already stated above.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copilot was not doing what was expected. After putting this here the agent was following instructions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will consolidate it.

- **Deployment**: Netlify automatically deploys from the `main` branch
- **Preview**: Netlify creates preview deployments for PRs

### Testing and Verifying Changes
Copy link
Member

Choose a reason for hiding this comment

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

this looks like a repetition of what was already stated in CONTRIBUTING. There is no point duplicating guidelines (and having them diverge over time).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copilot wasn't doing what was requested, so I wanted to be more explicit in the instructions here.

@jkowall jkowall force-pushed the add-agent-instructions branch from a418233 to 0ce1ee4 Compare December 26, 2025 16:38
- Add section on testing and verifying changes locally
- Add spellchecking guidance with dictionary setup
- Add documentation versioning guidelines
- Reference human-centric guidelines (DCO, PR etiquette) to CONTRIBUTING.md
- Add troubleshooting sections

Signed-off-by: Jonah Kowall <[email protected]>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +156 to +157
directory (e.g., `content/docs/v2/2.x/`) so changes appear immediately on the
live site
Copy link

Copilot AI Dec 26, 2025

Choose a reason for hiding this comment

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

The example directory path content/docs/v2/2.x/ is ambiguous and doesn't match the actual directory structure. The most recent version directory would have a specific version number like content/docs/v2/2.13/ (based on the current repository structure). Consider using a more concrete example or clarifying that "2.x" should be replaced with the actual latest version number.

Suggested change
directory (e.g., `content/docs/v2/2.x/`) so changes appear immediately on the
live site
directory (e.g., `content/docs/v2/2.13/`; replace `2.13` with the latest version
directory) so changes appear immediately on the live site

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants