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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file platform_detect-0.1.0.tar.gz.
File metadata
- Download URL: platform_detect-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88510cdb3969da2d6635a5a1c1034d863ee5958118eee31d90a51a359726d04a
|
|
| MD5 |
418a57a82af3c16b06e35d07e7f4759b
|
|
| BLAKE2b-256 |
778ffe896cc44280b9e66a02fbf8ab68f9b6365992d4a71d72b39f0c1cbf3bc8
|
File details
Details for the file platform_detect-0.1.0-py3-none-any.whl.
File metadata
- Download URL: platform_detect-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c816d47189a2fc7bf434c71d4d192aa60f48dd4829039a1260750b3d65e0071
|
|
| MD5 |
14e0e1958bef255a497417393cbd51ed
|
|
| BLAKE2b-256 |
b2a583ad13cd9c2756298136a04ec196999358322d64c37797d1c59ac575928f
|