Gemini Gem Converter
Convert Agent Skills into Gemini Gems with awareness of platform constraints and optimal adaptation strategies.
Platform Constraints Summary
Aspect Claude Skills Gemini Gems
Instructions Unlimited (SKILL.md) No documented limit
Knowledge Files Unlimited 10 files max
File Structure Hierarchical Flat
Executable Scripts Yes (Python, Bash) No
API Integration Via scripts No
Live Updates N/A Yes (Google Docs/Sheets)
For detailed constraints and workarounds, see references/gem-constraints.md.
Conversion Workflow
Step 1: Audit the Source Skill
Inventory all files in the source skill directory:
-
Read SKILL.md — note frontmatter fields and body length
-
List all files in scripts/ , references/ , and assets/
-
Count total files (Gems allow max 10 knowledge files)
-
Identify scripts that need conversion to instructional docs
Step 2: Map SKILL.md to Gem Instructions
Source Target
YAML name
Gem Name
YAML description
First paragraph of Gem instructions
SKILL.md body Full instructions field
Transformation rules:
-
Remove Claude-specific directives — Strip file path references (/mnt/skills/... ), remove tool invocation syntax, replace "Claude" with neutral terms ("this assistant")
-
Adapt progressive disclosure — Gems don't support lazy loading. Consolidate critical info into instructions. Use knowledge files for supplementary detail.
-
Remove frontmatter — Gems don't use YAML frontmatter. Extract name and description into the Gem configuration UI.
Step 3: Convert Bundled Resources
Use this naming convention for the flat file structure:
Original: Derived: references/api-docs.md → REF_api-docs.md references/workflows/create.md → REF_workflows_create.md scripts/rotate_pdf.py → SCRIPT_rotate_pdf.md (converted) assets/template.pptx → ASSET_template.pptx
Prefix system:
-
REF_ — Reference documentation
-
SCRIPT_ — Script logic (converted to readable format)
-
ASSET_ — Binary assets (images, templates)
-
WORKFLOW_ — Multi-step procedures
Step 4: Convert Scripts to Instructional Documents
Since Gems cannot execute code, transform each script into:
-
Procedural documentation — Step-by-step instructions the AI can explain
-
Code snippets for users — Code the user can copy/paste and run locally
-
Guidance on when to use — Context for when this procedure applies
Example transformation:
Source (scripts/rotate_pdf.py ):
def rotate_pdf(input_path, degrees): from pypdf import PdfReader, PdfWriter reader = PdfReader(input_path) writer = PdfWriter() for page in reader.pages: page.rotate(degrees) writer.add_page(page) return writer
Target (SCRIPT_rotate_pdf.md ):
PDF Rotation Procedure
When to use
User wants to rotate pages in a PDF document.
Steps to guide user
- Explain that PDF rotation requires a Python environment
- Provide this code for the user to run: [Python code snippet]
- Offer to explain any part of the code
- Suggest online alternatives if user cannot run Python
Step 5: Consolidate to 10-File Limit
Gems allow a maximum of 10 knowledge files. If the source skill has more than 10 resource files:
-
Merge related references into single files (e.g., combine all API docs)
-
Prioritize core documentation — drop files that are nice-to-have
-
Inline short references into the instructions field
-
Aim for 5-7 files to leave room for future additions
Step 6: Test the Gem
-
Create the Gem in Google AI Studio with the converted instructions
-
Upload all knowledge files
-
Test with representative queries from the original skill's use cases
-
Verify the Gem finds and uses knowledge files correctly
-
Iterate on instructions if the Gem misses important context
Platform Opportunities
Google Drive integration: Gems can reference Google Docs/Sheets that auto-update. For skills with frequently changing reference data, consider linking a Google Sheet instead of a static knowledge file.
Naming Convention Quick Reference
SKILL.md fields → Gem Configuration: name → Gem Name description → Instructions (first paragraph) body → Instructions (full content)
Resource files → Knowledge Files: references/* → REF_.md scripts/ → SCRIPT_.md (converted from code to docs) assets/ → ASSET_* (uploaded directly if supported type)
Quality Expectations
Skill Type Expected Gem Retention
Documentation/Knowledge ~90%
Workflow guidance ~80%
Code generation guidance ~70%
Automated tasks (scripts) ~20%
External API integration ~0%
Script-heavy skills will lose the most capability. Knowledge-heavy skills translate well.