Skip to content

feat(clawhub): Add OpenClaw ClawHub skill for Repomix#1279

Merged
yamadashy merged 3 commits intomainfrom
worktree-openclaw
Mar 21, 2026
Merged

feat(clawhub): Add OpenClaw ClawHub skill for Repomix#1279
yamadashy merged 3 commits intomainfrom
worktree-openclaw

Conversation

@yamadashy
Copy link
Copy Markdown
Owner

@yamadashy yamadashy commented Mar 21, 2026

Add a Repomix skill for OpenClaw's ClawHub skill registry, enabling OpenClaw users to pack and analyze codebases via messaging platforms (Slack, WhatsApp, Telegram, etc.).

The skill has already been published to ClawHub and is available for installation: clawhub install repomix

What is OpenClaw?

OpenClaw is an open-source autonomous AI agent (327K+ GitHub stars) that connects LLMs to 20+ messaging platforms. It natively supports MCP and has a public skill registry (ClawHub) with 13,700+ community skills.

What this skill does

  • Packs entire codebases into AI-friendly single files using Repomix CLI
  • Supports both local directories and remote GitHub repositories
  • Includes options for output format (XML, Markdown, Plain, JSON), compression, and file filtering
  • Provides metrics on files, size, and estimated token count
  • Built-in security checks to exclude sensitive files

File added

  • .agents/clawhub/SKILL.md — OpenClaw ClawHub skill definition (YAML frontmatter + Markdown instructions)

Checklist

  • Run npm run test
  • Run npm run lint

Open with Devin

yamadashy and others added 2 commits March 21, 2026 19:29
OpenClaw (327K+ GitHub stars) natively supports MCP and has a public
skill registry (ClawHub) with 13,700+ skills. This adds a Repomix
skill package ready for ClawHub publication, enabling OpenClaw users
to pack and analyze codebases via messaging platforms (Slack, WhatsApp,
Telegram, etc.).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai

This comment has been minimized.

@gemini-code-assist

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 21, 2026

⚡ Performance Benchmark

Latest commit:644d43d
Status:✅ Benchmark complete!
Ubuntu:2.46s (±0.02s) → 2.49s (±0.05s) · +0.03s (+1.2%)
macOS:1.50s (±0.15s) → 1.53s (±0.16s) · +0.02s (+1.5%)
Windows:3.27s (±0.35s) → 3.26s (±0.13s) · -0.01s (-0.4%)
Details
  • Packing the repomix repository with node bin/repomix.cjs
  • Warmup: 2 runs (discarded)
  • Measurement: 10 runs / 20 on macOS (median ± IQR)
  • Workflow run

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.18%. Comparing base (c2e6db2) to head (644d43d).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1279   +/-   ##
=======================================
  Coverage   87.18%   87.18%           
=======================================
  Files         115      115           
  Lines        4324     4324           
  Branches     1002     1002           
=======================================
  Hits         3770     3770           
  Misses        554      554           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new OpenClaw ClawHub skill for Repomix, which provides instructions for an AI agent on how to use the repomix CLI. The documentation is comprehensive and well-structured. I've provided a few suggestions to improve the consistency and clarity of the examples and instructions, ensuring the AI agent can follow them without ambiguity.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 21, 2026

Deploying repomix with  Cloudflare Pages  Cloudflare Pages

Latest commit: 644d43d
Status: ✅  Deploy successful!
Preview URL: https://17b00eab.repomix.pages.dev
Branch Preview URL: https://worktree-openclaw.repomix.pages.dev

View logs

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
.agents/clawhub/SKILL.md (1)

152-155: Add private-repo/auth troubleshooting for remote mode.

A common remote failure mode is missing auth for private repos (or API/rate-limit constraints). Add a short bullet to make troubleshooting complete.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.agents/clawhub/SKILL.md around lines 152 - 155, Add a short troubleshooting
bullet about authentication and private repos under the existing "Network issues
(remote)" section in .agents/clawhub/SKILL.md: mention missing auth/credentials
for private repositories, API token or SSH key issues, and rate-limit/auth
errors as a common cause and suggest verifying credentials, adding appropriate
tokens/keys, and testing access (or using a local clone) to resolve remote
failures.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.agents/clawhub/SKILL.md:
- Around line 54-60: Update the SKILL.md guidance that currently hardcodes
`/tmp` to use a cross-platform temp-path placeholder and OS-specific variants:
replace occurrences of `/tmp/<name>-analysis.xml` (e.g., in the "Pack a Local
Directory" example) with a neutral token like `<temp-dir>/<name>-analysis.xml`
and add brief alternate examples or notes showing Unix/macOS (e.g., $TMPDIR or
/tmp) and Windows (e.g., %TEMP%) forms; ensure you change the other instance
referenced (around lines 80-85) as well so the doc no longer assumes a
`/tmp`-only environment.
- Around line 110-122: The grep examples in SKILL.md use a hardcoded
/tmp/analysis.xml which is inconsistent with earlier examples; update each
command that references /tmp/analysis.xml (the four grep blocks shown) to use a
consistent placeholder like <output-file> instead, so examples match earlier
output conventions and avoid misleading users; keep the same flags and patterns
(e.g., grep -iE, -A/-B context, patterns like "export.*function|export.*class",
"authentication|auth", "router|route|endpoint|api",
"model|schema|database|query") but replace the filename token with
<output-file>.

---

Nitpick comments:
In @.agents/clawhub/SKILL.md:
- Around line 152-155: Add a short troubleshooting bullet about authentication
and private repos under the existing "Network issues (remote)" section in
.agents/clawhub/SKILL.md: mention missing auth/credentials for private
repositories, API token or SSH key issues, and rate-limit/auth errors as a
common cause and suggest verifying credentials, adding appropriate tokens/keys,
and testing access (or using a local clone) to resolve remote failures.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9d45266d-3fd3-4f64-9a5b-7d56dde10ec9

📥 Commits

Reviewing files that changed from the base of the PR and between c2e6db2 and a7e7928.

📒 Files selected for processing (1)
  • .agents/clawhub/SKILL.md

@claude

This comment has been minimized.

- Add --output to local directory and file filter examples
- Use <output-file> placeholder in grep examples for consistency
- Add Windows %TEMP% note for cross-platform compatibility

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@claude
Copy link
Copy Markdown
Contributor

claude bot commented Mar 21, 2026

PR Review (Updated) — feat(clawhub): Add OpenClaw ClawHub skill for Repomix

Status: Previous feedback addressed, looks good to merge ✅

The latest commit (644d43d) addressed the key issues raised in prior reviews:

  • ✅ Grep examples now use <output-file> placeholder (was hardcoded /tmp/analysis.xml)
  • ✅ Local directory examples now include --output flag
  • ✅ Windows %TEMP% noted for cross-platform compatibility

Remaining minor item (non-blocking)

Auth troubleshooting for private repos (CodeRabbit nitpick)

Lines 152-155: The error handling section could mention authentication failures for private repos as a common remote failure mode. This was flagged as a nitpick by CodeRabbit and is not blocking.

No new issues found

The file is well-structured, the YAML frontmatter follows a reasonable schema, and the workflow documentation is clear and actionable for an AI agent consumer.

Premortem Analysis

Scenario Risk Notes
@latest pulling breaking changes Low Acceptable for a skill that's meant to always use current CLI
Large repo exhausting disk in /tmp Low --compress guidance mitigates; temp dirs are typically cleaned
Skill becoming stale as CLI evolves Low Version field allows tracking; CLI is backwards-compatible

No blockers remaining.


Reviewed by Claude (updated review after fix commit)

@yamadashy yamadashy merged commit 3d2292e into main Mar 21, 2026
62 checks passed
@yamadashy yamadashy deleted the worktree-openclaw branch March 21, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant