session-orchestrator / rules
Cursor rule53 starsChanged 31 days agoMITView on GitHub
When checking service health, CI pipeline status, endpoint availability, or cross-repo status
We split this 080-ecosystem-health.mdc into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- Very specific: line 24
Read health-endpoints from Session Config.
- Very specific: line 135
If no health-endpoints configured: omit the service table entirely
- Very specific: line 136
If no cross-repos configured: omit the critical issues section
- Distinctive: line 137
Only show "Attention Required" if any service is DOWN/DEGRADED or critical issue count > 0
≈ “Common” is an estimate: at least 1 in 5 of the 6,350 Cursor rule 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
---
description: "When checking service health, CI pipeline status, endpoint availability, or cross-repo status"
globs: ""
alwaysApply: false
---
# Ecosystem Health Check
Monitor health across configured service endpoints, CI pipelines, and critical issues. Automatically invoked during session-start when ecosystem-health is enabled in Session Config.
## Session Config Fields
This skill reads from the project's `## Session Config` section:
- **`health-endpoints`** -- list of `{name, url}` objects for service health checks
- **`cross-repos`** -- list of related repositories for critical issue scanning
Both fields are optional. The skill degrades gracefully when either is missing.
---
## 1. Service Health
Read `health-endpoints` from Session Config. If not configured or empty:
> "No health endpoints configured in Session Config. Add `health-endpoints` to enable service monitoring."
Skip this section and proceed to CI Pipeline Status.
### Health Check Procedure
For each configured endpoint:
```bash
# Example config:
# health-endpoints:
# - name: API
# url: https://api.example.com/health
# - name: Worker
# url: http://worker:8080/healthz
# Basic check
curl -sf <url> 2>/dev/null && echo "<name>: UP" || echo "<name>: DOWN"
# If endpoint returns JSON with a "status" field, extract it:
curl -sf <url> 2>/dev/null | python3 -c "
import json,sys
d=json.load(sys.stdin)
print(f'<name>: {d.get(\"status\",\"OK\")}')
" 2>/dev/null || echo "<name>: DOWN"
```
Generate check commands dynamically from config. Never hardcode service names or URLs.
### Status Classification
| Status | Meaning |
|--------|---------|
| **UP** | Endpoint responded successfully |
| **DOWN** | Endpoint unreachable or returned error |
| **DEGRADED** | Endpoint responded but reported unhealthy status in JSON body |
---
## 2. CI Pipeline Status
Query the latest pipeline/workflow runs for the current repo. Report the 3 most recent runs.
### VCS Detection
Detect the VCS platform per the VCS Auto-Detection section of the gitlab-ops rule. Then use the appropriate CLI:
```bash
# GitLab
glab pipeline list -R <OWNER>/<REPO> --per-page 3
# GitHub
gh run list -R <OWNER>/<REPO> --limit 3
```
Report each run with: status (success/failed/pending), branch, and timestamp.
---
## 3. Critical Issues
Read `cross-repos` from Session Config. If not configured or empty:
> "No cross-repos configured in Session Config. Add `cross-repos` to enable cross-project issue scanning."
Skip this section.
### Cross-Repo Issue Scan
For each repo in `cross-repos`:
1. Select host + encoded project path, or the GitHub `owner/repo` slug (see gitlab-ops Canonical Project Identity)
2. Query open issues with `priority::critical` or `priority::high` labels (limit 5 per repo)
3. Collect and report results across all configured repos
```bash
# GitLab
glab api --hostname "$GITLAB_HOST" "projects/${ENCODED_PROJECT_PATH}/issues?labels=priority::critical,priority::high&state=opened&per_page=5"
# GitHub
gh issue list -R <OWNER>/<REPO> --label "priority::critical" --limit 5
gh issue list -R <OWNER>/<REPO> --label "priority::high" --limit 5
```
---
## 4. Health Report Format
Present as a compact dashboard:
```
## Ecosystem Health
| Service | Status |
|---------|--------|
| API | UP |
| Worker | DOWN |
| DB | UP |
CI Pipeline: green (last 3 runs passed)
Critical Issues: 2 across 3 repos
### Attention Required
- Worker service is DOWN
- 2 critical issues in cross-repos (see details below)
```
### Conditional Sections
- If no `health-endpoints` configured: omit the service table entirely
- If no `cross-repos` configured: omit the critical issues section
- Only show "Attention Required" if any service is DOWN/DEGRADED or critical issue count > 0
### Status Indicators
| Indicator | Condition |
|-----------|-----------|
| All clear | All services UP, CI green, no critical issues |
| Warning | Any service DEGRADED or CI pending |
| Alert | Any service DOWN, CI failed, or critical issues exist |
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 3,978 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository167 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/000-session-orchestrator.mdcCursor rule
- .cursor/rules/010-session-workflow.mdcCursor rule
- .cursor/rules/020-quality-gates.mdcCursor rule
- .cursor/rules/030-wave-execution.mdcCursor rule
- .cursor/rules/040-discovery.mdcCursor rule
- .cursor/rules/050-plan.mdcCursor rule
- .cursor/rules/060-evolve.mdcCursor rule
- .cursor/rules/070-gitlab-ops.mdcCursor rule
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
- architectureSkill
- autopilotSkill
- bootstrapSkill
- brainstormSkill
- claude-md-drift-checkSkill
- closeSkill
- convergence-monitoringSkill
- debugSkill
- discoverySkill
- dispatcherSkill
- docs-orchestratorSkill
- ecosystem-healthSkill
- eli5Skill
- evalSkill
- evolveSkill
- frontmatter-guardSkill
- gitlab-opsSkill
- gitlab-portfolioSkill
- goSkill
- grillSkill
- harness-auditSkill
- hook-developmentSkill
- mcp-builderSkill
- memory-cleanupSkill
- mode-selectorSkill
- npm-publishSkill
- peekaboo-driverSkill
- persona-panelSkill
- planSkill
- playwright-driverSkill
- portfolioSkill
- quality-gatesSkill
- reconcileSkill
- releaseSkill
- remote-offloadSkill
- repo-auditSkill
- session-endSkill
- session-planSkill
- sessionSkill
- session-startSkill
- spinoutSkill
- sunset-reviewSkill
- templates-ackSkill
- test-auditSkill
- test-runnerSkill
- testSkill
- tmux-layoutSkill
- using-orchestratorSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

