Index of every page on this site: llms.txt
All skills
enjoyoer avatar

/project-icon

@5dbdf49
Run it yourself

Give a Paseo project its first custom icon in a consistent die-cut sticker style. Use whenever a PM owns a project with no custom icon.

  • 5 files
  • 12.3 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/enjoyoer/loadout/project-icon

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈37 tokens for metadata: the name and description. ≈1.1k when used: this file. ≈76 more on demand in 1 file.

Description uses 1.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈150 characters, or 1.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Project icon

Whenever you own a project, run --check (cheap, read-only); continue only if it reports no custom icon. This covers projects owned before this skill existed. Do not redesign existing icons. Skip roots at or below ~/.cache/fleet-scratch (Windows: %USERPROFILE%\.cache\fleet-scratch). Keep drafts, renders, and previews in scratch, not the project or public skill package.

Spec sheet

Property Requirement
Canvas 512x512 SVG, transparent background, rendered to 512x512 PNG
Art One flat enamel-style motif, bold saturated palette, simple chunky shapes
Edge White die-cut border plus faint hairline, using the unchanged shared cut filter in assets/template.svg
Motif A concrete object that visually puns on what the project does; no text, letters, wordmarks, or generic initials
Distinction Inspect the user's existing project icons locally; choose a different silhouette and dominant color. Never publish their inventory or contact sheet
Detail A few large internal features, no fussy lines, gradients, photorealism, or background tile; leave about 32 px clearance for the cut edge
Acceptance Recognizable at 40 and 20 px at actual size on both white and dark backgrounds; border unbroken and unclipped

Detect before drawing

Resolve the exact project ID and root with paseo project ls --json. Locate the installed Paseo CLI's dist directory beside its bin directory (resolve the paseo executable, then inspect its package). The helper imports that installation's utils/client.js and utils/daemon-target.js, using its existing transport and authentication. Requires Node and a compatible Paseo client exposing listProjects, setProjectIcon, and getProjectIcon.

node <skill>/scripts/apply-icon.mjs <cli-dist> <project-id> --check

Detection reads the raw client.listProjects().projects record: projectCustomIconRevision is null for no custom icon, a nonempty string for a custom icon. In the daemon's projects store the corresponding field is customIconRevision. The formatted CLI list omits it. Do not mistake projectIconRevision (which can describe an automatic icon) for a custom icon. Missing or unknown fields fail closed. --check reports hasCustomIcon, scratch, and status without changing anything. Stop if custom or scratch; do not generate art for skipped projects.

The default is the local daemon selected by the installed CLI, not an inherited PASEO_HOST. For explicit remote use, supply both --host <endpoint> and --scratch-root <absolute-daemon-scratch-root> on every invocation. Remote roots must be canonical daemon paths, with symlinks resolved beforehand; local detection resolves symlinks itself. Never use the caller's home to infer a remote scratch root.

Draw, render, inspect

Copy assets/template.svg to scratch and insert only the new motif inside the filtered group. Keep the generic filter head/tail unchanged. The template intentionally contains no project artwork.

python3 <skill>/scripts/render.py <draft.svg> <icon.png>

Rendering uses librsvg's rsvg-convert, not CairoSVG or a browser fallback. Install librsvg if missing. The helper also writes <icon>.preview.html with actual-size 512, 40, and 20 px renders on light and dark. Open it locally at 100% zoom. Inspect every size/background before upload; simplify the motif if it loses identity. Do not upload until the visual check passes.

Apply and verify

node <skill>/scripts/apply-icon.mjs <cli-dist> <project-id> <icon.png>

The helper rechecks the project immediately before writing, refuses scratch roots, refuses an existing custom icon without --force, uploads through setProjectIcon, then polls getProjectIcon().icon.data briefly (up to 10 reads, 300 ms apart) until it matches byte-for-byte and the custom revision is set. It reports verified: true only on success. Serialize icon writers for a project: the daemon has no compare-and-set icon RPC, so the recheck cannot exclude a simultaneous writer. If upload returns an uncertain error, inspect state before retrying; do not blindly force.

--force is only for an explicitly requested replacement, never routine PM intake. --allow-scratch independently overrides the scratch skip only for an explicitly requested throwaway verification. Neither implies the other. A second normal apply must refuse after a successful upload. Finish with --check and report the verified result or concrete blocker; never clear an existing icon to make intake run again.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 5dbdf49. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 5 hours ago.

Activeupdated last month
metadata
{
  "version": "1.0"
}

README badge

README badge for enjoyoer/loadout/project-icon