Skip to content

chore: Remove a subset of skills and recipes along with their service entries and registry references#254

Merged
jpoehnelt merged 1 commit intomainfrom
chore/cleanup-skills
Mar 6, 2026
Merged

chore: Remove a subset of skills and recipes along with their service entries and registry references#254
jpoehnelt merged 1 commit intomainfrom
chore/cleanup-skills

Conversation

@jpoehnelt
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 6, 2026

⚠️ No Changeset found

Latest commit: 3d4d95e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@googleworkspace-bot googleworkspace-bot added area: skills area: discovery cla: yes This human has signed the Contributor License Agreement. labels Mar 6, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on refining the available tools and functionalities by removing less frequently used or potentially risky skills and recipes. The primary goal is to simplify the command-line interface, reduce the attack surface by blocking destructive operations, and ensure that persona definitions accurately reflect the updated capabilities. This change contributes to a more focused and secure user experience.

Highlights

  • Skill and Recipe Removal: A subset of skills and their associated recipes have been removed from the generation pipeline, including services like admin, cloudidentity, groupssettings, alertcenter, reseller, licensing, apps-script, and vault. This streamlines the available functionalities.
  • Destructive Method Blocklist: A new blocklist has been implemented to prevent the generation of skills for destructive operations, specifically targeting 'drive delete' and 'people delete' methods, enhancing safety.
  • Persona Updates: The 'hr-coordinator' and 'it-admin' personas have been updated to remove references to the 'admin' service, aligning with the removal of the gws-admin skill.
  • Registry Clean-up: Nine specific recipes, such as 'bulk email', 'file ownership transfer', and 'batch rename', have been removed from the registry/recipes.yaml file.
Changelog
  • .changeset/remove-some-skills.md
    • Added a new changeset file documenting the removal of skills and recipes.
  • registry/personas.yaml
    • Removed 'admin' service from the 'hr-coordinator' persona's service list.
    • Deleted a tip related to gws admin for user account management from the 'hr-coordinator' persona.
    • Updated the description for the 'it-admin' persona to reflect the removal of user management capabilities.
    • Removed 'admin' service from the 'it-admin' persona's service list.
    • Deleted instructions related to gws admin for user account management and group/org unit management from the 'it-admin' persona.
    • Modified a tip for the 'it-admin' persona to generalize 'bulk user operations' to 'bulk operations'.
  • registry/recipes.yaml
    • Removed the 'audit-external-sharing' recipe.
    • Removed the 'send-personalized-emails' recipe.
    • Removed the 'search-and-export-emails' recipe.
    • Removed the 'cancel-and-notify' recipe.
    • Updated the 'clean-up-drive' recipe to change 'delete or move' to 'archive or move' and removed steps related to file deletion.
    • Removed the 'transfer-file-ownership' recipe.
    • Removed the 'deploy-apps-script' recipe.
    • Removed the 'triage-security-alerts' recipe.
    • Removed the 'batch-reply-to-emails' recipe.
    • Removed the 'batch-rename-files' recipe.
  • skills/gws-admin/SKILL.md
    • Removed the entire skill definition for gws-admin.
  • skills/gws-alertcenter/SKILL.md
    • Removed the entire skill definition for gws-alertcenter.
  • skills/gws-apps-script-push/SKILL.md
    • Removed the entire skill definition for gws-apps-script-push.
  • skills/gws-apps-script/SKILL.md
    • Removed the entire skill definition for gws-apps-script.
  • skills/gws-cloudidentity/SKILL.md
    • Removed the entire skill definition for gws-cloudidentity.
  • skills/gws-groupssettings/SKILL.md
    • Removed the entire skill definition for gws-groupssettings.
  • skills/gws-licensing/SKILL.md
    • Removed the entire skill definition for gws-licensing.
  • skills/gws-reseller/SKILL.md
    • Removed the entire skill definition for gws-reseller.
  • skills/gws-vault/SKILL.md
    • Removed the entire skill definition for gws-vault.
  • src/generate_skills.rs
    • Added a BLOCKED_METHODS constant to define methods that should not be generated as skills.
    • Implemented logic to filter out blocked methods during the skill rendering process.
  • src/services.rs
    • Removed the admin service entry.
    • Removed the vault service entry.
    • Removed the groupssettings service entry.
    • Removed the reseller service entry.
    • Removed the licensing service entry.
    • Removed the apps-script service entry.
    • Removed the cloudidentity service entry.
    • Removed the alertcenter service entry.
    • Updated service resolution tests to reflect changes in available services.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Generative AI Prohibited Use Policy, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@google-cla google-cla bot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Mar 6, 2026
@jpoehnelt jpoehnelt changed the title chore: Remove a subset of skills and recipes along with their service entries and registry references. chore: Remove a subset of skills and recipes along with their service entries and registry references Mar 6, 2026
Copy link
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 removes a significant number of services, recipes, and skills to reduce the feature set of the CLI. The changes are consistently applied across service definitions, skill generation logic, and documentation files. Several destructive methods for services like Drive and People have also been blocklisted from skill generation. The removals and modifications appear to be correct and align with the stated goal of the pull request. I have not found any issues with the implementation.

@googleworkspace-bot googleworkspace-bot added the gemini: reviewed Gemini Code Assist has reviewed the latest changes label Mar 6, 2026
@jpoehnelt jpoehnelt force-pushed the chore/cleanup-skills branch from b7a07e7 to 3d4d95e Compare March 6, 2026 03:51
@googleworkspace-bot googleworkspace-bot added area: docs and removed gemini: reviewed Gemini Code Assist has reviewed the latest changes labels Mar 6, 2026
@google-cla google-cla bot added cla: yes This human has signed the Contributor License Agreement. and removed cla: no This human has *not* signed the Contributor License Agreement. labels Mar 6, 2026
@jpoehnelt jpoehnelt merged commit d34576c into main Mar 6, 2026
25 of 28 checks passed
@jpoehnelt jpoehnelt deleted the chore/cleanup-skills branch March 6, 2026 03:52
@googleworkspace-bot
Copy link
Collaborator

/gemini review

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

❌ Patch coverage is 40.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.95%. Comparing base (54b3b31) to head (3d4d95e).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/generate_skills.rs 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #254      +/-   ##
==========================================
+ Coverage   57.69%   57.95%   +0.25%     
==========================================
  Files          38       37       -1     
  Lines       14327    13803     -524     
==========================================
- Hits         8266     7999     -267     
+ Misses       6061     5804     -257     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
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 removes a significant number of skills, recipes, and service entries, primarily targeting destructive or sensitive operations to improve the tool's safety. The changes are extensive, including removal of entire services like admin, vault, and apps-script, and blocking specific destructive methods for services like drive and people. The implementation is clean, introducing a BLOCKED_METHODS constant to filter out unwanted API methods during skill generation. The documentation and configuration files have been updated accordingly. My review found one potential oversight where a destructive method might have been missed.

Comment on lines +31 to +38
const BLOCKED_METHODS: &[(&str, &str, &str)] = &[
("drive", "files", "delete"),
("drive", "files", "emptyTrash"),
("drive", "drives", "delete"),
("drive", "teamdrives", "delete"),
("people", "people", "deleteContact"),
("people", "people", "batchDeleteContacts"),
];
Copy link
Contributor

Choose a reason for hiding this comment

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

high

To enhance the safety of the tool by removing destructive actions, consider also blocking drive.revisions.delete. This method permanently deletes a file version, which aligns with the intent of blocking other destructive methods like drive.files.delete.

Suggested change
const BLOCKED_METHODS: &[(&str, &str, &str)] = &[
("drive", "files", "delete"),
("drive", "files", "emptyTrash"),
("drive", "drives", "delete"),
("drive", "teamdrives", "delete"),
("people", "people", "deleteContact"),
("people", "people", "batchDeleteContacts"),
];
const BLOCKED_METHODS: &[(&str, &str, &str)] = &[
("drive", "files", "delete"),
("drive", "files", "emptyTrash"),
("drive", "drives", "delete"),
("drive", "teamdrives", "delete"),
("drive", "revisions", "delete"),
("people", "people", "deleteContact"),
("people", "people", "batchDeleteContacts"),
];

@googleworkspace-bot googleworkspace-bot added the gemini: reviewed Gemini Code Assist has reviewed the latest changes label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: discovery area: docs area: skills cla: yes This human has signed the Contributor License Agreement. gemini: reviewed Gemini Code Assist has reviewed the latest changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants