mirror of
https://github.com/aljazceru/vibeline.git
synced 2025-12-18 23:14:29 +01:00
33
plugins/svg.yaml
Normal file
33
plugins/svg.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: svg
|
||||
description: Generate SVG files based on user descriptions
|
||||
model: llama2 # Optional, falls back to OLLAMA_MODEL from .env
|
||||
type: and # and, or
|
||||
run: matching # always, matching
|
||||
output_extension: .svg
|
||||
prompt: |
|
||||
You are an SVG generation specialist. Your job is to create SVG files based on user descriptions.
|
||||
|
||||
User request:
|
||||
{transcript}
|
||||
|
||||
Please generate a valid SVG file that matches the user's description. The SVG should:
|
||||
1. Be well-formed and valid XML
|
||||
2. Include proper SVG namespace and viewBox
|
||||
3. Be optimized for web use
|
||||
4. Use appropriate SVG elements and attributes
|
||||
5. Include comments explaining the structure
|
||||
|
||||
Rules:
|
||||
- Output only the SVG code, no markdown or additional text
|
||||
- Use proper XML formatting
|
||||
- Include viewBox attribute
|
||||
- Use semantic element names
|
||||
- Add comments for complex sections
|
||||
- Optimize for performance
|
||||
- The output will be saved as an SVG file, so ensure it's complete and valid
|
||||
|
||||
Format the output as:
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||
<!-- SVG content here -->
|
||||
</svg>
|
||||
Reference in New Issue
Block a user