assets

assets is a command for Codex from alwkala/tidyfactor-design. It costs 0 tokens per session (410 once invoked), scanned A, original, MIT.

An asset-processing toolkit for generating visual media, removing image backgrounds, and compressing images into smaller web files.

In plain words
What is it for?
Use it to create AI image prompts, make transparent-background cutouts, and produce optimized WebP image versions.
Why use it?
It reduces the manual work involved in preparing images and helps keep image downloads smaller.

Command for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/alwkala/tidyfactor-design/assets
Clone the repo
git clone --depth 1 https://github.com/alwkala/tidyfactor-design

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for assets

README.md
[![agentmods](https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/assets.svg)](https://agentmods.dev/commands/alwkala/tidyfactor-design/assets)
Your own site
<a href="https://agentmods.dev/commands/alwkala/tidyfactor-design/assets"><img src="https://agentmods.dev/badge/commands/alwkala/tidyfactor-design/assets.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00410
Opus 5 $0.00000 $0.00205
Sonnet 5 $0.00000 $0.00082
Haiku 4.5 $0.00000 $0.00041

Measured 4d ago against content hash 4e9f69273502, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

assets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/tidyfactor-design/references/commands/assets.md · 36 lines

What it actually says

Command: assets — Asset Processing & Media Optimization Engine

Runtime entry point for generating AI media, removing image backgrounds, and optimizing image payloads.

5-Layer AI Photography Prompt Construction Matrix

When generating visual assets with generate_image or external AI image engines, construct prompts across 5 technical photography layers:

  1. Subject Layer: Primary subject, micro-textures, pose, surface materials (e.g. brushed aluminum, matte leather).
  2. Environment Layer: Setting, time of day, atmospheric conditions (fog, volumetric haze, studio backdrop).
  3. Lighting Layer: Source (softbox, natural light), direction (Rembrandt, split, backlit), color temperature.
  4. Technical Photography Layer: Perspective, focal length (85mm f/1.4), depth of field / bokeh (f/1.8 shallow focus).
  5. Post-Processing & Film Stock Layer: Color grading, subtle film grain, Kodak Portra 400 aesthetic.

Python Asset Tooling

  1. Background Removal: python scripts/remove_backgrounds.py <input_path> (rembg + Pillow transparent PNG cutouts).
  2. Batch Optimization: python scripts/optimize_images.py <assets_dir> (compress WebP variants).
  3. Asset Inspection: python scripts/inspect_images.py <assets_dir> (dimension & size budget check).

Output Convention

my-prototype/
└── assets/
    ├── hero-cutout.png      ← BG-removed cutout
    ├── banner.webp          ← WebP compressed asset
    └── photo-01.webp        ← 5-Layer AI prompt generated asset

Checklist

  • AI image prompts structured across all 5 technical photography layers
  • Product cutouts have clean transparent backgrounds (rembg)
  • Prototype assets optimized to WebP format (< 500KB payload per image)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 36 lines · 0 tokens per session scan A 4e9f69273502

Subscribe to this mod's changes

assets is a command published in the GitHub repository alwkala/tidyfactor-design (5 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 410 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.