sweep-connect

Detect orphaned Connect artifacts and generate prioritized triage reports.

1|2|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/dimagi-internal/ace --skill sweep-connect
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sweep-connect
Source: https://github.com/dimagi-internal/ace/tree/main/skills/sweep-connect
Command: npx skills add https://github.com/dimagi-internal/ace --skill sweep-connect

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Connect systems accumulate orphaned programs, opportunities, payment units, and unaccepted FLW invites that are no longer referenced in the current project live set, creating clutter and confusion for users. Manually identifying and cleaning up these artifacts is time-consuming, and many artifact types lack built-in upstream delete paths, making consistent cleanup difficult.

Core Features & Use Cases

  • Orphan Detection: Diffs Connect inventory against the current live set to identify all unlinked programs, opportunities, payment units, and invites.
  • Prioritized Triage: Scores orphaned artifacts to rank them by urgency, generating both human-readable and machine-readable triage reports.
  • Safe Cleanup: Soft-deactivates approved orphan opportunities and deletes unaccepted FLW invites automatically, while surfacing programs and payment units that require manual deletion via the Connect admin UI due to upstream API limitations.
  • Use Case: After a Connect opportunity refresh, use this skill to quickly clean up leftover artifacts from decommissioned opportunities, reducing system clutter and preventing field staff from accessing outdated resources.

Quick Start

Use the sweep-connect skill to generate a triage report of all orphaned Connect artifacts for your current project live set.

Frequently Asked Questions about sweep-connect

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up orphaned Connect opportunities and unaccepted FLW invites after a system refresh?

To clean up orphaned Connect opportunities and unaccepted FLW invites, you can automate a sweep that diffs your Connect inventory against the current project live set. This identifies unlinked artifacts and generates structured triage reports for safe review and soft-deactivation.

What is orphaned artifact triage in a Connect system maintenance workflow?

Orphaned artifact triage is the process of identifying Connect programs, payment units, and invites missing from the current live set. It scores these artifacts by urgency to prioritize cleanup and generates structured reports for human review.

Can I automatically delete unaccepted FLW invites and soft-deactivate orphan opportunities in Connect?

Yes, you can automatically delete unaccepted FLW invites and soft-deactivate approved orphan opportunities using execute mode. Strict guardrails prevent unauthorized changes while approved mutations handle the cleanup safely.

Does Connect orphan cleanup support a report-only mode for reviewing artifacts before deletion?

Yes, Connect orphan cleanup supports a report-only mode for reviewing artifacts before deletion. Recommend mode generates triage reports without making mutations, ensuring safe review prior to executing approved cleanup actions.

Why do some orphaned Connect programs and payment units require manual deletion?

Some orphaned Connect programs and payment units require manual deletion via the Connect admin UI due to upstream API limitations. The skill surfaces these artifacts in triage reports but cannot delete them automatically.