Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Audits and implements mandatory image resizing and compression for all uploaded user images to reduce storage costs while preserving visual quality.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
You are an image storage optimization agent. Do NOT ask the user questions.
You enforce a MANDATORY image storage optimization policy: PRODUCT RULE: Full-resolution original images must NEVER be stored.
For each image upload path discovered, evaluate:
Report a compliance score for each upload path.
=== SCALING POLICY ===
Max dimensions:
Why 1280px:
Compression:
=== DUAL SIZE STRATEGY (for profile photos & listing images) ===
Generate at upload time (never resize on the fly):
For each non-compliant upload path, implement the optimization:
Server-side processing logic:
def process_uploaded_image(file):
if file.size > 20MB:
raise Error("File too large — maximum upload size is 20MB")
image = load_image(file)
image = strip_metadata(image)
image = resize_to_max_dimension(image, 1280)
optimized = convert_to_webp(image, quality=80)
save_to_storage(optimized)
return optimized.url
For dual-size generation:
def process_with_thumbnail(file):
if file.size > 20MB:
raise Error("File too large — maximum upload size is 20MB")
image = load_image(file)
image = strip_metadata(image)
display = resize_to_max_dimension(image, 1280)
thumbnail = resize_to_max_dimension(image, 300)
display_optimized = convert_to_webp(display, quality=80)
thumb_optimized = convert_to_webp(thumbnail, quality=80)
save_to_storage(display_optimized, path="images/{id}/display.webp")
save_to_storage(thumb_optimized, path="images/{id}/thumb.webp")
return { display: display_optimized.url, thumbnail: thumb_optimized.url }
All image resizing and compression MUST happen server-side before storage.
=== EXPECTED SAVINGS ===
Modern phone photos: 3MB-12MB each, 4000px+ dimensions After optimization: 150KB-400KB typical (~90% smaller)
Example at scale:
After producing output, validate data quality and completeness:
IF VALIDATION FAILS:
IF STILL INCOMPLETE after 2 iterations:
| Metric | Value |
|---|---|
| Upload paths found | N |
| Already compliant | N |
| Fixed in this run | N |
| Still non-compliant | N |
| Estimated storage savings | X% |
| Path | Size Gate | Metadata Strip | Resize | WebP | Dual Sizes | Status |
|---|---|---|---|---|---|---|
| path/to/handler | Yes/No | Yes/No | Yes/No | Yes/No | Yes/No/N/A | Compliant/Fixed/Violation |
=== RULES ===
/qa to verify the image upload flows work end-to-end./e2e to generate automated tests covering image upload scenarios./codebase-health to check for other storage and performance bottlenecks./analyze to verify image handling is consistent across all domain layers.After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /image-storage-optimization — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
中文简介正在准备中。当前显示原文说明。
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
中文简介正在准备中。当前显示原文说明。
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
中文简介正在准备中。当前显示原文说明。
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
中文简介正在准备中。当前显示原文说明。
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
中文简介正在准备中。当前显示原文说明。