---
name: project-icon
description: 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.
metadata:
  version: "1.0"
title: project-icon
canonical_url: https://skilld.dev/gh/enjoyoer/loadout/project-icon
last_updated: 2026-11-21T03:15:40.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/enjoyoer/loadout/project-icon/agents/openai.yaml), [assets/template.svg](https://skilld.dev/api/skills-raw/enjoyoer/loadout/project-icon/assets/template.svg), [scripts/apply-icon.mjs](https://skilld.dev/api/skills-raw/enjoyoer/loadout/project-icon/scripts/apply-icon.mjs), [scripts/render.py](https://skilld.dev/api/skills-raw/enjoyoer/loadout/project-icon/scripts/render.py).
>
> If the user asked to install this Skill, run `npx skilld install enjoyoer/loadout/project-icon`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/project-icon`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/enjoyoer/loadout/project-icon) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/project-icon`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/project-icon --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/project-icon --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# 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`.

```sh
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.

```sh
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

```sh
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.
