Skip to content
Back to skills

Commands

ASecurity

Normalize a local skill, match it to the collection, tier it community/hold, and stage a reviewable proposal PR (you never auto-open it — a maintainer merges).

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentspythongobashgitapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add HolobiomicsLab/asb-skill-collections --skill commands --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commands?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commands
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/holobiomicslab-commands-asb-skill-collections/badge)](https://www.skillsdirectory.com/skills/holobiomicslab-commands-asb-skill-collections)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Normalize a local skill, match it to the collection, tier it community/hold, and stage a reviewable proposal PR (you never auto-open it — a maintainer merges).
argument-hint: "[path-to-local-SKILL.md] [collection-dir]"
---
You are helping a contributor turn a local skill into a **community-tier proposal**
staged on this collection's `proposals/` rail. You do the matching, grounding, and
normalization; the deterministic file-writing is `scripts/propose_skill.py`. You
**never** open the PR — you hand the contributor the exact commands to review and
fire themselves, and a maintainer makes the final merge decision.

Read first: [`governance/COMMUNITY_SKILLS.md`](../../../../governance/COMMUNITY_SKILLS.md)
(curation model), [`governance/PROVENANCE_TIERS.md`](../../../../governance/PROVENANCE_TIERS.md)
(the `community` tier + its `related_skills` invariant), and
[`governance/LICENSE_TIERS.md`](../../../../governance/LICENSE_TIERS.md) (set
`license_tier` from the tool the skill grounds on).

Inputs: `$ARGUMENTS` — the path to the local `SKILL.md` to propose (required) and
the collection dir (default `collections/metabolomics/v2`).

Steps:

1. **Read the local skill.** Load the candidate `SKILL.md`. Note its `name`,
   `description`, EDAM block, and the tool(s) it grounds on.

2. **Normalize.** Validate the frontmatter against the same gates a published skill
   must pass (description prefix ∈ {`Use when`, `Reference for`, `Explains`,
   `Decision support for`}, 50–300 chars, no marketing terms; EDAM IRIs start
   `http://edamontology.org/`; valid `license_tier` ∈ {open, noncommercial,
   restricted}):
   `python -m scripts.normalize_skill --skill-md "<path>"`
   If it reports violations, surface them and help the contributor fix the prose —
   do **not** fabricate a description or EDAM IRIs.

3. **Match against the collection — two questions, two rankings.** Use the
   matcher, a serverless lexical (TF-IDF) ranker over the collection's indexes;
   no server required. *Relatedness* and *duplication* are asked separately
   because they want different evidence: the tool inventory is signal for the
   first and noise for the second (skills harvested from one paper inherit that
   paper's whole tool list, so with tools in the document the top of the ranking
   measures shared provenance, not shared meaning).
   ```python
   import json
   from scripts.skill_match import (match_skills, match_tools, near_duplicates,
                                    duplicate_candidates, DUPLICATE_THRESHOLD)
   skills_index = json.load(open("<collection-dir>/skills_index.json"))
   tools_index  = json.load(open("<collection-dir>/tools_index.json"))
   text  = "<name + description + tool names>"
   prose = "<name + description>"                           # no tool names here

   # (a) relatedness — fills related_skills / tools_used, tool inventory included
   skills = match_skills(text, "<collection-dir>")          # [{slug, score, backend}]
   tools  = match_tools([s["slug"] for s in skills], skills_index, tools_index, text=text)

   # (b) duplication — scored on the tool-free document, its own scale
   dups = near_duplicates(duplicate_candidates(prose, "<collection-dir>"),
                          threshold=DUPLICATE_THRESHOLD)
   ```
   The two score scales are **not** comparable; never carry a threshold from one
   ranking to the other. `DUPLICATE_THRESHOLD` (0.60) is read off the measured
   distribution of this exact call — re-proposing each of the collection's own
   skills from its prose, 1.5% of proposals carry a warning. It is advisory, not
   a gate.

   Surface the suggested `related_skills` (matched slugs) and `tools_used` (tool
   slugs) for the contributor to confirm. If `near_duplicates` flags anything,
   **warn** that the skill may overlap an existing one and suggest **annotating or
   merging** into that skill (via [`CONTRIBUTING.md`](../../../../.github/CONTRIBUTING.md))
   rather than adding a duplicate — then let the contributor decide. A flag is a
   question, never a refusal.

4. **Ground (optional, best-effort) — this is where Perspicacité fits.** Propose a
   **candidate source DOI** for the skill's claims (from the contributor, the tool's
   own paper, or a literature search), then verify it executably against the real
   per-DOI KB API with `scripts/ground_skill.py` — it ensures the
   `asb-paper-<doi-slug>` KB and asks `/api/chat` whether the paper *supports* the
   skill, returning a structured `{supported, confidence, evidence}` verdict:
   ```bash
   python -m scripts.ground_skill --doi "<candidate-DOI>" \
       --skill-md "<normalized-SKILL.md>"
   ```
   This **never fails the flow**: if Perspicacité is unreachable (or the paper does
   not support the claims) it returns `{"supported": false, "confidence": "low"}` and
   you proceed **ungrounded** — say so. A community skill is **not** required to
   derive from a paper. Only when the verdict is `supported: true` with
   `confidence` ∈ {`high`, `medium`} (and you've eyeballed the returned `evidence`
   quote), attach the DOI under `derived_from` and flag
   `metadata.literature_upgrade_candidate: true`; otherwise leave both unset. (Matching
   in step 3 is lexical and never needs a server; Perspicacité is used only here.)

5. **Tier it `community` / `hold`.** Assemble the schema-correct frontmatter:
   `provenance_tier: community` (so the `related_skills` key is present — empty list
   allowed), `status: hold` (the proposal-rail invariant), and the confirmed
   `related_skills` + `tools_used` + `license_tier`. Use
   `scripts.normalize_skill.normalized_frontmatter(...)` and write the result to a
   temporary `SKILL.md` to stage.

6. **Stage the proposal (writes files, no git).** Call the deterministic stager —
   it writes `proposals/skills/<slug>/SKILL.md` + appends the
   `proposals/wave-skills-<date>.yaml` ledger (`asb-skill-proposals/1.0`), and is
   idempotent. Preview first with `--dry-run`:
   ```bash
   python -m scripts.propose_skill --collection "<collection-dir>" \
       --skill-md "<normalized-SKILL.md>" --dry-run
   python -m scripts.propose_skill --collection "<collection-dir>" \
       --skill-md "<normalized-SKILL.md>"          # --date YYYY-MM-DD optional
   ```
   (`propose_skill` flags: `--collection`, `--skill-md`, `--date`, `--dry-run`. Run
   from the repo root so `scripts` is importable.)

7. **Validate what was staged** with the same gate CI runs, so the contributor's PR
   is green before they push:
   `python -m scripts.check_proposals "<collection-dir>"`

8. **Print a review summary + the exact PR commands — then stop.** Show the
   contributor: the staged paths, the chosen `related_skills` / `tools_used` /
   `license_tier`, any near-duplicate warnings, and whether grounding succeeded.
   Then print the exact fork-and-PR commands for them to review and run **themselves**:
   ```bash
   gh repo fork HolobiomicsLab/asb-skill-collections --clone --remote
   git checkout -b propose-skill/<slug>
   git add collections/<...>/proposals/skills/<slug>/SKILL.md \
           collections/<...>/proposals/wave-skills-<date>.yaml
   git commit -m "propose(community): <slug>"
   git push -u origin propose-skill/<slug>
   gh pr create --fill --label propose,community-skill
   ```
   State explicitly: **this command never opens the PR for them** — the contributor
   reviews the staged files and runs the commands, and **a maintainer makes the
   final merge decision** (no self-merge). Remind them the PR template asks them to
   confirm they license their skill prose under **CC-BY-4.0**.

Arguments: $ARGUMENTS

Files in this skill

  • claim-skill.md7.4 KB
  • ground.md1.1 KB
  • propose-skill.md7.5 KB
  • synthesize-meta-skill.md10.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…