Skip to content
Back to skills

Auto Env Checker

ASecurity

Use for environment validation: .env, config.yaml, paths, Python, Git — check + auto-fix + cron every 60min.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentspythonbashgitapi

Works with

  • terminal
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 4, 2026

npx -y skills add openamer/openamer --skill auto-env-checker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Env Checker?

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

Security grade badge for Auto Env Checker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openamer-auto-env-checker/badge)](https://www.skillsdirectory.com/skills/openamer-auto-env-checker)

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: auto-env-checker
description: 'Use for environment validation: .env, config.yaml, paths, Python, Git — check + auto-fix + cron every 60min.'
tags:
  - environment
  - validation
  - health-check
  - auto-fix
  - cron
usage: |
  Führe `auto-env-checker.py` für vollständige Umgebungs-Validierung aus.
  Nutze `--fix` für automatische Reparatur und `--json` für maschinenlesbaren Output.
  Der Cron-Job läuft alle 60 Minuten und schreibt Reports nach `logs/auto-env-checker.log`.
---

# Auto-Env-Checker

Vollständige Umgebungs-Validierung für OpenAmer: `.env`, `config.yaml`, paths, Python, Git + Auto-Fix.

## Verwendung

```bash
# Vollständiger Check
python scripts/auto-env-checker.py

# Nur bestimmte Bereiche prüfen
python scripts/auto-env-checker.py --env
python scripts/auto-env-checker.py --config
python scripts/auto-env-checker.py --paths
python scripts/auto-env-checker.py --python
python scripts/auto-env-checker.py --git

# Mit Auto-Reparatur
python scripts/auto-env-checker.py --fix

# JSON-Ausgabe für Weiterverarbeitung
python scripts/auto-env-checker.py --json

# Nur Exit-Code (0=ok, 1=warning, 2=error, 3=critical)
python scripts/auto-env-checker.py --quiet
```

## Exit-Codes

| Code | Bedeutung |
|------|-----------|
| 0    | Alles gut |
| 1    | Warnungen (z.B. fehlende optionale Keys) |
| 2    | Fehler (z.B. fehlende Pfade, defekte Config) |
| 3    | Kritisch (z.B. fehlender API-Key, kein Speicher) |

## Was wird geprüft

### .env
- Existenz der `.env` Datei
- Kritische Keys (`OPENROUTER_API_KEY`)
- Optionale Keys (`OLLAMA_API_KEY`, `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`)
- Key-Länge (zu kurze = ungültig)
- Lesbarkeit

### config.yaml
- YAML-Syntax
- Required Sections: `model`, `agent`, `terminal`, `browser`, `display`
- `model.default` und `model.provider`
- `_config_version`
- Auto-Reparatur: Default-Config bei Fehlen

### Paths
- Existenz von: `skills/`, `scripts/`, `cron/`, `memories/`, `config.yaml`, `.env`, `cache/`
- Schreibbarkeit aller Verzeichnisse
- Speicherplatz (<0.5 GB = kritisch, <2 GB = warning)
- Logs-Größe (>100 MB = warning)

### Python
- Version (mindestens 3.10)
- Venv-Status (aktiv? richtiges venv?)
- pip (installiert? outdated packages?)
- uv (installiert?)
- PyYAML (für Config-Check)

### Git
- Git installiert
- Branch-Name
- Uncommitted Changes (klassifiziert nach modified/staged/untracked/deleted)
- Ahead/Behind origin
- Letzter Commit

## Auto-Fix (`--fix`)

Repariert automatisch:
- Fehlende `.env` → leere Datei anlegen (Keys manuell eintragen)
- Fehlende `config.yaml` → Default schreiben
- Fehlende Sections in config → Default-Werte ergänzen
- Fehlende Verzeichnisse → `mkdir`
- Berechtigungen → `chmod`
- Hinterherliegender Branch → `git pull --ff-only`
- Veraltetes pip → pip upgrade
- Fehlendes PyYAML → `pip install pyyaml`

## Cron-Job

Der Cron-Job läuft automatisch alle 60 Minuten und speichert Reports als JSON:

```bash
python "$OPENAMER_HOME\scripts\auto-env-checker.py" --json
```

Reports landen in: `$OPENAMER_HOME\logs\auto-env-checker.log`

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…