AgentSkillsCN

cockpit

全面展示生态系统驾驶舱,囊括依赖关系图、仓库健康状况以及主动预警功能——宛如一架能洞察各仓库全局态势的“飞机驾驶舱”。

SKILL.md
--- frontmatter
name: cockpit
description: Display full ecosystem cockpit with dependency graph, repo health, and proactive alerts. The airplane cockpit that sees everything across all repos.
user-invocable: true

/cockpit - CYNIC Ecosystem Cockpit

"Le cockpit qui voit tout" - The cockpit that sees everything

Quick Start

code
/cockpit

What It Does

Provides omniscient awareness across the entire ecosystem:

  • Repo Health: Status of all repos in /workspaces
  • Dependencies: Inter-repo dependency graph
  • Alerts: Proactive warnings (uncommitted changes, drift, conflicts)
  • Summary: Unified ecosystem metrics

Views

Full Status (default)

code
/cockpit

Alerts Only

code
/cockpit alerts

Dependencies

code
/cockpit deps

Single Repo

code
/cockpit GASdf

Implementation

The cockpit runs automatically at session start (via awaken.cjs) and stores state in ~/.cynic/cockpit/.

Manual Scan

To run a fresh scan:

javascript
// In hooks/lib context
const cockpit = require('./scripts/lib/cockpit.cjs');
const state = cockpit.fullScan();
console.log(cockpit.formatCockpitStatus(state));

Read Cached State

javascript
const state = cockpit.getCockpitState();

Data Files

FilePurpose
status.jsonFull ecosystem scan results
alerts.jsonActive alerts (TTL: 1 hour)
dependencies.jsonDependency graph

Repo Health States

StateIconMeaning
healthyClean, on main, up to date
warning⚠️Uncommitted changes or behind remote
critical🔴Major issues needing attention
unknownNot a git repo or scan failed

Alert Types

TypeTrigger
health_criticalRepo in critical state
uncommitted_changes>10 modified files in critical repo
behind_remote>5 commits behind origin
non_main_branchCritical repo not on main
dependency_issueCircular dependency detected

Ecosystem Knowledge

The cockpit knows about these core repos:

RepoRoleCritical
CYNIC-newcore brain
GASdfgasless infra
HolDexK-Score oracle
asdf-brainlegacy proto
asdf-manifestophilosophy

φ-Alignment

  • Scan interval: 61.8 seconds (φ × 100ms × 618)
  • Alert TTL: 1 hour
  • Max alerts: 100

See Also

  • /health - CYNIC services health
  • /ecosystem - Tracked repo updates
  • /patterns - Detected patterns