Compare

From dlt/faultline · View interactive version

Compare is an AI agent skill from the GitHub repository dlt/faultline. Diff several occurrences of the same Faultline error group to see what varies between them.

How to use this skill

Skill file

Compare occurrences of the same group to spot which inputs vary between successes and failures.

  1. Parse $ARGUMENTS: first token is the group id, optional second token is how many occurrences to compare (default 3, max 10).
  2. Call recent_occurrences with group_id: <id> and limit: <count> to get a list of occurrence ids.
  3. For each id, call get_occurrence to pull the full payload (backtrace, locals, request params, headers).
  4. Diff across the occurrences and surface what changes:
  1. Render a compact comparison: per varying field, show the value from each occurrence.
  2. Lead with the highest-signal difference. Captured locals usually beat request params for diagnosing what triggers the bug.

If only one occurrence exists for the group, say so — there's nothing to compare. Filtered values will appear as [FILTERED] and shouldn't be flagged as differences (Rails.application.config.filter_parameters + config.sanitize_fields).

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.