Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Avoid data loss in a worktree-based agent CLI v1.0.0

Use this resource to build an agent CLI that never loses work in a worktree

New

  • 563 downloads
  • 129 likes
  • 222 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install agent-cli-worktree-data-safety

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent checks the CLI against safety invariants: change detection, a safety-net commit before cleanup, pre-validation and branch-name collisions. You get a checklist and the tests to add.

Mostly picked by

Updated November 2, 2026

Card for the “Avoid data loss in a worktree-based agent CLI” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: safety invariants and the failure mode
  • REFERENCE.md: required tests and a checklist for a new CLI

Good fit for

  • Your CLI runs an agent in a worktree and then removes it
  • An agent run reports "no changes" after writing files

Not for

    Tags

    • worktree
    • cli
    • agents
    • data loss

    About

    You say

    “Review this CLI that creates a worktree for the agent and check that it never loses anything.”

    Card for the “Avoid data loss in a worktree-based agent CLI” skill

    Skill published by laurigates under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to build an agent CLI that never loses work in a worktree
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • REFERENCE.md3.6 KB
    • SKILL.md8.6 KB

    Origin and licence

    Listed unmodified

    Author
    laurigates
    Source
    github.com/laurigates/claude-plugins/tree/3cbda15de062aa6d3302afd330afb0ff1c8979df/agent-patterns-plugin/skills/agent-cli-worktree-safety
    Licence
    MIT

    Notice

    « agent-cli-worktree-safety » (laurigates, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.