worktrees-pnpm SKILL.md skillA

worktrees-pnpm from taskless/cli is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add taskless/cli/worktrees-pnpm@git:20261102.fd42e50

Pins git:20261102.fd42e50 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
taskless/cli
Path
.agents/skills/worktrees-pnpm/SKILL.md
Versions recorded
5
Latest version
git:20261102.fd42e50, committed Nov 2, 2026
First version recorded
Oct 26, 2026
Size
18,801 bytes
Repository stars
239
License
MIT

Create and work in git worktrees in this pnpm workspace. Use when creating a worktree, delegating to a background agent with worktree isolation, or when a worktree fails at commit time with a missing prettier/eslint/tsx binary. Covers why a worktree needs its own pnpm install, where worktrees live, and remediations for branch locks, moving a worktree, and failures that look like worktree problems but are not.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Worktrees in a pnpm workspace

A git worktree is a second checkout of this repository sharing one `.git`. It gets its own
working tree — and **its own empty `node_modules`**. That single fact causes every worktree
problem in this repo.

## The rule

**`git worktree add` is not finished until `pnpm install` has run inside the new worktree.**

```bash
git fetch origin +refs/heads/main:refs/remotes/origin/main   # explicit refspec; see the hook for why
git worktree add --no-track -b <branch> .agents/.worktrees/<name> origin/main   # or an existing <branch>, without -b
cd .agents/.worktrees/<name>
git rev-list --count HEAD..origin/main   # anything above 0: git rebase origin/main
pnpm install            # ← not optional, and after the rebase, which can change the lockfile
```

**The base check applies whoever made the worktree.** The `WorktreeCreate` hook fetches before
branching, but a worktree made by hand or by another tool is cut from whatever its maker had
locally. Stepping into one you did not create, run the fetch and the `rev-list` check above first,
before reading code or installing.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add taskless/cli/worktrees-pnpm@sha256:04da0950ab5715aa

The line at the top of this page pins the label git:20261102.fd42e50, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ur4mjxy346mca5d3.svg)](https://markdownregistry.com/a/art_ur4mjxy346mca5d3)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Oct 26, 2026 and Nov 2, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261102.fd42e50 latest2026-11-02 fd42e50 18,801 BA view · diff
git:20261102.bdd995e2026-11-02 bdd995e 18,365 BA view · diff
git:20261102.66f6a992026-11-02 66f6a99 17,785 BA view · diff
git:20261102.9e5d64e2026-11-02 9e5d64e 17,462 BA view · diff
git:20261026.fcb2a392026-10-26 fcb2a39 16,469 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (18801 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

taskless/cli · 239 stars · license MIT · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ur4mjxy346mca5d3
GET https://markdownregistry.com/api/v1/resolve?ref=taskless/cli/worktrees-pnpm
GET https://markdownregistry.com/api/v1/blob/04da0950ab5715aa39fb20371689b00c81db294eecaa58526ed0fa52b669c01d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from taskless/cli

code-simplifier SKILL.md skill
taskless/cli · .agents/skills/code-simplifier/SKILL.md · Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when…
git:20261019.3a9c77f · audit A · 239 stars
iterate-pr SKILL.md skill
taskless/cli · .agents/skills/iterate-pr/SKILL.md · Iterate on a PR until CI passes. Use when you need to fix CI failures, address review feedback, or continuously push…
git:20261016.13e2338 · audit A · 239 stars
openspec-apply-change SKILL.md skill
taskless/cli · .agents/skills/openspec-apply-change/SKILL.md · Implement tasks from an OpenSpec change. Use when the user wants to start implementing, continue implementation, or…
v1.0 · audit A · 239 stars
openspec-archive-change SKILL.md skill
taskless/cli · .agents/skills/openspec-archive-change/SKILL.md · Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after…
v1.0 · audit A · 239 stars
openspec-bulk-archive-change SKILL.md skill
taskless/cli · .agents/skills/openspec-bulk-archive-change/SKILL.md · Archive multiple completed changes at once. Use when archiving several parallel changes.
v1.0 · audit A · 239 stars
openspec-continue-change SKILL.md skill
taskless/cli · .agents/skills/openspec-continue-change/SKILL.md · Continue working on an OpenSpec change by creating the next artifact. Use when the user wants to progress their change…
v1.0 · audit A · 239 stars
openspec-explore SKILL.md skill
taskless/cli · .agents/skills/openspec-explore/SKILL.md · Enter explore mode - a thinking partner for exploring ideas, investigating problems, and clarifying requirements. Use…
v1.0 · audit A · 239 stars
openspec-ff-change SKILL.md skill
taskless/cli · .agents/skills/openspec-ff-change/SKILL.md · Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for…
v1.0 · audit A · 239 stars
openspec-new-change SKILL.md skill
taskless/cli · .agents/skills/openspec-new-change/SKILL.md · Start a new OpenSpec change using the experimental artifact workflow. Use when the user wants to create a new feature…
v1.0 · audit A · 239 stars
openspec-onboard SKILL.md skill
taskless/cli · .agents/skills/openspec-onboard/SKILL.md · Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
v1.0 · audit A · 239 stars
openspec-propose SKILL.md skill
taskless/cli · .agents/skills/openspec-propose/SKILL.md · Propose a new change with all artifacts generated in one step. Use when the user wants to quickly describe what they…
v1.0 · audit A · 239 stars
openspec-sync-specs SKILL.md skill
taskless/cli · .agents/skills/openspec-sync-specs/SKILL.md · Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta…
v1.0 · audit A · 239 stars

Every file in taskless/cli

Browse by kind, by grade A, or by owner.