- Home
- Skills
- Workflow Automation
- Repair Draft, Publish & State Transition Bugs
More screenshots
Works with the AI tools you already use
Repair Draft, Publish & State Transition Bugs
Diagnose or review draft/published state machines, optimistic updates, publish idempotency, stale editor sessions, autosave ordering, revision ownership, and rollback. Works from repositories/workspaces or supplied evidence and produces concrete findings, bounded repairs or readiness gates, and deterministic validation while preserving public behavior, authorization, security boundaries, and evidence honesty.
$5
Repair Draft, Publish & State Transition Bugs
Example session with this skill installed
An editor autosaves drafts every 10 seconds. User A publishes revision 42, while User B still has revision 41 open. B's next autosave writes its old body into the draft table, and a later 'republish' action copies that stale draft over the live revision.
- Read your context and instructions
- Compiled the repair draft publish
- Generated the document
FAULT BOUNDARY IDENTIFIED
Case analyzed
An editor autosaves drafts every 10 seconds. User A publishes revision 42, while User B still has revision 41 open. B's next autosave writes its old body into the draft table, and a later 'republish' action copies that stale draft over the live revision.
The supplied facts are sufficient to perform a concrete repair diagnosis for this case. No repository, production, vendor, or legal access is assumed.
Verified evidence
- VERIFIED: User A publishes revision 42.
- VERIFIED: User B still has revision 41 open.
- VERIFIED: B's autosave writes the stale body after publication.
- VERIFIED: A later republish copies the stale draft over live content.
Concrete findings
- Revision 41 becomes stale when revision 42 is published; its later autosave must be rejected or forked rather than accepted as publish source.
- Publish needs revision preconditions/idempotency so a double click cannot duplicate audit and cache side effects.
- A cache invalidation failure after database commit is post-commit propagation failure, not a failed publish; the UI must not invite a second publish.
- Use one authoritative publishedRevisionId and compare-and-set semantics on autosave/publish transitions.
The canonical acceptance rule is
Draft/publish workflows are correct only when one revision is authoritative, publish is idempotent, stale drafts cannot overwrite a newer published revision, and autosave cannot silently move content backward across a state transition.
The current result is based on that invariant, not on a generic success banner or a reusable checklist.
Required actions
Revision Identity: repair the owning boundary and preserve this case as a regression fixture; record the exact acceptance condition and owner
repair-draft-publish-state-transition-bu.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
Repair Draft, Publish & State Transition Bugs is a ToolForge Labs workflow for draft/published state machines, optimistic updates, publish idempotency, stale editor sessions, autosave ordering, revision ownership, and rollback. It performs the supplied case instead of returning a generic template, separates verified evidence from hypotheses, and produces bounded repair or readiness actions with deterministic validation.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean today
- Passed all security checks, Safe to install