dyz-gongwen-skills
公文写作 Skills|AI 公文写作助手:防编造、守保密、GB/T 9704 一键排版,覆盖 22 种文书,支持 Claude Code / Codex / Cursor
Translation pending
Design an app icon in a chat with Claude Code or Codex. Rimlight renders concepts, refines your pick and builds a layered Icon Composer .icon for iOS 26 and macOS 26. $5, once.
SkillsGitHub @mrxnnAvailability not checked yetOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
Repository information has not been collected yet.
No updates detected yet. GitHub releases will appear here.
Design app icons for Apple platforms from any coding agent
Loading the full README.
Read the full README ↗Install · How it works · Reference
You ask Claude Code or Codex for an app icon. The agent pitches ideas, writes
the prompts and judges every result. Rimlight draws each one with an AI image
model, fits it to Apple's icon shape, and turns your pick into an Icon
Composer .icon file with Dark, Clear and Tinted versions.
You never run Rimlight by hand. You talk to your agent.
Paste this into your agent:
Install rimlight from https://github.com/mrxnn/rimlight
Then start a new session, so the agent loads the skill.
Build and install. self-install also installs the skill for Claude
Code, and for Codex when ~/.codex exists. The clone can be deleted
after.
git clone https://github.com/mrxnn/rimlight.git
cd rimlight
swift build -c release
.build/release/rimlight self-install
If codex is missing, install it. The user signs in once, in their own
terminal.
npm i -g @openai/codex
codex login
Check the install, and fix anything it reports.
rimlight doctor
Tell the user to start a new agent session.
Open your agent in your app's project folder and talk to it. Here's a whole session, from first ideas to the finished icon.
Let's explore some app icon concepts. Use Rimlight.
The agent reads your project and pitches four to six ideas. You pick the ones you like. It then renders 16 to 24 concepts side by side, about a minute each, and tells you which ones it would pick.
Every concept is a plain PNG in a .rimlight/ folder inside your project.
rimlight init
rimlight set rename set-001 --title "Held objects"
rimlight generate --set set-001 --slug lantern-page --title "Lantern page" --prompt-file - <<'PROMPT'
A journal page glowing like a lantern, ...
PROMPT
More like lantern-page, with a cooler light.
Let's try something different. A flat mark, black on white.
More of the same goes into the same set. A new idea gets a new set, and the agent leaves the old ones alone.
rimlight set create --title "Flat marks"
rimlight generate --set set-002 --slug d-grain --title "D grain" --prompt-file - <<'PROMPT'
...
PROMPT
lantern-page is the one. Try a few warmer whites.
The agent locks that icon and changes one thing per round, 8 to 12 edits at a time. Each round starts from the last, so the icon gets closer instead of drifting.
rimlight generate --set set-001 --slug lantern-page-cream --title "Lantern page, cream" \
--ref .rimlight/sets/set-001/lantern-page/icon.png \
--parent set-001/lantern-page --prompt-file - <<'PROMPT'
Edit Image 1. Change the glow to a soft cream white. Keep everything else ...
PROMPT
Build lantern-page-cream.
The agent splits the icon into layers and has the image model redraw each
one. Rimlight packs them into a .icon file and renders all six
appearances. The agent checks them against your pick and fixes what came
out wrong. Most icons take four to seven images.
Drag the finished file into Xcode:
.rimlight/sets/set-001/lantern-page-cream/builds/main/out/Lantern page, cream.icon
rimlight build set-001/lantern-page-cream --stage preview
rimlight build set-001/lantern-page-cream --plan-file - --dry-run <<'JSON'
{ "ground": ..., "layers": [...], "checks": [...] }
JSON
rimlight build set-001/lantern-page-cream --plan-file - <<'JSON'
...
JSON
[!TIP] To pick a style, name it in your message: "Use the mascot style." The agent knows eight. They're listed in the reference.
[!NOTE] A ChatGPT plan has a daily image limit. When Codex hits it, Rimlight stops and says when it resets. Nothing is lost. You can also use your own OpenAI or OpenRouter key.
[!NOTE] If something acts oddly, run
rimlight doctor. It finds what's wrong and prints the fix.
| Command | What it does |
|---|---|
rimlight status | Lists the sets and icons in this project |
rimlight doctor | Checks the install and prints fixes |
rimlight help | Lists every command |
rimlight self-uninstall | Removes Rimlight |
.rimlight/There's also Rimlight for Mac, a paid app that shows your sets in a grid, with a chat beside them. You don't need it, but it's nice to have.
Apache-2.0. See LICENSE. "Rimlight" is the name of this project and of the app, so please give a fork another name.