AI-powered guidance for creating G-Assist plugins with zero boilerplate.
This folder contains a Cursor Project Rule in .mdc format that provides AI-guided plugin creation:
- MDC Format - Markdown with frontmatter supporting metadata (
alwaysApply: true) - Project Rule - Lives in
.cursor/rules/directory, version-controlled with your code - Always Applied - Automatically included in every Agent chat session for this project
The assistant acts as an interactive wizard that guides you through plugin creation without you having to explain the G-Assist SDK context every time.
The plugin builder rules create an interactive wizard that:
- Interviews you - Asks about plugin name, functions, parameters, API keys needed, etc.
- Generates code - Creates
plugin.py,manifest.json, and config files from templates - Validates structure - Ensures manifest functions match code decorators
- Provides setup commands - Ready-to-run
setup.batcommands for deployment - Creates documentation - Generates plugin-specific docs for the new plugin folder
Key patterns automated:
- SDK-based Protocol V2 (JSON-RPC) boilerplate
- Streaming output with
plugin.stream() - Passthrough mode for multi-turn conversations
- Setup wizards for API keys/authentication
- Standard logging and config paths
Copy the rule file to your project's .cursor/rules/ directory:
# Create .cursor/rules directory if it doesn't exist
mkdir .cursor\rules
# Copy the plugin builder rule
copy plugins\plugin-builder\cursor\rules\RULE.md .cursor\rules\Once copied, the rule automatically applies to all Agent chats in your project.
Open this folder in Cursor IDE and start chatting - the rule is already active here.
Start a conversation with the Agent (Ctrl+L / Cmd+L) and it will:
- Interview you about your plugin (name, purpose, functions, etc.)
- Guide you through copying the
hello-worldexample - Help you customize
plugin.py,manifest.json, andconfig.json - Generate plugin-specific documentation
- Remind you to run
setup.batto install dependencies
Follow the prompts - each step includes ready-to-run commands.
All plugins use Protocol V2 with the G-Assist SDK. The SDK handles:
- Message framing (length-prefixed)
- JSON-RPC 2.0 communication
- Automatic ping/pong responses
- Error handling
You just write your business logic using simple decorators:
from gassist_sdk import Plugin
plugin = Plugin("my-plugin", version="1.0.0")
@plugin.command("my_function")
def my_function(param: str):
plugin.stream("Working...")
return "Result"
if __name__ == "__main__":
plugin.run()| Example | Description |
|---|---|
plugins/examples/hello-world/ |
Simple example - basic commands, streaming, passthrough |
plugins/examples/gemini/ |
Production plugin - API integration, setup wizard, streaming |
From the plugins/examples/ folder:
setup.bat hello-world # Install dependencies only
setup.bat hello-world -deploy # Install and deploy to RISE
setup.bat all -deploy # Setup and deploy all plugins| File | Purpose |
|---|---|
custom-gassist-plugin-builder-assistant.mdc |
Project Rule in MDC format - place in .cursor/rules/ |
README.md |
This documentation |
Note: This directory (plugins/plugin-builder/cursor/) serves as the template source. Copy the .mdc file to your project's .cursor/rules/ directory to activate it.
Using Cursor's Project Rules system provides powerful benefits:
- Always Available - With
alwaysApply: true, the assistant is active in every Agent chat - Version Controlled - Rules live in
.cursor/rules/alongside your code - Team Consistency - Every developer gets identical, up-to-date guidance
- Zero Repetition - No need to re-explain G-Assist SDK patterns in every chat
- Persistent Context - The AI remembers your project's conventions automatically
When SDK patterns evolve, update the .mdc file and commit it - all team members instantly benefit.
Alternatives:
AGENTS.md- Simple markdown file in project root (no metadata, easier for basic use).cursorrules- Legacy format in project root (still supported but deprecated)
See Cursor Rules docs for details on all formats.
- Cursor Rules Documentation - Official guide to Project Rules, AGENTS.md, and rule types
- Cursor Directory - Community examples for creating custom rules
- G-Assist SDK Examples -
plugins/examples/hello-world/andplugins/examples/gemini/