techmefr/mentis/laravel-idempotent-data-commands

Claude Code and agent skill by techmefr/mentis

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when writing or reviewing an artisan command that changes data: it is idempotent, or it refuses to run twice — key the second run on state, not on the assumption it hasn't happened yet.

Install

npx vskill@latest install techmefr/mentis/laravel-idempotent-data-commands

SKILL.md

The same SKILL.md was published earlier as techmefr/mentis/laravel-idempotent-data-commands.

laravel-idempotent-data-commands

Narrow trigger extracted from skills/laravel-conventions §7.7–§7.9, so a data-changing console command routes here directly instead of only through the whole Laravel block.

When

Writing or reviewing an artisan command whose handle() inserts, updates, or deletes data — a backfill, a data fix, a migration helper.

Steps

  1. A command that changes data is idempotent, or it refuses to run twice. Someone will run it

again — after a timeout, after a failed deploy, or because the output scrolled past. Make the second run a no-op by keying on state, not on the assumption it hasn't happened yet.

  1. The command reports what it did, in counts. "Done" is indistinguishable from a no-op — print

the number examined, the number changed, the number skipped.

  1. A destructive command asks, and prefers a dry run. Require explicit confirmation in

production; where the work can be previewed, make the preview the default and the mutation the flag. Validate its arguments as strictly as a request payload.

Output / checkpoint

Running the command twice on the same data produces the same end state as running it once, and its output states counts (examined/changed/skipped) rather than a bare "done".

Guardrails

  • Idempotence here means keying on state (a natural key, a flag, a timestamp comparison), not on "it

hasn't run before" — that assumption is exactly what a retried or re-run command breaks.

  • The batching/interruption-survival rule and the scheduled-overlap-policy rule sit right beside this

one in skills/laravel-conventions §7 — read it for a long-running or scheduled command.

Origin

No external source: this is skills/laravel-conventions §7.7–§7.9 extracted to its own trigger. Written 2026-09-09, same restructuring pilot as laravel-no-db-enums.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/techmefr/mentis/laravel-idempotent-data-commands/badge)](https://verified-skill.com/skills/techmefr/mentis/laravel-idempotent-data-commands)

Something wrong with this skill or its page? Tell us.