Borrowing it
Nothing to install: this file belongs to gaoconggit/SharpPad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/commands/png-to-icons.mdgit clone --depth 1 https://github.com/gaoconggit/SharpPadWrote 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.
[](https://agentmods.dev/commands/gaoconggit/sharppad/png-to-icons)<a href="https://agentmods.dev/commands/gaoconggit/sharppad/png-to-icons"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/png-to-icons/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/png-to-icons"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/png-to-icons.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00016 | $0.01004 |
| Opus 5.5 | $0.00006 | $0.00402 |
| Sonnet 5.5 | $0.00003 | $0.00201 |
| Haiku 4.5 | $0.00002 | $0.00100 |
Grade C, and why
png-to-icons scanned grade C with 1 finding 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 1mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf favicon.iconset How it starts
The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Convert the PNG file at $ARGUMENTS to both ICO and ICNS formats suitable for Windows and macOS applications.
This command will:
- Create a Windows ICO file with multiple icon sizes (16x16, 32x32, 48x48, 64x64, 128x128, 256x256)
- Create a macOS ICNS file with all standard resolutions including Retina variants
- Clean up temporary files
The converted files will be created in the same directory as the source PNG file.
Usage: /png-to-icons path/to/your/file.png
Manual Steps (if command fails)
1. Create ICNS file (macOS format)
# Navigate to the directory containing your PNG file
cd "path/to/your/assets"
# Create iconset directory
mkdir -p favicon.iconset
# Generate all required icon sizes
sips -z 16 16 favicon.png --out favicon.iconset/icon_16x16.png
sips -z 32 32 favicon.png --out favicon.iconset/[email protected]
sips -z 32 32 favicon.png --out favicon.iconset/icon_32x32.png
sips -z 64 64 favicon.png --out favicon.iconset/[email protected]
sips -z 128 128 favicon.png --out favicon.iconset/icon_128x128.png
sips -z 256 256 favicon.png --out favicon.iconset/[email protected]
sips -z 256 256 favicon.png --out favicon.iconset/icon_256x256.png
sips -z 512 512 favicon.png --out favicon.iconset/[email protected]
sips -z 512 512 favicon.png --out favicon.iconset/icon_512x512.png
sips -z 1024 1024 favicon.png --out favicon.iconset/[email protected]
# Convert iconset to ICNS
iconutil -c icns favicon.iconset
# Clean up temporary directory
rm -rf favicon.iconset
2. Create ICO file (Windows format)
Method A: Using Python with PIL/Pillow (recommended)
#!/usr/bin/env python3
from PIL import Image
import os
def create_ico(png_path, ico_path):
img = Image.open(png_path)
sizes = [16, 32, 48, 64, 128, 256]
icons = []
for size in sizes:
resized = img.resize((size, size), Image.Resampling.LANCZOS)
icons.append(resized)
icons[0].save(ico_path, format='ICO', sizes=[(size, size) for size in sizes])
print(f"Successfully created {ico_path}")
# Usage
create_ico("favicon.png", "favicon.ico")
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.
- 1mo ago First seen · 120 lines · 16 tokens per session scan C 8abc3072d710
png-to-icons is a command published in the GitHub repository gaoconggit/SharpPad (82 stars, last pushed 8mo ago), licensed MIT. It adds 16 tokens to every session and 1,004 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
png-to-icons compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| png-to-iconsgaoconggit/SharpPad | Command | 82 | 8mo ago | MIT | C | 16 | Claude Code |
| plannerTenon-Net/TenonAdmin | Command | 47 | today | Apache-2.0 | A | 12 | Claude Code, Codex |
| product-managerTenon-Net/TenonAdmin | Command | 47 | today | Apache-2.0 | A | 16 | Claude Code, Codex |
| step6-shipsrnichols/plan-forge | Command | 6 | 25d ago | MIT | A | 26 | GitHub Copilot |
| new-bicep-modulesrnichols/plan-forge | Command | 6 | 25d ago | MIT | A | 21 | GitHub Copilot |
| recordShubhenduVaid/flipbook | Command | 0 | 2mo ago | MIT | A | 14 | Claude Code |
| watchcallmejustdodo/popcorn | Command | 9 | 6mo ago | MIT | A | 18 | Claude Code |