foundry-code-interpreter
Create an ad-hoc Microsoft Foundry agent with Code Interpreter to analyze data, generate charts, solve math problems, or run Python code in a sandboxed…
Skill by aymenfurter
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aymenfurter-foundry-code-interpreter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, backend, data, marketing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/foundry-code-interpreter
What's inside
- Skill name
foundry-code-interpreter- Description
- Create an ad-hoc Microsoft Foundry agent with Code Interpreter to analyze data, generate charts, solve math problems, or run Python code in a sandboxed environment. Uses the new Foundry v2 Responses API with conversations. Use when the user says: "analyze this data", "create a chart", "run code interpreter", "foundry code interpreter", "analyze csv", "generate a plot", "solve this with code", "use code interpreter", "data analysis agent"
- License
- MIT
- Metadata
- verb: analyze
- Instructions
- 181 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Foundry Code Interpreter Agent
Create an ad-hoc Foundry agent with Code Interpreter enabled using the new v2 Responses API.
The agent can write and execute Python code in a sandboxed environment to solve data analysis tasks, generate visualizations, and perform computations.
## Prerequisites
The user must have completed the Foundry setup (the `setup-foundry` skill). They need:
- `FOUNDRY_PROJECT_ENDPOINT` -- the project endpoint URL
- `FOUNDRY_MODEL_DEPLOYMENT_NAME` -- the model deployment name (e.g. `gpt-4.1-mini`)
If these are not set, ask the user for the values.
## Steps
### 1. Determine the Task
Ask the user what they want the code interpreter agent to do. Examples:
- "Analyze this CSV file and create a bar chart"
- "Solve this equation: sin(x) + x^2 = 42"
- "Generate a histogram of this data"
- "Calculate statistics for this dataset"
If the user provides a file, note the file path for upload.
### 2. Run the Code Interpreter Agent
Use the following Python script. Replace placeholders with actual values.
**Without file upload (computation / code generation):**
```bash
python3 << 'PYEOF'
import os
from azure.identity import DefaultAzureCredential
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import PromptAgentDefinition, CodeInterpreterTool, CodeInterpreterToolAuto
endpoint = os.environ.get("FOUNDRY_PROJECT_ENDPOINT", "<ENDPOINT>")
model = os.environ.get("FOUNDRY_MODEL_DEPLOYMENT_NAME", "<MODEL>")
project_client = AIProjectClient(
endpoint=endpoint,
credential=DefaultAzureCredential(),
)
with project_client:
openai_client = project_client.get_openai_client()
# Create agent with code interpreter
agent = project_client.agents.create_version(
agent_name="CodeInterpreterAgent",
definition=PromptAgentDefinition(
model=model,
instructions="You are a data analysis and computation assistant. Write and execute Python code to solve the user's problem. Show results clearly.",
tools=[CodeInterpreterTool(container=CodeInterpreterToolAuto())],
),
description="Ad-hoc code interpreter agent.",
)
print(f"Agent created: {agent.name} v{agent.version}")
# Create a conversation
conversation = openai_client.conversations.create()
print(f"Conversation: {conversation.id}")
# Send the user's request
response = openai_client.responses.create(
conversation=conversation.id,
input="USER_PROMPT_HERE",
extra_body={"agent": {"name": agent.name, "type": "agent_reference"}},
)
# Print the response
for item in response.output:
if item.type == "message":
for content in item.content:
if content.type == "output_text":
print(content.text)
# Clean up
project_client.agents.delete_version(agent_name=agent.name, agent_version=agent.version)
print("Agent cleaned up.")
PYEOF
```
**With file upload (data analysis):**
```bash
python3 << 'PYEOF'
import os
from azure.identity import DefaultAzureCredential
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import PromptAgentDefinition, CodeInterpreterTool, CodeInterpreterToolAuto
endpoint = os.environ.get("FOUNDRY_PROJECT_ENDPOINT", "<ENDPOINT>")
model = os.environ.get("FOUNDRY_MODEL_DEPLOYMENT_NAME", "<MODEL>")
file_path = "FILE_PATH_HERE"
project_client = AIProjectClient(
endpoint=endpoint,
credential=DefaultAzureCredential(),
)
with project_client:
openai_client = project_client.get_openai_client()
# Upload the file
with open(file_path, "rb") as f:
uploaded_file = openai_client.files.create(purpose="assistants", file=f)
print(f"File uploaded: {uploaded_file.id}")
# Create agent with code interpreter and file access
agent = project_client.agents.create_version(
agent_name="DataAnalysisAgent",
definition=PromptAgentDefinition(
model=model,
instructions="You are a data analysis assistant. Analyze the uploaded file and fulfil the user's request. Generate charts or output files when appropriate.",
tools=[CodeInterpreterTool(container=CodeInterpreterToolAuto(file_ids=[uploaded_file.id]))],From aymenfurter/polyclaw, MIT.
More from aymenfurter/polyclaw
- 0.517score
web-search
aymenfurter
Search the web for information using Playwright browser automation.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
setup-foundry
aymenfurter
Provision a Microsoft Foundry resource, create a project, deploy a model (gpt-4.1-mini), and install the required Python SDK packages.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-incidents
aymenfurter
List recent and active GitHub incidents from githubstatus.com.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-maintenance
aymenfurter
Check upcoming and active scheduled maintenance windows for GitHub services.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-status-check
aymenfurter
Check the current operational status of all GitHub services.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
daily-rollover
aymenfurter
Start a new day by rolling over unfinished tasks and preparing today's daily note.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
end-day
aymenfurter
Wrap up the day by fetching meeting summaries from Microsoft 365 via WorkIQ and updating today's daily note with outcomes and reflections.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
monthly-review
aymenfurter
Generate a monthly retrospective by analyzing weekly reviews, long-term task progress, and deep Microsoft 365 productivity analytics via WorkIQ.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
setup-workiq
aymenfurter
Install the WorkIQ CLI for Microsoft 365 integration.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
weekly-review
aymenfurter
Generate a weekly summary by consolidating daily notes, reviewing task completion, and pulling Microsoft 365 productivity analytics via WorkIQ.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
setup-wikipedia
aymenfurter
Install the wikipedia Python package for querying Wikipedia articles.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
wiki-deep-dive
aymenfurter
Retrieve the full content of a Wikipedia article, broken down by sections, with references and images.
SkillDFreshness: D★ 87Claude Code +9
Signals
- Stars
- 87
- Forks
- 19
- Open issues
- 1
- Last commit (this folder)
- Feb 15, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/aymenfurter/polyclaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aymenfurter
- 0.517score
setup-foundry
aymenfurter
Provision a Microsoft Foundry resource, create a project, deploy a model (gpt-4.1-mini), and install the required Python SDK packages.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-incidents
aymenfurter
List recent and active GitHub incidents from githubstatus.com.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-maintenance
aymenfurter
Check upcoming and active scheduled maintenance windows for GitHub services.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
gh-status-check
aymenfurter
Check the current operational status of all GitHub services.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
daily-rollover
aymenfurter
Start a new day by rolling over unfinished tasks and preparing today's daily note.
SkillDFreshness: D★ 87Claude Code +9 - 0.517score
foundry-agent-chat
aymenfurter
Create an ad-hoc Microsoft Foundry agent for a specific purpose using the new v2 Responses API.
SkillDFreshness: D★ 87Claude Code +9
Cite this page
foundry-code-interpreter skill. Agent Mart. https://agentmart.dev/skills/aymenfurter-foundry-code-interpreter (last updated 2026-10-24)