gemini-code-execlisted
Install: claude install-skill azmym/gemini-plugin
# Gemini Code Exec
Use this skill to run Python code inside Gemini's isolated sandbox. This gives you a clean, side-effect-free execution environment for verifying computations, testing patterns, and validating logic without touching the local machine.
## When to use this skill
- **Math verification:** Confirm a formula, check a statistical calculation, or validate a numeric result.
- **Regex testing:** Test a regular expression against a set of sample inputs before embedding it in production code.
- **Algorithm simulation:** Run a sorting algorithm, dynamic programming solution, or graph traversal with sample data to verify correctness.
- **Data transformation validation:** Confirm that a proposed data mapping, normalization, or encoding produces the expected output.
- **Edge case probing:** Run code against boundary values (zero, max int, empty string, None) to see what happens.
- **Dependency-free snippets:** Execute a pure-Python snippet that has no local filesystem or network dependencies.
## MCP tools
| Tool | Purpose |
|---|---|
| `mcp__gemini__gemini_code_execute` | Submit Python code for execution in Gemini's sandbox and receive stdout, stderr, and the return value |
## Usage pattern
### Verify a math formula
```json
{
"tool": "mcp__gemini__gemini_code_execute",
"arguments": {
"code": "import math\n\ndef compound_interest(principal, rate, periods):\n return principal * (1 + rate) ** periods\n\nresult = compound_interest(1000, 0.05, 10)\nprint(f'Aft