tim-hub/powerball-harness / .claude/skills/generate-slide
generate-slide
VerifiedCreates a single project slide or one-page visual summary for a repo. Use when generating a project intro image or promotional slide.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.0 KB |
| references/slide-generator.md | markdown | 11.7 KB |
| references/slide-quality-check.md | markdown | 8.3 KB |
references/slide-quality-check.md
View on GitHub# Slide Quality Check - Slide Image Quality Assessment
Claude visually evaluates slide images generated by Nano Banana Pro to ensure quality.
---
## Overview
This is the quality assessment logic executed in Step 4 of `/generate-slide`.
It evaluates 2 images for each pattern (Minimalist, Infographic, Hero Visual) and selects the best one.
---
## Assessment Flow
```
Receive 2 images per pattern
|
+--[Step 1] Evaluate each image individually
| +-- Score using 5 slide-specific criteria
| +-- Rate each criterion on a 1-5 scale
| +-- Calculate overall score (weighted average)
|
+--[Step 2] Compare within pattern
| +-- Both score 3+ → adopt the higher one
| +-- Only one scores 3+ → adopt that one
| +-- Both score 2 or below → regenerate
|
+--[Step 3] Regeneration decision
+-- Both NG → improve prompt and regenerate (max 3 times)
+-- Retry limit reached → report to user
```
---
## Slide-Specific Assessment Criteria
### 5 Criteria and Weights
| Criterion | Weight | Description | Evaluation Points |
|-----------|--------|-------------|-------------------|
| **Information Delivery** | High (x3) | Can the project's features be conveyed in a single slide? | Project purpose instantly understandable, value proposition clear |
| **Layout Balance** | High (x3) | Visual completeness, use of whitespace | Elements well-organized, natural visual flow |
| **Text Readability** | Medium (x2) | Is AI-generated text readable? | No garbled text, appropriate font size, sufficient contrast |
| **Professionalism** | Medium (x2) | Quality suitable for business use? | Not cheap-looking, refined color usage, consistent design |
| **Brand Consistency** | Low (x1) | Match with specified colors/tone | Aligned with specified tone, colors not significantly off |
### Overall Score Calculation
```
Overall Score = (Information Delivery x 3 + Layout x 3 + Text Readability x 2 + Professionalism x 2 + Brand Consistency x 1) / 11
```
### Score Definitions
| Score | Verdict | Description |
|-------|---------|-------------|
| 5 | Excellent | Perfect, adopt immediately |
| 4 | Good | Good quality, acceptable |
| 3 | Acceptable | Within tolerance, adopt if no better option |
| 2 | Poor | Has issues, regeneration recommended |
| 1 | Unacceptable | Unusable, must regenerate |
### Adoption Threshold
```
Adoption threshold = 3 (Acceptable or above)
```
---
## Pattern-Specific Additional Checks
### Minimalist
| Check Item | Pass Criteria |
|------------|---------------|
| Whitespace usage | Sufficient whitespace, not cramped |
| Typography | Fonts readable, clear hierarchy |
| Simplicity | Elements kept to a minimum |
### Infographic
| Check Item | Pass Criteria |
|------------|---------------|
| Information structure | Visually segmented into sections |
| Icon/diagram usage | Visual elements present, not just text |
| Data visualization | Numbers and features illustrated |
### Hero Visual
| Check Item | Pass Criteria |
|------------|---------------|
| Visual impact | Eye-catching bold visuals |
| Catchcopy | Message clear and readable |
| Emotional appeal | Conveys project value on a sensory level |
---
## Claude Assessment Prompts
### Image Evaluation Prompt
````text
Please evaluate the following slide image.
## Evaluation Target
- Pattern: {pattern_name} (Minimalist / Infographic / Hero Visual)
- Project: {project_name}
- Description: {project_description}
- Expected tone: {tone}
## Evaluation Criteria (1-5 points each)
1. Information Delivery (weight: high) — Can the project's features be conveyed in a single slide?
2. Layout Balance (weight: high) — Visual completeness, use of whitespace
3. Text Readability (weight: medium) — Is the text readable, no garbled characters?
4. Professionalism (weight: medium) — Quality suitable for business use?
5. Brand Consistency (weight: low) — Match with specified colors/tone
## Output Format
```json
{
"scores": {
"information_delivery": 1-5,
"layout_balance": 1-5,
"text_readability": 1-5,
"professionalism": 1-5,
"brand_consistency": 1-5
},
"total_score": 1-5,
"verdict": "OK" | "NG",
"strengths": ["Strength 1", "Strength 2"],
"issues": ["Issue 1", "Issue 2"],
"improvement_suggestions": ["Suggestion 1", "Suggestion 2"]
}
```
````
### Two-Image Comparison Prompt
````text
Please compare the following 2 slide images and select the more appropriate one.
## Evaluation Target
- Pattern: {pattern_name}
- Project: {project_name}
## Image 1 Evaluation
{image_1_evaluation}
## Image 2 Evaluation
{image_2_evaluation}
## Selection Criteria Priority
1. Information Delivery (highest priority)
2. Professionalism
3. Layout Balance
## Output Format
```json
{
"selected": "1" | "2",
"reason": "Selection reason",
"comparison_notes": "Comparison details"
}
```
````
---
## Pattern Selection Logic
### Basic Rules
```
1. Both score 3 or above:
→ Adopt the higher score
→ Same score → determine by priority criteria:
1. Higher information delivery
2. Higher professionalism
3. Default to candidate 1
2. Only one scores 3 or above:
→ Adopt the one scoring 3+
3. Both score 2 or below:
→ Regenerate (improve prompt)
→ If retry limit (3 times) reached:
→ Provisionally adopt the higher score and report to user
→ User chooses to continue or skip
```
### Retry Control
```
max_retries = 3 (per pattern)
```
| Retry | Improvement Strategy |
|-------|---------------------|
| 1st | Generate with initial prompt |
| 2nd | Reflect quality feedback. Add specific modifiers |
| 3rd | Significantly change style. Make composition instructions more specific |
---
## Assessment Result Structure
### Individual Evaluation Result
```json
{
"image_id": "minimalist_1",
"pattern": "minimalist",
"scores": {
"information_delivery": 4,
"layout_balance": 5,
"text_readability": 3,
"professionalism": 4,
"brand_consistency": 4
},
"total_score": 4.1,
"verdict": "OK",
"strengths": [
"Excellent use of whitespace",
"Project name readable at a glance"
],
"issues": [
"Feature list text slightly too small"
],
"improvement_suggestions": [
"Increase text size, or reduce number of features"
]
}
```
### Pattern Selection Result
```json
{
"pattern": "minimalist",
"candidates": [
{"id": "minimalist_1", "total_score": 4.1, "verdict": "OK"},
{"id": "minimalist_2", "total_score": 3.5, "verdict": "OK"}
],
"selected": "minimalist_1",
"reason": "Superior layout balance and information delivery",
"output_path": "out/slides/selected/minimalist.png"
}
```
---
## Quality Report Generation
Generate `out/slides/quality-report.md` in Step 5:
```markdown
# Slide Quality Report
## Generation Info
- Project: {project_name}
- Generated: {datetime}
- Aspect ratio: {aspect_ratio}
- Tone: {tone}
## Results Summary
| Pattern | Candidate 1 | Candidate 2 | Selected | Score | Retries |
|---------|-------------|-------------|----------|-------|---------|
| Minimalist | {score}/5 | {score}/5 | Candidate {n} | {score}/5 | 0 times |
| Infographic | {score}/5 | {score}/5 | Candidate {n} | {score}/5 | 0 times |
| Hero Visual | {score}/5 | {score}/5 | Candidate {n} | {score}/5 | 0 times |
## Detailed Evaluation
### Minimalist
#### Candidate 1 (minimalist_1.png)
- Information Delivery: {score}/5
- Layout Balance: {score}/5
- Text Readability: {score}/5
- Professionalism: {score}/5
- Brand Consistency: {score}/5
- **Overall: {score}/5 — {verdict}**
- Strengths: {strengths}
- Issues: {issues}
#### Candidate 2 (minimalist_2.png)
...
### Infographic
...
### Hero Visual
...
## Output Files
| File | Description |
|------|-------------|
| `out/slides/selected/minimalist.png` | Minimalist pattern best |
| `out/slides/selected/infographic.png` | Infographic pattern best |
| `out/slides/selected/hero.png` | Hero Visual pattern best |
```
---
## Threshold Adjustment
### User Request Handling
```
"Be stricter" → Raise adoption threshold to 4
"Good enough for now" → Lower adoption threshold to 2
"This image is fine" → Skip quality assessment and adopt
```
---
## Related Documents
- [slide-generator.md](./slide-generator.md) — Image generation logic
- [generate-video/references/image-quality-check.md](../../generate-video/references/image-quality-check.md) — Video image quality check (structural reference)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |