Skip to content

chore: Add a library generation skill#12689

Open
lqiu96 wants to merge 9 commits intomainfrom
library-generation-skill
Open

chore: Add a library generation skill#12689
lqiu96 wants to merge 9 commits intomainfrom
library-generation-skill

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Apr 6, 2026

Trying out a new agent skill for new library generation requests. Uses internal MCP tools and skills to pull the relevant information.

This should allow workflows where we can prompt gemini for Generate a new library for b/XXXXX

Interestingly, this PR uses AI to generate commands to tell AI how to automatically generate a library request

lqiu96 added 5 commits April 6, 2026 16:10
- Fix wrong subcommand: `generate` -> `add-new-library` (confirmed via GitHub workflow)
- Replace Cloud Drop references with Buganizer ticket as the sole input source
- Add conflict-checking step before script execution
- Add special cases table for google/maps/* and google/shopping/* APIs
- Add branch/PR creation step with owlbot:run label guidance
- Expand generation_config_schema.md with all optional fields from the script
- Update cloud_drop_mapping.md framing to remove Cloud Drop terminology
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new skill for generating Google Cloud Java client libraries, including comprehensive documentation on the workflow, configuration schema, and service YAML mapping. The review feedback identifies several inconsistencies across the documentation files regarding script names, directory paths, and CLI flag naming conventions. Additionally, the reviewer pointed out a typo in a Maven group ID and recommended replacing hardcoded user paths in example outputs with generic placeholders.

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@blakeli0 blakeli0 left a comment

Choose a reason for hiding this comment

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

Looks good overall. Please note that Librarian may change how we generate new client in the next few months.

…ion_guide.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@lqiu96
Copy link
Copy Markdown
Member Author

lqiu96 commented Apr 9, 2026

Looks good overall. Please note that Librarian may change how we generate new client in the next few months.

Sounds good. We can remove this skill whenever needed.

@lqiu96 lqiu96 marked this pull request as ready for review April 9, 2026 01:57
@lqiu96 lqiu96 requested a review from a team as a code owner April 9, 2026 01:57
@lqiu96 lqiu96 requested a review from blakeli0 April 9, 2026 02:00
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