nntrivi2001 8336289d34 feat(agenthub): bring the dashboard back into sg as agenthub
Reverses the ccam removal in ee8748c: the team wants one marketplace to install from, so the dashboard belongs here.

Two things are fixed while restoring it. The entry is named `agenthub`, matching the `name` in the AgentHub repo's own .claude-plugin/plugin.json (the old entry called itself `ccam`, which matched nothing). And its url points at Smartgift-AI/AgentHub.git directly rather than the retired Claude-Code-Monitor.git — that old URL still works, but only through a Gitea rename redirect that stops the day someone turns it off.

README documents the one real hazard: the AgentHub repo also publishes its own marketplace, and installing the dashboard from both runs two hook-ingestion sets in parallel, double-counting every event's tokens and cost. It also states plainly that the 10 focused sub-plugins are not here — only in AgentHub's own marketplace — and gives the ccam@sg -> agenthub@sg migration commands.
2026-09-10 14:08:38 +07:00

Smartgift Skills

Marketplace nội bộ chứa các skill Claude Code của Smartgift. Đăng ký marketplace một lần, rồi cài plugin theo vai trò.

Plugin

Plugin Dành cho Skill Nội dung
sg-all Mặc định — ai muốn tất cả sg-md-writing + sg-prompt-sharpening Gói cả hai skill. Cài một cái là có tất cả.
sg-dev Team dev sg-md-writing Soạn & bảo trì file CLAUDE.md / AGENTS.md ràng buộc hành vi AI: routing map, reuse inventory, an toàn với model yếu, tự đề xuất cập nhật khi code đổi (hỏi confirm trước khi ghi).
sg-common Chung sg-prompt-sharpening Trước khi hành động với yêu cầu ngắn/mơ hồ, mở rộng thành các cách hiểu rõ ràng, nêu giả định, định nghĩa tiêu chí "xong".
agenthub Ai muốn theo dõi session Claude Code hooks + server + CLI + MCP Dashboard local-first AgentHub. Source lấy trực tiếp từ repo đó (nhánh main), không phải code trong repo này.

Khuyến nghị: cài sg-all. Đã cài sg-all thì KHÔNG cần cài thêm sg-dev hay sg-common — cài trùng sẽ nạp lặp skill. Chỉ cài sg-dev/sg-common riêng nếu có lý do muốn giới hạn phạm vi. agenthub là plugin độc lập (không phải skill), cài kèm sg-all/sg-dev/sg-common không xung đột.

Cài đặt

# 1. Đăng ký marketplace (một lần) — cần đăng nhập gitea Smartgift
claude plugin marketplace add https://git.smartgift.io.vn/Smartgift-AI/smartgift-claude-skills.git

# 2. Nếu đã cài all thì không cần cài các plugin bên dưới
claude plugin install sg-all@sg

Nếu chỉ muốn cài một trong số các plugin thì hãy cài bằng lệnh dưới đây (nếu đã cài sg-all thì không cần cài bên dưới nữa):

claude plugin install sg-dev@sg        # chỉ sg-md-writing
claude plugin install sg-common@sg     # chỉ sg-prompt-sharpening

Xem: claude plugin list. Gỡ: claude plugin uninstall sg-all@sg (hoặc sg-dev@sg / sg-common@sg / agenthub@sg tùy plugin đã cài).

Dashboard AgentHub

claude plugin install agenthub@sg

Cần Node >= 22.5 trên máy cài (server dùng node:sqlite, không có better-sqlite3 native). Chi tiết bootstrap, các lệnh /agenthub-doctor /agenthub-update /agenthub-open, và cách gỡ sạch: xem docs/PLUGINS.md của AgentHub.

Important

Chỉ cài AgentHub từ MỘT marketplace. Repo AgentHub cũng tự phát hành marketplace riêng của nó. Cài dashboard từ cả hai nơi sẽ chạy hai bộ hook ingestion song song — mỗi event vào database hai lần, token và cost bị đếm đôi. Chọn một đường.

sg chỉ có bản dashboard đầy đủ (entry agenthub ở trên). 10 plugin con (agenthub-analytics, agenthub-sessions, agenthub-workflows, …) chỉ có ở marketplace riêng của AgentHub — cần thì add marketplace đó thay vì cài ở đây.

Plugin này trước đây ở sg dưới tên ccam, trỏ vào repo cũ Claude-Code-Monitor. Entry đã đổi tên thành agenthub cho khớp plugin.json của nó, và URL trỏ thẳng vào tên repo mới (không còn dựa vào redirect của Gitea).

Nếu đang cài bản cũ: lần claude plugin marketplace update sg tới, ccam@sg sẽ chuyển sang ✘ failed to load trong claude plugin list (đúng như dự kiến — entry tên ccam không còn tồn tại), và dashboard ngừng nhận event cho tới khi bạn chuyển sang tên mới:

claude plugin uninstall ccam@sg
claude plugin marketplace update sg
claude plugin install agenthub@sg
S
Description
Smartgift Claude Code skills marketplace: md-writing + prompt-sharpening
Readme 122 KiB
Languages
Markdown 100%