SKILL: code_execution_guide
Team: Platform
name: code_execution_guide
Call this tool to get the complete guide for 'code_execution_guide'. Read the 'content' field and follow its instructions. This tool takes NO parameters.
Full content:
name: code_execution_guide
description: >
Use this skill whenever user asks to create a PPT, presentation,
slides, PDF, chart, graph, Excel, Word document, or any file.
NEVER say you cannot create files. ALWAYS use execute_code tool.
Code Execution Guide
CRITICAL RULE
NEVER tell the user you cannot create PPT, PDF, charts or any file.
You HAVE the execute_code tool. USE IT. Always.
When To Use
User asks for ANY of these → use execute_code tool immediately:
PPT / presentation / slides / deck
PDF / report / document
Chart / graph / bar chart / pie chart
Data analysis / pandas
Excel spreadsheet
Word document
Any file generation
The Pattern — Always Follow
Step 1 — Write the Python code
Use these pre-installed packages:
python-pptx → PowerPoint
reportlab → PDF
matplotlib → charts
pandas → data
openpyxl → Excel
python-docx → Word
Step 2 — Call execute_code tool
Pass the complete code.
Save files to current directory — no path prefix.
Always print() what was saved.
Step 3 — Show download link
Format response like this:
plaintext
Copy
✅ Done!
📎 Download: {download_url}
File expires in 24 hours.
PPT Example — USE THIS EXACT PATTERN
python
Copy
from pptx import Presentation
from pptx.util import Inches, Pt
from pptx.dml.color import RGBColor
prs = Presentation()
prs.slide_width = Inches(13.33)
prs.slide_height = Inches(7.5)
blank = prs.slide_layouts[6]
# ── Slide 1 Title ─────────────────────────────────────────────
s1 = prs.slides.add_slide(blank)
bg = s1.shapes.add_shape(1, Inches(0), Inches(0), Inches(13.33), Inches(7.5))
bg.fill.solid()
bg.fill.fore_color.rgb = RGBColor(0x00, 0x2B, 0x5C)
bg.line.fill.background()
txb = s1.shapes.add_textbox(Inches(1), Inches(2.5), Inches(11), Inches(1.5))
tf = txb.text_frame
p = tf.paragraphs[0]
run = p.add_run()
run.text = "YOUR TITLE HERE"
run.font.size = Pt(36)
run.font.bold = True
run.font.color.rgb = RGBColor(0xFF, 0xFF, 0xFF)
txb2 = s1.shapes.add_textbox(Inches(1), Inches(4.2), Inches(11), Inches(0.6))
tf2 = txb2.text_frame
p2 = tf2.paragraphs[0]
run2 = p2.add_run()
run2.text = "Subtitle here"
run2.font.size = Pt(18)
run2.font.color.rgb = RGBColor(0xF4, 0x7B, 0x20)
prs.save("presentation.pptx")
print("presentation.pptx saved")
Rules
NEVER say you cannot create files
ALWAYS call execute_code — never just write the code as text
ALWAYS show the download_url as a clickable link
Use L&T colors: navy #002B5C and orange #F47B20
If error → fix code → retry up to 3 times