Write agent skills that trigger at the right time.
Recent revisions are kept. Restoring one creates a new revision.