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.
76
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
An idempotent operation produces the same result whether run once or ten times.
Techniques:
CREATE TABLE IF NOT EXISTS, mkdir -p, check file existence before writing.INSERT ... ON CONFLICT DO UPDATE in SQL.Testing idempotency: Run your script twice on the same input and verify the output is identical.
Anti-patterns:
922caf3
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.