name: zcode-configuration-guide
ZCode supports five types of extension resources, plus AGENTS.md instruction files. This skill is the map: it tells you where each resource is configured and how conflicts are resolved. For "something is not working, how do I fix it," follow the routing to the diagnosing-* skills at the end.
There are two ways to work with configuration in the ZCode client, and this plugin serves both:
/ menu in the input box.~/.zcode/cli/config.json. Holds MCP servers, hooks, plugin enable/disable state, and skill/command disable overrides.<repo>/.zcode/config.json (or <repo>/zcode.json).~/.zcode/AGENTS.md. Applies as default instructions for every workspace.<repo>/AGENTS.md. Applies only to that project; the current workspace path is searched upward until the project root.| Resource | Form | User scope | Workspace scope | Conflict rule |
|---|---|---|---|---|
| Skills | Directory + SKILL.md |
~/.zcode/skills/, ~/.agents/skills/ |
<repo>/.zcode/skills/, <repo>/.agents/skills/ |
Identity is the file path; on load the first same-named skill wins (user scope has priority) |
| Commands | .md file |
~/.zcode/commands/, ~/.agents/commands/ |
<repo>/.zcode/commands/, <repo>/.agents/commands/ |
Deduplicated by normalized command name; first match wins (user scope overrides workspace), the loser is ignored |
| MCP | JSON object | ~/.zcode/cli/config.json → mcp.servers (fallback ~/.agents/mcp.json → mcpServers) |
<repo>/.zcode/config.json → mcp.servers (fallback <repo>/.agents/mcp.json → mcpServers) |
User overrides workspace for a same-named server; workspace-scoped servers are trusted and auto-connected by default, same as user-scoped |
| Hooks | hooks.json / config object |
~/.zcode/cli/config.json → hooks |
<repo>/.zcode/config.json → hooks |
Configuration-file hooks require hooks.enabled: true; plugin hooks are appended |
| Plugins | Directory + plugin.json |
Installed from a marketplace; enable/disable state stored in ~/.zcode/cli/config.json |
— | A plugin contributes skills, commands, hooks, MCP servers, and agents |
| Instructions | AGENTS.md file |
~/.zcode/AGENTS.md |
<repo>/AGENTS.md |
User default instructions load first, then workspace instructions load later so the workspace can narrow or override broad defaults |
Note:
.agents/mcp.jsonis a compatibility fallback for MCP. Within each scope the client reads.zcodefirst; only if that scope has no MCP servers does it fall back to.agents/mcp.json(which uses a top-levelmcpServerskey, whereas.zcodeuses nestedmcp.servers).
AGENTS.md is not a skill, command, hook, MCP server, or plugin. It is the instruction file ZCode loads into the model context for broad behavior rules.
~/.zcode/AGENTS.md. Use this for personal defaults that should apply in every workspace, such as preferred language, review style, or local workflow conventions.<repo>/AGENTS.md. Use this for repository-specific rules that should be shared with the project, such as architecture boundaries, logging rules, testing requirements, and commit/MR policy.AGENTS.md from the current working directory upward until the detected project root. The user default file is resolved from the user's home directory.~/.zcode/AGENTS.md first, then the resolved workspace AGENTS.md. Workspace instructions appear later, so they can narrow or override broad user defaults for that repository.~/.claude/CLAUDE.md into ~/.zcode/AGENTS.md. The built-in /init command targets the current workspace AGENTS.md, creating or updating repository instructions instead of editing the user default file.Locations are scanned in this order (earlier locations take precedence):
~/.zcode/skills (or commands)~/.agents/skills.zcode/skills (from the current directory up to the repository root; every level counts).agents/skillsWithin a level, .zcode is scanned before .agents. A deeper working-directory location takes precedence over a repository-root location.
review/code.md becomes /review:code (not /review/code).SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, Stop.hooks.enabled: true to run (disabled by default). When any plugin contributes a hook, the hook runner is enabled automatically..zcode-plugin/plugin.json (the compatibility names .claude-plugin/ and .codex-plugin/ are also recognized). The minimal manifest requires only name (matching ^[a-z0-9][a-z0-9._-]{0,127}$).commands, skills, hooks, mcpServers, agents (each may be a directory name, an array, or inline). The fields channels, lspServers, outputStyles, and settings are recorded but not executed.plugins in ~/.zcode/cli/config.json. A built-in plugin can be disabled but not uninstalled.+ button on the Discover tab) from a GitHub repository, a Git URL, a local directory, or a file.~/.zcode/... or ~/.agents/...).<repo>/.zcode/... or .agents/...).~/.agents/skills/ → put skills there; to override a same-named skill only inside ZCode, use .zcode/skills/.~/.zcode/AGENTS.md; repository-specific instructions → <repo>/AGENTS.md. If both exist, keep broad preferences in the user file and project rules in the workspace file.When a configuration is read but has no effect, or reports an error, load the matching skill. Each provides a symptom → cause → check → fix workflow, covering both what to click in the client and which file and field an agent should edit:
diagnosing-mcpdiagnosing-skills/command is missing, overridden, has a frontmatter error, or arguments do not substitute → diagnosing-commandsdiagnosing-hooksdiagnosing-plugins