Skip to content
Back to skills

Os Environment Probe

ASecurity

Discovers and persists the user's available AI environments (Claude, Copilot CLI, Agy CLI, Cursor, etc.) to context/memory/environment.md. Run once after OS setup or whenever the environment changes. os-architect and os-evolution-planner read this file to select the right delegation backend and cheapest brainstorm model automatically. Invoked by os-architect on first run if environment.md is absent.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythonbashbackend

Works with

  • claude code
  • cursor
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill os-environment-probe --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Os Environment Probe?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Os Environment Probe
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-os-environment-probe/badge)](https://www.skillsdirectory.com/skills/richfrem-os-environment-probe)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: os-environment-probe
plugin: agent-agentic-os
description: >
  Discovers and persists the user's available AI environments (Claude, Copilot CLI,
  Agy CLI, Cursor, etc.) to context/memory/environment.md. Run once after OS setup
  or whenever the environment changes. os-architect and os-evolution-planner read this
  file to select the right delegation backend and cheapest brainstorm model automatically.
  Invoked by os-architect on first run if environment.md is absent.
model: inherit
color: cyan
tools: ["Bash", "Read", "Write"]
---

# Environment Probe (`os-environment-probe`)

Discovers, verifies, and records available local AI CLI environments (Copilot CLI, Agy CLI, Claude, Cursor) into `context/memory/environment.md` for automated backend dispatch.

## Contents

- [Critical Constraints](#critical-constraints)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints

1. **Verification Before Recording**: Only record environments that pass active probe execution. Never write an unverified claimed environment.
2. **Safe Idempotent Overwrite**: Re-probing safely refreshes `context/memory/environment.md` without destructive side-effects.
3. **Fallback Priority**: Downstream routing defaults to Claude-only mode if `environment.md` is absent.

## Quick start

Probe the local system for active CLI tools:

```bash
python3 scripts/probe_environments.py --check
```

## Workflow

1. **Environment Interview**: Ask which AI tools are active (Claude Code, Copilot CLI, Agy CLI, Cursor).
2. **Execute Probes**: Verify each claimed tool:
   - Copilot CLI: `gh copilot explain "test" 2>&1 | head -3`
   - Agy CLI: `agy --version 2>&1 | head -1`
   - Cursor: `cursor --version 2>&1 | head -1`
3. **Persist State**: Write verified profiles to `context/memory/environment.md`.
4. **Downstream Integration**: Notify caller (`os-architect` or `os-evolution-planner`) of confirmed backends and model tier preferences.

## Verification

Confirm environment profile file exists and contains valid Markdown formatting:

```bash
python3 scripts/probe_environments.py --validate
```

## References

- [detailed-reference.md](references/detailed-reference.md) — Output schema, probe timeouts, and error handling.
- [cheapest_models.md](references/cheapest_models.md) — Model cost tiers and backend prioritization rules.
- [acceptance-criteria.md](references/acceptance-criteria.md) — Verification checklist and gate requirements.
- [gemini-detection-example.md](references/gemini-detection-example.md) — Gemini detection output format and probe examples.
- [fallback-tree.md](references/fallback-tree.md) — Fallback resolution when probe binaries fail or timeout.

Files in this skill

  • SKILL.md5.9 KB
  • evals/evals.json925 B
  • references/acceptance-criteria.md42 B
  • references/cheapest_models.md38 B
  • references/gemini-detection-example.md47 B
  • scripts/probe_environments.py38 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…