Logo: Rudder Worktree Preview Maintainer

Rudder Worktree Preview Maintainer

Communautéit
Undertone0809
rudder-worktree-preview-maintainer

Use when starting the current Rudder checkout as a temporary managed local preview with a stable URL, readiness check, logs, stop command, and cleanup path for manual inspection of the current branch or worktree.

Iwwersiicht

EditeurUndertone0809
Repositoryrudder
Skill-Nummrudder-worktree-preview-maintainer
Stären
290
Forks
31
Matgeliwwert Dateien
2
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Undertone0809 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rudder Worktree Preview Maintainer an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Undertone0809/rudder/tree/main/agent-skills-bak/maintainer/rudder-worktree-preview-maintainer
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Undertone0809/rudder.git /tmp/rudder
mkdir -p .claude/skills
cp -r /tmp/rudder/agent-skills-bak/maintainer/rudder-worktree-preview-maintainer .claude/skills/rudder-worktree-preview-maintainer
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rudder Worktree Preview Maintainer an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rudder Worktree Preview Maintainer automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rudder Worktree Preview Maintainer net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Rudder Worktree Preview Maintainer

Run the current Rudder checkout as a temporary preview so the user can inspect the feature in a browser without leaving a foreground command running.

This skill is for the common post-implementation hand-off: the branch already contains the work, and the user wants a local URL to test. It is not a PR checkout workflow, it is not a broad process cleanup workflow, and it is not the canonical developer environment for Codex-managed worktrees.

Rudder's normal pnpm dev entrypoint is the canonical development path. In Codex-managed worktrees under ~/.codex/worktrees/<id>/<repo>, pnpm dev auto-derives an isolated RUDDER_HOME, instance id, server port, embedded PostgreSQL port, and worktree branding when no repo-local .rudder/ config exists. Use this preview skill only when the user wants a managed background preview handoff with health verification, logs, and a stop command.

Preview readiness is environment proof, not product proof. A healthy URL means the checkout can be opened; it does not prove that a feature, workflow, agent path, or UI regression is fixed. When this skill is used inside a lifecycle handoff or review gate, the owning workflow must still exercise the relevant route, command, agent run, or Desktop/browser interaction and report the observed terminal state.

Use This Skill When

  • The user asks to run the current branch or current worktree locally.
  • The user wants to manually test a recently implemented UI or workflow change.
  • The assistant needs to hand off a stable preview URL after implementation without leaving pnpm dev in the foreground.
  • The user asks for logs, a stop command, or a temporary preview that can be cleaned up independently.
  • The task is to provide a preview URL, not to package Desktop or publish a release.

Do Not Use This Skill When

  • The user asks to check out or preview a GitHub PR; use pr-local-preview-maintainer instead.
  • The user asks only to stop or clean local dev processes; use stop-rudder-dev-maintainer instead.
  • The user is asking why Codex worktrees interfere, how normal development should be isolated, or whether pnpm dev is using the current worktree. In that case inspect scripts/dev-local-env.mjs, doc/engineering/DEVELOPING.md, and the /api/health payload for the active dev runtime.
  • The user simply wants to develop inside the current Codex worktree. Use pnpm dev, which should auto-isolate Codex-managed worktrees, instead of starting a separate /tmp/rudder-worktree-preview instance.
  • The change needs packaged Desktop verification; follow the Desktop validation workflow in the repo docs.
  • The user wants production-like pnpm prod behavior rather than a dev preview.

Default Workflow

1. Inspect the current worktree

Start from the repository root and record the current branch:

bash
git status --short --branch
git branch --show-current

Do not switch branches, reset files, or stop unrelated runtimes. A dirty worktree is normal after implementation work.

2. Choose isolated runtime settings

The preview is intentionally temporary and may use a different instance than the canonical pnpm dev runtime for the same worktree. Tell the user this if they are comparing data between surfaces.

Prefer a branch-derived instance id, a non-default app port, and an isolated RUDDER_HOME under /tmp:

text
RUDDER_INSTANCE_ID=<branch-slug>
PORT=<free-port>
RUDDER_HOME=/tmp/rudder-worktree-preview/<branch-slug>/home

Use 3100 only when the user explicitly asks for the default dev runtime and the port is free. Otherwise choose a free port starting near 3310.

If the user wants the same data and instance as their normal Codex worktree development surface, do not use this launcher by default. Start or inspect pnpm dev instead and verify the /api/health response matches the expected worktree-derived instance id.

If embedded PostgreSQL works, use a free RUDDER_EMBEDDED_POSTGRES_PORT. If embedded PostgreSQL fails in the local environment, use a dedicated external database for this preview instead of reusing another Rudder instance's database.

3. Use the bundled launcher first

From the repo root:

bash
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh

The launcher:

  • derives an instance id from the current branch
  • finds free app and embedded PostgreSQL ports
  • starts @rudderhq/server with Vite dev middleware
  • uses tmux when available, then launchctl on macOS
  • waits for /api/health
  • prints the URL, logs, and stop command

Useful options:

bash
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh --replace
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh --port 3312
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh --database-url postgres://user:pass@127.0.0.1:5432/dbname
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh --stop

Use --replace only for the same branch-derived preview session. Do not kill ports or process groups that belong to another Rudder worktree.

4. Handle startup failures pragmatically

If readiness fails, inspect the managed logs before responding:

bash
tmux capture-pane -pt rudder-preview-<instance-id> -S -180
tail -180 /tmp/rudder-worktree-preview/<instance-id>/*.log

Fix local startup issues that are clearly environmental, such as occupied ports or missing dependencies. If embedded PostgreSQL fails, create or use an isolated external database and rerun with --database-url; do not point the preview at the user's main dev data unless they explicitly ask for that.

5. Verify readiness

Before handing off, check:

bash
curl -fsS http://127.0.0.1:<port>/api/health

The instanceId in the response should match the preview instance id. If it does not, the URL may belong to another runtime.

For visible UI work, also open the URL in a browser when practical. If browser automation is unavailable or hangs, say that clearly and still provide the health-checked URL.

If the user asked whether a feature works, do not stop at this readiness check. Run or hand back the concrete scenario proof needed for that feature, and label the preview URL as only the environment that made the proof possible.

6. Hand off the preview

Keep the response short and concrete:

text
当前分支已经跑起来了:
http://127.0.0.1:<port>

实例:<instance-id>
日志:<tmux attach or log path>
停止:<stop command>
Health check passed.

Mention when the preview uses a non-default port because 3100 is occupied. Mention when the database is isolated or temporary so the user knows what data they are looking at.

Cleanup Requests

For cleanup, stop only the managed preview for the current branch:

bash
bash .agents/skills/maintainer/rudder-worktree-preview-maintainer/scripts/start_current_branch_preview.sh --stop

Verify the preview port is free afterward. Do not remove worktrees, delete databases, or stop other Rudder sessions unless the user explicitly asks.

Judgment Rules

  • Isolation matters more than preserving the default port.
  • Do not present this skill as the fix for Codex worktree isolation. That belongs in the default pnpm dev environment resolution.
  • Be explicit when this preview uses a temporary /tmp instance that differs from the normal pnpm dev instance for the same checkout.
  • A health-checked URL is the minimum hand-off; logs and a stop command make it usable.
  • Do not present preview readiness as review or validation of the changed workflow unless a separate scenario was exercised and reported.
  • Never stop unrelated Rudder sessions just because they occupy 3100.
  • Do not leave a foreground command running when the user needs a preview after the assistant turn ends; use tmux or a user-level managed process.
  • If the task shifts from previewing to fixing a startup bug, say that and keep source edits scoped.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Rudder Worktree Preview Maintainer?

Use when starting the current Rudder checkout as a temporary managed local preview with a stable URL, readiness check, logs, stop command, and cleanup path for manual inspection of the current branch or worktree.

Firwat Rudder Worktree Preview Maintainer op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rudder Worktree Preview Maintainer besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rudder Worktree Preview Maintainer an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Undertone0809/rudder/tree/main/agent-skills-bak/maintainer/rudder-worktree-preview-maintainer an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rudder Worktree Preview Maintainer benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rudder Worktree Preview Maintainer benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rudder Worktree Preview Maintainer domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rudder Worktree Preview Maintainer gratis?

Jo. Undertone0809 huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇