Agent skill

Pecofence CLI

by DayuanJiang in DayuanJiang/PecoFence

Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules…

Apache-2.0Auto-check passed

Install Pecofence CLI

skills CLI
$ npx skills add DayuanJiang/PecoFence --skill pecofence-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DayuanJiang/PecoFence pecofence-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DayuanJiang/PecoFence.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pecofence-cli .claude/skills/pecofence-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pecofence-cli
GitHub stars
173
Token cost
~2.3k tokens
SKILL.md length
776 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules…

  • Works in 5 steps: Snapshot first. Before bulk changes run… → Portals are real folders. A fence with… → Address by id. After fence list, use ids… → …
  • The user asks to organise their desktop icons
  • SKILL.md covers Five rules, Start, Reading replies and Cheat-sheet, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pecofence CLI is an agent skill from DayuanJiang/PecoFence. Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules, layout snapshots. Use when the user asks to organise their desktop icons or change PecoFence settings.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Rust and Windows. The repository describes itself as: A free, open-source Stardock Fences alternative for Windows 11. Glass fences, live folders, tabs, Peek. Rust, ten languages, portable. The licence is Apache-2.0.

When your agent uses it

  • The user asks to organise their desktop icons
  • Change PecoFence settings

Example prompts

  • “/pecofence-cli”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Snapshot first. Before bulk changes run snapshot save before-, keep .snapshot.id and
  2. Portals are real folders. A fence with "kind": "portal" shows a folder on disk; item move
  3. Address by id. After fence list, use ids (or a unique prefix of 6+ hex digits), not titles.
  4. Ask for less. --fields id,title,rect,fit keeps only those keys (dotted paths, lists
  5. Exit codes. 0 ok. 1 the app refused, or part of a batch failed: stderr has

What it can do on your machine

Read from SKILL.md and the folder at commit ff5f3a4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pecofence CLI loads about 2.3k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 776 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DayuanJiang/PecoFence at commit ff5f3a4, republished under its Apache-2.0 licence (© DayuanJiang). 776 words, ~2,284 tokens.

Download SKILL.mdSave it as .claude/skills/pecofence-cli/SKILL.md (or your agent's skills folder).
name
pecofence-cli
description
Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules, layout snapshots. Use when the user asks to organise their desktop icons or change PecoFence settings.

pecofence-cli

pecofence-cli drives the PecoFence app already running on the user's Windows desktop. Every command prints JSON (except log). pecofence-cli <command> --help shows the flags with an example; pecofence-cli describe is the full catalog and describe --schema FenceDto|Settings|Cond the exact shapes. This file is enough to start; open describe only for something not covered here. Not for: installing PecoFence, editing its config.json (the app owns it), or files outside the desktop and portal folders.

Five rules

  1. Snapshot first. Before bulk changes run snapshot save before-<task>, keep .snapshot.id and tell the user pecofence-cli snapshot restore <id> undoes the layout. Snapshots hold layouts only (fences, geometry, membership), never settings, rules or files.
  2. Portals are real folders. A fence with "kind": "portal" shows a folder on disk; item move into or out of it moves the real files (undo only via Explorer). Run such a move with --dry-run first and show the user the fileMove entries and their destination. Pair --glob with --from.
  3. Address by id. After fence list, use ids (or a unique prefix of 6+ hex digits), not titles. The desktop fence is always inbox, whatever its localised title (Desktop, 桌面, ...).
  4. Ask for less. --fields id,title,rect,fit keeps only those keys (dotted paths, lists element-wise); a full fence is ~700 bytes. If your reader decodes stdout with a legacy code page (Python without encoding="utf-8" on a CJK system, Windows PowerShell 5), add --ascii.
  5. Exit codes. 0 ok. 1 the app refused, or part of a batch failed: stderr has {"error": {"code", "message", "hint", "details"}}, follow hint. 2 usage. 3 not running: ask the user to start PecoFence; never fall back to editing files. 4 timeout: a PecoFence menu or dialog is open, ask the user to close it, then check fence list before retrying (it may have run).

Start

pecofence-cli status                                        # exit 3 = not running
pecofence-cli fence list --fields id,title,kind,tabHost,rect,fit,portal
pecofence-cli item list --fence inbox --fields id,fileName,kind,ext,modified,shortcutTarget,shortcutArguments
pecofence-cli monitor list                                  # workArea of each monitor, for placement

Not on PATH (portable ZIP)? Call the exe by its full path, e.g. %LOCALAPPDATA%\Programs\PecoFence\pecofence-cli.exe.

Items carry kind (folders, programs, installers, shortcuts, documents, images, music, video, archives, namespace, other), ext, size, modified / created (Unix seconds), openCount, lastOpened, shortcutTarget, shortcutArguments, path and assignedBy. Sort by these; open a file only when name and kind say nothing. Two shortcuts are duplicates only when target and arguments match.

Reading replies

  • Mutations return {"changed": bool, ...} plus the affected object; changed: false means it was already so. A warning next to a success means something secondary failed or was skipped: report it.
  • snapshotId appears when the app took a snapshot on its own first: fence delete of a fence with items, rule apply that moves items, item move of 20+ desktop items, snapshot restore.
  • Coordinates are physical px in virtual-screen space (monitors left of the primary have negative x). A tab (tabHost set) reports its host window's rect; skip tabs when checking overlaps.
  • fit: {columns, rows, fittingHeight, overflow}: overflow: true means the fence scrolls. When the app changes a rect on its own (auto height, whole-row snapping, size limits) the reply carries adjusted: {requested, applied, reason}: continue from applied.
Show full SKILL.md (281 more words)Show less

Cheat-sheet

pecofence-cli fence create --title Work --rect 40,40,520,360
pecofence-cli fence create --title Tools --right-of Work      # aligned + snapping gap; --below/--above/--left-of, --size w,h
pecofence-cli fence create --portal "C:\Users\me\Pictures"     # a folder as a fence: real files
pecofence-cli fence move Work --x 1200 --y 80                  # or --rect x,y,w,h
pecofence-cli fence fit Tools                                  # height that shows every item
pecofence-cli fence set Work layout list                       # iconSize 48 | spacing compact | opacity clear | locked true | autoHeight true
pecofence-cli fence set --all locked true                      # one call per fence, summary in .results
pecofence-cli fence merge Games --into Work                    # Games becomes a tab; `fence detach Games` undoes
pecofence-cli fence rename Work Projects
pecofence-cli fence delete Temp                                # its items go back to the desktop fence
pecofence-cli item move <id|path|name>... --to Work
pecofence-cli item move --glob "*.pdf" --from inbox --to Docs --dry-run
pecofence-cli item rename "C:\Users\me\Desktop\IMG_2031.pdf" "2026-09 electricity bill"   # keeps .pdf
pecofence-cli rule add --name PDFs --ext pdf --to Docs         # or --type, --name-contains, --glob, --json '[Cond...]'
pecofence-cli rule apply --dry-run && pecofence-cli rule apply
pecofence-cli settings set theme dark                          # dotted camelCase path; `settings get` shows them
pecofence-cli snapshot list
pecofence-cli config export "C:\Users\me\Desktop\pecofence-backup.json"   # settings + rules + layouts

Details that bite

  • Quoting: values are parsed as JSON, else taken as text, so 48, true, list need no quotes. Quote what the shell would eat: "#ff8800" (in Git Bash # starts a comment), [, *, spaces, and monitor ids such as "\\.\DISPLAY2". Negative numbers work bare (--x -1800).
  • Portal moves reply fileMove: true before the files arrive; moved files get new ids, so list the fence again before addressing them. A name that already exists at the destination is skipped (skipped + warning), never overwritten. A portal navigated into a subfolder reports portal.current, and moves to it land there. --glob without --from never takes portal items.
  • item rename renames on disk; keep the extension unless the user asked otherwise.
  • Tabs share their host's window: fence move / resize on a tab is unsupported, --all skips tabs, fence fit works only on the tab currently shown. Address the host, or fence detach first.
  • Rules: the first match wins, and new desktop items are filed by them as they arrive. A rule cannot target a portal and needs at least one condition.
  • config import / backup restore replace settings, rules and layouts: config export first.
  • The CLI cannot delete files: list duplicates and junk for the user to remove.

Recipes

Tidy a messy desktop

pecofence-cli snapshot save before-cleanup                     # keep .snapshot.id
pecofence-cli item list --fields id,fileName,kind,ext,fenceTitle,shortcutTarget,shortcutArguments,modified
# Group by what the metadata says: projects and bills by name, screenshots by ext + created,
# installers by kind, games by shortcutTarget (steam://, launcher paths). Leave anything unclear in
# the desktop fence. Look inside portals too: a "Pictures" folder full of game shortcuts is worth saying.
pecofence-cli fence create --title Projects --rect 40,40,520,360
pecofence-cli fence create --title Finance --right-of Projects
pecofence-cli item move <ids...> --to Projects
pecofence-cli rule add --name Bills --name-contains invoice --to Finance   # keeps it that way
pecofence-cli rule apply --dry-run && pecofence-cli rule apply
pecofence-cli fence list --fields title,rect,fit                # any fit.overflow true? `fence fit <id>`

Report what you grouped and why.

Keep new desktop files sorted: add rules; new desktop items are filed as they land. Files in other folders (Downloads) are only visible through a portal, and rules do not act on portals. For decisions a rule cannot express, a script can block on pecofence-cli watch --fence inbox --events item.added --once (exits with the event), then run one batch and wait again.

Restyle every fence

pecofence-cli snapshot save before-style
pecofence-cli fence set --all opacity clear
pecofence-cli fence list --fields title,opacity

AGENTS.md snippet

PecoFence (desktop fences) is controlled with `pecofence-cli`: JSON output, exit 3 = app not running,
exit 4 = timeout (run `pecofence-cli fence list` before retrying; the command may have run).
Run `pecofence-cli describe` for the command catalog and `pecofence-cli skill` for usage rules.
Take `pecofence-cli snapshot save <name>` before bulk changes and restore by the returned id;
never edit its config.json directly. Moving items into or out of a folder portal moves real files.

© DayuanJiang, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/pecofence-cli of DayuanJiang/PecoFence.

Open the folder on GitHubat commit ff5f3a4

Compare with similar skills

Pecofence CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pecofence CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pecofence CLI this skillDayuanJiang/PecoFence173—~2.3kAutomated safety check: PassApache-2.0
Update V8 Versionopeninterpreter/openinterpreter69k2 repos~845Automated safety check: PassApache-2.0
Firecrawl Page Scrape Integrationfirecrawl/firecrawl189k1 repos~944Automated safety check: PassISC
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
Rust TDD Workflowrtk-ai/rtk83k—~753Automated safety check: NotesApache-2.0
Translation Diff ExportDevolutions/UniGetUI26k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Update V8 Version

    openinterpreter/openinterpreter

    Bumps the pinned v8 and rusty_v8 versions in Codex, validates the release-candidate path with the v8-canary check, and traces failures to upstream build changes.

    69k GitHub starsUsed in 2 repos~845 tokens
    DevOps & CloudAuto-check passed
  • Adds Firecrawl's /scrape endpoint to application code to pull markdown, HTML, links, screenshots or structured data from a single known URL.

    189k GitHub starsUsed in 1 repo~944 tokens
    Data & AnalyticsAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    41k GitHub stars~2.6k tokensUpdated today
    DevelopmentAuto-check passed
  • Enforces red-green-refactor for Rust work, with idiomatic test patterns, a naming convention and a pre-commit gate of cargo fmt, clippy and test.

    83k GitHub stars~753 tokensUpdated today
    Testing & QAAuto-check: notes
  • Translation Diff Export

    Devolutions/UniGetUI

    Compares UniGetUI JSON locale files against English, identifies untranslated or source-changed keys, and generates patch, reference, and handoff files for a target language.

    26k GitHub stars~1.1k tokensUpdated today
    Writing & ContentAuto-check passed
  • Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook.

    5.6k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

Works with

Questions about Pecofence CLI

What does Pecofence CLI do?

Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules…. Pecofence CLI is an agent skill from DayuanJiang/PecoFence. Configure PecoFence (Windows desktop fences) from the terminal: list/create/move fences, move and rename desktop icons using file metadata, per-fence options, global settings, auto-sorting rules, layout snapshots.

When should I use Pecofence CLI?

Pecofence CLI fits situations like: the user asks to organise their desktop icons; change PecoFence settings.

How do I install Pecofence CLI in Claude Code?

Run `npx skills add DayuanJiang/PecoFence --skill pecofence-cli -a claude-code`. Or copy the skill folder (skills/pecofence-cli in DayuanJiang/PecoFence) into .claude/skills/pecofence-cli in your project. Claude Code loads it when a task matches its description.

How do I install Pecofence CLI in Codex?

Run `npx skills add DayuanJiang/PecoFence --skill pecofence-cli -a codex`. Or copy the skill folder (skills/pecofence-cli in DayuanJiang/PecoFence) into .agents/skills/pecofence-cli in your project. Codex loads it when a task matches its description.

Can I use Pecofence CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DayuanJiang/PecoFence --skill pecofence-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pecofence-cli, .gemini/skills/pecofence-cli, .github/skills/pecofence-cli and .opencode/skills/pecofence-cli in your project.

What does Pecofence CLI need to run?

SKILL.md names no scripts, command-line tools or credentials: Pecofence CLI is instructions for the agent only. Our summary lists: Python 3.

Does Pecofence CLI access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pecofence CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pecofence CLI use?

Pecofence CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pecofence CLI use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pecofence CLI?

Skills that share tags, products or a category with Pecofence CLI: Update V8 Version (openinterpreter/openinterpreter, 69k stars), Firecrawl Page Scrape Integration (firecrawl/firecrawl, 189k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k stars) and Rust TDD Workflow (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pecofence CLI?

DayuanJiang (a GitHub user) maintains it in DayuanJiang/PecoFence, which has 173 GitHub stars. The repository was last updated on October 7, 2026.

Source: DayuanJiang/PecoFence on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.