Skip to content
Back to skills

Ezy Media

ASecurity

Manage files in the EzyPlatform media library (images, logos, CSS, JS under api/v1/media) — check what exists on the server, upload or replace files, toggle public/private, and produce cache-busted URLs. Use when a site change adds or replaces an image or static file, when media URLs return 404, or when moving embedded data-URL images to the media library.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 20, 2026
ai-agentspythongobashapi

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add cppai-vn/agents-plugins --skill ezy-media --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ezy Media?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ezy Media
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cppai-vn-ezy-media/badge)](https://www.skillsdirectory.com/skills/cppai-vn-ezy-media)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ezy-media
description: Manage files in the EzyPlatform media library (images, logos, CSS, JS under api/v1/media) — check what exists on the server, upload or replace files, toggle public/private, and produce cache-busted URLs. Use when a site change adds or replaces an image or static file, when media URLs return 404, or when moving embedded data-URL images to the media library.
---

# ezy-media

> Paths: `${CLAUDE_SKILL_DIR}` is this skill's folder (Claude Code substitutes it; other agents: replace it with the folder containing this SKILL.md). Sibling skills and the shared library `ezy-shared` sit next to it. Run commands from the site project root (the folder with `environment.json`).

Read `ezy-guide` first. Uploads and visibility changes write to the server: dry run, then human approval.

## Commands

```bash
S=${CLAUDE_SKILL_DIR}/scripts/ezy_media.py
python3 $S status                         # every local api/v1/media file vs server
python3 $S status cppai-logo.webp
python3 $S upload api/v1/media/hero.webp                 # dry run: add or replace
python3 $S upload api/v1/media/hero.webp --yes           # after approval
python3 $S public hero.webp --yes | python3 $S unpublic hero.webp --yes
python3 $S url hero.webp                  # https://<site>/api/v1/media/hero.webp?v=<mtime>
```

## Rules

- Names: `^[a-zA-Z0-9_-]+(.[a-zA-Z0-9_-]+)*$` — no spaces or accents; prefer `<site>-<purpose>.<ext>` (e.g. `cppai-partner-egany.webp`).
- Empty files or `{"token":"invalid"}` placeholders are refused by the platform; the script stops on them.
- Reference images as `/api/v1/media/<name>?v=<timestamp>`; CSS/JS with `<link ezy:mhref="/api/v1/media/x.css">` / `<script ezy:msrc="/api/v1/media/x.js">` so the platform appends the version.
- Upload media **before** publishing markup that references it, then confirm with `status` (gotcha 8).
- Optimise first: WebP, sized to display (≈2× CSS size), keep logos small.
- Saving a file under `api/v1/media` in VS Code with the extension active also uploads it — tell the human when that matters.

## Finish

Report uploaded/replaced files and their URLs, then run the improvement check (`references/skill-improvement.md` of `ezy-guide`).

Files in this skill

  • SKILL.md2.2 KB
  • scripts/ezy_media.py5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.