Skip to content

The agent that grows with you

feat(skills-hub): tap K-Dense and OpenScience scientific skills under one "science" bucket

Teknium850c48cd8429
diff --git a/tests/tools/test_skills_hub.py b/tests/tools/test_skills_hub.py
index ba4e28d691a..c608a7be102 100644
--- a/tests/tools/test_skills_hub.py
+++ b/tests/tools/test_skills_hub.py
@@ -103,6 +103,44 @@ class TestSkillsShGroupings:
assert len(skills) == 1
assert skills[0].extra["category"] == "Decision Optimization"
+ def test_list_skills_bucket_stamps_category_when_no_sidecar(self):
+ # A tap-level bucket labels every skill when the repo ships no skills.sh.json
+ # grouping — how several repos share one hub category (e.g. science).
+ src = GitHubSource(auth=MagicMock())
+ meta = SkillMeta(
+ name="rdkit", description="d", source="github",
+ identifier="K-Dense-AI/scientific-agent-skills/skills/rdkit", trust_level="community",
+ )
+ resp = MagicMock(status_code=200)
+ resp.json.return_value = [{"type": "dir", "name": "rdkit"}]
+ with patch("tools.skills_hub_github._cached_metas", return_value=None), \
+ patch("tools.skills_hub_github._cache_metas"), \
+ patch.object(src, "_get_skillsh_groupings", return_value=None), \
+ patch.object(src, "inspect", return_value=meta), \
+ patch.object(src, "_github_get", return_value=resp):
+ skills = src._list_skills_in_repo("K-Dense-AI/scientific-agent-skills", "skills/", "science")
+
+ assert len(skills) == 1
+ assert skills[0].extra["category"] == "science"
+
+ def test_list_skills_sidecar_grouping_wins_over_bucket(self):
+ src = GitHubSource(auth=MagicMock())
+ meta = SkillMeta(
+ name="cuopt-developer", description="d", source="github",
+ identifier="NVIDIA/skills/skills/cuopt-developer", trust_level="trusted",
+ )
+ resp = MagicMock(status_code=200)
+ resp.json.return_value = [{"type": "dir", "name": "cuopt-developer"}]
+ with patch("tools.skills_hub_github._cached_metas", return_value=None), \
+ patch("tools.skills_hub_github._cache_metas"), \
+ patch.object(src, "_get_skillsh_groupings",
+ return_value={"cuopt-developer": "Decision Optimization"}), \
+ patch.object(src, "inspect", return_value=meta), \
+ patch.object(src, "_github_get", return_value=resp):
+ skills = src._list_skills_in_repo("NVIDIA/skills", "skills/", "science")
+
+ assert skills[0].extra["category"] == "Decision Optimization"
+
# ---------------------------------------------------------------------------
# GitHubSource.trust_level_for
# ---------------------------------------------------------------------------
diff --git a/tools/skills_hub_github.py b/tools/skills_hub_github.py
index 3f4b3cb9c3a..38cf068daf4 100644
--- a/tools/skills_hub_github.py
+++ b/tools/skills_hub_github.py
@@ -179,6 +179,25 @@ class GitHubSource(SkillSource):
# + governance card; `trusted` via tools/skills_guard.py::TRUSTED_REPOS.
{"repo": "NVIDIA/skills", "path": "skills/"},
{"repo": "garrytan/gstack", "path": ""},
+ # --- Science bucket ---
+ # Two scientific-skill repos share one hub category via the tap-level "bucket" key so
+ # their skills surface together. Both stay `community` trust on purpose (NOT in
+ # tools/skills_guard.py::TRUSTED_REPOS): the guard scans every skill and INSTALL_POLICY
+ # auto-installs only "safe" ones. Skills wrap third-party tools with their OWN licenses
+ # (some GPL; KEGG is commercial for non-academic use) — surfaced per skill, not vetted here.
+ # K-Dense-AI/scientific-agent-skills: flat skills/<name>/, MIT.
+ {"repo": "K-Dense-AI/scientific-agent-skills", "path": "skills/", "bucket": "science"},
+ # synthetic-sciences/openscience: Apache-2.0, nested backend/cli/skills/<category>/<name>/.
+ # _list_skills_in_repo walks ONE level under a tap path, so each category is its own tap
+ # (same one-entry-per-inner-path pattern as openai/skills above).
+ *(
+ {"repo": "synthetic-sciences/openscience", "path": f"backend/cli/skills/{_cat}/", "bucket": "science"}
+ for _cat in (
+ "biology", "chemistry", "cloud-compute", "coding", "data-engineering", "databases",
+ "document-parsing", "llm-tools", "ml-inference", "ml-training", "other", "physics",
+ "quantum", "research", "scholar-evaluation", "visualization", "writing",
+ )
+ ),
]
SOURCE_ID = "github"
@@ -210,7 +229,7 @@ class GitHubSource(SkillSource):
query_lower = query.lower()
for tap in self.taps:
try:
- for skill in self._list_skills_in_repo(tap["repo"], tap.get("path", "")):
+ for skill in self._list_skills_in_repo(tap["repo"], tap.get("path", ""), tap.get("bucket")):
if _matches_query(query_lower, skill.name, skill.description, skill.tags):
results.append(skill)
except Exception as e:
@@ -316,9 +335,11 @@ class GitHubSource(SkillSource):
# -- Internal helpers --
- def _list_skills_in_repo(self, repo: str, path: str) -> List[SkillMeta]:
- """List skill directories in a GitHub repo path, using cached index."""
- cache_key = f"{repo}_{path}".replace("/", "_").replace(" ", "_")
+ def _list_skills_in_repo(self, repo: str, path: str, bucket: Optional[str] = None) -> List[SkillMeta]:
+ """List skill directories in a GitHub repo path, using cached index. ``bucket`` labels every
+ skill from a tap whose repo ships no ``skills.sh.json`` grouping, so several repos can share one
+ hub category (e.g. "science"); a sidecar grouping still wins when present."""
+ cache_key = f"{repo}_{path}_{bucket or ''}".replace("/", "_").replace(" ", "_")
cached = _cached_metas(cache_key)
if cached is not None:
return cached
@@ -337,7 +358,7 @@ class GitHubSource(SkillSource):
dir_name = entry["name"]
meta = self.inspect(f"{repo}/{prefix}/{dir_name}" if prefix else f"{repo}/{dir_name}")
if meta:
- category = groupings and (groupings.get(meta.name) or groupings.get(dir_name))
+ category = (groupings and (groupings.get(meta.name) or groupings.get(dir_name))) or bucket
if category:
meta.extra["category"] = category
skills.append(meta)
diff --git a/website/docs/user-guide/features/skills.md b/website/docs/user-guide/features/skills.md
index a380826956f..34a6d7c47b1 100644
--- a/website/docs/user-guide/features/skills.md
+++ b/website/docs/user-guide/features/skills.md
@@ -747,6 +747,7 @@ Default taps (browsable without any setup):
- [huggingface/skills](https://github.com/huggingface/skills)
- [NVIDIA/skills](https://github.com/NVIDIA/skills) — NVIDIA-verified skills (signed `skill.oms.sig` + governance `skill-card.md`)
- [garrytan/gstack](https://github.com/garrytan/gstack)
+- [K-Dense-AI/scientific-agent-skills](https://github.com/K-Dense-AI/scientific-agent-skills) and [synthetic-sciences/openscience](https://github.com/synthetic-sciences/openscience) — ~480 scientific research skills (bioinformatics, chemistry, physics, ML training, scholarly tooling), grouped under one `science` category. Community trust: every install is security-scanned. Many wrap third-party tools with their own licenses (some GPL; KEGG requires a commercial license for non-academic use) — check each skill's prerequisites.
- Example: