collaboration-hub
Skill38 starsChanged 8 days agoApache-2.0View on GitHub
Develop and modify the AILANG Collaboration Hub UI. Use when user asks to add features to the monitoring dashboard, modify the approval queue, update the message center, or make changes to the React frontend.
In this repository85 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- llms.txtllms.txt
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- eval-gap-finderSkill
- gemini-cli-helperSkill
- github-issue-triageSkill
- headless-runnerSkill
- local-model-onboardingSkill
- local-ollama-evalSkill
- mission-briefSkill
- mission-controlSkill
- mission-loop-changeSkill
- model-managerSkill
- motoko-analyzerSkill
- parser-developerSkill
- post-releaseSkill
- pr-monitorSkill
- prompt-managerSkill
- release-managerSkill
- sonarcloud-triageSkill
- sprint-evaluatorSkill
- sprint-executorSkill
- sprint-plannerSkill
- test-coverage-guardianSkill
- trace-debuggerSkill
- use-ailangSkill
- wasm-debuggerSkill
- agent-inboxSkill
- ailang-core-triageSkill
- ailang-packagesSkill
- benchmark-managerSkill
- benchmark-runnerSkill
- builtin-developerSkill
- cli-doc-maintainerSkill
- cloud-cascade-debugSkill
- cloud-setupSkill
- codebase-organizerSkill
- collaboration-hubSkill
- coordinator-helperSkill
- design-doc-creatorSkill
- design-spec-auditorSkill
- docs-syncSkill
- eval-analyzerSkill
- eval-gap-finderSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 33
Use when user asks to:
- Distinctive: line 34
Add features to Control Plane dashboard
- Distinctive: line 36
Update message center or approval queue
- Distinctive: line 37
Add components to trace waterfall or event queue
- Distinctive: line 122
Update button text to indicate handoff will occur
- Very specific: line 183
Check hierarchy API: curl localhost:1957/api/observatory/tasks/TASK_ID/hierarchy
- Very specific: line 184
Check spans exist: scripts/diagnose.sh spans TASK_ID
- Distinctive: line 188
Use hierarchy API, not direct spans API:
- Very specific: line 223
Update scripts/resources/SKILL.md
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Collaboration Hub Developer
Build and modify the AILANG Collaboration Hub - a React-based UI for multi-agent coordination, task execution monitoring, and observability.
Quick Start
Starting services:
make services-start # Start server + coordinator
make services-status # Check both services
make services-stop # Stop both
make services-restart # Rebuild and restartAfter UI changes:
make ui-deploy # Build, clean, copy to server
make services-restart # Restart with new buildKey URLs:
- UI: http://localhost:1957/
- REST API: http://localhost:1957/api/
- WebSocket: ws://localhost:1957/ws
When to Use This Skill
Use when user asks to:
- Add features to Control Plane dashboard
- Modify Observatory or task hierarchy views
- Update message center or approval queue
- Add components to trace waterfall or event queue
- Style or theme UI components
- Diagnose hierarchy or span issues
Architecture Overview
Backend (Go):
internal/server/server.go- HTTP server, static filesinternal/server/handlers_controlplane.go- Control plane APIinternal/observatory/- Telemetry and span storageinternal/observatory/hierarchy.go- Hierarchy building
Frontend (React + TypeScript + Vite):
ui/src/
├── App.tsx # Main app, navigation
├── features/
│ ├── controlplane/ # Control Plane v4 (main view)
│ │ ├── ControlPlane.tsx # Main container
│ │ ├── components/ # MessageQueue, TraceWaterfall, etc.
│ │ └── hooks/ # useEventQueue, useTraceData
│ ├── observatory/ # Task and span exploration
│ ├── tasks/ # Task execution monitoring
│ ├── agents/ # Agent management
│ ├── messaging/ # Message center
│ └── approvals/ # Approval workflow
└── components/ # Shared componentsDatabase: SQLite at ~/.ailang/state/observatory.db
Available Scripts
scripts/diagnose.sh <command>
Diagnose Collaboration Hub and Observatory issues.
Commands:
.Codex/skills/collaboration-hub/scripts/diagnose.sh health # Server + DB check
.Codex/skills/collaboration-hub/scripts/diagnose.sh task <id> # Task details
.Codex/skills/collaboration-hub/scripts/diagnose.sh spans <task_id> # Span hierarchy
.Codex/skills/collaboration-hub/scripts/diagnose.sh orphans # Find orphan spans
.Codex/skills/collaboration-hub/scripts/diagnose.sh costs # Cost breakdown
.Codex/skills/collaboration-hub/scripts/diagnose.sh recent # Recent activityKey API Endpoints
Control Plane:
GET /api/controlplane/stats- Unified statsGET /api/controlplane/exec-hierarchy- Execution hierarchy
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
Approvals (v0.6.5+):
GET /api/coordinator/pending- List pending approvalsPOST /api/coordinator/approve/{id}- Approve (merge + optional handoff)POST /api/coordinator/reject/{id}- Reject with feedback
For complete API reference: See resources/rest_api_reference.md
Approval Workflow (v0.6.5+)
The approval system uses unified approvals where merge and handoff are combined:
| Approval Type | UI Display | On Approve |
merge | "Approve" button | Merges code to dev |
merge_handoff | "Approve & Handoff" button | Merges code AND triggers next agent |
API response includes:
{
"id": "apr-123",
"type": "merge_handoff",
"context_json": "{\"handoff_targets\":[\"sprint-planner\"],\"session_id\":\"...\"}"
}UI considerations:
- Show handoff targets when
type === "merge_handoff" - Update button text to indicate handoff will occur
- Show session continuity info (agent will resume with context)
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
Development Workflow
Adding a Component
// ui/src/features/controlplane/components/NewComponent.tsx
import styles from '../ControlPlane.module.css';
export const NewComponent: React.FC<Props> = ({ data }) => {
return <div className={styles.newComponent}>{/* content */}</div>;
};Adding Styles
/* Add to ControlPlane.module.css */
.newComponent {
background: var(--bg-surface);
padding: var(--space-4);
}CSS Variables
/* Colors */
--bg-deep: #0a0c10;
--bg-surface: #161b22;
--primary: #25c2a0;
--success: #10b981;
--danger: #ef4444;
/* Text */
--text-primary: #e6edf3;
--text-secondary: #8b949e;
/* Spacing */
--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;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"UI changes not appearing
make ui-deploy # Clean build
# Hard refresh: Cmd+Shift+RFor 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
Progressive Disclosure
- Always loaded: This SKILL.md (~200 lines)
- Execute as needed: Scripts in
scripts/ - Load on demand: Resources in
resources/
Self-Improvement
This skill self-improves. When issues are discovered:
- Identify the issue
- Update scripts/resources/SKILL.md
- Validate changes
- Log in CHANGELOG.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

