Skip to content

feat: add Gmail skill with rich HTML formatting guidance#246

Merged
allenhutchison merged 1 commit intomainfrom
feat/gmail-skill
Feb 27, 2026
Merged

feat: add Gmail skill with rich HTML formatting guidance#246
allenhutchison merged 1 commit intomainfrom
feat/gmail-skill

Conversation

@allenhutchison
Copy link
Contributor

Summary

Add an agent skill for Gmail that provides rich text HTML email formatting guidance (closes #58) and establishes the skills architecture for the extension.

Changes

New

  • skills/gmail/SKILL.md — Gmail skill with:
    • Rich HTML email formatting instructions (isHtml: true, supported tags, inline CSS, templates)
    • Gmail search syntax quick reference
    • Label management workflows (system vs custom labels)
    • Attachment download guidance
    • Threading and reply best practices

Modified

  • workspace-server/WORKSPACE-Context.md — Removed Gmail-specific sections now covered by the skill; added cross-reference
  • scripts/release.js — Added skills/ directory bundling (same pattern as commands/)

Testing

  • All 400 existing tests pass
  • Release archive verified to contain skills/gmail/SKILL.md
  • Manually tested skill activation with email composition tasks

Closes #58

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @allenhutchison, 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 significantly enhances the agent's capabilities for managing Gmail by introducing a dedicated skill. This new skill centralizes detailed instructions for composing rich HTML emails, performing advanced searches, managing labels, handling attachments, and maintaining email threads. The change also refactors existing documentation to point to this new skill, streamlining information access and ensuring the new skill is included in future releases.

Highlights

  • New Gmail Skill: Introduced a comprehensive Gmail skill (skills/gmail/SKILL.md) providing detailed guidance on rich HTML email formatting, Gmail search syntax, label management, attachment downloading, and threading best practices.
  • Documentation Centralization: Migrated Gmail-specific documentation from workspace-server/WORKSPACE-Context.md to the new dedicated Gmail skill document, improving organization and reducing redundancy.
  • Release Process Update: Updated the release script (scripts/release.js) to include the new skills/ directory in the release archive, ensuring all skills are properly bundled.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • scripts/release.js
    • Added bundling of the skills directory into the release archive.
  • skills/gmail/SKILL.md
    • Introduced a new skill document for Gmail, detailing rich HTML email formatting, search operators, label management, attachment handling, and threading best practices.
  • workspace-server/WORKSPACE-Context.md
    • Removed redundant Gmail-specific guidelines that are now covered by the new Gmail skill.
    • Updated the Gmail section to reference the dedicated Gmail skill document.
Activity
  • All 400 existing tests passed, ensuring no regressions were introduced.
  • The release archive was manually verified to correctly contain the new skills/gmail/SKILL.md file.
  • Manual testing confirmed successful activation of the new Gmail skill for email composition tasks.
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 Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Create a skills architecture for the extension, starting with a Gmail
skill that provides:
- Rich text HTML email formatting instructions (issue #58)
- Gmail search syntax reference
- Label management workflows (system vs custom labels)
- Attachment download guidance
- Threading and reply best practices

Also:
- Migrate Gmail-specific content from WORKSPACE-Context.md to the skill
- Update release.js to bundle the skills/ directory in release archives

Closes #58
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 introduces a new 'skill' architecture by adding a detailed Gmail skill for rich HTML email formatting and other tasks. The changes include creating a new skill file, updating the release script to bundle skills, and refactoring the main context file to remove redundant information. This is a great architectural improvement that enhances modularity. I've found one minor issue in an HTML example within the new skill file.

@allenhutchison allenhutchison requested review from abhipatel12 and heltonduarte and removed request for heltonduarte February 26, 2026 20:29
Copy link

@abhipatel12 abhipatel12 left a comment

Choose a reason for hiding this comment

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

LGTM!

@allenhutchison allenhutchison merged commit 69ccba2 into main Feb 27, 2026
14 checks passed
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.

Refactor: Native Format Generation for Workspace Services

2 participants