Add AI-powered documentation generation (core)#3302
Open
mjwolf wants to merge 24 commits intoelastic:mainfrom
Open
Add AI-powered documentation generation (core)#3302mjwolf wants to merge 24 commits intoelastic:mainfrom
mjwolf wants to merge 24 commits intoelastic:mainfrom
Conversation
Co-authored-by: Jonathan Molinatto <jonathan.molinatto@gmail.com> Co-authored-by: Quan Nguyen <quan.nguyen@elastic.co> Co-authored-by: Cursor <cursoragent@cursor.com>
jrmolin
reviewed
Feb 26, 2026
Add broader inclusive-language checks (disability-defining terms, gendered job titles, execute/abort variants), Git conflict marker detection, and new static style checks (banned words, latinisms, exclamation points, ellipses, version terms, article misuse). Extend style-rule prompts with wordiness, negation, and device-agnostic language guidance. Remove unused parallel generation helpers and trim the readme template. Made-with: Cursor
Move stylerules/ into prompts/ (now a dependency-free leaf package), relocate sectioninstructions.go to docagent/ (its only consumer), drop the _static/ subdirectory, compose AgentInstructions from FullFormattingRules to eliminate duplication, and extract shared validator JSON output suffix into prompts.ValidatorOutputSuffix. Made-with: Cursor
# Conflicts: # internal/docs/readme_test.go
jsoriano
reviewed
Apr 9, 2026
Member
jsoriano
left a comment
There was a problem hiding this comment.
Thanks for the work here!
Reviewing by now only the code out of internal/llmagent. Regarding the parts under cmd, I would try to keep them minimal, moving LLM specific parts to internal packages. Also, try to reuse existing helpers for documentation, in consistency with other commands.
Member
|
CI failures are not related, we have skipped them by now, you can update your branch to get green build. |
Member
|
Hey, I think there is a pending comment to be addressed #3302 (comment), for the rest I think it could be merged. Thanks! |
Collaborator
💚 Build Succeeded
History
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add the
elastic-package update documentationcommand that uses an LLM (Gemini) to generate package documentation via a section-based generate-validate workflow.Core components: