Skip to content
Agent Orchestration
Command

/toggle-domain

Toggles a SYNAPSE domain between active and inactive in the manifest.

From plugin
aiox-core
3.2k24 skills18 agents24 commands
$ npx -y skills add SynkraAI/aiox-core --agent claude-code

Command definition

toggle-domain.md

Toggle Domain

Toggles a SYNAPSE domain between active and inactive in the manifest.

---

Purpose

Enable or disable a domain by changing its `_STATE` value in `.synapse/manifest`. This controls whether the domain's rules are loaded by the SYNAPSE engine. The domain file itself is NOT modified.

---

Prerequisites

  • `.synapse/manifest` exists
  • Target domain exists in the manifest

---

Parameters

| Parameter | Required | Description | |-----------|----------|-------------| | `domain-name` | Yes | Domain name to toggle (kebab-case) |

---

Steps

Step 1: Validate Domain Exists in Manifest

1. Derive the domain key: `my-domain` -> `MY_DOMAIN` 2. Read `.synapse/manifest` 3. Find the line `{DOMAIN_KEY}_STATE=active` or `{DOMAIN_KEY}_STATE=inactive`

If not found: `Error: Domain "{domain-name}" not found in manifest.`

Step 2: Toggle State

  • If current state is `active`, change to `inactive`
  • If current state is `inactive`, change to `active`

**Modify ONLY the manifest file.** Do NOT modify the domain file in `.synapse/{domain-name}`.

Replace the line `{DOMAIN_KEY}_STATE={old-state}` with `{DOMAIN_KEY}_STATE={new-state}` in `.synapse/manifest`.

Step 3: Display Result

Toggled domain "{domain-name}":
  {DOMAIN_KEY}_STATE: {old-state} -> {new-state}

Step 4: Validate

  • Read back `.synapse/manifest`
  • Verify `{DOMAIN_KEY}_STATE={new-state}` is present
  • Verify the domain file was NOT modified (compare timestamp or content)

---

Validation

  • [ ] Domain exists in manifest before toggle
  • [ ] Only `_STATE` value changed in manifest
  • [ ] Domain file (`.synapse/{domain-name}`) was NOT modified
  • [ ] Previous and new state displayed to user
  • [ ] Manifest remains parseable after modification

---

Error Handling

| Error | Message | |-------|---------| | Domain not in manifest | `Error: Domain "{name}" not found in manifest.` | | Manifest not found | `Error: .synapse/manifest not found. SYNAPSE must be initialized first.` | | Invalid state value | `Error: Unexpected state value "{value}" for domain "{name}". Expected "active" or "inactive".` |

---

*Toggle Domain — SYNAPSE CRUD Command C5* *Source: SYNAPSE-HOOK-SKILL-COMMAND-ANALYSIS.md section 2.3*

Read more
@synkraai
Ships withaiox-core

🌐 README por idioma: EN | PT | ES | ZH Devolvendo às pessoas o poder de criar — Framework open source de orquestração de IA que devolve o controle a quem tem coragem de construir.

3.2k27 skills18 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
3.2k
Star history of SynkraAI/aiox-core on GitHub, a chart by star-history.com

Other commands on aiox-core.

aiox-master

aiox-master

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/aiox-master/SKILL.md --> <!--…

@synkraai@synkraaiInstall Command
analyst

analyst

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/analyst/SKILL.md --> <!--…

@synkraai@synkraaiInstall Command
architect

architect

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/architect/SKILL.md --> <!--…

@synkraai@synkraaiInstall Command
data-engineer

data-engineer

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/data-engineer/SKILL.md --> <!--…

@synkraai@synkraaiInstall Command
dev

dev

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/dev/SKILL.md --> <!-- Source:…

@synkraai@synkraaiInstall Command
devops

devops

Command

<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/devops/SKILL.md --> <!--…

@synkraai@synkraaiInstall Command

More commands from other plugins.

COMMAND_COMPLIANCE_REPORT

COMMAND_COMPLIANCE_REP…

Command

Reviewed all command files in `.claude/commands/analysis/` directory to ensure proper usage of: - `mcp__claude-flow__*` tools…

@ruvnet@ruvnetInstall Command
ask

ask

Command

This compatibility command keeps `/oh-my-claudecode:ask` available without loading the full `ask` skill description in every…

@yeachan-heo@yeachan-heoInstall Command