sweep-labs

Identify orphaned Connect Labs artifacts not referenced by current opportunities.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Connect Labs environments accumulate orphaned workflows, pipelines, synthetic opportunities, solicitations, funds, reviews, and responses that are no longer referenced by any active Connect opportunity, creating clutter, increasing the risk of accidental use of outdated assets, and complicating compliance and audit processes.

Core Features & Use Cases

  • Orphan Detection: Diffs Labs inventory against the current live set of Connect opportunities to identify all unlinked artifacts, scoring each by confidence to prioritize high-impact cleanup targets.
  • Safe Cleanup Workflow: Supports a report-only recommend mode for triage and a controlled execute mode that only mutates explicitly human-approved items, with built-in guardrails for cascade deletions and in-use asset protection.
  • Use Case: ACE operators managing Connect opportunity lifecycles can use this skill to safely remove unused Labs assets after an opportunity is closed out, reducing environment clutter without risking deletion of active or engagement-containing records.

Quick Start

Invoke the sweep-labs skill to scan your Connect Labs environment for orphaned artifacts, review the generated triage report, and execute approved deletions after human confirmation.

Frequently Asked Questions about sweep-labs

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

FAQPage Schema
How do I clean up orphaned workflows and pipelines in Connect Labs?

To clean up orphaned Connect Labs workflows and pipelines, the sweep-labs skill diffs your Labs inventory against active Connect opportunities to identify all unlinked artifacts. It scores each artifact by confidence to prioritize high-impact cleanup targets for safe removal.

What are orphaned artifacts in Connect Labs and why do they cause compliance issues?

Orphaned artifacts in Connect Labs are workflows, pipelines, solicitations, funds, reviews, and responses no longer referenced by any active Connect opportunity. They create clutter, increase the risk of using outdated assets, and complicate compliance and audit processes.

Can I run a report-only scan of Connect Labs artifacts before deleting anything?

Yes, you can run a report-only recommendation mode to triage orphaned Connect Labs artifacts before making any changes. This mode identifies unlinked workflows and pipelines for review, ensuring controlled execution mode only mutates explicitly human-approved items.

Do I need a live-set file to identify orphaned Connect Labs artifacts?

Yes, identifying orphaned Connect Labs artifacts requires access to the live-set file generated by the sweep-live-set skill. You also need valid Labs MCP credentials and must comply with the orchestrator's human-confirmation gate for all deletion operations.

What guardrails prevent accidental deletion of active Connect Labs assets?

Built-in guardrails protect active Connect Labs assets by enforcing cascade deletion protections and in-use asset checks. The controlled execute mode only mutates explicitly human-approved items after passing the orchestrator's human-confirmation gate, preventing accidental removal of engagement-containing records.

When should I not use an automated pipeline cleanup for Connect opportunities?

You should not use automated pipeline cleanup for Connect opportunities when bypassing the human-confirmation gate, as the orchestrator requires explicit approval for all mutations. Additionally, without a valid live-set file, the sweep cannot accurately diff Labs inventory against active opportunities.