Xpersona
C

cc-plugin

CLAWHUB · Unverified

Claude Code plugin lifecycle management. cache - clean old cache versions (cleanup only — NOT for cache miss diagnosis) [cache.md], clustering - skill affinity scoring (coupling/dep/hook-ownership) → plugin bundle membership [clustering.md], create - plugin authoring guide (structure, plugin.json, components) [create.md], dev-reflect - reflect local dev repo into marketplace clone for pre-push testing [dev-reflect.md], hud - OMC HUD statusline (omcHud elements, omcLabel, wrapper sed fallback) [hud.md], marketplace - clone/list/update marketplace repos [marketplace.md], troubleshoot - cache miss/error, install fail, cache sync, HUD diagnostics — ALL plugin errors route here [troubleshoot.md]. "plugin", "marketplace", "plugin install", "plugin not installed", "cache miss", "cache error", "plugin error", "load error", "reload errors", "dev reflect", "plugin clustering", "bundle skills", "skill affinity", "OMC HUD", "omcHud", "omcLabel", "statusline", "[OMC#" triggers.

62
Rank
84
Safety
2.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 2.1K downloads reported by the source. Last updated 10/9/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:cc-plugin
  1. Install using `clawhub skill install s17ay1v6v88r2m102pvvc44gz183qcrm:cc-plugin` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/drumrobot/cc-plugin before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-drumrobot-cc-plugin/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,569 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
metadata:
  author: es6kr
  version: "0.1.0"
name: cc-plugin
description: |
  Claude Code plugin lifecycle management.
  cache - clean old cache versions (cleanup only — NOT for cache miss diagnosis) [cache.md],
  clustering - skill affinity scoring (coupling/dep/hook-ownership) → plugin bundle membership [clustering.md],
  create - plugin authoring guide (structure, plugin.json, components) [create.md],
  dev-reflect - reflect local dev repo into marketplace clone for pre-push testing [dev-reflect.md],
  hud - OMC HUD statusline (omcHud elements, omcLabel, wrapper sed fallback) [hud.md],
  marketplace - clone/list/update marketplace repos [marketplace.md],
  troubleshoot - cache miss/error, install fail, cache sync, HUD diagnostics — ALL plugin errors route here [troubleshoot.md].
  "plugin", "marketplace", "plugin install", "plugin not installed",
  "cache miss", "cache error", "plugin error", "load error", "reload errors",
  "dev reflect", "plugin clustering", "bundle skills", "skill affinity",
  "OMC HUD", "omcHud", "omcLabel", "statusline", "[OMC#" triggers.
---

# Plugin

Claude Code plugin lifecycle management: create, install, update, cache, troubleshoot.

## Topics

| Topic | Description | Guide |
|-------|-------------|-------|
| cache | **Cleanup only** — clean old plugin cache versions and temp directories. **NOT for "cache miss" or load errors** — use troubleshoot instead | [cache.md](./cache.md) |
| clustering | Score skill-to-skill affinity (coupling / shared external dep / hook-ownership gate) and recommend plugin bundle membership. Feeds into `create` | [clustering.md](./clustering.md) |
| create | Plugin authoring guide (structure, plugin.json, components) | [create.md](./create.md) |
| dev-reflect | Reflect a local dev source repo's plugin/skill changes into the registered marketplace clone for local testing before commit/push (helper: `scripts/dev-reflect.sh`) | [dev-reflect.md](./dev-reflect.md) |
| hud | OMC HUD statusline configuration: omcHud elements, omcLabel toggle, wrapper sed fallback, version compatibility | [hud.md](./hud.md) |
| marketplace | Clone, list, and update marketplace repositories | [marketplace.md](./marketplace.md) |
| troubleshoot | **All plugin errors** — cache miss, load errors, `/reload-plugins` errors, `/doctor` failures, installation failures, cache sync, HUD diagnostics | [troubleshoot.md](./troubleshoot.md) |

## Routing rule (HARD STOP)

| User says | Topic |
|-----------|-------|
| "cache miss", "cache error", "load error", "reload errors", "plugin not loading", "plugin not installed" | **troubleshoot** (NOT cache) |
| "cache cleanup", "old versions", "disk space", "remove temp_git_*" | cache |

`cache.md` only owns deletion of stale versions. Any diagnostic of "why isn't this plugin working" — including the literal phrase "cache miss" — routes to `troubleshoot.md`.

## Paths

```
Marketplaces: ~/.claude/plugins/marketplaces/
Cache:        ~/.claude/plugins/cache/<marketplace>/<plugin>/<ve

_meta.json

{
  "ownerId": "kn74k8yfvftx6f062qa8fzyd8h8373jd",
  "slug": "cc-plugin",
  "version": "0.8.1",
  "publishedAt": 1791273332334
}

cache.md

# Cache Cleanup

Clean old plugin cache versions and temporary git directories.

> **⚠️ This topic is cleanup-only.**
> If the user says "cache miss", "cache error", "load error", or any plugin diagnostic phrase — **stop and route to [troubleshoot.md](./troubleshoot.md) instead**. cache.md does not diagnose anything; it only deletes stale versions.

## Usage

```bash
resources/cache-cleanup.sh [--dry-run] [--verbose]
```

- `--dry-run`: Preview deletions without removing
- `--verbose`: Show detailed output

> **Platform**: cross-platform (macOS, Linux, WSL). The script tries BSD-style birthtime
> (`stat -f "%B"`) first, falls back to Linux birthtime (`stat -c "%W"`, often `0` on filesystems
> that don't track it), then falls back again to modification time (`stat -c "%Y"`) so version
> ordering is still correct everywhere. (This note previously said "macOS only" — that was stale;
> the fallback chain is already implemented in `resources/cache-cleanup.sh`.)

## What It Cleans

- **Old versions**: Keeps only the latest version per plugin in `~/.claude/plugins/cache/<marketplace>/<plugin>/`
- **Temp git dirs**: Removes `temp_git_*` directories in cache root

## When to Use

- After plugin updates (old versions accumulate)
- When disk space is needed
- Periodically as maintenance

CHANGELOG.md

# Changelog

## [0.8.1](https://github.com/es6kr/skills/compare/cc-plugin-v0.8.0...cc-plugin-v0.8.1) (2026-10-04)


### Bug Fixes

* **cc-plugin:** clarify temp_git_* lives at cache root, not nested in &lt;marketplace&gt; ([680aecd](https://github.com/es6kr/skills/commit/680aecdd06e5f753eb549aee5a2a4e147fe3d86a))
* **cc-plugin:** document WSL temp_git_* update-swap failures, fix stale platform note ([668406e](https://github.com/es6kr/skills/commit/668406e7501eaf1534d573fcf89805e167b3bf7a))


### Documentation

* **cc-plugin:** document WSL temp_git_* update-swap failures, fix stale platform note ([9e7493d](https://github.com/es6kr/skills/commit/9e7493d13e69f46eadcdb1b90194e8c5cebd1315))

## [0.8.0](https://github.com/es6kr/skills/compare/cc-plugin-v0.7.2...cc-plugin-v0.8.0) (2026-09-24)


### Features

* **fix-plan:** add pipeline log and hook integrity check scripts ([e93a432](https://github.com/es6kr/skills/commit/e93a4323b54a311fcda6855163ffe14c2c146412))


### Bug Fixes

* **cc-plugin:** restore missing skills to es6kr plugin in marketplace manifest ([6ab94b0](https://github.com/es6kr/skills/commit/6ab94b0278d626012be3378d44c634621be1fd8b))

## [0.7.2](https://github.com/es6kr/skills/compare/cc-plugin-v0.7.1...cc-plugin-v0.7.2) (2026-09-20)


### Bug Fixes

* address code review feedback ([0c08bfb](https://github.com/es6kr/skills/commit/0c08bfbf2b5b737fdce685c8f15ead56c64290f4))
* **cc-plugin:** eliminate eval-based command injection in dev-reflect.sh ([097aafe](https://github.com/es6kr/skills/commit/097aafea4adcdf39df8c4825d69ea83a66fbd4fa))
* **cc-plugin:** sync dev-reflect.sh changes into cached plugin version dirs ([#510](https://github.com/es6kr/skills/issues/510)) ([28824f6](https://github.com/es6kr/skills/commit/28824f643b32ab05b766cdf99ddb626ffc5e3f95))

## [0.7.1](https://github.com/es6kr/skills/compare/cc-plugin-v0.7.0...cc-plugin-v0.7.1) (2026-09-18)


### Bug Fixes

* **cleanup:** make the session-end report table self-sufficient ([#487](https://github.com/es6kr/skills/issues/487)) ([c4a0255](https://github.com/es6kr/skills/commit/c4a02557fb8de3b32cf337c549f62535dabf824b))

## [0.7.0](https://github.com/es6kr/skills/compare/cc-plugin-v0.6.2...cc-plugin-v0.7.0) (2026-09-06)


### Features

* **cc-plugin:** implement post-commit dev-reflect and cache drift guard ([3f78c05](https://github.com/es6kr/skills/commit/3f78c054e7c00e7c33730d3378c5aff6575566e4))
* **hooks:** migrate standalone hooks into plugin resources and fix test regressions ([d7b0060](https://github.com/es6kr/skills/commit/d7b0060ddffdd4a7b5f4f9751039ee9a79e049db))

## [0.6.2](https://github.com/es6kr/skills/compare/cc-plugin-v0.6.1...cc-plugin-v0.6.2) (2026-09-01)


### Bug Fixes

* staging branch next-fix sync into main ([bbbd460](https://github.com/es6kr/skills/commit/bbbd460bf3b6b1cba4c6d07b3641afa734c89860))

## [0.6.1](https://github.com/es6kr/skills/compare/cc-plugin-v0.6.0...cc-plugin-v0.6.1) (2026-08-29)


### Bug Fixes

* **cc-plugin:** remove duplicate cache-

clustering.md

# Plugin Clustering Recommendation

Score the **affinity between skills** across the ecosystem and recommend which
skills should be bundled into a shared plugin. High mutual affinity → ship
together; low affinity → keep standalone. The output of this topic feeds
directly into the [create](./create.md) topic (which becomes the `plugins/<name>`
membership list) and the [marketplace](./marketplace.md) topic (where bundled
plugins are published).

## When to Use

- "Which of these skills belong in the same plugin?"
- Before publishing a plugin bundle — decide membership by signal, not by guesswork
- After a cluster of skills grows cross-references organically and you want to formalize the boundary

**Pre-flight (MANDATORY)**: before authoring any new scoring/clustering tooling
here, run a remote ecosystem search via `Skill("skill-kit", "route")` Step 2b
(this skill's own `find` topic / ClawHub) for an existing affinity/clustering
skill. Reuse over rebuild applies to this capability too.

## Two Modes — Discovery vs Candidate-set Audit

Clustering is invoked in two different shapes. The scoring model is the same;
the *scope of iteration* and the *handling of references that point outside
that scope* differ. Pick the mode before measuring.

| Mode | Input | Iteration scope | What to do with references to skills outside the scope |
|------|-------|-----------------|-------------------------------------------------------|
| **Discovery** | None — scan all installed skills | All `~/.claude/skills/*/` | N/A (scope = universe; nothing is "outside") |
| **Candidate-set audit** | A given list of N skills (e.g., a dependency-diagram subgraph, a proposed plugin's tentative membership) | The N candidates | **Surface separately as cluster-expansion candidates and external-bundle signals** (see "Outside-set references" below). Do not silently drop them |

In audit mode, an edge from candidate A to a non-candidate skill X is a real
signal — it means either X belongs in the cluster (expand the candidate set) or
X is an external dependency the bundle must track (Dim 2-style). Dropping these
edges by restricting both loops to the candidate set produces an
under-recommended cluster.

## Scoring Model

Three dimensions feed a pairwise affinity score. The first two pull skills
*together*; the third gates whether bundling is *worth it at all*.

| # | Dimension | Weight | Pulls toward | Signal source |
|---|-----------|--------|--------------|---------------|
| 1 | Cross-skill topic coupling | High | Bundling A+B | Directed topic→topic references between two skills (`Skill("B", "topic")`, `B/topic.md`, `/B <topic>` inside A's topic files) |
| 2 | Shared external dependency | Medium | Bundling A+B (and/or co-locating the dependency) | `depends-on` overlap, esp. on external skills/plugins (e.g., `superpowers`). Two skills depending on the same external surface have aligned release/version needs |
| 3 | Command + hook footprint | Low (gate, not pull) | Whether *any* plugin is

Sponsored

Ads related to cc-plugin and adjacent AI workflows.