Agent skills for Google Publisher Tag (GPT)
are portable, self-contained modules of GPT knowledge,
instructions, and workflows. These skills help AI coding assistants follow
GPT guidelines and complete complex tasks. For all available
Google Ads agent skills, see the ads folder in the Google
skills repository on GitHub.
This guide shows you how to install, update, and invoke GPT agent skills.
Prerequisites
Before you install GPT agent skills, make sure you have the following:
- An AI coding assistant that supports the open Agent Skills standard, such as Google Antigravity, Claude Code, Codex, or Cursor.
- Node.js, to install skills with the
npxcommand.
Install agent skills
To install GPT agent skills, select your coding assistant and run the command in your project directory:
Antigravity
npx skills add google/skills/skills/ads --agent=antigravity
Claude Code
npx skills add google/skills/skills/ads --agent=claude-code
Codex
npx skills add google/skills/skills/ads --agent=codex
Cursor
npx skills add google/skills/skills/ads --agent=cursor
Other agents
npx skills add google/skills/skills/ads
When prompted, select the GPT skills you want to install.
Agent skills for GPT begin with the google-publisher-tag
prefix.
To install a single skill directly without an interactive prompt, pass the
--skill flag with a name from View available skills. The
following example installs the google-publisher-tag-migrate-to-setconfig
skill:
npx skills add google/skills --skill google-publisher-tag-migrate-to-setconfig
Update agent skills
Update your agent skills regularly to get the current GPT features and workflows. To update all installed agent skills, run the following command:
npx skills update --all
Invoke agent skills
When your prompt matches a skill's description, AI coding assistants load
installed skills. To invoke a skill manually, enter the / or @ character in
your coding assistant chat and select the skill name.
View available skills
The following table lists the available GPT agent skills and sample prompts:
| Skill | Description | Sample prompt |
|---|---|---|
google-publisher-tag-migrate-to-setconfig |
Migrates deprecated GPT configuration getters and setters on the googletag.pubads() method and the googletag.Slot class to the googletag.setConfig(), Slot.setConfig(), googletag.getConfig(), and Slot.getConfig() methods. For more information about manual migration, see the Config API migration guide. |
Migrate my GPT code from deprecated configuration methods to setConfig and getConfig. |