跳到正文
cccskills
免费在 GitHub 公开

power-worktree

Use when starting feature work that needs isolation from the current workspace, or before executing an implementation plan

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md2.3 KB
  • agents/openai.yaml182 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Work in an Isolated Workspace

Step 0 — You may already be isolated

Check before creating anything:

GIT_DIR=$(cd "$(git rev-parse --git-dir)" && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" && pwd -P)
git rev-parse --show-superproject-working-tree

If GIT_DIR differs from GIT_COMMON and the third command prints nothing (you are not in a submodule, where the same difference appears for an unrelated reason), you are already in a worktree. Skip to Step 2.

Step 1a — Native tooling first

If your harness has its own worktree mechanism — an EnterWorktree tool, a /worktree command, a --worktree flag — use it.

Running git worktree add when a native tool exists is the most common mistake here: it creates a worktree the harness does not know about, so its own bookkeeping points at the old one, and everything after that is confusing in a way that is hard to trace back.

Step 1b — Fallback

Only if there is no native tool. Get consent first: this changes where the human's work happens.

Choose the location by priority: what the human specified, then an existing .worktrees/, then an existing worktrees/, then .worktrees/ as the default.

Check it is ignored before creating it:

git check-ignore -q .worktrees/ || echo "not ignored — add it to .gitignore first"
git worktree add .worktrees/<slug> -b <branch>

An un-ignored worktree directory turns the entire checkout into untracked noise inside the parent repository.

If git worktree add fails on permissions, you are probably in a sandbox that cannot write where you asked. Say so; do not retry with sudo or a path outside the repository.

Step 2 — Set it up

Install dependencies with the project's real command, read from its manifest. Copy the local environment files the project needs — except anything holding a secret, which the human provides.

Step 3 — Green baseline

Run the test suite before changing anything.

A baseline you did not take is a baseline you will invent later, and the first failure will look like yours whether it is or not. If the suite is already red, say so now and agree what "green" means for this work.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Accessibility auditing and remediation skill for Vue 3 + Reka UI. Use when reviewing components, verifying WCAG 2.1 AA, fixing ARIA issues, or validating keyboard navigation in Reka UI components.

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

ai-infra

免费

Infraestrutura para IA — GPU, servidores MCP, gateway de LLM, pipeline de inferência, custo de token, cache semântico e observabilidade de modelo. Use quando o usuário disser "GPU", "MCP server", "LLM", "inferência", "modelo", "gateway de IA", "custo de token", "rate limit da API de IA", "self-host de modelo".

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

alt-text

免费

Escreve texto alternativo e descrição de imagem para peças de rede social. Use quando o usuário disser "alt text", "texto alternativo", "descrição da imagem", "acessibilidade da peça", "descrever para leitor de tela", ou automaticamente antes de qualquer publicação. Obrigatório em todas as peças — em carrossel, um por slide.

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

Organiza, compara e seleciona entre as variações geradas, e publica a grade de comparação como Artifact para aprovação do time. Use quando o usuário disser "qual dessas", "comparar as variações", "escolher a melhor", "mostrar as opções", "montar grade de aprovação", ou após qualquer lote de geração. Selecionar é trabalho, não detalhe.

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

Aumenta resolução e qualidade de imagem via Freepik/Magnific, ou orienta o processo manual quando não há chave. Use quando o usuário disser "upscale", "melhorar a resolução", "a imagem está pixelada", "Magnific", "Freepik", "aumentar a imagem", "imagem pequena demais". Gasta crédito — exige confirmação.

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

CI/CD e automação — GitHub Actions, Terraform, OpenTofu, Ansible, n8n. Use quando o usuário disser "pipeline", "CI/CD", "GitHub Actions", "workflow", "terraform", "ansible", "n8n", "automatizar", "deploy automático", "IaC".

中文简介正在准备中。当前显示原文说明。

pwdev-solucoes/pwdev-claude-marketplace32026年10月15日 更新

查看 pwdev-solucoes 的全部技能

报告此技能的问题