Skip to content

Make the Crabbox skill portable and sync the ClawSweeper snapshot #134

Description

@hxy91819

Problem

openclaw/agent-skills is the canonical source for the shared Crabbox skill, but downstream repositories can retain stale, hand-copied snapshots:

This leaves no deterministic provenance, drift check, or reviewed update path for downstream snapshots.

Scope

This issue specifically tracks making the canonical Crabbox skill safely consumable by openclaw/clawsweeper and automating the checked-in ClawSweeper snapshot at .agents/skills/crabbox. openclaw/openclaw is the reference consumer whose snapshot currently matches canonical; it is not the primary downstream target of this issue.

Goal

Keep one portable canonical Crabbox skill and provide deterministic, reviewable synchronization into the zero-setup openclaw/clawsweeper repository.

Proposed work

  • Separate shared Crabbox policy from repository-specific commands, or make command selection portable across supported repositories.
  • Define a machine-readable downstream provenance/pin containing the canonical repository, path, and exact commit SHA.
  • Provide a deterministic sync command that copies the canonical skill at the pinned SHA.
  • Add downstream CI that verifies the checked-in snapshot matches its pinned SHA rather than moving main.
  • Add an updater workflow that detects a newer canonical revision and opens a downstream PR; do not push directly to downstream default branches.
  • Synchronize and validate the snapshot in openclaw/clawsweeper; confirm openclaw/openclaw remains compatible as the reference consumer.
  • Document ownership, compatibility review, rollback, and how downstream repositories intentionally opt into a repo-specific override when exact synchronization is impossible.

Acceptance criteria

  • The canonical skill remains the only hand-edited source of shared Crabbox guidance.
  • A downstream snapshot can be reproduced from its recorded canonical SHA.
  • Downstream CI fails on unrecorded drift but does not fail merely because canonical main advanced.
  • Upstream updates create reviewable downstream PRs with the old and new canonical SHAs.
  • Every command and referenced path in a synchronized snapshot is valid for each consumer, or repository-specific material lives outside the shared snapshot.
  • Automation uses least-privilege credentials and cannot directly merge cross-repository changes.

Non-goals

  • Direct cross-repository writes to a default branch.
  • Treating local-container execution as equivalent to required remote proof.
  • Maintaining independent hand-edited copies of the same shared policy.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:securityThis issue is about security boundaries, credentials, authz, sandboxing, or sensitive data.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions