AGENTS.md files are great for repo-specific rules like Next.js build checks or styling tokens, but I got tired of copying general coding workflows into every project I start. I wanted the pstack skills from cursor/plugins and the pocock skills from mattpocock/skills available in every repo I open, without dumping dozens of markdown files into each codebase.
Putting both collections in ~/.gemini/config/plugins/ as global Antigravity plugins fixed this in ten minutes. Here is how to set it up from scratch.
Requirements
Before you start, make sure you have these ready:
- VS Code with the Antigravity extension installed
- Git for cloning the upstream skill repos
- PowerShell on Windows, or a bash terminal on macOS and Linux
- Access to your user config folder at
~/.gemini/config/plugins/
Why global plugins beat per-project copies
If you copy skill folders into .agents/skills/ inside each project, you end up committing 86 external folders into your repo. That clogs git status and buries the two or three project-specific skills that actually belong there. You also have to sync upstream bug fixes by hand across every repo.
Putting general skills in ~/.gemini/config/plugins/ keeps them in one place. Project rules like content-authoring and portfolio-guardrails stay in .agents/skills/, and every repo on your machine gets the global plugins automatically.
Step 1: Grab the upstream skills
Clone both repositories into a temporary folder, then copy pstack and pocock into ~/.gemini/config/plugins/:
pstackcomes fromcursor/pluginspocockcomes frommattpocock/skills
Step 2: Flatten nested skill folders
Antigravity expects each plugin folder under ~/.gemini/config/plugins/ to have a plugin.json at the root and a flat skills/ folder where every child directory holds a SKILL.md file.
Upstream repos do not always match that layout. In cursor/plugins, pstack groups skills inside nested folders like skills/engineering/<name>. If you leave that extra folder in place, Antigravity looks inside skills/engineering/ for a SKILL.md file and skips the skills underneath it.
Move every skill folder up one level so skills/engineering/<name>/SKILL.md sits at skills/<name>/SKILL.md. On Windows PowerShell, I flattened pstack like this:
$pluginRoot = "$HOME\.gemini\config\plugins\pstack"
Get-ChildItem "$pluginRoot\skills" -Recurse -Filter "SKILL.md" | ForEach-Object {
$skillDir = $_.Directory
$target = Join-Path "$pluginRoot\skills" $skillDir.Name
if ($skillDir.Parent.FullName -ne (Join-Path $pluginRoot "skills")) {
Move-Item -Path $skillDir.FullName -Destination $target
}
}
Supporting references/ and scripts/ folders inside a skill move along with SKILL.md, so skills like statechart and typescript-best-practices keep their extra files.
Your folder tree should look like this when you are done:
~/.gemini/config/plugins/
├── pocock/
│ ├── plugin.json
│ ├── README.md
│ └── skills/
│ ├── code-review/SKILL.md
│ ├── grill-me/SKILL.md
│ ├── pr/SKILL.md
│ ├── to-spec/SKILL.md
│ ├── to-tickets/SKILL.md
│ └── ... # 27 skills total
└── pstack/
├── plugin.json
├── README.md
├── agents/
├── assets/
└── skills/
├── poteto-mode/SKILL.md
├── setup-pstack/SKILL.md
├── unslop/SKILL.md
└── ... # 59 skills total
Step 3: Write plugin.json
Create a plugin.json file at the root of each plugin folder so Antigravity reads the name, version, and metadata. Here is what I put in ~/.gemini/config/plugins/pocock/plugin.json:
{
"name": "pocock",
"displayName": "Matt Pocock Skills",
"version": "1.3.2",
"description": "Matt Pocock's agent skills for real engineering: grilling, spec/ticket flows, TDD, code review, domain modelling and more. Plug-and-play, not vibe coding.",
"author": {
"name": "Matt Pocock",
"url": "https://www.aihero.dev"
},
"homepage": "https://www.aihero.dev/s/skills-newsletter",
"repository": "https://github.com/mattpocock/skills",
"suggestedPrompts": [
"Ask Matt which workflow skill to use next",
"Grill me on my feature idea before writing a spec",
"Break this spec down into tickets and implement with TDD"
]
}
Keep name lowercase with no spaces, and match it to the plugin folder name. I used the same structure for ~/.gemini/config/plugins/pstack/plugin.json with "name": "pstack" and Lauren Tan as the author.
Step 4: Verify discovery in Antigravity
Check that every skill folder sits directly under skills/ and has a SKILL.md file:
Get-ChildItem "$HOME\.gemini\config\plugins\*\skills\*\SKILL.md" |
Select-Object @{Name="Plugin";Expression={$_.Directory.Parent.Parent.Name}},
@{Name="Skill";Expression={$_.Directory.Name}}
You should see 59 entries for pstack and 27 entries for pocock.
Next, open a fresh Antigravity session and check the skills inventory and slash command menu. Both plugins should show up with their SKILL.md descriptions and paths under ~/.gemini/config/plugins/. If a skill is missing, check its SKILL.md frontmatter for unquoted colons in description or check that it is not nested one folder too deep.
Watch out for name collisions too. Both pstack and pocock ship skills named tdd and teach. Check which path Antigravity resolves in the inventory or delete the copy you do not want.
Step 5: Use the skills in your daily branch workflow
Once everything shows up, I stick to six commands on a normal feature branch.
- Plan with
/grill-me,/to-spec, and/to-tickets. Run/grill-mefirst so the agent interviews you one question at a time about edge cases and failure modes. Once you settle the plan, run/to-specto turn the chat into a spec without more questions. Then run/to-ticketsto split the spec into vertical slices withBlocked byedges under.scratch/or your issue tracker. - Review before pushing with
/code-review. Run/code-reviewagainstmainto checkgit diff main...HEAD. It spawns two parallel subagents: one checks repo rules likeAGENTS.mdand Fowler code smells, and the other checks your diff against the spec. - Ship cleaner PRs and docs with
/prand/unslop. Run/prto build a pull request body with Summary, Evidence, and Merge Danger sections. Then run/unslopon pull request descriptions and docs to strip em dashes, filler, and passive voice before you push.