collaboration-hub
БесплатноЗапускает вложенные скриптыНе проверенDevelop and debug the AILANG dashboard server (`ailang serve`), a headless API with no UI — OTLP/hook ingest, observatory and chains reads, secret-approval…
от sunholo-data★ 39 звёзд на GitHubОб этом скилле
Dashboard API (Collaboration Hub server)
ailang serve is a headless API — the React UI was removed in November 2026
(design_docs/planned/m-dashboard-headless-api.md). It runs locally on the rig
(dev.ailang.server, 127.0.0.1:1957) and on Cloud Run (ailang-dashboard,
ailang-dev-dashboard, ailang-test-dashboard). Inspect work with the CLI:
ailang chains, ailang chains dashboard <spans|traces|inbox|hierarchy|sessions|tools|stats|health>,
ailang coordinator pending|approve|reject.
Quick Start
make services-start # Start server + coordinator
make services-status # Check both services
make services-restart # Rebuild and restart
curl -s localhost:1957/health
Before changing a route
- The route table and its auth classes live in the design doc above and are enforced by
internal/server/read_auth_test.go(TestReadAuth_EveryRouteClassified): a new route is gated by default and fails that test until it is classified. - A route here is a route on the internet (
.claude/rules/cloud-endpoints.md). - Removing a route: find its callers by route string AND by data key — scripts,
tools/,.claude/,cmd/ailang, the docs site (docs/src/lib/benchmarkFetch.js), and the ailang-multivac / ailang-demos repos.
Architecture
internal/server/routes.go— every route;read_auth.go— the default-deny gateinternal/server/origin.go— CORS / origin policyinternal/observatory/— span storage,/api/observatory/*, OTLP receiver, hierarchyinternal/server/handlers_chains*.go—/api/chains/*- Database: SQLite at
~/.ailang/state/observatory.dblocally; Firestore in the cloud
Available Scripts
scripts/diagnose.sh <command>
.claude/skills/collaboration-hub/scripts/diagnose.sh health # Server + DB check
.claude/skills/collaboration-hub/scripts/diagnose.sh task <id> # Task details
.claude/skills/collaboration-hub/scripts/diagnose.sh spans <task_id> # Span hierarchy
.claude/skills/collaboration-hub/scripts/diagnose.sh orphans # Find orphan spans
.claude/skills/collaboration-hub/scripts/diagnose.sh costs # Cost breakdown
.claude/skills/collaboration-hub/scripts/diagnose.sh recent # Recent activity
Key API Endpoints
On a non-loopback bind every /api/ read needs Authorization: Bearer $AILANG_DASHBOARD_TOKEN
(the server's COORDINATOR_API_KEY); a loopback server is exempt.
Observatory:
GET /api/observatory/tasks/{id}/hierarchy- Full task hierarchy (RECOMMENDED)GET /api/observatory/spans?task_id=X- Spans by taskGET /api/observatory/traces/{id}- Trace with all spans
Control plane (read by ailang chains dashboard):
GET /api/controlplane/exec-hierarchy- Execution hierarchyGET /api/controlplane/stats/breakdown- Usage breakdown
Approvals: coordinator task approvals go through the CLI (ailang coordinator approve|reject, --remote gcp for the cloud plane). Secret approvals use
POST /api/approvals (own ID-token auth) and the signed ntfy link.
For the complete API reference: resources/rest_api_reference.md
Hierarchy & Trace Correlation
The hierarchy API applies three levels of virtual re-parenting:
- Timestamp Correlation - Fixes ailang.* spans under exec.tool_use
- Cross-Trace Merging - Links spans across different trace IDs
- Session-Based Merging - Links orphan traces by session.id
Why use hierarchy API? Child spans don't have task_id set. The hierarchy endpoint expands traces to include ALL spans.
For detailed algorithm: See resources/hierarchy_algorithm.md
Troubleshooting
Event shows no spans
- Run:
scripts/diagnose.sh task TASK_ID - Check hierarchy API:
curl localhost:1957/api/observatory/tasks/TASK_ID/hierarchy - Check spans exist:
scripts/diagnose.sh spans TASK_ID
Missing child spans (exec.turn, etc.)
Use hierarchy API, not direct spans API:
# Wrong - only spans with task_id
curl "/api/observatory/spans?task_id=X"
# Correct - all spans in linked traces
curl "/api/observatory/tasks/X/hierarchy"
For database diagnostics: See resources/database_diagnosis.md
Resources
- REST API Reference: resources/rest_api_reference.md
- Database Diagnosis: resources/database_diagnosis.md
- Hierarchy Algorithm: resources/hierarchy_algorithm.md
- ID Relationships: resources/id_relationships.md - How IDs link across all 3 databases
Установить collaboration-hub в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл collaboration-hub?
Develop and debug the AILANG dashboard server (`ailang serve`), a headless API with no UI — OTLP/hook ingest, observatory and chains reads, secret-approval intake, /benchmarks/ data, /health. Use when changing internal/server routes or handlers, diagnosing span hierarchy or missing telemetry, or checking what the dashboard API serves.
Как установить скилл collaboration-hub?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл collaboration-hub запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic