"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
unifying skills via npx skills; update cli-hub
yuhao30ef367815e5
diff --git a/.gitignore b/.gitignoreindex deb896a76..2b6bc1871 100644--- a/.gitignore+++ b/.gitignore@@ -95,6 +95,7 @@!/renderdoc/!/cloudcompare/!/openscreen/+!/QGIS/!/n8n/!/obsidian/@@ -167,6 +168,8 @@/cloudcompare/.*/openscreen/*/openscreen/.*+/QGIS/*+/QGIS/.*/cloudanalyzer/*/cloudanalyzer/.*/wiremock/*@@ -220,6 +223,7 @@!/wiremock/!/wiremock/agent-harness/!/exa/agent-harness/+!/QGIS/agent-harness/!/n8n/agent-harness/!/obsidian/agent-harness/!/safari/diff --git a/README.md b/README.mdindex f49467e80..a7838e0c9 100644--- a/README.md+++ b/README.md@@ -45,6 +45,12 @@ CLI-Anything: Bridging the Gap Between AI Agents and the World's Software</stron> Thanks to all invaluable efforts from the community! More updates continuously on the way everyday..+- **2026-04-18** π§© **All SKILL.md files are now being unified under the top-level `skills/` directory** β every CLI skill can be installed from one canonical source with `npx skills add HKUDS/CLI-Anything --skill <skill-name> -g -y`. We also added root-skill validation CI, synced contribution / PR docs and REPL skill-path hints to the new layout, and refreshed the **CLI-Hub** install-first frontend around the new `npx skills` flow.++- **2026-04-17** π **CLI-Hub** received another install UX pass β public registry metadata and skill coverage were tightened, visit counting was corrected, and the web hub was further refined. π§ͺ **Shotcut** render output duration was fixed (#92). π **SKILL** contribution paths were corrected for the new docs flow (#224), and the skill generator now safely handles empty intros (#203).++- **2026-04-16** πΊοΈ **QGIS CLI** merged (#207) β a full GIS / map authoring harness landed. 𧬠**UniMol Tools CLI** merged (#219) for molecular modeling workflows. π **CLI-Hub** also added more public CLIs, including **py4csr**, refreshed its generated meta-skill, corrected SKILL contribution docs, and fixed `apt-get` package extraction in skill generation (#204).+- **2026-04-15** π **CLI-Hub** updated to **v0.2.0** β the PyPI package now supports public CLIs from multiple install sources (`pip`, `npm`, `brew`, bundled/system tools), backed by a new `public_registry.json`. The Hub frontend was redesigned with separate **CLI-Anything CLIs** and **Public CLIs** decks, and live end-to-end checks now cover real install, update, and uninstall flows across both pip and npm packages.- **2026-04-14** π§ **Safari CLI** merged (#212) and added to the Hub registry β browser automation via `safari-mcp`. π¬ **Kdenlive** also received compatibility fixes for Gen 5 project output and invalid project generation.diff --git a/cli-anything-plugin/skill_generator.py b/cli-anything-plugin/skill_generator.pyindex ecbf47df9..80aeb53cf 100644--- a/cli-anything-plugin/skill_generator.py+++ b/cli-anything-plugin/skill_generator.py@@ -24,7 +24,9 @@ def _format_display_name(name: str) -> str:def _canonical_skill_name(harness_path: Path, software_name: str) -> str:"""Return the repo-root canonical skill id for a harness."""- software_dir = harness_path.parent.name if harness_path.parent.name else software_name+ software_dir = software_name+ if harness_path.name == "agent-harness" and harness_path.parent.name:+ software_dir = harness_path.parent.namereturn f"cli-anything-{software_dir.replace('_', '-')}"@@ -121,7 +123,12 @@ def extract_cli_metadata(harness_path: str) -> SkillMetadata:# Build skill name and descriptionskill_name = _canonical_skill_name(harness_path, software_name)- skill_description = f"Command-line interface for {_format_display_name(software_name)} - {skill_intro[:100]}..."+ if skill_intro:+ intro_snippet = skill_intro[:100]+ suffix = "..." if len(skill_intro) > 100 else ""+ skill_description = f"Command-line interface for {_format_display_name(software_name)} - {intro_snippet}{suffix}"+ else:+ skill_description = f"Command-line interface for {_format_display_name(software_name)}"return SkillMetadata(skill_name=skill_name,@@ -165,14 +172,16 @@ def extract_system_package(content: str) -> Optional[str]:patterns = [r"`apt install ([\w\-]+)`",r"`brew install ([\w\-]+)`",- r"apt-get install ([\w\-]+)",+ r"`apt-get install ([\w\-]+)`",]for pattern in patterns:match = re.search(pattern, content)if match:package = match.group(1)- if "apt" in pattern:+ if "apt-get" in pattern:+ return f"apt-get install {package}"+ elif "apt" in pattern:return f"apt install {package}"elif "brew" in pattern:return f"brew install {package}"diff --git a/cli-hub/tests/test_cli_hub.py b/cli-hub/tests/test_cli_hub.pyindex f1f6f4f07..f18b113a3 100644--- a/cli-hub/tests/test_cli_hub.py+++ b/cli-hub/tests/test_cli_hub.py@@ -12,11 +12,8 @@ import requestsfrom cli_hub import __version__from cli_hub.registry import fetch_registry, fetch_all_clis, get_cli, search_clis, list_categories-from cli_hub.matrix import fetch_matrix_registry, fetch_all_matrices, get_matrix, search_matrices-from cli_hub.matrix_skill import resolve_local_skill_path, render_matrix_skill_file, _render_stage_tooling, _render_discovery_sectionfrom cli_hub.installer import (install_cli,- install_matrix,uninstall_cli,get_installed,_load_installed,@@ -79,39 +76,6 @@ SAMPLE_REGISTRY = {],}-SAMPLE_MATRIX_REGISTRY = {- "meta": {"repo": "https://github.com/HKUDS/CLI-Anything", "description": "test matrices"},- "matrices": [- {- "name": "video-creation",- "display_name": "Video Creation & Editing",- "description": "Curated video workflow matrix",- "category": "video",- "matrix": "cli-matrix",- "matrix_id": "V1",- "skill_md": "cli-hub-matrix/video-creation/SKILL.md",- "clis": ["gimp", "blender", "audacity"],- "stages": [- {- "name": "Thumbnail",- "clis": ["gimp"],- "goal": "Create a thumbnail image",- "alternatives": {"python": ["Pillow"], "native": ["ImageMagick convert"]},- "skill_search_hints": ["thumbnail", "image editing"],- },- {"name": "3D", "clis": ["blender"]},- {- "name": "Audio",- "clis": ["audacity"],- "goal": "Edit and process audio",- "alternatives": {"python": ["pydub"], "native": ["sox"]},- "skill_search_hints": ["audio editing"],- },- ],- }- ],-}-# βββ Registry tests βββββββββββββββββββββββββββββββββββββββββββββββββββ@@ -188,138 +152,6 @@ class TestRegistry:cats = list_categories()assert cats == ["3d", "audio", "image"]--class TestMatrixRegistry:- """Tests for matrix.py β fetch, cache, search, and lookup."""-- @patch("cli_hub.matrix.requests.get")- @patch("cli_hub.matrix.MATRIX_CACHE_FILE", Path(tempfile.mktemp()))- def test_fetch_matrix_registry_from_remote(self, mock_get):- mock_resp = MagicMock()- mock_resp.json.return_value = SAMPLE_MATRIX_REGISTRY- mock_resp.raise_for_status = MagicMock()- mock_get.return_value = mock_resp-- result = fetch_matrix_registry(force_refresh=True)- assert result["matrices"][0]["name"] == "video-creation"- mock_get.assert_called_once()-- @patch("cli_hub.matrix.fetch_all_matrices", return_value=SAMPLE_MATRIX_REGISTRY["matrices"])- def test_get_matrix_found(self, mock_fetch):- matrix_item = get_matrix("video-creation")- assert matrix_item is not None- assert matrix_item["display_name"] == "Video Creation & Editing"-- @patch("cli_hub.matrix.fetch_all_matrices", return_value=SAMPLE_MATRIX_REGISTRY["matrices"])- def test_search_matrices_matches_description(self, mock_fetch):- results = search_matrices("video")- assert len(results) == 1- assert results[0]["name"] == "video-creation"---class TestMatrixSkill:- """Tests for matrix_skill.py β local skill resolution and rendering."""-- @patch("cli_hub.matrix_skill.metadata.distribution")- def test_resolve_local_skill_path_from_distribution(self, mock_distribution, tmp_path):- class FakeDist:- files = [Path("cli_anything/audacity/skills/SKILL.md")]-- def locate_file(self, file):- return tmp_path / file-- mock_distribution.return_value = FakeDist()- cli = {"name": "audacity", "_source": "harness"}- resolved = resolve_local_skill_path(cli)- assert resolved == str((tmp_path / "cli_anything/audacity/skills/SKILL.md").resolve())-- @patch("cli_hub.matrix_skill.MATRIX_SKILL_DIR", Path(tempfile.mkdtemp()))- @patch("cli_hub.matrix_skill.resolve_local_skill_path")- @patch("cli_hub.matrix_skill.get_cli")- def test_render_matrix_skill_file_injects_paths(self, mock_get_cli, mock_resolve, tmp_dir=None):- mock_get_cli.side_effect = lambda name: next((c for c in SAMPLE_REGISTRY["clis"] if c["name"] == name), None)- mock_resolve.side_effect = lambda cli: f"/tmp/{cli['name']}/skills/SKILL.md" if cli["name"] != "blender" else None-- rendered = render_matrix_skill_file(SAMPLE_MATRIX_REGISTRY["matrices"][0], installed={"gimp": {}, "audacity": {}})- content = Path(rendered).read_text()- assert "## Installed CLI Skills" in content- assert "/tmp/gimp/skills/SKILL.md" in content- assert "skills/cli-anything-gimp/SKILL.md" in content- assert "not installed" in content---class TestMultiApproachRendering:- """Tests for multi-approach stage rendering in matrix_skill.py."""-- def test_render_stage_tooling_includes_goals(self):- matrix_item = SAMPLE_MATRIX_REGISTRY["matrices"][0]- result = _render_stage_tooling(matrix_item, installed={"gimp": {}})- assert "## Stage Tooling Overview" in result- assert "Create a thumbnail image" in result- assert "Edit and process audio" in result-- def test_render_stage_tooling_includes_alternatives(self):- matrix_item = SAMPLE_MATRIX_REGISTRY["matrices"][0]- result = _render_stage_tooling(matrix_item, installed={})- assert "Pillow" in result- assert "pydub" in result- assert "sox" in result- assert "ImageMagick convert" in result-- def test_render_stage_tooling_shows_install_status(self):- matrix_item = SAMPLE_MATRIX_REGISTRY["matrices"][0]- result = _render_stage_tooling(matrix_item, installed={"gimp": {}})- assert "`gimp` (installed)" in result- assert "`audacity` (not installed)" in result-- def test_render_stage_tooling_includes_skill_search_hints(self):- matrix_item = SAMPLE_MATRIX_REGISTRY["matrices"][0]- result = _render_stage_tooling(matrix_item, installed={})- assert 'npx skills search "thumbnail"' in result- assert 'npx skills search "audio editing"' in result-- def test_render_stage_tooling_backward_compat_no_goal(self):- """Stages without 'goal' field are skipped gracefully."""- matrix_no_goals = {- "name": "test",- "stages": [- {"name": "Stage1", "clis": ["foo"]},- ],- }- result = _render_stage_tooling(matrix_no_goals, installed={})- assert result == ""-- def test_render_discovery_section(self):- matrix_item = SAMPLE_MATRIX_REGISTRY["matrices"][0]- result = _render_discovery_section(matrix_item)- assert "## Skill Discovery Commands" in result- assert 'npx skills search "thumbnail"' in result- assert 'npx skills search "audio editing"' in result- assert "cli-hub search thumbnail" in result- assert "cli-hub search audio" in result-- def test_render_discovery_section_empty_when_no_hints(self):- matrix_no_hints = {- "name": "test",- "stages": [{"name": "S1", "clis": ["foo"]}],- }- result = _render_discovery_section(matrix_no_hints)- assert result == ""-- @patch("cli_hub.matrix_skill.MATRIX_SKILL_DIR", Path(tempfile.mkdtemp()))- @patch("cli_hub.matrix_skill.resolve_local_skill_path")- @patch("cli_hub.matrix_skill.get_cli")- def test_render_matrix_skill_file_includes_stage_tooling(self, mock_get_cli, mock_resolve):- mock_get_cli.side_effect = lambda name: next((c for c in SAMPLE_REGISTRY["clis"] if c["name"] == name), None)- mock_resolve.return_value = None-- rendered = render_matrix_skill_file(SAMPLE_MATRIX_REGISTRY["matrices"][0], installed={"gimp": {}})- content = Path(rendered).read_text()- assert "## Stage Tooling Overview" in content- assert "## Skill Discovery Commands" in content- assert "Create a thumbnail image" in content--# βββ Installer tests ββββββββββββββββββββββββββββββββββββββββββββββββββ@@ -652,27 +484,6 @@ class TestScriptStrategy:assert data["jimeng"]["strategy"] == "command"assert data["jimeng"]["package_manager"] == "script"- @patch("cli_hub.installer.get_matrix", return_value=SAMPLE_MATRIX_REGISTRY["matrices"][0])- @patch("cli_hub.installer.get_cli", side_effect=lambda name: next((c for c in SAMPLE_REGISTRY["clis"] if c["name"] == name), None))- @patch("cli_hub.installer.install_cli", side_effect=[(True, "Installed Blender"), (False, "Install failed")])- @patch("cli_hub.installer.get_installed", return_value={"gimp": {"version": "1.0.0"}})- @patch("cli_hub.installer.render_matrix_skill_file", return_value=Path("/tmp/video-creation.SKILL.md"))- def test_install_matrix_reports_installed_skipped_and_failed(self, mock_render, mock_installed, mock_install_cli, mock_get_cli, mock_get_matrix):- success, payload = install_matrix("video-creation")- assert not success- assert payload["summary"] == {"total": 3, "installed": 1, "skipped": 1, "failed": 1}- assert payload["results"][0]["status"] == "skipped"- assert payload["results"][1]["status"] == "installed"- assert payload["results"][2]["status"] == "failed"- assert payload["rendered_skill_path"] == "/tmp/video-creation.SKILL.md"-- @patch("cli_hub.installer.get_matrix", return_value=None)- def test_install_matrix_not_found(self, mock_get_matrix):- success, payload = install_matrix("missing-matrix")- assert not success- assert "not found" in payload["error"]--# βββ Analytics tests ββββββββββββββββββββββββββββββββββββββββββββββββββ@@ -831,81 +642,6 @@ class TestCLI:assert "cli-hub" in result.outputassert result.exit_code == 0- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.fetch_all_matrices", return_value=SAMPLE_MATRIX_REGISTRY["matrices"])- @patch("cli_hub.cli.get_installed", return_value={"gimp": {"version": "1.0.0"}})- def test_matrix_list_command(self, mock_installed, mock_fetch_matrices, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "list"])- assert "video-creation" in result.output- assert "1/3" in result.output- assert result.exit_code == 0-- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.search_matrices", return_value=SAMPLE_MATRIX_REGISTRY["matrices"])- @patch("cli_hub.cli.get_installed", return_value={"gimp": {"version": "1.0.0"}})- def test_matrix_search_command(self, mock_installed, mock_search, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "search", "video"])- assert "video-creation" in result.output- assert "1/3" in result.output- assert result.exit_code == 0-- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.search_matrices", return_value=[])- def test_matrix_search_no_results(self, mock_search, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "search", "nonexistent"])- assert "No matrices matching" in result.output- assert result.exit_code == 0-- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.get_matrix", return_value=SAMPLE_MATRIX_REGISTRY["matrices"][0])- @patch("cli_hub.cli.get_installed", return_value={"gimp": {"version": "1.0.0"}})- @patch("cli_hub.cli.get_rendered_matrix_skill_path", return_value=Path("/tmp/video-creation.SKILL.md"))- @patch("pathlib.Path.exists", return_value=True)- def test_matrix_info_command(self, mock_exists, mock_rendered, mock_installed, mock_get_matrix, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "info", "video-creation"])- assert "Video Creation & Editing" in result.output- assert "cli-hub matrix install video-creation" in result.output- assert "cli-hub-matrix/video-creation/SKILL.md" in result.output- assert "Local skill: /tmp/video-creation.SKILL.md" in result.output- assert result.exit_code == 0-- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.install_matrix", return_value=(False, {- "matrix": SAMPLE_MATRIX_REGISTRY["matrices"][0],- "results": [- {"name": "gimp", "status": "skipped", "message": "Already installed"},- {"name": "blender", "status": "installed", "message": "Installed Blender"},- {"name": "audacity", "status": "failed", "message": "Install failed"},- ],- "summary": {"installed": 1, "skipped": 1, "failed": 1},- "rendered_skill_path": "/tmp/video-creation.SKILL.md",- }))- def test_matrix_install_command_partial_failure(self, mock_install_matrix, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "install", "video-creation"])- assert result.exit_code == 1- assert "Summary: 1 installed, 1 skipped, 1 failed" in result.output- assert "Matrix skill: cli-hub-matrix/video-creation/SKILL.md" in result.output- assert "Local matrix skill: /tmp/video-creation.SKILL.md" in result.output-- @patch("cli_hub.cli.track_first_run")- @patch("cli_hub.cli.track_visit")- @patch("cli_hub.cli._detect_is_agent", return_value=False)- @patch("cli_hub.cli.install_matrix", return_value=(False, {"error": "Matrix 'missing' not found."}))- def test_matrix_install_command_not_found(self, mock_install_matrix, mock_detect, mock_visit, mock_first_run):- result = self.runner.invoke(main, ["matrix", "install", "missing"])- assert result.exit_code == 1- assert "not found" in result.output-@patch("cli_hub.cli.track_first_run")@patch("cli_hub.cli.track_visit")@patch("cli_hub.cli._detect_is_agent", return_value=False)@@ -948,7 +684,7 @@ class TestCLI:result = self.runner.invoke(main, ["info", "gimp"])assert "GIMP" in result.outputassert "image" in result.output- assert "Skill:" in result.output+ assert "Install: cli-hub install gimp" in result.outputassert result.exit_code == 0@patch("cli_hub.cli.track_first_run")diff --git a/docs/hub/index-modern.html b/docs/hub/index-modern.htmlindex 4dfd4030f..a74591d42 100644--- a/docs/hub/index-modern.html+++ b/docs/hub/index-modern.html@@ -258,6 +258,21 @@flex-shrink: 0;}+ .nav-link-stars {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ min-width: 2.9rem;+ padding: 0.14rem 0.52rem;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.08);+ border: 1px solid rgba(255, 255, 255, 0.1);+ color: var(--text);+ font-size: 0.73rem;+ font-variant-numeric: tabular-nums;+ line-height: 1.1;+ }+.theme-toggle {width: 42px;padding: 0;@@ -1334,17 +1349,13 @@}.card-command-block {- padding: 0.9rem;+ padding: 0.9rem 0.9rem 0.9rem 0.9rem;border-radius: 18px;border: 1px solid var(--border);background:linear-gradient(180deg, rgba(93, 168, 255, 0.07), rgba(255,255,255,0.02)),rgba(0,0,0,0.14);- }-- .card-command-stack {- display: grid;- gap: 0.75rem;+ position: relative;}.card--public .card-command-block {@@ -1370,15 +1381,32 @@font-size: 0.8rem;color: var(--text);white-space: pre-wrap;- overflow-wrap: anywhere;- word-break: break-word;- line-height: 1.6;+ overflow-wrap: break-word;+ word-break: normal;+ line-height: 1.45;+ padding-top: 0.1rem;+ }++ .card-command-comment {+ display: block;+ color: var(--text-tertiary);+ font-style: italic;+ margin-bottom: 0.24rem;+ padding-right: 5.2rem;+ }++ .card-command-line {+ display: block;+ }++ .card-command-line + .card-command-comment {+ margin-top: 0.42rem;}.card-command-actions {- display: flex;- justify-content: flex-end;- margin-top: 0.7rem;+ position: absolute;+ top: 0.96rem;+ right: 0.9rem;}.card-install-note {@@ -1490,15 +1518,13 @@}.footer-copy a,- .footer-brand a,- .footer-analytics-link {+ .footer-brand a {color: var(--text);text-decoration: none;}.footer-copy a:hover,- .footer-brand a:hover,- .footer-analytics-link:hover {+ .footer-brand a:hover {text-decoration: underline;}@@ -1769,6 +1795,7 @@<a class="nav-link" href="https://github.com/HKUDS/CLI-Anything" target="_blank"><svg viewBox="0 0 98 96" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6C29.304 70.25 17.9 66.013 17.9 47.02c0-5.52 1.94-10.046 5.127-13.58-.486-1.302-2.264-6.437.486-13.34 0 0 4.206-1.302 13.59 5.216 3.963-1.14 8.17-1.628 12.34-1.628 4.17 0 8.376.568 12.34 1.628 9.384-6.518 13.59-5.216 13.59-5.216 2.75 6.903.972 12.038.486 13.34 3.268 3.534 5.127 8.06 5.127 13.58 0 19.074-11.485 23.15-22.328 24.29 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"/></svg>GitHub+ <span class="nav-link-stars" data-github-stars aria-label="GitHub star count">--</span></a><a class="nav-link" href="https://github.com/HKUDS/CLI-Anything/blob/main/CONTRIBUTING.md" target="_blank">Contribute</a><button class="theme-toggle" onclick="toggleTheme()" aria-label="Toggle theme">@@ -2002,7 +2029,7 @@</div><div class="footer-stats"><div class="footer-label">Traffic Snapshot</div>- <a class="footer-analytics-link" href="https://cloud.umami.is/share/mnilRgKH0oo7SJTs" target="_blank">+ <div class="footer-analytics-link" aria-label="Traffic snapshot"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg><span class="stat-dot dot-total"></span><span id="stat-total">—</span> visits@@ -2012,7 +2039,7 @@<span class="analytics-sep">·</span><span class="stat-dot dot-agent"></span><span id="stat-agent">—</span> AI agent- </a>+ </div></div></footer></div>@@ -2044,6 +2071,7 @@});const REPO = 'https://github.com/HKUDS/CLI-Anything';+ const GITHUB_REPO_API = 'https://api.github.com/repos/HKUDS/CLI-Anything';const REPO_SKILLS_SOURCE = 'HKUDS/CLI-Anything';const REGISTRY_URLS = ['../../registry.json',@@ -2085,6 +2113,34 @@return null;}+ function formatCompactCount(value) {+ return new Intl.NumberFormat('en', {+ notation: 'compact',+ maximumFractionDigits: value >= 10000 ? 0 : 1,+ }).format(value);+ }++ async function loadGitHubStars() {+ try {+ const resp = await fetch(GITHUB_REPO_API, {+ headers: { Accept: 'application/vnd.github+json' }+ });+ if (!resp.ok) return;++ const repo = await resp.json();+ const stars = repo.stargazers_count;+ if (typeof stars !== 'number') return;++ document.querySelectorAll('[data-github-stars]').forEach((el) => {+ el.textContent = formatCompactCount(stars);+ el.setAttribute('aria-label', stars.toLocaleString('en-US') + ' GitHub stars');+ el.title = stars.toLocaleString('en-US') + ' GitHub stars';+ });+ } catch (_) {+ // Keep fallback placeholder when GitHub API is unavailable.+ }+ }+async function loadRegistries() {try {const [harnessData, publicData, dates] = await Promise.all([@@ -2324,13 +2380,17 @@}function renderCommandStack(steps, sourceLabel) {- return '<div class="card-command-stack">' + steps.map((step) =>- '<div class="card-command-block">' +- '<div class="card-command-label"><span>' + esc(step.label) + '</span><span>' + esc(step.badge || sourceLabel) + '</span></div>' +- '<div class="card-command">' + esc(step.cmd) + '</div>' +- '<div class="card-command-actions"><button class="card-copy-btn" onclick="copyCmd(this, \'' + esc(step.cmd) + '\')">Copy</button></div>' +- '</div>'- ).join('') + '</div>';+ const display = steps.map((step) =>+ '<span class="card-command-comment"># ' + esc(step.label.toLowerCase()) + '</span><span class="card-command-line">' + esc(step.cmd) + '</span>'+ ).join('');+ const copyText = steps.map((step) =>+ '# ' + step.label.toLowerCase() + '\n' + step.cmd+ ).join('\n');+ return '<div class="card-command-block">' ++ '<div class="card-command-label"><span>Install Commands</span><span>' + esc(sourceLabel) + '</span></div>' ++ '<div class="card-command">' + display + '</div>' ++ '<div class="card-command-actions"><button class="card-copy-btn" onclick=\'copyCmd(this, ' + JSON.stringify(copyText) + ')'>Copy</button></div>' ++ '</div>';}function renderHarnessCard(c) {@@ -2357,10 +2417,10 @@const dateHtml = c.last_modified ? '<div class="card-date">Updated ' + esc(c.last_modified) + '</div>' : '';const linksHtml = sourceLink + (skillLink ? skillLink : '');const installSteps = [- { label: 'Step 1 Β· Install CLI', cmd: 'cli-hub install ' + c.name, badge: 'CLI-Hub' }+ { label: 'step 1 Β· install cli', cmd: 'cli-hub install ' + c.name, badge: 'CLI-Hub' }];const skillCmd = harnessSkillCmd(c);- if (skillCmd) installSteps.push({ label: 'Step 2 Β· Install Skill', cmd: skillCmd, badge: 'npx skills' });+ if (skillCmd) installSteps.push({ label: 'step 2 Β· install skill', cmd: skillCmd, badge: 'npx skills' });const installBlock = renderCommandStack(installSteps, 'CLI-Hub');return `@@ -2419,9 +2479,9 @@const installNotesHtml = c.install_notes ? '<div class="card-npx">' + esc(c.install_notes) + '</div>' : '';const installSteps = isBundled? []- : [{ label: 'Step 1 Β· Install CLI', cmd: 'cli-hub install ' + c.name, badge: 'CLI-Hub' }];+ : [{ label: 'step 1 Β· install cli', cmd: 'cli-hub install ' + c.name, badge: 'CLI-Hub' }];const skillCmd = publicSkillCmd(c);- if (skillCmd) installSteps.push({ label: 'Step 2 Β· Install Skill', cmd: skillCmd, badge: 'npx skills' });+ if (skillCmd) installSteps.push({ label: 'step 2 Β· install skill', cmd: skillCmd, badge: 'npx skills' });const installBlock = isBundled? '<div class="card-install-note">Bundled with the upstream application. Install or update the parent app and enable its CLI integration.</div>': renderCommandStack(installSteps, 'Source aware');@@ -2555,48 +2615,47 @@const UMAMI_API = 'https://api.umami.is/v1';const UMAMI_KEY = 'api_idAebMhzn6z0hsUQT7BSxRuCK2GUZvRY';- const WEBSITE_IDS = [- '07082d05-efd3-4f85-a7a1-b426b0e8bfaa',- 'a076c661-bed1-405c-a522-813794e688b4',- ];+ const HKUDS_WEBSITE_ID = '07082d05-efd3-4f85-a7a1-b426b0e8bfaa';+ const CC_WEBSITE_ID = 'a076c661-bed1-405c-a522-813794e688b4';const headers = { Accept: 'application/json', 'x-umami-api-key': UMAMI_KEY };async function loadVisitorStats() {try {const now = Date.now();- let totalVisits = 0;- let humanCount = 0;- const fetches = WEBSITE_IDS.flatMap((id) => [- fetch(UMAMI_API + '/websites/' + id + '/stats?startAt=0&endAt=' + now, { headers }),- fetch(UMAMI_API + '/websites/' + id + '/events/series?startAt=0&endAt=' + now + '&unit=year&timezone=UTC', { headers })+ let hkudsHumanVisits = 0;+ let ccHumanVisits = 0;+ let ccAgentVisits = 0;+ const [hkudsStatsResp, ccEventsResp] = await Promise.all([+ fetch(UMAMI_API + '/websites/' + HKUDS_WEBSITE_ID + '/stats?startAt=0&endAt=' + now, { headers }),+ fetch(UMAMI_API + '/websites/' + CC_WEBSITE_ID + '/events/series?startAt=0&endAt=' + now + '&unit=year&timezone=UTC', { headers })]);- const [statsResp1, eventsResp1, statsResp2, eventsResp2] = await Promise.all(fetches);- for (const resp of [statsResp1, statsResp2]) {- if (resp.ok) {- const stats = await resp.json();- totalVisits += stats.visits ?? 0;- }+ if (hkudsStatsResp.ok) {+ const stats = await hkudsStatsResp.json();+ hkudsHumanVisits = stats.visits ?? 0;}- for (const resp of [eventsResp1, eventsResp2]) {- if (resp.ok) {- const events = await resp.json();- events.forEach((e) => {- if (e.x === 'visit-human') humanCount += e.y || 0;- });- }+ if (ccEventsResp.ok) {+ const events = await ccEventsResp.json();+ events.forEach((e) => {+ if (e.x === 'visit-human') ccHumanVisits += e.y || 0;+ if (e.x === 'visit-agent') ccAgentVisits += e.y || 0;+ });}+ const humanCount = hkudsHumanVisits + ccHumanVisits;+ const totalVisits = humanCount + ccAgentVisits;+document.getElementById('stat-total').textContent = totalVisits.toLocaleString();document.getElementById('stat-human').textContent = humanCount.toLocaleString();- document.getElementById('stat-agent').textContent = Math.max(0, totalVisits - humanCount).toLocaleString();+ document.getElementById('stat-agent').textContent = ccAgentVisits.toLocaleString();} catch (_) {// Leave fallback dashes.}}loadVisitorStats();+ loadGitHubStars();})();</script></body>diff --git a/docs/hub/index.html b/docs/hub/index.htmlindex 9d3415ed3..4bdd170ae 100644--- a/docs/hub/index.html+++ b/docs/hub/index.html@@ -17,6 +17,8 @@--text: #fafafa;--text-secondary: #a1a1aa;--text-tertiary: #71717a;+ --hero-neutral-top: #e7ecf2;+ --hero-neutral-bottom: #b8c1cd;--accent: #3b82f6;--accent-muted: #2563eb;--green: #22c55e;@@ -37,6 +39,8 @@--text: #09090b;--text-secondary: #52525b;--text-tertiary: #71717a;+ --hero-neutral-top: #7f8894;+ --hero-neutral-bottom: #a8b1bc;--accent: #2563eb;--accent-muted: #1d4ed8;--green: #16a34a;@@ -103,6 +107,21 @@.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; }+ .nav-link-stars {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ min-width: 2.8rem;+ padding: 0.1rem 0.45rem;+ border-radius: 999px;+ border: 1px solid var(--border);+ background: var(--surface);+ color: var(--text);+ font-size: 0.72rem;+ font-variant-numeric: tabular-nums;+ line-height: 1.1;+ }+/* ββ Theme toggle ββ */.theme-toggle {display: inline-flex;@@ -139,16 +158,119 @@text-align: center;}+ .hero-title {+ display: inline-flex;+ align-items: center;+ justify-content: center;+ gap: 0.95rem;+ margin-bottom: 0.82rem;+ position: relative;+ }++ .hero-title-badge {+ position: relative;+ width: 3.25rem;+ height: 3.25rem;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ border-radius: 12px;+ border: 1px solid rgba(148, 163, 184, 0.12);+ background:+ linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)),+ linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 42%),+ var(--surface);+ box-shadow:+ inset 0 1px 0 rgba(255, 255, 255, 0.05),+ inset 0 -1px 0 rgba(255, 255, 255, 0.02),+ 0 14px 34px rgba(2, 6, 23, 0.2);+ overflow: hidden;+ backdrop-filter: blur(8px);+ -webkit-backdrop-filter: blur(8px);+ }++ .hero-title-badge::before {+ content: '';+ position: absolute;+ inset: 0;+ border-radius: inherit;+ background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 36%, transparent 100%);+ pointer-events: none;+ }++ .hero-title-badge svg {+ width: 2.26rem;+ height: 2.26rem;+ overflow: visible;+ }+.hero h1 {font-size: 2.8rem;font-weight: 800;letter-spacing: -0.02em;line-height: 1.15;- margin-bottom: 0.6rem;+ margin: 0;+ display: inline-flex;+ align-items: baseline;+ gap: 0.18em;+ flex-wrap: wrap;+ justify-content: center;+ }++ .hero-word {+ display: inline-block;+ will-change: transform, opacity;+ }++ .js .hero-word {+ opacity: 0;+ transform: translateY(18px);+ }++ .motion-ready .hero-word--cli {+ animation: hero-rise-in 0.72s cubic-bezier(0.2, 0.9, 0.2, 1) 0.06s both;+ }++ .motion-ready .hero-word--anything {+ animation: hero-rise-in 0.82s cubic-bezier(0.2, 0.9, 0.2, 1) 0.18s both;+ }++ .motion-ready .hero-word--hub {+ animation: hero-drop-in 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.34s both;}.hero-accent { color: var(--accent); }- .hero-dim { color: var(--text-tertiary); }+ .hero-dim {+ color: var(--hero-neutral-bottom);+ background: linear-gradient(180deg, var(--hero-neutral-top) 0%, var(--hero-neutral-bottom) 100%);+ -webkit-background-clip: text;+ background-clip: text;+ -webkit-text-fill-color: transparent;+ opacity: 0.9;+ }++ .hero-shimmer {+ position: relative;+ isolation: isolate;+ }++ .hero-shimmer::after {+ content: attr(data-text);+ position: absolute;+ inset: 0;+ color: transparent;+ background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,0.94) 48%, transparent 72%);+ background-size: 220% 100%;+ background-position: 145% 50%;+ -webkit-background-clip: text;+ background-clip: text;+ opacity: 0;+ pointer-events: none;+ }++ .motion-ready .hero-shimmer::after {+ animation: hero-shimmer-pass 1.25s ease-out 0.66s 1 both;+ }.hero-tagline {font-size: 1.15rem;@@ -156,10 +278,138 @@line-height: 1.6;max-width: 700px;margin: 0 auto 1.5rem;+ letter-spacing: 0;+ text-align: center;+ white-space: normal;+ }++ .hero-tagline-line {+ display: inline;+ }++ .js .hero-tagline-line {+ opacity: 0;+ transform: translateY(10px);+ }++ .hero-tagline-line--any {+ color: var(--text);+ font-weight: 600;+ }++ .motion-ready .hero-tagline-line--any {+ animation: hero-tagline-in 0.62s ease-out 0.5s both;+ }++ .motion-ready .hero-tagline-line--rest {+ animation: hero-tagline-in 0.62s ease-out 0.64s both;}.hero-tagline strong { color: var(--text); font-weight: 600; }+ .motion-ready .hero-title-badge {+ animation: hero-badge-in 0.68s cubic-bezier(0.2, 0.9, 0.2, 1) 0.02s both;+ }++ .motion-ready .hero-title-badge svg {+ animation: hero-badge-float 4.2s ease-in-out 1.1s infinite;+ }++ .motion-ready .hero-badge-glow {+ animation: hero-badge-pulse 4.2s ease-in-out 1.1s infinite;+ }++ .motion-ready .hero-badge-cursor {+ animation: hero-badge-cursor 1.1s steps(1) infinite;+ }++ @keyframes hero-rise-in {+ from {+ opacity: 0;+ transform: translateY(18px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+ }++ @keyframes hero-drop-in {+ from {+ opacity: 0;+ transform: translateY(-16px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+ }++ @keyframes hero-tagline-in {+ from {+ opacity: 0;+ transform: translateY(10px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+ }++ @keyframes hero-badge-in {+ from {+ opacity: 0;+ transform: translateY(10px) scale(0.94);+ }+ to {+ opacity: 1;+ transform: translateY(0) scale(1);+ }+ }++ @keyframes hero-badge-float {+ 0%, 100% { transform: translateY(0); }+ 50% { transform: translateY(-3px); }+ }++ @keyframes hero-badge-pulse {+ 0%, 100% { opacity: 0.3; }+ 50% { opacity: 0.88; }+ }++ @keyframes hero-badge-cursor {+ 0%, 48% { opacity: 1; }+ 49%, 100% { opacity: 0.18; }+ }++ @keyframes hero-shimmer-pass {+ 0% {+ opacity: 0;+ background-position: 145% 50%;+ }+ 12% {+ opacity: 0.92;+ }+ 78% {+ opacity: 0.92;+ }+ 100% {+ opacity: 0;+ background-position: -55% 50%;+ }+ }++ @keyframes hero-stats-in {+ from {+ opacity: 0;+ transform: translateY(12px);+ }+ to {+ opacity: 1;+ transform: translateY(0);+ }+ }+/* ββ Empower card ββ */.empower-row {display: flex;@@ -206,7 +456,7 @@background: var(--bg);border: 1px solid var(--border);border-radius: var(--radius-sm);- padding: 0.45rem 0.75rem;+ padding: 0.52rem 0.75rem;margin-bottom: 0.5rem;}@@ -222,6 +472,32 @@text-overflow: ellipsis;}+ .install-row--wrap {+ align-items: flex-start;+ }++ .install-row--wrap code {+ white-space: normal;+ overflow: visible;+ text-overflow: clip;+ overflow-wrap: anywhere;+ word-break: break-word;+ line-height: 1.45;+ padding-top: 0.08rem;+ }++ .empower-note {+ margin-top: 0.25rem;+ font-size: 0.76rem;+ color: var(--text-tertiary);+ line-height: 1.5;+ }++ .empower-note strong {+ color: var(--text-secondary);+ font-weight: 600;+ }+.empower-prompt {margin-top: 0.85rem;padding: 0.6rem 0.85rem;@@ -237,7 +513,7 @@.empower-prompt em { color: var(--accent); font-style: italic; }.empower-available {- margin: 0.25rem 0 0.5rem;+ margin: 0.25rem 0 0.7rem;font-size: 0.78rem;color: var(--text-tertiary);}@@ -246,31 +522,147 @@.empower-card.empower-self::before { background: var(--green); }.empower-card.empower-self h3 span { color: var(--green); }+ .typing-shell {+ position: relative;+ margin-bottom: 0.9rem;+ padding: 0.8rem 0.92rem 0.88rem;+ background:+ linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, rgba(34, 197, 94, 0.015) 100%),+ radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 42%),+ var(--bg);+ border: 1px solid rgba(63, 63, 70, 0.95);+ border-radius: 11px;+ overflow: hidden;+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px rgba(0, 0, 0, 0.16);+ }+ .typing-shell::before {+ content: '';+ position: absolute;+ inset: 0;+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.025));+ pointer-events: none;+ }+ .typing-shell-head {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 0.75rem;+ margin-bottom: 0.56rem;+ position: relative;+ z-index: 1;+ }+ .typing-shell-label {+ display: inline-flex;+ align-items: center;+ gap: 0.42rem;+ color: var(--text-tertiary);+ font-size: 0.68rem;+ font-style: italic;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ }+ .typing-shell-label::before {+ content: '';+ width: 0.42rem;+ height: 0.42rem;+ border-radius: 999px;+ background: var(--green);+ box-shadow: 0 0 14px rgba(34, 197, 94, 0.55);+ flex-shrink: 0;+ }+ .typing-shell-copy {+ position: relative;+ z-index: 1;+ }+ .typing-shell-body {+ position: relative;+ z-index: 1;+ display: flex;+ align-items: center;+ gap: 0.65rem;+ min-height: 2.5rem;+ padding: 0.76rem 0.82rem;+ border-radius: 9px;+ border: 1px solid rgba(63, 63, 70, 0.92);+ background: linear-gradient(180deg, rgba(9, 9, 11, 0.74), rgba(9, 9, 11, 0.94));+ }+ .typing-shell-prompt {+ color: var(--green);+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.82rem;+ font-weight: 500;+ text-shadow: 0 0 16px rgba(34, 197, 94, 0.25);+ flex-shrink: 0;+ }+ .typing-shell-code {+ flex: 1;+ min-width: 0;+ display: inline-flex;+ align-items: center;+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.8rem;+ color: #d4d4d8;+ letter-spacing: -0.01em;+ white-space: nowrap;+ overflow: hidden;+ }+ .typing-shell-text {+ display: inline-block;+ min-height: 1em;+ }+ .typing-shell-cursor {+ width: 0.62ch;+ height: 1.1em;+ margin-left: 0.1rem;+ border-radius: 1px;+ background: linear-gradient(180deg, #fafafa, #a1a1aa);+ box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);+ animation: typing-caret 1s steps(1) infinite;+ flex-shrink: 0;+ }+ .typing-shell-subtitle {+ position: relative;+ z-index: 1;+ margin-top: 0.55rem;+ color: var(--text-tertiary);+ font-size: 0.73rem;+ font-style: italic;+ line-height: 1.45;+ }+ @keyframes typing-caret {+ 0%, 48% { opacity: 1; }+ 49%, 100% { opacity: 0.2; }+ }.empower-self .cmd-grid {display: grid;grid-template-columns: 1fr 1fr;- gap: 0.4rem;+ gap: 0.38rem;}.empower-self .cmd-item {- display: flex;- align-items: center;- gap: 0.4rem;+ display: grid;+ grid-template-rows: auto auto;+ align-content: start;+ gap: 0.1rem;background: var(--bg);border: 1px solid var(--border);border-radius: var(--radius-sm);- padding: 0.4rem 0.65rem;- font-size: 0.76rem;+ padding: 0.42rem 0.64rem 0.44rem;+ min-height: 3.12rem;}.empower-self .cmd-item:hover { border-color: var(--text-tertiary); }.empower-self .cmd-item .cmd-name {color: var(--green);font-family: 'JetBrains Mono', monospace;font-weight: 500;+ font-size: 0.76rem;+ line-height: 1.18;white-space: nowrap;}.empower-self .cmd-item .cmd-desc {color: var(--text-tertiary);- font-size: 0.72rem;+ font-size: 0.68rem;+ line-height: 1.22;+ letter-spacing: -0.01em;}.hero-actions {@@ -347,23 +739,56 @@.hero-cta a:hover { text-decoration: underline; }.stats {- display: flex;+ display: inline-flex;+ align-items: flex-start;justify-content: center;- gap: 3rem;- margin-top: 1.75rem;+ gap: 0;+ margin: 0.45rem auto 1.45rem;+ }++ .js .stats {+ opacity: 0;+ transform: translateY(12px);+ }++ .motion-ready .stats {+ animation: hero-stats-in 0.66s cubic-bezier(0.2, 0.9, 0.2, 1) 0.78s both;+ }++ .stat {+ min-width: 8.5rem;+ padding: 0 1.55rem;+ position: relative;+ text-align: center;+ }++ .stat + .stat::before {+ content: '';+ position: absolute;+ left: 0;+ top: 0.2rem;+ bottom: 0.2rem;+ width: 1px;+ background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.32), transparent);}.stat-num {- font-size: 2rem;- font-weight: 700;+ font-size: 2.7rem;+ line-height: 1;+ font-weight: 800;+ letter-spacing: -0.045em;color: var(--accent);+ font-variant-numeric: tabular-nums;+ text-shadow: 0 10px 28px rgba(37, 99, 235, 0.16);}.stat-label {- font-size: 0.78rem;+ margin-top: 0.38rem;+ font-size: 0.73rem;color: var(--text-tertiary);text-transform: uppercase;- letter-spacing: 0.05em;+ letter-spacing: 0.09em;+ font-weight: 600;}.chip-label {@@ -400,6 +825,16 @@border-top: 1px solid var(--border-subtle);}+ .marketplace-prelude {+ max-width: 1200px;+ margin: 0 auto;+ padding: 0.9rem 1.5rem 0;+ }++ .marketplace-prelude .typing-shell {+ margin-bottom: 0;+ }+/* ββ Deck system ββ */.deck-stage {--deck-peek: 72px;@@ -792,48 +1227,41 @@background: var(--bg);border: 1px solid var(--border);border-radius: var(--radius-sm);- padding: 0.45rem 0.65rem;- display: flex;- align-items: center;- justify-content: space-between;- gap: 0.5rem;+ padding: 0.8rem 0.9rem 0.8rem 0.9rem;+ position: relative;margin-bottom: 0.75rem;}- .card-install-stack {- display: grid;- gap: 0.55rem;- margin-bottom: 0.75rem;+ .card-install--note {+ justify-content: flex-start;}- .card-install-copy {- display: grid;- gap: 0.22rem;- flex: 1;- min-width: 0;+ .card-install code {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.75rem;+ color: var(--text-secondary);+ white-space: pre-wrap;+ overflow-wrap: break-word;+ word-break: normal;+ line-height: 1.45;+ display: block;+ padding-top: 0.1rem;}- .card-install-step {- font-size: 0.68rem;- letter-spacing: 0.08em;- text-transform: uppercase;+ .card-install code .install-comment {+ display: block;color: var(--text-tertiary);- font-weight: 600;+ font-style: italic;+ margin-bottom: 0.22rem;+ padding-right: 4.8rem;}- .card-install--note {- justify-content: flex-start;+ .card-install code .install-command {+ display: block;}- .card-install code {- font-family: 'JetBrains Mono', monospace;- font-size: 0.75rem;- color: var(--text-secondary);- white-space: pre-line;- overflow: hidden;- text-overflow: ellipsis;- flex: 1;- line-height: 1.6;+ .card-install code .install-command + .install-comment {+ margin-top: 0.38rem;}.card-copy-btn {@@ -849,6 +1277,12 @@white-space: nowrap;}+ .card-install .card-copy-btn {+ position: absolute;+ top: 0.78rem;+ right: 0.72rem;+ }+.card-copy-btn:hover { color: var(--text); border-color: var(--text-tertiary); }.card-footer {@@ -867,16 +1301,93 @@gap: 0.6rem;font-size: 0.78rem;flex-wrap: wrap;+ align-items: center;}- .card-links a {+ .card-links a,+ .card-link-btn {color: var(--text-tertiary);text-decoration: none;font-weight: 500;transition: color 0.15s;}- .card-links a:hover { color: var(--text-secondary); }+ .card-link-btn {+ background: none;+ border: 0;+ cursor: pointer;+ font: inherit;+ padding: 0;+ }++ .card-links a:hover,+ .card-link-btn:hover { color: var(--text-secondary); }++ .skill-popover {+ position: relative;+ display: inline-flex;+ align-items: center;+ }++ .skill-popover-panel {+ position: absolute;+ left: 0;+ top: calc(100% + 0.45rem);+ width: min(18rem, calc(100vw - 3rem));+ padding: 0.7rem;+ border-radius: 10px;+ border: 1px solid rgba(148, 163, 184, 0.36);+ background: rgba(248, 250, 252, 0.98);+ color: #0f172a;+ box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24);+ opacity: 0;+ transform: translateY(-4px);+ pointer-events: none;+ transition: opacity 0.16s ease, transform 0.16s ease;+ z-index: 10;+ }++ .skill-popover.is-open .skill-popover-panel {+ opacity: 1;+ transform: translateY(0);+ pointer-events: auto;+ }++ .skill-popover-label {+ display: block;+ font-size: 0.64rem;+ font-weight: 700;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: #475569;+ margin-bottom: 0.45rem;+ }++ .skill-popover-panel code {+ display: block;+ font-size: 0.75rem;+ line-height: 1.55;+ white-space: pre-wrap;+ overflow-wrap: anywhere;+ word-break: break-word;+ font-family: 'JetBrains Mono', monospace;+ background: rgba(226, 232, 240, 0.7);+ border: 1px solid rgba(148, 163, 184, 0.3);+ border-radius: 8px;+ padding: 0.55rem 0.6rem;+ }++ .skill-popover-copy {+ margin-top: 0.55rem;+ color: #334155;+ border-color: rgba(100, 116, 139, 0.34);+ background: rgba(255, 255, 255, 0.72);+ }++ .skill-popover-copy:hover {+ color: #0f172a;+ border-color: rgba(51, 65, 85, 0.42);+ }.card-contributor {font-size: 0.75rem;@@ -1079,16 +1590,9 @@gap: 0.4rem;font-size: 0.78rem;color: var(--text-tertiary);- text-decoration: none;padding: 0.35rem 0.75rem;border: 1px solid var(--border);border-radius: 999px;- transition: border-color 0.15s, color 0.15s;- }-- .footer-analytics-link:hover {- border-color: var(--text-tertiary);- color: var(--text-secondary);}.footer-analytics-link svg { opacity: 0.6; flex-shrink: 0; }@@ -1121,6 +1625,38 @@.deck-stage { --deck-peek: 46px; }.hero { padding: 2rem 1.25rem 1.5rem; }.hero h1 { font-size: 2rem; }+ .hero-title {+ gap: 0.72rem;+ align-items: flex-start;+ }+ .hero-title-badge {+ width: 2.7rem;+ height: 2.7rem;+ border-radius: 11px;+ }+ .hero-title-badge svg {+ width: 1.84rem;+ height: 1.84rem;+ }+ .stats {+ display: flex;+ width: 100%;+ justify-content: center;+ gap: 0;+ }+ .stat {+ min-width: 0;+ flex: 1;+ padding: 0 1rem;+ }+ .stat + .stat::before {+ top: 0.1rem;+ bottom: 0.1rem;+ }+ .stat-num {+ font-size: 2.2rem;+ }+ .hero-tagline { white-space: normal; }.grid { grid-template-columns: 1fr; padding: 0 1.25rem; }.controls { padding: 1rem 1.25rem 0; }.filter-row {@@ -1133,10 +1669,15 @@margin-right: calc(var(--deck-peek) * 0.5);padding-right: 1.25rem;}+ .marketplace-prelude { padding: 0.75rem 1.25rem 0; }.nav { padding: 0.75rem 1.25rem; }.footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }.empower-row { flex-direction: column; }.empower-card { margin: 0 0 1rem; padding: 1.25rem; }+ .typing-shell { padding: 0.72rem 0.78rem 0.8rem; }+ .typing-shell-head { align-items: flex-start; }+ .typing-shell-body { padding: 0.72rem 0.74rem; }+ .typing-shell-code { font-size: 0.74rem; }.empower-self .cmd-grid { grid-template-columns: 1fr; }.deck-nav { padding: 1.25rem 1.25rem 0; }.deck-arrow-btn span { display: none; }@@ -1152,7 +1693,24 @@.nav-links { gap: 0; }.nav-link { padding: 0.4rem 0.4rem; font-size: 0.75rem; }}++ @media (prefers-reduced-motion: reduce) {+ .hero-word,+ .hero-tagline-line {+ opacity: 1;+ transform: none;+ }++ .hero-shimmer::after,+ .hero-title-badge,+ .hero-badge-glow,+ .hero-badge-cursor,+ .typing-shell-cursor {+ animation: none !important;+ }+ }</style>+ <script>document.documentElement.classList.add('js');</script><!-- Umami Analytics β hkuds.github.io --><script defer src="https://cloud.umami.is/script.js" data-website-id="07082d05-efd3-4f85-a7a1-b426b0e8bfaa"></script><!-- Umami Analytics β clianything.cc -->@@ -1167,12 +1725,13 @@<nav class="nav"><a class="nav-brand" href="#">CLI-Hub</a><div class="nav-links">- <a class="nav-link" href="https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-hub-meta-skill/SKILL.md" target="_blank">+ <a class="nav-link" href="https://reeceyang.sgp1.cdn.digitaloceanspaces.com/SKILL.md" target="_blank">SKILL</a><a class="nav-link" href="https://github.com/HKUDS/CLI-Anything" target="_blank"><svg viewBox="0 0 98 96" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6C29.304 70.25 17.9 66.013 17.9 47.02c0-5.52 1.94-10.046 5.127-13.58-.486-1.302-2.264-6.437.486-13.34 0 0 4.206-1.302 13.59 5.216 3.963-1.14 8.17-1.628 12.34-1.628 4.17 0 8.376.568 12.34 1.628 9.384-6.518 13.59-5.216 13.59-5.216 2.75 6.903.972 12.038.486 13.34 3.268 3.534 5.127 8.06 5.127 13.58 0 19.074-11.485 23.15-22.328 24.29 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"/></svg>GitHub+ <span class="nav-link-stars" data-github-stars aria-label="GitHub star count">--</span></a><a class="nav-link" href="https://github.com/HKUDS/CLI-Anything/blob/main/CONTRIBUTING.md" target="_blank">Contribute@@ -1186,28 +1745,51 @@<!-- Hero --><div class="hero">- <h1><span class="hero-accent">CLI-</span><span class="hero-dim">Anything</span> <span class="hero-accent">Hub</span></h1>- <p class="hero-tagline"><strong>Any software. Any codebase. Any Web API.</strong> Generate an agent-native CLI and let AI agents operate it — install with a single command.</p>+ <div class="hero-title">+ <span class="hero-title-badge" aria-hidden="true">+ <svg viewBox="0 0 48 48" fill="none">+ <path d="M8 16.5 18.5 24 8 31.5" stroke="currentColor" stroke-width="3.9" stroke-linecap="square" stroke-linejoin="miter" style="color: var(--accent);" />+ <path d="M24 29.2h16" stroke="currentColor" stroke-width="3.9" stroke-linecap="square" class="hero-badge-cursor" style="color: rgba(248,250,252,0.98);" />+ <path d="M26 12h14" stroke="url(#heroBadgeBeam)" stroke-width="2.6" stroke-linecap="square" class="hero-badge-glow" opacity="0.78" />+ <path d="M7 10.5h9" stroke="currentColor" stroke-width="1.8" stroke-linecap="square" style="color: rgba(148,163,184,0.48);" />+ <path d="M7 37.5h11" stroke="currentColor" stroke-width="1.8" stroke-linecap="square" style="color: rgba(96,165,250,0.3);" />+ <defs>+ <linearGradient id="heroBadgeBeam" x1="26" y1="12" x2="40" y2="12" gradientUnits="userSpaceOnUse">+ <stop stop-color="#60A5FA" stop-opacity="0" />+ <stop offset="0.52" stop-color="#93C5FD" />+ <stop offset="1" stop-color="#60A5FA" stop-opacity="0" />+ </linearGradient>+ </defs>+ </svg>+ </span>+ <h1>+ <span class="hero-word hero-word--cli hero-accent">CLI-</span>+ <span class="hero-word hero-word--anything hero-dim hero-shimmer" data-text="Anything">Anything</span>+ <span class="hero-word hero-word--hub hero-accent">Hub</span>+ </h1>+ </div>+ <p class="hero-tagline"><span class="hero-tagline-line hero-tagline-line--any">Any software. Any codebase. Any Web API.</span> <span class="hero-tagline-line hero-tagline-line--rest">Generate an agent-native CLI and let AI agents operate it — install with a single command.</span></p>+ <div class="stats">+ <div class="stat">+ <div class="stat-num" id="cli-count">—</div>+ <div class="stat-label">CLIs Available</div>+ </div>+ <div class="stat">+ <div class="stat-num" id="category-count">—</div>+ <div class="stat-label">Categories</div>+ </div>+ </div><div class="empower-row"><div class="empower-card"><h3>Empower your agents — <span>install in one command</span></h3>- <p class="empower-available">Available on: <a href="https://clawhub.ai/yuh-yang/cli-anything-hub" target="_blank">ClawHub</a>, <a href="https://www.skillhub.club/web/skills/itsyuhao-cli-anything-hub" target="_blank">SkillHub</a>, <a href="https://skillhub.cn/skills/cli-hub-meta-skill" target="_blank">SkillHub.cn</a></p>- <div class="install-row">+ <p class="empower-available">Also Available on: <a href="https://clawhub.ai/yuh-yang/cli-anything-hub" target="_blank">ClawHub</a>, <a href="https://www.skillhub.club/web/skills/itsyuhao-cli-anything-hub" target="_blank">SkillHub</a>, <a href="https://skillhub.cn/skills/cli-hub-meta-skill" target="_blank">SkillHub.cn</a></p>+ <div class="install-row install-row--wrap"><span class="chip-label">npx skills</span><code>npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y</code><button class="copy-btn" onclick="copyCmd(this, 'npx skills add HKUDS/CLI-Anything --skill cli-hub-meta-skill -g -y')">Copy</button></div>- <div class="install-row">- <span class="chip-label">OpenClaw</span>- <code>openclaw skills install cli-anything-hub</code>- <button class="copy-btn" onclick="copyCmd(this, 'openclaw skills install cli-anything-hub')">Copy</button>- </div>- <div class="install-row">- <span class="chip-label">nanobot</span>- <code>nanobot skills install cli-anything-hub</code>- <button class="copy-btn" onclick="copyCmd(this, 'nanobot skills install cli-anything-hub')">Copy</button>- </div>+ <p class="empower-note"><strong>Works with:</strong> OpenClaw, Nanobot, Claude Code, Codex, Antigravity, and other SKILL-compatible agents.</p><div class="empower-prompt"><strong>Then prompt:</strong> <em>"Find appropriate CLI software in CLI-Hub and complete the task: ..."</em></div>@@ -1215,23 +1797,24 @@<div class="empower-card empower-self"><h3>Empower yourself — <span>your CLI toolkit</span></h3>- <div class="install-row">+ <div class="install-row install-row--wrap">+ <span class="chip-label">pip</span><code>pip install cli-anything-hub</code><button class="copy-btn" onclick="copyCmd(this, 'pip install cli-anything-hub')">Copy</button></div><div class="cmd-grid">- <div class="cmd-item"><span class="cmd-name">cli-hub list</span><span class="cmd-desc">Browse all CLIs</span></div>- <div class="cmd-item"><span class="cmd-name">cli-hub search</span><span class="cmd-desc">Find by keyword</span></div>- <div class="cmd-item"><span class="cmd-name">cli-hub install</span><span class="cmd-desc">Install (pip or npm)</span></div>- <div class="cmd-item"><span class="cmd-name">cli-hub info</span><span class="cmd-desc">CLI details</span></div>- <div class="cmd-item"><span class="cmd-name">cli-hub update</span><span class="cmd-desc">Update a CLI</span></div>- <div class="cmd-item"><span class="cmd-name">cli-hub uninstall</span><span class="cmd-desc">Remove a CLI</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub list</span><span class="cmd-desc">Browse the registry</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub search</span><span class="cmd-desc">Search by keyword</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub install</span><span class="cmd-desc">Install from CLI-Hub</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub info</span><span class="cmd-desc">Inspect one CLI</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub update</span><span class="cmd-desc">Update an install</span></div>+ <div class="cmd-item"><span class="cmd-name">cli-hub uninstall</span><span class="cmd-desc">Remove an install</span></div></div></div></div><div class="hero-actions">- <a class="btn-primary" href="https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-hub-meta-skill/SKILL.md" target="_blank">Agent SKILL (SKILL.md)</a>+ <a class="btn-primary" href="https://reeceyang.sgp1.cdn.digitaloceanspaces.com/SKILL.md" target="_blank">Agent SKILL (SKILL.md)</a><a class="btn-secondary" href="https://github.com/HKUDS/CLI-Anything" target="_blank"><svg viewBox="0 0 98 96" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6C29.304 70.25 17.9 66.013 17.9 47.02c0-5.52 1.94-10.046 5.127-13.58-.486-1.302-2.264-6.437.486-13.34 0 0 4.206-1.302 13.59 5.216 3.963-1.14 8.17-1.628 12.34-1.628 4.17 0 8.376.568 12.34 1.628 9.384-6.518 13.59-5.216 13.59-5.216 2.75 6.903.972 12.038.486 13.34 3.268 3.534 5.127 8.06 5.127 13.58 0 19.074-11.485 23.15-22.328 24.29 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"/></svg>Star on GitHub@@ -1244,18 +1827,21 @@</a></div>- <p class="hero-hint">Inspect the canonical <a href="https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-hub-meta-skill/SKILL.md" target="_blank">cli-hub-meta-skill</a> for autonomous CLI discovery & installation</p>+ <p class="hero-hint">Feed <a href="https://reeceyang.sgp1.cdn.digitaloceanspaces.com/SKILL.md" target="_blank">SKILL.md</a> to your AI agent for autonomous CLI discovery & installation</p><p class="hero-cta">We welcome contributions for <em>any</em> application — desktop apps, dev tools, cloud services, SaaS APIs, creative suites, and beyond. If it has a GUI or an API, it deserves an agent-native CLI. Read the <a href="https://github.com/HKUDS/CLI-Anything/blob/main/CONTRIBUTING.md" target="_blank">Contributing Guide</a>, use the <a href="https://github.com/HKUDS/CLI-Anything/blob/main/.github/PULL_REQUEST_TEMPLATE.md" target="_blank">PR Template</a>, and bring it to the hub!</p>- <div class="stats">- <div class="stat">- <div class="stat-num" id="cli-count">—</div>- <div class="stat-label">CLIs Available</div>+ </div>++ <div class="marketplace-prelude">+ <div class="typing-shell" data-typing-text="pip install cli-anything-hub">+ <div class="typing-shell-head">+ <span class="typing-shell-label">install first, then browse the marketplace</span>+ <button class="copy-btn typing-shell-copy" onclick="copyCmd(this, 'pip install cli-anything-hub')">Copy</button></div>- <div class="stat">- <div class="stat-num" id="category-count">—</div>- <div class="stat-label">Categories</div>+ <div class="typing-shell-body" aria-label="pip install cli-anything-hub">+ <span class="typing-shell-prompt">$</span>+ <code class="typing-shell-code"><span class="typing-shell-text" data-typing-target></span><span class="typing-shell-cursor" aria-hidden="true"></span></code></div></div></div>@@ -1325,7 +1911,7 @@Powered by <a href="https://github.com/HKUDS/CLI-Anything" target="_blank">CLI-Anything</a></div><div class="footer-stats">- <a class="footer-analytics-link" href="https://cloud.umami.is/share/mnilRgKH0oo7SJTs" target="_blank">+ <div class="footer-analytics-link" aria-label="Traffic snapshot"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/></svg><span class="stat-dot dot-total"></span><span id="stat-total">—</span> visits@@ -1335,7 +1921,7 @@<span class="analytics-sep">·</span><span class="stat-dot dot-agent"></span><span id="stat-agent">—</span> AI agent- </a>+ </div></div></footer>@@ -1369,6 +1955,7 @@});const REPO = 'https://github.com/HKUDS/CLI-Anything';+ const GITHUB_REPO_API = 'https://api.github.com/repos/HKUDS/CLI-Anything';const REPO_SKILLS_SOURCE = 'HKUDS/CLI-Anything';const REGISTRY_URLS = ['../../registry.json',@@ -1412,6 +1999,34 @@return null;}+ function formatCompactCount(value) {+ return new Intl.NumberFormat('en', {+ notation: 'compact',+ maximumFractionDigits: value >= 10000 ? 0 : 1,+ }).format(value);+ }++ async function loadGitHubStars() {+ try {+ const resp = await fetch(GITHUB_REPO_API, {+ headers: { 'Accept': 'application/vnd.github+json' }+ });+ if (!resp.ok) return;++ const repo = await resp.json();+ const stars = repo.stargazers_count;+ if (typeof stars !== 'number') return;++ document.querySelectorAll('[data-github-stars]').forEach(el => {+ el.textContent = formatCompactCount(stars);+ el.setAttribute('aria-label', `${stars.toLocaleString('en-US')} GitHub stars`);+ el.title = `${stars.toLocaleString('en-US')} GitHub stars`;+ });+ } catch (_) {+ // Keep fallback placeholder when GitHub API is unavailable.+ }+ }+async function loadRegistries() {try {const [harnessData, publicData, dates] = await Promise.all([@@ -1432,8 +2047,8 @@// Update countsconst totalClis = harnessClis.length + publicClis.length;const allCategories = [...new Set([...harnessClis, ...publicClis].map(c => c.category))];- document.getElementById('cli-count').textContent = totalClis;- document.getElementById('category-count').textContent = allCategories.length;+ animateCount(document.getElementById('cli-count'), totalClis, 980);+ animateCount(document.getElementById('category-count'), allCategories.length, 860);document.getElementById('deck-count-harness').textContent = harnessClis.length;document.getElementById('deck-count-public').textContent = publicClis.length;@@ -1656,6 +2271,14 @@return match ? match[1] : '';}+ function isWebUrl(value) {+ return /^https?:\/\//i.test(value || '');+ }++ function isRepoSkillPath(value) {+ return !/\s/.test(value || '') && /(^\.{0,2}\/|\/|\.md$|\.txt$)/i.test(value || '');+ }+function normalizeNpxSkillsCmd(cmd) {if (!cmd) return '';const trimmed = cmd.trim();@@ -1675,15 +2298,36 @@return normalizeNpxSkillsCmd(c.skill_md);}+ function renderSkillAction(value) {+ if (!value) return '';+ if (isWebUrl(value)) {+ return `<a href="${esc(value)}" target="_blank">Skill</a>`;+ }+ if (isRepoSkillPath(value)) {+ return `<a href="${REPO}/blob/main/${esc(value)}" target="_blank">Skill</a>`;+ }+ return `+ <span class="skill-popover">+ <button class="card-link-btn skill-trigger" type="button" aria-expanded="false" data-skill-value="${escAttr(value)}">Skill</button>+ <span class="skill-popover-panel">+ <span class="skill-popover-label">Skill install</span>+ <code>${esc(value)}</code>+ <button class="card-copy-btn skill-popover-copy" type="button" data-copy-value="${escAttr(value)}">Copy</button>+ </span>+ </span>`;+ }+function renderInstallStack(steps) {- return `<div class="card-install-stack">${steps.map((step) => `- <div class="card-install">- <div class="card-install-copy">- <span class="card-install-step">${esc(step.label)}</span>- <code>${esc(step.cmd)}</code>- </div>- <button class="card-copy-btn" onclick="copyCmd(this, '${esc(step.cmd)}')">Copy</button>- </div>`).join('')}</div>`;+ const display = steps.map((step) =>+ `<span class="install-comment"># ${esc(step.label.toLowerCase())}</span><span class="install-command">${esc(step.cmd)}</span>`+ ).join('');+ const copyText = steps.map((step) =>+ `# ${step.label.toLowerCase()}\n${step.cmd}`+ ).join('\n');+ return `<div class="card-install">+ <code>${display}</code>+ <button class="card-copy-btn" onclick='copyCmd(this, ${JSON.stringify(copyText)})'>Copy</button>+ </div>`;}function renderHarnessCard(c) {@@ -1710,10 +2354,10 @@? `<div class="card-date">Updated ${esc(c.last_modified)}</div>`: '';const installSteps = [- { label: 'Step 1 Β· Install CLI', cmd: `cli-hub install ${c.name}` }+ { label: 'step 1 Β· install cli', cmd: `cli-hub install ${c.name}` }];const skillCmd = harnessSkillCmd(c);- if (skillCmd) installSteps.push({ label: 'Step 2 Β· Install Skill', cmd: skillCmd });+ if (skillCmd) installSteps.push({ label: 'step 2 Β· install skill', cmd: skillCmd });const installHtml = renderInstallStack(installSteps);return `@@ -1755,6 +2399,7 @@const titleHtml = c.homepage? `<a href="${esc(c.homepage)}" target="_blank">${esc(c.display_name)}${EXTERNAL_LINK_SVG}</a>`: esc(c.display_name);+ const skillLink = renderSkillAction(c.skill_md);const sourceLink = c.source_url? `<a href="${esc(c.source_url)}" target="_blank">Source</a>`: '';@@ -1776,12 +2421,13 @@: '';const installSteps = isBundled? []- : [{ label: 'Step 1 Β· Install CLI', cmd: `cli-hub install ${c.name}` }];+ : [{ label: 'step 1 Β· install cli', cmd: `cli-hub install ${c.name}` }];const skillCmd = publicSkillCmd(c);- if (skillCmd) installSteps.push({ label: 'Step 2 Β· Install Skill', cmd: skillCmd });+ if (skillCmd) installSteps.push({ label: 'step 2 Β· install skill', cmd: skillCmd });const cliHubInstallHtml = isBundled? `<div class="card-install card-install--note"><code>Bundled with the upstream app</code></div>`: renderInstallStack(installSteps);+ const linksHtml = [sourceLink, skillLink].filter(Boolean).join(' · ');return `<div class="card">@@ -1797,7 +2443,7 @@${cliHubInstallHtml}${publicNotesHtml}<div class="card-footer">- <div class="card-links">${sourceLink}</div>+ <div class="card-links">${linksHtml}</div>${contributorHtml}</div></div>`;@@ -1810,6 +2456,78 @@});}+ function initHeroMotion() {+ if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {+ document.documentElement.classList.remove('js');+ return;+ }+ window.requestAnimationFrame(() => {+ document.documentElement.classList.add('motion-ready');+ });+ }++ function animateCount(el, target, duration = 900) {+ if (!el) return;+ const finalValue = Number(target) || 0;++ if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {+ el.textContent = finalValue;+ return;+ }++ const start = performance.now();++ function step(now) {+ const progress = Math.min((now - start) / duration, 1);+ const eased = 1 - Math.pow(1 - progress, 3);+ el.textContent = Math.round(finalValue * eased);+ if (progress < 1) {+ window.requestAnimationFrame(step);+ } else {+ el.textContent = finalValue;+ }+ }++ window.requestAnimationFrame(step);+ }++ function initHeroTypingBar() {+ const shell = document.querySelector('[data-typing-text]');+ if (!shell) return;+ const target = shell.querySelector('[data-typing-target]');+ const fullText = shell.dataset.typingText || '';+ if (!target || !fullText) return;++ if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) {+ target.textContent = fullText;+ return;+ }++ let index = 0;+ let deleting = false;++ function tick() {+ target.textContent = fullText.slice(0, index);++ let delay = deleting ? 44 : 86;+ if (!deleting && index < fullText.length) {+ index += 1;+ } else if (!deleting && index === fullText.length) {+ deleting = true;+ delay = 1650;+ } else if (deleting && index > 0) {+ index -= 1;+ } else {+ deleting = false;+ delay = 480;+ }++ window.setTimeout(tick, delay);+ }++ window.setTimeout(tick, 420);+ }+function esc(s) {if (!s) return '';const d = document.createElement('div');@@ -1817,6 +2535,62 @@return d.innerHTML;}+ function escAttr(s) {+ if (!s) return '';+ return String(s)+ .replace(/&/g, '&')+ .replace(/"/g, '"')+ .replace(/</g, '<')+ .replace(/>/g, '>');+ }++ function toggleSkillPopover(trigger) {+ const popover = trigger.closest('.skill-popover');+ if (!popover) return;+ const shouldOpen = !popover.classList.contains('is-open');+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ if (!shouldOpen) return;+ popover.classList.add('is-open');+ trigger.setAttribute('aria-expanded', 'true');+ }++ document.addEventListener('click', (e) => {+ const copyBtn = e.target.closest('.skill-popover-copy');+ if (copyBtn) {+ e.preventDefault();+ e.stopPropagation();+ copyCmd(copyBtn, copyBtn.dataset.copyValue);+ return;+ }++ const trigger = e.target.closest('.skill-trigger');+ if (trigger) {+ e.preventDefault();+ e.stopPropagation();+ toggleSkillPopover(trigger);+ return;+ }++ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });++ document.addEventListener('keydown', (e) => {+ if (e.key !== 'Escape') return;+ document.querySelectorAll('.skill-popover.is-open').forEach((node) => {+ node.classList.remove('is-open');+ const btn = node.querySelector('.skill-trigger');+ if (btn) btn.setAttribute('aria-expanded', 'false');+ });+ });+// Wire up search and sort for each deckdocument.getElementById('search-harness').addEventListener('input', (e) => {deckState.harness.query = e.target.value;@@ -1838,6 +2612,8 @@window.addEventListener('resize', updateDeckPosition);initDeckGestures();+ initHeroMotion();+ initHeroTypingBar();loadRegistries().then(updateDeckPosition);// ββ Visitor classification: human vs AI agent ββ@@ -1923,49 +2699,48 @@// ββ Fetch all-time stats from Umami Cloud API (both sites) ββconst UMAMI_API = 'https://api.umami.is/v1';const UMAMI_KEY = 'api_idAebMhzn6z0hsUQT7BSxRuCK2GUZvRY';- const WEBSITE_IDS = [- '07082d05-efd3-4f85-a7a1-b426b0e8bfaa', // hkuds.github.io- 'a076c661-bed1-405c-a522-813794e688b4', // clianything.cc- ];+ const HKUDS_WEBSITE_ID = '07082d05-efd3-4f85-a7a1-b426b0e8bfaa';+ const CC_WEBSITE_ID = 'a076c661-bed1-405c-a522-813794e688b4';const headers = { 'Accept': 'application/json', 'x-umami-api-key': UMAMI_KEY };async function loadVisitorStats() {try {const now = Date.now();- let totalVisits = 0, humanCount = 0;+ let hkudsHumanVisits = 0;+ let ccHumanVisits = 0;+ let ccAgentVisits = 0;- // Fetch stats and events from both sites in parallel- const fetches = WEBSITE_IDS.flatMap(id => [- fetch(`${UMAMI_API}/websites/${id}/stats?startAt=0&endAt=${now}`, { headers }),- fetch(`${UMAMI_API}/websites/${id}/events/series?startAt=0&endAt=${now}&unit=year&timezone=UTC`, { headers })+ const [hkudsStatsResp, ccEventsResp] = await Promise.all([+ fetch(`${UMAMI_API}/websites/${HKUDS_WEBSITE_ID}/stats?startAt=0&endAt=${now}`, { headers }),+ fetch(`${UMAMI_API}/websites/${CC_WEBSITE_ID}/events/series?startAt=0&endAt=${now}&unit=year&timezone=UTC`, { headers })]);- const [statsResp1, eventsResp1, statsResp2, eventsResp2] = await Promise.all(fetches);- for (const resp of [statsResp1, statsResp2]) {- if (resp.ok) {- const stats = await resp.json();- totalVisits += stats.visits ?? 0;- }+ if (hkudsStatsResp.ok) {+ const stats = await hkudsStatsResp.json();+ hkudsHumanVisits = stats.visits ?? 0;}- for (const resp of [eventsResp1, eventsResp2]) {- if (resp.ok) {- const events = await resp.json();- events.forEach(e => {- if (e.x === 'visit-human') humanCount += e.y || 0;- });- }+ if (ccEventsResp.ok) {+ const events = await ccEventsResp.json();+ events.forEach(e => {+ if (e.x === 'visit-human') ccHumanVisits += e.y || 0;+ if (e.x === 'visit-agent') ccAgentVisits += e.y || 0;+ });}+ const humanCount = hkudsHumanVisits + ccHumanVisits;+ const totalVisits = humanCount + ccAgentVisits;+document.getElementById('stat-total').textContent = totalVisits.toLocaleString();document.getElementById('stat-human').textContent = humanCount.toLocaleString();- document.getElementById('stat-agent').textContent = Math.max(0, totalVisits - humanCount).toLocaleString();+ document.getElementById('stat-agent').textContent = ccAgentVisits.toLocaleString();} catch (_) {// Stats not available β leave dashes}}loadVisitorStats();+ loadGitHubStars();})();</script></body>