xskill.schema.json — Tool configuration

For ~/.xskill/settings.json. Defines the full configuration structure.

Top-level fields:

FieldTypeRequiredDescription
$schemastringNoJSON Schema URL for editor validation. Auto-generated by config --init
platformsobject<string, Platform>NoPlatform configurations keyed by platform identifier (e.g. "claude", "codex")
sourcesSource[]NoSkill source repositories
recommendedRecommendedSource[]NoRecommended skill sets grouped by source
cacheCacheConfigNoCache settings for skills list caching
registryRegistryConfigNoRegistry settings for skill discovery
proxystringNoProxy URL for network access (e.g. http://127.0.0.1:7890, socks5h://127.0.0.1:1080). When set, HTTP_PROXY/HTTPS_PROXY/ALL_PROXY are exported so git clone and curl/wget use the proxy. Scheme may be http, https, socks5, socks5h, socks4, socks4a. Note: socks5h/socks4a resolve DNS at the proxy.

Platform (platforms.*):

FieldTypeRequiredDefaultDescription
pathstringYesTool config directory (relative, absolute, or ~/... path). Minimum 1 character
skillsstringNo""Skills subdirectory name relative to path. Empty string skips skill installation
agentsstringNo""Agents config file name relative to path. Empty string skips agents installation
sourcestringNo"AGENTS.md"Source file name under the fixed .agents/ directory. <path>/<agents> is symlinked to .agents/<source>
agents_compatbooleanNofalseWhether this platform can reuse .agents/ resources. When true, reads directly from canonical directory — symlink operations are skipped

Source (sources[]):

FieldTypeRequiredDefaultDescription
namestringNo""Unique source identifier. Pattern: ^[a-zA-Z0-9_/-]+$ (supports user/repo format). When empty or invalid, the url is used as the name
typestringNo"git"Source type. Enum: "git", "api"
urlstringYesSource repository URL. Must be a valid URI starting with http:// or https://

RecommendedSource (recommended[]):

FieldTypeRequiredDefaultDescription
namestringNo""Source name referencing a sources entry, or custom label
urlstringNo""Direct source URL (overrides name reference when name not found in sources)
skillsstring[]YesList of recommended skill names. Minimum 1 item

CacheConfig (cache):

FieldTypeRequiredDefaultDescription
enabledbooleanNofalseEnable skills list caching. When enabled, query and find read from local cache
ttlintegerNo86400Cache time-to-live in seconds (default 24 hours). Applies to both main cache (skills.json) and URL cache (source_<md5>.json). Minimum: 0

RegistryConfig (registry):

FieldTypeRequiredDefaultDescription
enabledbooleanNofalseEnable registry lookup. When enabled, query and find also query the registry
urlstringNo"https://xskill.gcli.cn/skills.json"Registry URL. Supports bare domain, directory path, or full file path