Home / Market / skill-import-harvest

skill-import-harvest

Use when needed functionality may already exist online: search, quality-check, harvest data.

skill★ 00 dlclawhubMIT-0Install in CosmosUpstream Source

Documentation & Preview

--- name: skill-import-harvest description: "Use when needed functionality may already exist online: search, quality-check, harvest data." version: 1.3.0 author: Maxwell McClure license: MIT-0 metadata: hermes: tags: [clawhub, skills, import, harvest, search, quality, workflow] related_skills: [skill-import-audit, skill-export-audit]

---

When the user needs functionality or domain knowledge, what already exists in the community registry is the cheapest source — harvest it BEFORE building, but only as approved: explicit discovery requests run the full workflow immediately; everywhere else (about to build, stuck on a hard problem) the workflow's job is to SUGGEST discovery as an option and get the user's go-ahead before any registry query goes out. Quality-check every candidate with the same discipline as skill-import-audit — but the output is data with attribution, not an installed skill. A candidate that perfectly reflects the need ends in an install question to the user; nothing is installed without their fresh explicit approval, and any install then goes through the full skill-import-audit.

When to Use

Step 1 — Requirements & dimensions

Extract from the request: the capability dimensions (e.g. security, portability, correctness) and the success bar ("perfectly reflects our need" = covers ALL of them). The dimensions become the columns of the comparison matrix. Write them down first — searching without columns is how you end up with a list instead of a verdict.

Query hygiene (before any query leaves the machine): the search terms must be minimal, generic capability/dimension words — strip project names, internal identifiers, secrets, personal information, and proprietary details before searching. In Suggested mode the terms shown in the permission request ARE what would be transmitted — if a meaningful search would require transmitting sensitive context, state exactly what would be sent and obtain explicit approval before querying; if it cannot be stripped without changing the meaning, do not search. Topics the user names as exclusions must not appear in any query.

Step 2 — Breadth search (the registry)

Search every registry, not just ClawHub — an official-tier candidate (sometimes the exact name of the capability sought) can beat every community option, and a ClawHub-only breadth search misses it. Routes: the official Hermes catalog via manage_catalog (action=search, kind=skill) on desktop surfaces or hermes skills search <q> on terminal surfaces; then ClawHub.

clawhub search <query> — run 8–12 varied query terms: synonyms + dimension words ("skill audit", "security audit", "skill vet", "malware scan", "supply chain", "trust skill" …). One query misses whole families. Result rows are slug @owner displayName installs/60d; slugs can be duplicated across owners — duplicates appear as separate rows, and clawhub inspect has no --owner flag: use the @owner/slug form for ambiguous slugs. Install counts signal community trust, not correctness. When the clawhub CLI is not on PATH, DEFAULT to the web path — clawhub.ai/<owner>/skills/<slug> renders the full SKILL.md, and a web_search with site:clawhub.ai is a workable breadth path — do NOT install the CLI as a reflex: registry search works without it. Installing any prerequisite tool (a pinned version, user-scoped scope, never a blind global install) is a system change in its own right and requires the same fresh explicit approval as the install gate: name the package, pinned version, scope, and that package installs can run lifecycle scripts. Permission to search registries is not permission to install tooling.

Step 3 — Triage (depth without context bloat)

Per shortlisted candidate: clawhub inspect <@owner/slug> --json (the structured moderation object — TOP-LEVEL, not under skill — plus owner, latestVersion, and the full stored SKILL.md in skill.description; moderation can be entirely absent with every verdict field null — that means UNSCANNED/unknown, never read it as clean) and --files (file listing with hashes → prompt-only vs script-driven; note the text "Security" line can DISAGREE with the JSON moderation.verdict for the same check — the JSON is the structured record). Do not read all candidate descriptions into context: dump each normalized skill.description to a scratch file (one === name === section per skill), then grep the dimension keywords per section and emit a Y/– capability matrix. The empty columns of the matrix are the argument for building.

Step 4 — Quality check (the import-audit passes, data not code)

For every claim you intend to keep, run the import-audit discipline — but you are harvesting data, not installing a skill:

Step 5 — Harvest report

Present: per candidate — coverage per dimension, what was harvested (attributed), what was rejected (and why); then the gap analysis (the dimensions no candidate covers). Close with the options: (a) adopt an existing skill that fully covers the need, (b) hybrid — build our own incorporating the harvested data, (c) build from scratch.

Step 6 — Install gate (mandatory pause)

Only path (a) leads to installation, and only by asking the user: name the exact skill, version, and owner — "install <slug> @vX.Y.Z by @owner?" — and wait for fresh explicit approval. A prior "search for skills" request is NOT install authorization (the same discipline as the export stop-boundary). On approval, the install proceeds through the full skill-import-audit (provenance → security → portability → correctness → verdict): harvest triage is a pre-filter, not a substitute for the install audit. Nothing from the candidate touches skills/ until that verdict is keep.

Delegation — run the search and triage in a subagent (optional)

Steps 2–4 are the context-heavy core (8–12 searches, many inspect payloads, a 70KB candidate dump). Delegate them to a subagent: the child loads this skill, runs Steps 2–4 strictly read-only (no Step 6 install gate — that is a user decision and stays in the main session; NO package or tool installation either — if the clawhub CLI is missing the child uses the web path, and reports the missing prerequisite to the parent rather than installing it), and returns a compact report: the dimension matrix, per-candidate keep/reject with attribution, the gap analysis, and the (a)/(b)/(c) options — with every candidate's full text in one scratch evidence file, never in the returned summary. The parent reads the evidence and presents the Step 5 report and options; the Step 6 gate always happens in the main session, on the presented evidence. When NOT to delegate: a single-query, single-candidate check — run it inline.

Context management

The Step 3 candidate dump file is the source of truth: every matrix cell and harvest decision must be re-derivable from it alone. If this run continues from a compaction summary, re-derive the matrix from the dump file — never from the summary — and re-present the options: a harvest report the user never saw is not a report. For long harvests you may suggest to the user a manual /compress at a step boundary (a user command, not a tool the agent can call).

Pitfalls