Skip to content

Guide · Agent skill

How to use the Renew Google Workspace Events Subscriptions agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The gws-events-renew skill teaches an AI agent how to renew Google Workspace Events subscriptions using the gws command-line tool. Subscriptions lapse if they are not refreshed periodically, so this skill lets the agent renew one named subscription or every subscription expiring within a time window you choose. This guide is for administrators and developers who already run Workspace Events subscriptions, and it explains how to install the skill, ask for renewals in plain language, and what to check before running it.

Renew Google Workspace Events Subscriptionsgoogleworkspace/cli · Apache-2.0

Quick start

  1. 1Install the gws CLI and authenticate. Make sure the gws command-line tool is installed and that Google Workspace authentication is configured through gws. The skill cannot complete without them.
  2. 2Confirm you have subscriptions. Check that your account already has Workspace Events subscriptions. This skill renews existing subscriptions and does not create new ones.
  3. 3Download and unzip the skill. Download the ZIP from this page and unzip it so that SKILL.md sits in a folder named gws-events-renew.
  4. 4Place the skill folder. Move the folder into ~/.claude/skills/ for personal use, or into .claude/skills/ inside your project. Alternatively, upload it under Settings → Capabilities → Skills in the Claude apps.
  5. 5Ask for a renewal. Request a renewal in plain language, naming either a subscription such as subscriptions/SUB_ID or a window such as the next two days.
  6. 6Review and check results. Review the command the agent proposes, then confirm the subscription's state in your Google account after the run.

What is an agent skill, and what does this one do?

An agent skill is a folder containing a SKILL.md file that gives an AI agent instructions for a specific task. When a request matches the skill, the agent reads those instructions and runs the commands they describe.

This skill covers one task: renewing or reactivating Google Workspace Events subscriptions. It uses the gws command, specifically gws events +renew. It can renew a single subscription by name, or renew all subscriptions expiring within a window such as the next two days. It does not create subscriptions.

  • Renew one subscription by its name, for example subscriptions/SUB_ID.
  • Renew every subscription expiring within a time window (--within, default 1h).
  • Relies on the shared gws authentication and global settings described in the gws-shared skill.

What you need before installing

The skill only works if the gws command-line tool is installed and authenticated, and if your Google account already has Workspace Events subscriptions. Renewing changes the live state of subscriptions in your Google account, so run it only on subscriptions you are responsible for.

Authentication is handled by a companion skill, gws-shared, which the SKILL.md file asks the agent to read first. If that file is missing, the source says to run gws generate-skills to create it.

  • The gws command-line tool (Google Workspace CLI) installed.
  • Google Workspace authentication configured through gws.
  • Existing Workspace Events subscriptions in the account.
  • Network access, since the skill calls Google services.

Install the skill from a ZIP file

Download the ZIP for this skill from this page and unzip it. The package contains a single file, SKILL.md. Place the unzipped folder in one of two locations, depending on how you want to use it.

For a personal setup available across projects, put it in ~/.claude/skills/. For a single project, put it in that project's .claude/skills/ folder so it applies only there.

You can also upload the skill in the Claude apps by going to Settings, then Capabilities, then Skills, and uploading the skill there.

  • Personal use: ~/.claude/skills/
  • Project use: .claude/skills/ inside the project folder
  • Claude apps: Settings → Capabilities → Skills

The commands the skill runs

The skill uses the gws events +renew command. It takes three flags. Use --name to renew one subscription, or --all to renew every subscription expiring within the window set by --within. If you omit --within, the default window is 1h.

Window values are written like 1h, 30m or 2d. The skill's cliHelp entry points to gws events +renew --help for the full flag reference on your installed version.

  • --name: subscription name to reactivate, such as subscriptions/SUB_ID. No default.
  • --all: renew all subscriptions expiring within the --within window. No default.
  • --within: time window for --all, such as 1h, 30m or 2d. Default 1h.
gws events +renew --name subscriptions/SUB_ID gws events +renew --all --within 2d

How to trigger the skill with natural requests

You do not need to type the commands yourself. Ask the agent in plain language, and mention the subscription name or the time window. The agent should match your request to this skill and use the flags described above.

Be specific. A request that names a subscription or a window gives the agent what it needs to choose between --name and --all. If you do not name a window, the agent should fall back to the 1h default.

  • "Renew the Workspace Events subscription subscriptions/SUB_ID."
  • "Renew all Workspace Events subscriptions expiring in the next two days."
  • "Reactivate any Workspace Events subscriptions that expire within 30 minutes."

Keep subscriptions alive with a scheduled job

The source notes that subscriptions expire if they are not renewed periodically, and suggests running --all from a cron job to keep them active. This is the main reason engineers use this skill: a scheduled job that refreshes subscriptions before they lapse.

Choose a --within window longer than the interval between your scheduled runs, so that subscriptions are caught before they expire. Test the command manually on a non-critical subscription first, since renewal changes live state.

  • Use --all with a cron job to keep subscriptions alive.
  • Pick a --within window that covers the gap between runs.
  • Test with --name on one subscription before automating --all.

Safety notes: scripts and network access

This skill runs scripts and uses the network. The commands call Google Workspace services through gws, so they change real subscription state in your account. Renewal is not a dry run.

Follow the security rules in the gws-shared skill, which the source says cover auth, global flags and security. Use an account and scope you are authorised to manage, and review the commands the agent proposes before it runs them, especially when you give it a broad --all request.

  • Renewal changes live subscription state in your Google account.
  • The skill requires network access and runs scripts.
  • Read the gws-shared skill for authentication and security rules.

What people use it for

  • Renewing one named Workspace Events subscription before it lapses.
  • Running a scheduled cron job that renews all subscriptions expiring within a set window.
  • Reactivating subscriptions that have already been set up but were not refreshed in time.
  • Checking which subscriptions are close to expiry by choosing a window such as 2d.

Frequently asked questions

How do I install the gws-events-renew skill?

Download the ZIP from this page and unzip it so that SKILL.md is inside a gws-events-renew folder. Put that folder in ~/.claude/skills/ for personal use or in a project's .claude/skills/ folder, or upload it in the Claude apps under Settings → Capabilities → Skills.

What do I need to use this skill?

You need the gws command-line tool installed, Google Workspace authentication configured through gws, and existing Workspace Events subscriptions in your account. The skill also needs network access and runs scripts.

Can this skill create new Google Workspace Events subscriptions?

No. The source describes it as a skill for renewing or reactivating existing subscriptions. It does not create them.

Is the gws-events-renew skill free?

The source gives the licence as Apache-2.0 for the googleworkspace/cli repository. The source does not mention pricing, so check the repository for licence terms.

What does the --within flag do?

The --within flag sets the time window used with --all, for example 1h, 30m or 2d. If you leave it out, the default is 1h.

Why did my renewal fail, and what should I check?

Confirm that gws is installed and authenticated, that the subscription name is correct (for example subscriptions/SUB_ID), and that the skill's companion gws-shared skill is present. If it is missing, the source says to run gws generate-skills to create it. Run gws events +renew --help to check flags on your version.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits administrators and developers who already run Google Workspace Events subscriptions and want an agent to renew them, either by hand or from a scheduled job. It is not suitable for anyone who has not set up Workspace Events, since it does not create subscriptions, or for anyone without the gws CLI installed and authenticated. Because renewal changes live subscription state, review commands before running broad requests.

Download the skill