/toggle-domain
Toggles a SYNAPSE domain between active and inactive in the manifest.
$ npx -y skills add SynkraAI/aiox-core --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/toggle-domain
Context preview
What this command does when you run it.
Toggles a SYNAPSE domain between active and inactive in the manifest.
Command definition
toggle-domain.mdToggle 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
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*
🌐 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.
Repo: SynkraAI/aiox-core
Other commands on aiox-core.
- /aiox-master
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/aiox-master/SKILL.md --> <!-- Source: .aiox-core/development/agents/aiox-master.md -->
Open command - /analyst
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/analyst/SKILL.md --> <!-- Source: .aiox-core/development/agents/analyst.md -->
Open command - /architect
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/architect/SKILL.md --> <!-- Source: .aiox-core/development/agents/architect.md -->
Open command - /data-engineer
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/data-engineer/SKILL.md --> <!-- Source: .aiox-core/development/agents/data-engineer.md -->
Open command - /dev
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/dev/SKILL.md --> <!-- Source: .aiox-core/development/agents/dev.md -->
Open command - /devops
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/devops/SKILL.md --> <!-- Source: .aiox-core/development/agents/devops.md -->
Open command

