Skip to main content

Multi-platform path detection for AI agent skills — Hermes, OpenClaw, Claude Code, Codex, Cursor, VSCode

Project description

platform-detect

Multi-platform path detection for AI agent skills.

Supports: Hermes (profile) / OpenClaw (workspace) / Claude Code / Codex / Cursor / VSCode

Install

pip install platform-detect

Usage

from platform_detect import detect, skill_dir, config_dir, state_file

# Detect current platform
platform = detect()  # -> 'hermes' | 'openclaw' | 'claude_code' | 'codex' | 'cursor' | 'vscode' | 'unknown'

# Skill installation directory
skill_dir('target-skill')  # -> ~/.hermes/skills/target-skill (Hermes)

# Skill config/state directory (profile/workspace isolated)
config_dir('my-skill')  # -> ~/.hermes/profiles/baijie/.my-skill

# State file path
state_file('.my-state.json')  # -> ~/.hermes/profiles/baijie/.my-state.json

Platform paths

Platform Skill Dir Config Dir
Hermes ~/.hermes/skills/<name>/ ~/.hermes/profiles/<profile>/.<name>/
OpenClaw ~/.openclaw/<workspace>/skills/<name>/ ~/.openclaw/<workspace>/.<name>/
Claude Code ~/.claude/skills/<name>/ ~/.claude/.config/<name>/
Codex ~/.codex/skills/<name>/ ~/.codex/.config/<name>/
Cursor ~/.cursor/plugins/<name>/ ~/.cursor/.config/<name>/
VSCode ~/.vscode/extensions/<name>/ ~/.vscode/.config/<name>/

Zero dependencies

Only uses Python standard library (pathlib, os, platform).

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

platform_detect-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

platform_detect-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file platform_detect-0.1.1.tar.gz.

File metadata

  • Download URL: platform_detect-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for platform_detect-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2f66afc9370df169b7d7ea61952cf8839587cbd413fac81ec7d8b66ea8860ef
MD5 b5e4c38d6cf7f18c8804f6d259aedef4
BLAKE2b-256 4db1072cc5f52f598b03e89b17ca06b7bf2e43116547f246d25dc8d284fcb259

See more details on using hashes here.

File details

Details for the file platform_detect-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for platform_detect-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfcd37eaf0134e5cdd91445c0524a43644da0032a5c91560e9d3f1e522a786a9
MD5 c7766522008023b5491293c0bb45743d
BLAKE2b-256 438625472b4196c06e49ae15d5bb4e236e975e59b47bae39101b2b8a697c9209

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page