undo-last

Rolls back the last component creation or modification transaction using backup files and manifest restoration.

3|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/gabrielnsmnto/kord-aios --skill undo-last-gabrielnsmnto
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: undo-last
Source: https://github.com/gabrielnsmnto/kord-aios/tree/main/src/features/builtin-skills/kord-aios/utilities/undo-last
Command: npx skills add https://github.com/gabrielnsmnto/kord-aios --skill undo-last-gabrielnsmnto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When an agent creates or modifies components incorrectly, manually tracking and reverting every file change is error-prone. This Skill reverses the most recent transaction by restoring backups, reverting manifest entries, and cleaning up orphaned files. ## Core Features & Use Cases - Transaction-Based Rollback: Identifies the last transaction (or a specified transaction ID) and reverts all associated file operations and manifest changes. - Verification and Reporting: Validates restored file states and manifest integrity, then reports per-operation success or failure. - Selective Rollback: Supports rolling back individual operations within batch transactions. - Use Case: After the developer agent creates an agent definition, task file, and manifest update that turn out to be wrong, run the rollback to remove the new files and restore the manifest to its prior state in one operation. ## Quick Start Ask the agent to undo the last component creation and confirm the rollback when shown the transaction details.

Frequently Asked Questions about undo-last

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I undo the last component creation in kord-aios?▼

Invoke the undo-last skill, which locates the most recent transaction, displays its file operations, and asks for confirmation. After confirmation it restores backups, reverts manifest changes, and verifies the result.

Can I rollback a specific transaction instead of the last one?▼

Yes, you can provide an optional transaction ID to target a specific transaction rather than the most recent one. The skill also supports selective rollback of individual operations within batch transactions.

What happens if backup files are missing during rollback?▼

The rollback reports a partial failure, listing which operations succeeded and which failed due to missing backups. It preserves the current state where restoration failed and provides manual recovery steps.

What are the limitations of transaction rollback?▼

Rollback only works for recent transactions within the retention period and requires transaction logging to be enabled. Some operations may not be fully reversible, and concurrent modifications since the transaction can block or complicate the rollback.

Does rollback work if files were changed after the transaction?▼

The skill detects concurrent modifications made since the transaction and prompts for a force rollback option. This prevents silently overwriting newer changes made outside the recorded transaction.