Idempotent script design

From aiming-lab/MetaClaw · View interactive version

Idempotent script design is an AI agent skill from the GitHub repository aiming-lab/MetaClaw. Use this skill when writing scripts, cron jobs, data pipelines, or any automated process that may be run multiple times. Design every operation to be safely re-runnable without side effects.

How to use this skill

Skill file

Idempotent Script Design

An idempotent operation produces the same result whether run once or ten times.

Techniques:

Testing idempotency: Run your script twice on the same input and verify the output is identical.

Anti-patterns:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.