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.
npx agentmods add commands/ganbin/4d-development-skill/set-window-document-icongit clone --depth 1 https://github.com/Ganbin/4d-development-skillWrote 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/ganbin/4d-development-skill/set-window-document-icon)<a href="https://agentmods.dev/commands/ganbin/4d-development-skill/set-window-document-icon"><img src="https://agentmods.dev/badge/commands/ganbin/4d-development-skill/set-window-document-icon.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00941 |
| Opus 5 | $0.00000 | $0.00470 |
| Sonnet 5 | $0.00000 | $0.00188 |
| Haiku 4.5 | $0.00000 | $0.00094 |
Grade A, and why
set-window-document-icon 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 yesterday.
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.
How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
| Parameter | Type | Description | |
|---|---|---|---|
| winRef | Integer | → | Window reference number |
| image | Picture | → | Custom icon |
| file | 4D.File, 4D.Folder | → | File path or folder path |
| Release | Changes |
|---|---|
| 20 R7 | Added |
Description
The SET WINDOW DOCUMENT ICON command allows you to define an icon for windows in multi-window applications using either an image and/or file with the window reference winRef. The icon will be visible within the window itself and on the windows taskbar to help users identify and navigate different windows.
In the case of an MDI application on Windows, you can pass -1 in winRef to set the icon of the main window. In other contexts (macOS or SDI application on Windows), using -1 does nothing.
- If only file is passed, the window uses the icon corresponding to the file type and the file’s path is displayed in the window’s menu.
- If only image is passed, 4D does not show the path and the passed image is used for the window icon.
- If both file and image are passed, the file’s path is displayed in the window’s menu and the passed image is used for the window icon.
- If only winRef is passed or image is empty, the icon is removed on macOS and the default icon is displayed on Windows (application icon).
Example
In this example, we want to create four windows:
- Use the application icon on Windows and no icon on macOS (default state when no image or file is used).
- Use a "user" icon.
- Associate a document with the window (this uses its file type icon).
- Customize the icon associated with the document.
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.
- yesterday First seen · 82 lines · 0 tokens per session scan A 7bd93e104ac2
set-window-document-icon is a command published in the GitHub repository Ganbin/4d-development-skill (9 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 941 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-09-03.
Other commands, from other repositories
setup
One command. All agents. Skills + MCP servers. Zero configuration.
bundle
Install multiple skills at once from inline sources or a bundle file.
list
Command "list" from rolecraft-sh/rolecraft, covering rolecraft list, usage, description, --json and --agent, -a.
upgrade
Upgrade rolecraft itself to the latest version.
TRIGGERS
These are documentation triggers for hosts that map natural language or slash commands to skills. They do not install a runtime server.
drupal
Perform comprehensive Drupal 11 code audit and security analysis.