跳到正文
FunCoding

semantix-guide

Troubleshoot and configure Semantix capabilities: Skills (project/custom/global/builtin priority, discovery dirs), Commands (override order, /dir:file naming), Hooks (11 events, automatic project loading, matchers, timeouts), MCP (semantix-agent.toml + .mcp.json + plugin packages, auto_start), plugin packages (native/Codex/Claude manifests), and AGENTS.md / instruction docs. Use when the user asks how to configure, debug missing skills/commands/hooks/MCP/plugins, or diagnose capability loading.

Star
816
许可证
MIT
最近提交
2026年11月29日

harness/skill/builtincontent/semantix-guide/SKILL.md

在 GitHub 上查看

Semantix self-diagnostics guide

This skill is inlined. Prefer evidence over guessing.

First action

  1. Run a static capability report (no network, no MCP subprocesses):
semantix-agent doctor capabilities --json
  1. Only if the user explicitly allows starting third-party MCP servers (may network and pass configured env/headers), run live probe:
semantix-agent doctor capabilities --live --timeout 5s --json
  1. On desktop, open Settings → Diagnostics for the same report model. The desktop "include current session runtime" toggle only reads the active tab Host (connected/failed/deferred/disabled); it does not start MCP.

Do not invent auto-fixes. Surface stable issue codes, sources, and remediations from the report.


Skills

Config sources and priority

Winner per skill name (highest first):

  1. project — <workspace>/{.semantix,.agents,.agent,.claude}/skills/
  2. custom — [skills].paths (and plugin package skill roots)
  3. global — <Semantix home>/skills and home convention dirs
  4. builtin — shipped skills (including this guide)

Same name: higher scope wins; lower scopes are shadowed. [skills].disabled_skills hides a name from List/Read entirely.

Discovery conventions: .semantix, .agents, .agent, .claude (see config.ConventionDirs). Layouts: <name>/SKILL.md or flat <name>.md (Claude flat files need skill frontmatter).

Checks

EntryHow
CLIsemantix-agent doctor capabilities → Skills section
DesktopSettings → Skills; Settings → Diagnostics
Agent/skill list, /semantix-guide, run_skill

Symptom → cause → fix

SymptomLikely causeFix
Skill missing from indexDisabled, shadowed, missing description, wrong rootCheck report codes skill.shadowed, skill.missing_description, disabled list, discovery roots
Builtin overriddenProject/global same nameRename or remove user skill; disable if intentional
Flat Claude file ignoredNo skill frontmatter under .claude/skillsAdd description: / runAs: frontmatter or use SKILL.md folder
Body never loadsExpected: bodies are on-demandInvoke via /name or run_skill

Ordered triage

  1. semantix-agent doctor capabilities --json → Skills
  2. Confirm name not in disabled_skills
  3. Confirm winner Path/Scope; if shadowed, inspect lower-priority roots
  4. Missing description: skill may load but index placeholder is weak — add description:
  5. Reopen session / Refresh Skills after config changes

Commands (slash templates)

Priority

config.CommandDirsForRoot: home convention commands → Semantix home commands → project convention commands. Later directory overrides earlier on name clash (command.Load).

Name from path: git/commit.md → /git:commit (slashes → :).

Checks

CLI/Desktop Diagnostics → Commands; invoke /name in chat.

Symptom → cause → fix

SymptomCauseFix
Wrong bodyShadowed by later dirCheck command.shadowed winners
Missing commandWrong dir / extensionPlace *.md under a scanned commands/ root
Parse failUnreadable fileFix permissions / encoding (command.read_failed)

Hooks

Events (11)

PreToolUse, PostToolUse, PermissionRequest, UserPromptSubmit, Stop, PostLLMCall, SessionStart, SessionEnd, SubagentStop, Notification, PreCompact.

Blocking (exit 2 can gate the loop): PreToolUse, UserPromptSubmit. Others warn or contribute context only.

Sources

  • Project: <workspace>/.semantix/settings.json — loaded automatically
  • Plugin packages: installed enabled packages
  • Global: <Semantix home>/settings.json (always)

Match field is an anchored regex: file does not match read_file; use .*file or *. Timeout is milliseconds (defaults 5s gating / 30s other).

Checks

/hooks, Settings → Hooks, Diagnostics → Hooks.

Symptom → cause → fix

SymptomCauseFix
Project hooks silentWrong workspace / restart requiredConfirm the project path and restart Semantix after saving
Matcher never firesNon-anchored assumption / bad regexFix match (hook.invalid_matcher)
Command missingEmpty command / missing context fileFix settings entry
Malformed JSONInvalid settings.jsonRepair JSON (file yields no hooks, no crash)

MCP servers

Merge order

config.LoadForRoot merges:

  1. User/project TOML [[plugins]] (higher name wins vs later sources when already defined)
  2. Project .mcp.json servers not already in TOML
  3. Enabled plugin packages MCP (skipped if name already defined)

Transports: stdio (default), http / streamable-http, sse. auto_start=false skips startup; nil/true = automatic. Tier eager blocks boot handshake; empty/background connects without blocking chat.

Env/header values may contain secrets — diagnostics list keys only.

Checks

ModeBehavior
Static doctorConfig validity, command path / URL shape, start intent — no subprocess
CLI --liveIsolated Host via boot.PluginSpecsForRoot + plugin.Start; auto-start only; concurrency 4; always Close
Desktop runtimeRead active tab Host only

Symptom → cause → fix

SymptomCauseFix
Not connectedauto_start=false or failed startEnable / fix command/URL (mcp.command_not_found, mcp.start_failed)
No toolsConnected but empty tools/listServer config or permissions (mcp.no_tools)
Wrong sourceShadowed by TOML vs .mcp.json vs packageInspect report Source / package owner
Invalid transportBad typeUse stdio/http/sse (mcp.invalid_transport)

Plugin packages

Manifests

  • Native: semantix-plugin.json
  • Codex: .codex-plugin/plugin.json
  • Claude: .claude-plugin/plugin.json (+ limited Claude compatibility paths)

State: <Semantix home>/plugin-packages.json. Disabled packages do not contribute skills/hooks/MCP.

Unmapped Claude-only features may appear as compatibility warnings — Semantix does not invent support.

Checks

semantix-agent plugin doctor <name>, Settings → Plugins, Diagnostics → Plugins.

Symptom → cause → fix

SymptomCauseFix
Package missingBad root pathReinstall / fix root (plugin.missing_root)
Invalid manifestParse failureFix JSON/manifest (plugin.invalid_manifest)
Skills missingDisabled packageEnable package

Instructions (AGENTS.md / SEMANTIX.md)

Load order (ascending specificity)

User global docs → ancestor chain → project docs → project-local (*.local.md).

Recognized names: SEMANTIX.md, AGENTS.md, CLAUDE.md (and *.local.md variants). Multiple files in one directory can load; symlink identity is deduped.

Instructions fold into the system prompt at session boot (cache-stable prefix); Hooks remain runtime event handlers loaded from their configured locations.

Checks

Diagnostics → Instructions; memory Settings; read files on disk.

Symptom → cause → fix

SymptomCauseFix
Guidance ignoredWrong filename / empty fileUse recognized names under correct dir
Wrong scope wonLocal overrideCheck load order in report

Desktop Diagnostics page

  • Static report on open; Refresh re-runs static collect
  • Copy redacted JSON
  • Optional session runtime merge (read-only Host)
  • Jump to Settings for MCP / Skills / Plugins / Hooks when issue settings_tab is set
  • Never auto-edit config, execute hooks, or auto-reconnect from this page

Safety

  • Prefer static diagnostics
  • Live MCP may run third-party code and network
  • Do not print tokens, header values, env values, URL query strings, usernames, or machine-absolute external paths
  • Report paths as <workspace>/…, ~/…, or <external>/…

相似的 Skill

blender-motion-state-inspection

AFaffaan-m/ECC314k近 7 天新增 4,125 个 star

官方

slack-gif-creator

ANanthropics/skills203k近 7 天新增 3,333 个 star

精选

algorithmic-art

用 p5.js 生成流场和粒子系统,通过种子随机性创作原创算法艺术。

ANanthropics/skills203k近 7 天新增 3,333 个 star

moneyprinterturbo-video

HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,663 个 star

thinking-out-loud

SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 895 个 star

design-motion

GAgarrytan/gstack143k近 7 天新增 636 个 star