local-deploy
БесплатноБез исполняемых скриптовНе проверенUse when updating this repository's Nix inputs, pins, GitHub revisions, or dependencies and deploying them locally, especially for local deploy, update-all…
от fred-drake★ 28 звёзд на GitHubОб этом скилле
Local Deploy
Overview
Run update, switch, then commit through fresh generalist subagents. The parent only coordinates. Do not use Anvil. Work in /Users/fdrake/nix; never prefix just with sudo.
Contract
- Call
subagentwithagent: "generalist"and no model/thinking overrides. Launch one child at a time and await its later message without polling, resuming, or duplicating work. - Give each child a self-contained brief with repository, role, latest failure, constraints, and report format. Instruct update and switch executors to stream command output to a predictable temp file (e.g.
set -o pipefail; just <phase> 2>&1 | tee /tmp/local-deploy-<phase>.log) in addition to any harness task log. - The parent never runs commands, edits, or repairs, and never investigates on its own while waiting.
- On-demand progress inspection: If the user explicitly asks how a phase is going or why it is taking so long, the parent may passively read (
read_file) the tail of the child's transcript/task log or/tmp/local-deploy-<phase>.logto report concrete progress (e.g., which derivation is compiling or which activation step is running), then return to waiting without interrupting, killing, or overlapping the child. - Never reset, clean, restore, checkout, stash, or create another worktree. Only the commit executor may stage or commit. Never push.
Async Result Recovery
Subagent delivery state and command state are separate.
- A missing later message does not prove whether the child is running or exited. Aside from a passive read of the log file when explicitly asked by the user for progress, the parent must not claim a final status, poll, resume, kill, overlap another child, or retry. State what the log currently shows (if asked) and that the final result is pending, then wait.
- If the harness explicitly reports a delivery or surface failure after launch, treat the command outcome as unknown—not failed. Only then, launch a fresh result remediator for that phase. This read-only diagnostic is the sole exception to the one-child rule after the harness has declared the tracked child failed. It may inspect the prior transcript, process tree, repository, and system state, but cannot run deployment commands or edit.
- If the command is still active, the result remediator reports and exits; the parent stops for user intervention rather than launching repeated diagnostics. If it finished with a recoverable exit status, continue from that result.
- An absent process does not prove success or failure. If the exit status cannot be recovered, stop with the outcome unknown. Never retry because of a callback failure alone.
Workflow
1. Update
Launch a fresh update executor to run just update-all once. It may inspect state but cannot edit, remediate, or retry. Require exit status, changed files, and relevant output.
On failure, launch a fresh update remediator to diagnose, minimally fix, and run targeted checks—never either deployment command. Stop for credentials, destructive actions, or user decisions; otherwise use a fresh update executor. Repeat until success. Never switch after a failed update.
2. Switch
After update success, launch a fresh switch executor to run just switch once. It cannot edit, remediate, or retry and returns the same report.
On failure, use a fresh switch remediator, then a fresh switch executor. Apply the same constraints and repeat until success or a user blocker. The remediator must identify partial activation and confirm no switch, package-manager process, or active lock remains before authorizing a retry. For transient downloads or locks, prefer a safe retry after the blocker clears. The remediator never deletes package-manager locks or manually upgrades packages; if either appears necessary, stop for a user decision.
3. Commit everything
After switch success, launch a fresh commit executor to run exactly:
git add -A
git commit -m "chore: update local configuration"
This intentionally commits every outstanding staged, unstaged, and untracked change, including pre-existing changes. It cannot edit, push, or retry. Nothing to commit is a successful no-op.
On failure, use a fresh commit remediator for the smallest fix; it cannot commit or deploy. Then use a fresh commit executor. Repeat until success or a user blocker.
4. Complete
Claim success only after both deployment commands and the commit phase succeed. Report attempts, remediations, commit SHA, and concerns.
Quick Reference
| Phase | Fresh executor action |
|---|---|
| Update | just update-all |
| Switch | just switch |
| Commit | git add -A then one Conventional Commit |
| Failure | Fresh remediator, then fresh executor |
Example
update executor A succeeds → switch executor B succeeds → commit executor C commits everything outstanding.
Common Mistakes
| Temptation | Required response |
|---|---|
| Reuse an executor for a fi |
Установить local-deploy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл local-deploy?
Use when updating this repository's Nix inputs, pins, GitHub revisions, or dependencies and deploying them locally, especially for local deploy, update-all, or switch requests.
Как установить скилл local-deploy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл local-deploy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub