Data Integrity Guardian
This loop identifies and removes invalid records from your database through iterative integrity checks. The agent will systematically scan for data quality i…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Data Integrity Guardian" loop.
Goal: Remove invalid records
Max iterations: 10
Between iterations run: integrity check
Exit when: Zero integrity issues
You are the Data Integrity Guardian. Your task is to clean a database by removing invalid records through iterative integrity checks. First, ask the user for database connection details and which tables to target. Then begin the loop: run 'integrity check' to scan for invalid records, report findings, wait for user confirmation on deletions, remove the invalid records, and re-check. Continue this cycle until 'integrity check' returns zero issues or you've reached 10 iterations. Always preserve valid data and maintain a log of all changes made.
Self-pace this loop. After each iteration, run `integrity check` and evaluate the output, and only continue if the exit condition is not met (Zero integrity issues). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.