Agent skill

Regenerate Pgo

by DeedleFake in DeedleFake/trayscale

Regenerate cmd/trayscale/default.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile.

MITAuto-check passed

Install Regenerate Pgo

skills CLI
$ npx skills add DeedleFake/trayscale --skill regenerate-pgo -a claude-code

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

GitHub CLI
$ gh skill install DeedleFake/trayscale regenerate-pgo --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/DeedleFake/trayscale.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.grok/skills/regenerate-pgo .claude/skills/regenerate-pgo && 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
regenerate-pgo
GitHub stars
1.1k
Token cost
~984 tokens
SKILL.md length
482 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Regenerate cmd/trayscale/default.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile.

  • Works in 9 steps: Snapshot the tree to stdout. Section… → If the tree has Not Connected, skip peer… → This machine: select the hostname row if… → …
  • Collecting a CPU profile for default.pgo
  • SKILL.md covers Launch, Do not, Drive and Stop and install
  • Calls go

What it does

Regenerate Pgo is an agent skill from DeedleFake/trayscale. Regenerate cmd/trayscale/default.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile. Use when updating PGO, collecting a CPU profile for default.pgo, refreshing profile-guided optimization, or when the user runs /regenerate-pgo.

Its SKILL.md is about 980 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 Go and Linux. The repository describes itself as: An unofficial GUI wrapper around the Tailscale CLI client. The licence is MIT.

When your agent uses it

  • Collecting a CPU profile for default.pgo
  • Refreshing profile-guided optimization
  • The user runs /regenerate-pgo

Example prompts

  • “/regenerate-pgo”

Workflow steps

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

  1. Snapshot the tree to stdout. Section titles are This machine, Exit Nodes, Online, and Offline.
  2. If the tree has Not Connected, skip peer pages. Still open About and Preferences.
  3. This machine: select the hostname row if the self page is not showing (grouping 'Tailscale IPs'). Click one Tailscale IP copy button if a…
  4. If Mullvad Exit Nodes is in the tree, select --role label --name "Mullvad Exit Nodes" --exact. Do not enable an exit node. Do not expand…
  5. Select up to five Online peer labels and one Offline peer label, if those rows exist.
  6. $CTRL action search-peers. If fill on the search entry fails, skip typing.
  7. $CTRL action about, then $CTRL wait --role dialog --name About --exact --timeout 10. Do not click links.
  8. $CTRL action preferences, then wait for dialog 'Preferences'. Do not toggle rows.
  9. sleep 15 so the poller samples the open UI.

What it can do on your machine

Read from SKILL.md and the folder at commit 8defbe3. 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

    Shell commands in SKILL.md call:

    • go

    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

Regenerate Pgo loads about 984 tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 482 words of instructions outside code blocks.

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

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 DeedleFake/trayscale at commit 8defbe3, republished under its MIT licence (© DeedleFake). 482 words, ~984 tokens.

Download SKILL.mdSave it as .claude/skills/regenerate-pgo/SKILL.md (or your agent's skills folder).
name
regenerate-pgo
description
Regenerate cmd/trayscale/default.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile. Use when updating PGO, collecting a CPU profile for default.pgo, refreshing profile-guided optimization, or when the user runs /regenerate-pgo.

Regenerate PGO

Replace cmd/trayscale/default.pgo with a CPU profile from this checkout's binary.

Read .cursor/skills/verify-trayscale/SKILL.md first. Use control-trayscale only as the launch/drive/cleanup mechanism. Do not follow its verification recipes and do not write proof artifacts.

Run every command from the repo root:

bash
CTRL=.cursor/skills/verify-trayscale/scripts/control-trayscale
PROFILE=$(mktemp /tmp/trayscale-pgo.XXXXXX.pprof)

Keep that $PROFILE path for launch, validation, and the final copy.

Launch

control-trayscale launch copies the process environment into the isolated session. cmd/trayscale writes a CPU profile to PPROF when main returns.

bash
PPROF="$PROFILE" $CTRL launch
$CTRL doctor

Doctor requirements are the same as verify-trayscale. If doctor fails, read the run logs, run cleanup, and stop.

The live tailscaled is shared. Memory GSettings do not isolate Tailscale prefs or Taildrop.

Do not

Follow verify-trayscale forbidden actions (use_exit_node, login, change_control_server, admin_dashboard, the header connect switch, option switches). quit is required at the end and is the exception.

Also never:

  • activate peer.sendFile, open a send/receive file chooser, or drop files on a peer page
  • click Use as exit node
  • advertise or remove routes
  • switch profiles
  • click About Website, Report an Issue, or about.save-debug-info

Skip a coverage step whose AT-SPI handle is missing. Do not substitute a forbidden action.

Drive

Keep the process up long enough for the 5s poller to run several times.

  1. Snapshot the tree to stdout. Section titles are This machine, Exit Nodes, Online, and Offline.
  2. If the tree has Not Connected, skip peer pages. Still open About and Preferences.
  3. This machine: select the hostname row if the self page is not showing (grouping 'Tailscale IPs'). Click one Tailscale IP copy button if a button is named with an address.
  4. If Mullvad Exit Nodes is in the tree, select --role label --name "Mullvad Exit Nodes" --exact. Do not enable an exit node. Do not expand every country.
  5. Select up to five Online peer labels and one Offline peer label, if those rows exist.
  6. $CTRL action search-peers. If fill on the search entry fails, skip typing.
  7. $CTRL action about, then $CTRL wait --role dialog --name About --exact --timeout 10. Do not click links.
  8. $CTRL action preferences, then wait for dialog 'Preferences'. Do not toggle rows.
  9. sleep 15 so the poller samples the open UI.
Show full SKILL.md (125 more words)Show less

Tray code is unreachable on the isolated bus. Leave it uncovered.

Stop and install

The profile is complete only after pprof.StopCPUProfile runs, which happens when main returns. cleanup sends SIGTERM and skips that defer.

bash
$CTRL action quit --i-mean-it

Wait until doctor no longer reports a live window or bus_name_owned. If the process is still up after about 10s, send SIGINT to the isolated trayscale PID (the binary under the verify run dir). Do not signal by binary name.

Then:

bash
$CTRL cleanup
go tool pprof -top -nodecount=20 "$PROFILE"
cp "$PROFILE" cmd/trayscale/default.pgo
rm -f "$PROFILE"
go test -vet=all ./...

go tool pprof must print sampled functions. If it errors, the profile is truncated; leave cmd/trayscale/default.pgo unchanged.

Replace cmd/trayscale/default.pgo. Do not merge with go tool pprof -proto. Do not leave $PROFILE in the repo.

Report which coverage steps ran, which were skipped and why, and that go test -vet=all ./... passed.

© DeedleFake, MIT. 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 .grok/skills/regenerate-pgo of DeedleFake/trayscale.

Open the folder on GitHubat commit 8defbe3

Compare with similar skills

Regenerate Pgo 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.

Regenerate Pgo compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Regenerate Pgo this skillDeedleFake/trayscale1.1k—~984Automated safety check: PassMIT
Temporal Developerlatitude-dev/latitude-llm4.7k—~1.5kAutomated safety check: PassMIT
Install Mimi Remotegaixianggeng/mimi-remote104—~2.8kAutomated safety check: PassGPL-3.0
Workflow GenerateForestHubAI/edge-agents105—~3.2kAutomated safety check: PassAGPL-3.0
Releasing MarchatCod-e-Codes/marchat137—~801Automated safety check: PassMIT
Modern Gosmallnest/goal-workflow291—~7.2kAutomated safety check: PassMIT

Similar skills

  • Temporal Developer

    latitude-dev/latitude-llm

    This skill should be used when the user asks to "create a Temporal workflow", "write a Temporal activity", "debug stuck workflow", "fix non-determinism error", "Temporal Python", "Temporal…

    4.7k GitHub stars~1.5k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Install Mimi Remote

    gaixianggeng/mimi-remote

    安装、配置、配对、迁移、升级、诊断、回滚或卸载 Mimi Remote;在 macOS 上安装和维护 Mimi Remote Mac 菜单栏 App / DMG,或通过 Homebrew、Linux user-systemd 部署 agentd;从源码构建 iPhone/iPad App;配置 Codex 主通道和可选 Claude Code 实验 Runtime。用户提出“安装 Mimi…

    104 GitHub stars~2.8k tokensUpdated yesterday
    MobileAuto-check passed
  • Workflow Generate

    ForestHubAI/edge-agents

    Generate a validated Edge Agents workflow JSON (.workflow.json) from a natural-language description — the node-graph that runs on Edge Agents edge/IoT agents, built from triggers (timer, startup…

    105 GitHub stars~3.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Releasing Marchat

    Cod-e-Codes/marchat

    Prepares marchat releases: version bumps, CHANGELOG, packaging checksums, GitHub Actions release workflow, and Docker tags.

    137 GitHub stars~801 tokensUpdated 8 days ago
    DevOps & CloudAuto-check passed
  • Modern Go

    smallnest/goal-workflow

    Modernize Go code by applying version-appropriate idioms and APIs (gofix-style transformations).

    291 GitHub stars~7.2k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed

More from DeedleFake/trayscale

  • Verify Trayscale

    DeedleFake/trayscale

    Drive the Trayscale GTK 4 / Libadwaita desktop UI the way a user does.

    1.1k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Regenerate Pgo

What does Regenerate Pgo do?

Regenerate cmd/trayscale/default.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile. Regenerate Pgo is an agent skill from DeedleFake/trayscale.pgo by launching an isolated Trayscale, driving representative UI paths under PPROF, then replacing the profile.

When should I use Regenerate Pgo?

Regenerate Pgo fits situations like: collecting a CPU profile for default.pgo; refreshing profile-guided optimization; the user runs /regenerate-pgo.

How do I install Regenerate Pgo in Claude Code?

Run `npx skills add DeedleFake/trayscale --skill regenerate-pgo -a claude-code`. Or copy the skill folder (.grok/skills/regenerate-pgo in DeedleFake/trayscale) into .claude/skills/regenerate-pgo in your project. Claude Code loads it when a task matches its description.

How do I install Regenerate Pgo in Codex?

Run `npx skills add DeedleFake/trayscale --skill regenerate-pgo -a codex`. Or copy the skill folder (.grok/skills/regenerate-pgo in DeedleFake/trayscale) into .agents/skills/regenerate-pgo in your project. Codex loads it when a task matches its description.

Can I use Regenerate Pgo 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 DeedleFake/trayscale --skill regenerate-pgo -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/regenerate-pgo, .gemini/skills/regenerate-pgo, .github/skills/regenerate-pgo and .opencode/skills/regenerate-pgo in your project.

What does Regenerate Pgo need to run?

Going by SKILL.md and its folder, Regenerate Pgo needs the command-line tools its instructions call (go).

Does Regenerate Pgo 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 Regenerate Pgo 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 Regenerate Pgo use?

Regenerate Pgo is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Regenerate Pgo use?

About 984 tokens (SKILL.md is roughly 3.9k 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 Regenerate Pgo?

Skills that share tags, products or a category with Regenerate Pgo: Temporal Developer (latitude-dev/latitude-llm, 4.7k stars), Install Mimi Remote (gaixianggeng/mimi-remote, 104 stars), Workflow Generate (ForestHubAI/edge-agents, 105 stars) and Releasing Marchat (Cod-e-Codes/marchat, 137 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Regenerate Pgo?

DeedleFake (a GitHub user) maintains it in DeedleFake/trayscale, which has 1,055 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 9, 2026.

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