Skills, prompts and chat modes
Three ways to shape what the AI knows and does, all plain Markdown files in the plugin.
Prompt
"prompt": "prompt.md" adds the file to the AI's instructions on every turn while the plugin is on (first 4,000 characters). Use it for what the AI must always know: when to use your tools, naming rules, what never to do.
When the user mentions a ticket (like ACME-123), call tickets_get before changing code.
After a change for a ticket, call ticket_link with the commit message.
Never close a ticket yourself; ask the user.
If the plugin needs a sign-in the user has not done, AI Studio replaces the prompt with a line telling the AI to ask them to connect it in the Plugins tab.
Skills
"skills": "skills" points at a folder of skills, in the same format as Claude's: one folder per skill, each with a SKILL.md that starts with a name and a description.
skills/
release-notes/
SKILL.md
template.md
api-conventions/
SKILL.md
---
name: release-notes
description: Write release notes for a version of this app. Use when the user asks for release notes or a changelog entry.
---
1. Read the commits since the last tag.
2. Group them as Added, Changed, Fixed, using template.md.
...
Skills cost nothing until used: the AI sees only names and descriptions, and reads the full SKILL.md (and any file next to it) when a task matches. Write the description for that match.
- Claude loads them as a Claude Code plugin, the standard way.
- Codex gets the list of names, descriptions and paths in its instructions, and reads the file when one fits.
Skills, like the prompt, are only offered once the plugin's sign-in is done.
Chat modes
A chat mode is a button under the chat box. While it is selected, the next message is sent with the mode's prompt added to it (first 4,000 characters).
"chatModes": [
{ "id": "triage", "label": "Triage", "about": "Sort new tickets, without changing code", "prompt": "modes/triage.md" }
]
id is lowercase letters, digits and dashes; the full key is <plugin id>:<mode id> (acme.tickets:triage). A panel can send in a mode directly: aistudio.chat.send(text, { mode: 'acme.tickets:triage' }).