ワンクリックで
file-generation
Generate files (charts, documents, spreadsheets, images, presentations) by executing Python code in a sandboxed environment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate files (charts, documents, spreadsheets, images, presentations) by executing Python code in a sandboxed environment
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use Python execution to compute precise answers when in-context reasoning is unreliable (arithmetic, date math, regex, parsing, data manipulation). Returns a value, not an artifact.
A test skill for verifying deterministic activation from SOP steps. Contains special instructions that should appear in the agent context when activated.
Builds Python library features for the MUXI runtime (helpers, consumer migrations, schema, tests, docs). All work is library + pytest + ripgrep; no servers, no browsers.
Print a greeting message using a secret value. Use when asked to print a greeting.
Create interactive HTML widgets, dashboards, diagrams, and visual explainers for requests that are better shown than described.
Deep knowledge of the MUXI Runtime codebase (Python, ~300 files, ~119K lines). Use when working on runtime code: formations, overlord, memory systems, LLM layer, MCP, observability, scheduler, secrets, server/API, skills, RCE, or e2e tests. Knows initialization order, data flows, gotchas, and testing patterns.
| name | file-generation |
| description | Generate files (charts, documents, spreadsheets, images, presentations) by executing Python code in a sandboxed environment |
| license | Apache-2.0 |
| compatibility | >=1.0 |
When users request file generation (charts, documents, spreadsheets, images, presentations), you have access to the generate_file tool that can execute Python code to create these files.
/tmp/muxi_artifacts/, file sizes, or download linksUnderstand the user's request - Identify what type of file they need (chart, document, spreadsheet, etc.)
Write complete Python code that:
Use the generate_file tool with your code:
generate_file(code="your_python_code_here", filename="optional_hint.ext")
Data Processing & Analysis:
pandas - Data manipulation and analysisnumpy - Numerical computingscipy - Scientific computingstatsmodels - Statistical modelingVisualization & Charts:
matplotlib - 2D plotting library (always use matplotlib.use('Agg'))seaborn - Statistical data visualizationplotly - Interactive visualizationsbokeh - Interactive visualization libraryaltair - Declarative visualizationDocument Generation:
python-docx - Create/modify Word documents (.docx)reportlab - PDF generation (prefer over fpdf for Unicode support)fpdf2 - Simple PDF generationmarkdown - Markdown processingSpreadsheets:
openpyxl - Read/write Excel 2010 xlsx/xlsm filesxlsxwriter - Create Excel filespandas with to_excel() - Excel exportImages & Graphics:
PIL/Pillow - Image processingqrcode - QR code generationpython-barcode - Barcode generationPresentations:
python-pptx - Create PowerPoint presentationsOther Formats:
pyyaml - YAML fileslxml - XML processingjson - JSON filescsv - CSV filesNetworking:
requests - HTTP requestsurllib - URL handlingCreating a chart:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 10, 100)
y = np.sin(x)
plt.figure(figsize=(10, 6))
plt.plot(x, y, 'b-', linewidth=2)
plt.title('Sine Wave')
plt.xlabel('X values')
plt.ylabel('Y values')
plt.grid(True, alpha=0.3)
plt.savefig('sine_wave.png', dpi=300, bbox_inches='tight')
plt.close()
Creating a document:
from docx import Document
from docx.shared import Inches, Pt
doc = Document()
doc.add_heading('Report Title', 0)
p = doc.add_paragraph('This is an example paragraph with ')
p.add_run('bold text').bold = True
p.add_run(' and ')
p.add_run('italic text').italic = True
doc.add_paragraph('Key findings:', style='List Bullet')
doc.add_paragraph('First finding', style='List Bullet')
doc.add_paragraph('Second finding', style='List Bullet')
doc.save('report.docx')
Creating a spreadsheet:
import pandas as pd
import numpy as np
data = {
'Date': pd.date_range('2024-01-01', periods=10),
'Sales': np.random.randint(100, 1000, 10),
'Costs': np.random.randint(50, 500, 10)
}
df = pd.DataFrame(data)
df['Profit'] = df['Sales'] - df['Costs']
with pd.ExcelWriter('sales_report.xlsx', engine='openpyxl') as writer:
df.to_excel(writer, sheet_name='Sales Data', index=False)
Creating a QR code:
import qrcode
qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=10, border=4)
qr.add_data('https://example.com')
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save('qr_code.png')
Creating a presentation:
from pptx import Presentation
from pptx.util import Inches, Pt
prs = Presentation()
title_slide_layout = prs.slide_layouts[0]
slide = prs.slides.add_slide(title_slide_layout)
slide.shapes.title.text = "Quarterly Report"
slide.placeholders[1].text = "Q4 2024 Results"
content_slide_layout = prs.slide_layouts[1]
slide = prs.slides.add_slide(content_slide_layout)
slide.shapes.title.text = "Key Metrics"
slide.placeholders[1].text = "- Revenue: $1.2M\n- Growth: 25%\n- New Customers: 150"
prs.save('presentation.pptx')
matplotlib.use('Agg') before importing pyplotGOOD Response: "I've created the bar chart showing your Q1 sales data with the three categories you requested."
BAD Response: "I've created the chart at /tmp/muxi_artifacts/chart.png (15KB). You can download it here: [link]"
Remember: Keep responses simple and focused on what was created, not technical details.