oneshot
Lightweight workflow for straightforward changes: a short typed plan, one in-session task, and an optional PR. Two Remit calls: remit prepare compiles the…
от lvlup-sw★ 19 звёзд на GitHub
Установить oneshot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Oneshot Workflow Skill
A oneshot is a workflow with one task that the coordinator does in the session. It makes two Remit calls:
remit preparestarts the workflow from the approved typed plan and compiles one capsule.remit settlejudges the task claim, runs the integration suite at the integration tip, and moves the phase tocompletedin its commit.
The lifecycle is plan, implementing, an optional synthesize, and completed. Prepare walks plan to implementing. Settle walks the rest. There is no phase verb.
VCS Provider
This skill makes no VCS provider call through Remit. When the plan selects a PR, the coordinator creates and merges the PR through its harness, outside governance. The direct-commit path needs no PR.
When to use oneshot
Use oneshot when all of these are true:
- The change is bounded: one file, or a small cluster of two or three files.
- The work fits in one in-session implement-and-verify loop. No subagent dispatch is necessary.
- A short plan is enough. The goal is clear from the task description.
- No separate review is necessary. Direct commit is acceptable, or one PR review is enough.
Examples: a typo fix, a dependency bump, a missing null check, a CI YAML edit, a config key rename, a small helper script, an exploratory spike.
When NOT to use oneshot
Do not use oneshot for these. Use the feature workflow (ideate) instead:
- Refactors that touch many files or modules
- Features that need subagent decomposition
- Work that needs design exploration or a comparison of approaches
- Work that needs a separate critic review
- Changes that land in stages (stacked PRs)
If the change grows larger than one task, stop. Do not settle the oneshot. Start a feature workflow with a new feature ID. The oneshot stream stays inert.
Synthesis policy
The workflow block of the typed plan holds synthesisPolicy. Select it with the user before you write the plan:
synthesisPolicy |
Path | Use it when |
|---|---|---|
never (default) |
implementing to completed. The commits stay on the integration branch. |
The user wants a direct commit. |
always |
implementing to synthesize to completed. Settle judges the synthesis boundary, and the harness opens the PR after the settle. |
The user wants a PR for the change. |
Prepare refuses on-request, because no settlement can record a later request. If the user changes their mind after prepare, write the plan again with the other policy, get approval for the new bytes, and start a new workflow with a new feature ID.
Step 1: Write the typed plan
Write a short design record at docs/specs/YYYY-MM-DD-<feature>.md, in the format of @skills/plan/references/spec-template.md, at thin depth:
- One
DR-Nrequirement with its acceptance criteria. - One task in the
remit-plan-v1block, in the format of@skills/plan/references/task-template.md. Give it the files to change, the test files, the risk tier and the acceptance criteria. - The workflow block with the synthesis policy:
{
"version": 1,
"workflow": { "synthesisPolicy": "never" },
"requirements": ["DR-1"],
"tasks": [ { "id": "T-01", "title": "Fix the README typo", "implements": ["DR-1"], "blockedBy": [], "files": ["README.md"], "testFiles": [], "riskTier": "low", "boundaryTouching": false, "testLayer": "unit", "acceptance": ["README.md holds no occurrence of 'recieve'."], "instructions": "Replace the misspelled word.", "parallelizable": false } ]
}
Show the file to the user and ask for approval. Read the approved file as raw bytes and keep its bare lowercase SHA-256 hex digest.
Step 2: Prepare
For the PR path (always), create and check out an integration branch from the PR target before prepare. This example uses git switch -c fix-readme-typo main. The PR still targets main. For direct commit (never), use the branch you intend to update.
Write the bootstrap request to a file. Use the absolute checkout path as repoRoot and the checked-out integration branch as baseRef.
Review the exact check commands and options with the operator. If you have no approval for this profile, omit verificationProfileDigest on the first request. VERIFICATION_APPROVAL_REQUIRED returns the resolved profile and its digest without recording a capsule. Submit that digest only after the operator approves the profile. Use the same approval for later requests while the profile is unchanged. If repository or task rules apply, review the effective policy with the operator. Include the approved digest as intent.approval.invariantPolicyDigest.
{
"featureId": "fix-readme-typo",
"repoRoot": "/project",
"intent": {
"mode": "bootstrap", "workflowType": "oneshot", "baseRef": "fix-readme-typo",
"designDepth": "thin", "designRef": "docs/specs/2026-11-27-fix-readme-typo.md",
"approval": { "decision": "approved", "designDigest": "<approved file sha256>", "verificationProfileDigest": "<approvedVerificati
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл oneshot?
Lightweight workflow for straightforward changes: a short typed plan, one in-session task, and an optional PR. Two Remit calls: remit prepare compiles the capsule, and remit settle judges the task and moves the workflow to completed. The synthesis policy in the plan selects direct commit (never) or a PR (always). Use for trivial fixes, config tweaks, single-file changes, or exploratory work that does not need subagent dispatch or a separate review. Triggers: 'oneshot', 'quick fix', 'small change', or oneshot.
Как установить скилл oneshot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл oneshot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…