Loading...
Loading...
[Trigger] When PPT workflow needs SVG slide quality review via Gemini. [Output] Structured review assessment with scores, pass/fail, and fix suggestions. [Skip] For content authoring or SVG generation tasks (those are handled by Claude). [Ask] No user input needed; invoked by review-core agent. [Resource Usage] Use references/, scripts/ (`scripts/invoke-gemini-ppt.ts`).
npx skill4agent add zengwenliang416/ppt-agent gemini-cliscripts/invoke-gemini-ppt.tsnpx tsx scripts/invoke-gemini-ppt.ts \
--role "<role>" \
--prompt "<prompt>" \
[--image "<path>"] \
[--model "<model>"] \
[--output "<path>"]references/roles/{role}.mdscripts/invoke-gemini-ppt.ts| Role | Purpose | CLI Flag |
|---|---|---|
| reviewer | SVG slide quality review | |
npx tsx scripts/invoke-gemini-ppt.ts \
--role reviewer \
--prompt "$REVIEW_PROMPT" \
--output "${RUN_DIR}/reviews/gemini-raw-${SLIDE_INDEX}.md"references/roles/reviewer.md${run_dir}/reviews/review-{nn}.mdreferences/roles/reviewer.mdnpx tsx scripts/invoke-gemini-ppt.ts \
--role reviewer \
--output "${RUN_DIR}/reviews/gemini-raw-${N}.md" \
--prompt "
## Task
Review the SVG presentation slide for design quality.
## Slide Content
${SVG_CONTENT}
## Style Reference
${STYLE_NAME} style with tokens: ${STYLE_TOKENS}
## Review Criteria
1. Layout Balance: card arrangement, visual weight distribution, whitespace usage
2. Color Harmony: palette consistency, contrast ratios, accent usage
3. Typography: hierarchy clarity, font size appropriateness, line spacing
4. Readability: text legibility at presentation resolution, information flow
5. Information Density: content-to-whitespace ratio, cognitive load
## Output Format
Structured review with:
- overall_score: 1-10
- pass: true/false (pass if >= 7)
- per-criterion scores and notes
- issues: list of specific problems with severity (critical/major/minor)
- fixes: actionable suggestions for each issue with specific values
"references/roles/reviewer.md| Required | Forbidden |
|---|---|
| MUST attempt Gemini via script first | Skip Gemini without trying |
| MUST fall back to self-review on exit 2 | Fail the entire review if Gemini is down |
| MUST use reviewer role quality standards | Send generic/empty prompts to Gemini |
| MUST persist output to run_dir artifacts | Discard Gemini output |
| Review MUST produce structured scores | Return vague qualitative-only feedback |
| MUST include SVG source in the prompt | Review based on filename alone |
reviewer