sw-pivot

sw-pivot is a skill for Claude Code from Obsidian-Owl/specwright. It costs 29 tokens per session (1,628 once invoked), scanned A, original, MIT.

A guided way to revise a design or plan when the work changes. It records what remains valid, explains the change, and updates the affected work documents.

In plain words
What is it for?
Use it to replan unfinished work after new research, changed requirements, or a design problem, then return the work to planning or implementation.
Why use it?
It prevents completed work and its approvals from being lost when requirements or research change. It also makes the new scope and decisions visible to the team.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to replan unfinished work after new research, changed requirements, or a design problem, then return the work to planning or implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/obsidian-owl/specwright/sw-pivot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Obsidian-Owl/specwright --skill sw-pivot
Clone the repo
git clone --depth 1 https://github.com/Obsidian-Owl/specwright

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sw-pivot

README.md
[![agentmods](https://agentmods.dev/badge/skills/obsidian-owl/specwright/sw-pivot/github.svg)](https://agentmods.dev/skills/obsidian-owl/specwright/sw-pivot)
Your own site
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/sw-pivot"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/sw-pivot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sw-pivot

Your own site · 80×15
<a href="https://agentmods.dev/skills/obsidian-owl/specwright/sw-pivot"><img src="https://agentmods.dev/badge/skills/obsidian-owl/specwright/sw-pivot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01628
Opus 5.5 $0.00012 $0.00651
Sonnet 5.5 $0.00006 $0.00326
Haiku 4.5 $0.00003 $0.00163

Measured 3mo ago against content hash 267646f6033b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sw-pivot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/skills/sw-pivot/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Specwright Pivot

Goal

Research-backed rebaselining for the selected work. Capture preserved scope, understand what changed, classify the pivot, revise the affected open work via architect, and hand back to /sw-plan or /sw-build as appropriate. Applies protocols/decision.md for all decisions. Revisions auto-applied and recorded in decisions.md; the revised artifact set is the contract.

Inputs

  • {worktreeStateRoot}/session.json — selected work for this worktree
  • {repoStateRoot}/work/{selectedWork.id}/workflow.json — selected work state, active unit, tasksCompleted, tasksTotal, and work/unit paths
  • work-level artifacts: design.md, context.md, assumptions.md, decisions.md, integration-criteria.md when present
  • active or affected unit artifacts: spec.md, plan.md, context.md
  • {workArtifactsRoot}/{selectedWork.id}/approvals.md — durable approval ledger for design and unit lineage
  • Pivot reason (argument or conversation)
  • Optional recent retro or research inputs when available and relevant

Outputs

  • revised work-level artifacts when design or scope changes require them
  • regenerated affected remaining-unit artifacts when unit boundaries or observable behavior change
  • updated integration-criteria.md when structural pivots stale the current criteria
  • selected work's workflow.json — pivot classification, active state, and affected remaining work updated
  • decisions.md — pivot decisions recorded

Constraints

Pre-condition (LOW freedom): Resolve the selected work from the current worktree session. Valid entry states are planning, building, and verifying. Reject designing, shipping, and shipped with explicit guidance: use /sw-design change request flow for designing, and start a fresh work or normal ship/fix flow for shipping or shipped. If another live top-level worktree owns the selected work, STOP with explicit adopt/takeover guidance.

Snapshot (LOW freedom): Read the selected work's completed and open scope. Present preserved baseline scope versus delta scope before proposing any mutation.

Read the full file on GitHub · 150 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 150 lines · 29 tokens per session scan A 267646f6033b

Subscribe to this mod's changes

sw-pivot is a skill published in the GitHub repository Obsidian-Owl/specwright (10 stars, last pushed 7mo ago), licensed MIT. It adds 29 tokens to every session and 1,628 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sw-pivot compared with skills from other repositories

sw-pivot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sw-pivotObsidian-Owl/specwrightSkill107mo agoMITA29Claude Code
rust-skillsmartineserios/thebranaSkill38d agoMITA23Claude Code
new-skillhyhmrright/brooks-lintSkill1.6kyesterdayMITA145Claude Code, Codex
brooks-sweephyhmrright/brooks-lintSkill1.6kyesterdayMITA178Claude Code
llm-friendly-contextshinpr/claude-code-workflowsSkill725yesterdayMITA52Claude Code
import-speclgbarn/shipyardSkill671mo agoMITA29Claude Code
brainstormgreglas75/zuvoSkill7todayMITA56Claude Code