agentleFS
openamer-maxopenamer-max/max-scripts/skills/auto-env-checker/SKILL.md

auto-env-checker

Skill2 starsChanged 39 days agoApache-2.0View on GitHub

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

  • Reads credentials
  • Installs packages

The file

Files
SKILL.md

Auto-Env-Checker

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

Verwendung

# 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

CodeBedeutung
0Alles gut
1Warnungen (z.B. fehlende optionale Keys)
2Fehler (z.B. fehlende Pfade, defekte Config)
3Kritisch (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:

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

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.