080-ecosystem-health

080-ecosystem-health is a cursor rule for Cursor from Kanevry/session-orchestrator. It costs 17 tokens per session (1,003 once invoked), scanned C, original, MIT.

A health-check process for configured services, continuous integration pipelines, and related repositories. Continuous integration is automated checking that runs when code changes.

In plain words
What is it for?
Use it at session start to check configured service endpoints, CI status, and critical issues in related repositories. It reads endpoint and repository settings from Session Config.
Why use it?
It shows whether important services and automated checks are working before development continues. It also handles missing health-check settings without failing the whole process.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it at session start to check configured service endpoints, CI status, and critical issues in related repositories. It reads endpoint and repository settings from Session Config.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kanevry/session-orchestrator/080-ecosystem-health
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Kanevry/session-orchestrator

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 080-ecosystem-health

README.md
[![agentmods](https://agentmods.dev/badge/rules/kanevry/session-orchestrator/080-ecosystem-health.svg)](https://agentmods.dev/rules/kanevry/session-orchestrator/080-ecosystem-health)
Your own site
<a href="https://agentmods.dev/rules/kanevry/session-orchestrator/080-ecosystem-health"><img src="https://agentmods.dev/badge/rules/kanevry/session-orchestrator/080-ecosystem-health.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,003 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01003
Opus 5 $0.00009 $0.00502
Sonnet 5 $0.00003 $0.00201
Haiku 4.5 $0.00002 $0.00100

Measured 8d ago against content hash 1052b30bb855, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

080-ecosystem-health scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sf <url> 2>/dev/null | python3 -c "

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf <url> 2>/dev/null && echo "<name>: UP" || echo "<name>: DOWN"
.cursor/rules/080-ecosystem-health.mdc · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

# 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:

# GitLab
glab pipeline list -R <OWNER>/<REPO> --per-page 3

# GitHub
gh run list -R <OWNER>/<REPO> --limit 3

Read the full file on GitHub · 146 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 146 lines · 17 tokens per session scan C 1052b30bb855

Subscribe to this mod's changes

080-ecosystem-health is a cursor rule published in the GitHub repository Kanevry/session-orchestrator (50 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 1,003 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.