Generate comprehensive, fact-checked SAP technical articles and configuration guides with embedded images, flowcharts, and references...
Generate optimized, fact-checked SAP technical articles as professional Word documents with embedded images, flowcharts, and references.
This skill is self-contained and includes:
Follow these steps in sequence for every article:
# REQUIRED before creating any Word document
cat /mnt/skills/public/docx/SKILL.md
CRITICAL: Always search before writing to ensure current, accurate information
Use web_search tool to verify:
Minimum 2-3 searches for any article.
Search query examples:
Configuration Guides:
Conceptual Articles:
Troubleshooting Guides:
Images significantly improve article quality. Every article MUST have 2-3+ embedded images.
Use web_search to find relevant SAP images:
web_search("SAP [transaction] screenshot")
web_search("SAP [process] flow diagram")
web_search("SAP [module] configuration screen")
Image types to include:
From the web_search results, identify direct image URLs. Look for:
Install dependencies first (if not already installed):
pip install requests Pillow --break-system-packages
Create temp directory:
mkdir -p /home/claude/temp_images
Download images:
Option A - Single Image:
python scripts/fetch_image.py \
"https://example.com/sap-screenshot.png" \
/home/claude/temp_images
Option B - Multiple Images (Recommended):
# Create URL list
cat > /home/claude/image_urls.txt << 'EOF'
https://example.com/sap-vov8.png
https://example.com/sales-flow.jpg
https://example.com/config-screen.png
EOF
# Download all at once
python scripts/fetch_images_batch.py \
/home/claude/image_urls.txt \
/home/claude/temp_images
ls -lh /home/claude/temp_images/
You should see the downloaded images with file sizes.
Follow the docx skill guidelines to create a professional Word document.
Key requirements for images in the document:
/home/claude/temp_images/Example embedding pattern (following docx skill):
# After creating document according to docx skill
# Add image paragraph with the downloaded image
# See docx SKILL.md for exact syntax
Title Page:
Content Formatting:
Images:
References Section:
Before delivering, verify:
# Save document to outputs
# Filename: [Topic]_SAP_Guide.docx
mv /home/claude/article.docx /mnt/user-data/outputs/SAP_[Topic]_Guide.docx
Provide user with:
computer:///mnt/user-data/outputs/SAP_[Topic]_Guide.docxThis skill includes two Python scripts for downloading images:
Downloads a single image from a URL.
Usage:
python scripts/fetch_image.py <image_url> [output_dir] [filename]
Examples:
# Download to current directory
python scripts/fetch_image.py https://example.com/image.jpg
# Download to specific directory
python scripts/fetch_image.py https://example.com/image.jpg /home/claude/temp_images
# Download with custom filename
python scripts/fetch_image.py https://example.com/image.jpg /home/claude/temp_images sap_screenshot.jpg
Downloads multiple images from a list.
Usage:
python scripts/fetch_images_batch.py <urls_file> [output_dir]
Input file: Text file with one URL per line, or JSON array
Example:
python scripts/fetch_images_batch.py urls.txt /home/claude/temp_images
This skill handles articles on:
User Request: "Create an article on SAP sales order type configuration"
Step-by-step execution:
Read docx skill:
cat /mnt/skills/public/docx/SKILL.md
Research (3 web searches):
web_search("SAP SD sales order type configuration VOV8")
web_search("SAP sales document types customizing")
web_search("SAP S/4HANA order type setup")
Find images (2 web searches):
web_search("SAP transaction VOV8 screenshot")
web_search("SAP sales order flow diagram")
Download images:
mkdir -p /home/claude/temp_images
cat > /home/claude/urls.txt << 'EOF'
https://sap-blog.com/vov8-screenshot.png
https://sap-tutorial.com/sales-flow.jpg
EOF
python scripts/fetch_images_batch.py /home/claude/urls.txt /home/claude/temp_images
ls -lh /home/claude/temp_images/
Create Word document following docx skill with:
Save and deliver:
# Document saved during creation to:
/mnt/user-data/outputs/SAP_Sales_Order_Types_Configuration_Guide.docx
Issue: Images not downloading
Issue: Image format not supported
Issue: Images not embedding in Word
Issue: Python dependencies missing
pip install requests Pillow --break-system-packages
A successful SAP article includes:
ā
2000-4000 words of fact-checked content
ā
2-3+ embedded images with captions
ā
Professional Word document formatting
ā
SAP-specific styling (blue headers, monospace codes)
ā
Step-by-step instructions with transaction codes
ā
References section with 3-5+ sources
ā
Saved to /mnt/user-data/outputs/ with proper filename