aiox-master
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/aiox-master/SKILL.md --> <!-- Source:…
Edits or removes a rule by index in an existing SYNAPSE domain file.
$ npx -y skills add SynkraAI/aiox-core --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/edit-ruleContext preview
What this command does when you run it.
Edits or removes a rule by index in an existing SYNAPSE domain file.
Edits or removes a rule by index in an existing SYNAPSE domain file.
---
Modify the text of an existing rule or delete it entirely, re-numbering remaining rules to maintain a sequential index.
---
---
| Parameter | Required | Description | |-----------|----------|-------------| | `domain-name` | Yes | Existing domain name (kebab-case) | | `index` | Yes | Rule index number to edit or remove | | `new-text` | No | New rule text (omit to delete the rule) |
---
1. Derive the domain key: `my-domain` -> `MY_DOMAIN` 2. Verify `{DOMAIN_KEY}_STATE` exists in `.synapse/manifest` 3. Verify `.synapse/{domain-name}` file exists on disk
Read the domain file and find the line matching `{DOMAIN_KEY}_RULE_{index}=`.
If not found: `Error: Rule index {index} not found in domain "{domain-name}". Domain has rules 0-{max}.`
**If new-text is provided (EDIT):**
**If new-text is NOT provided (DELETE):**
When a rule is deleted, re-number all remaining rules to maintain a sequential index:
**Before:**
MY_DOMAIN_RULE_0=First rule MY_DOMAIN_RULE_1=Second rule <-- DELETED MY_DOMAIN_RULE_2=Third rule
**After:**
MY_DOMAIN_RULE_0=First rule MY_DOMAIN_RULE_1=Third rule
Algorithm: 1. Collect all rule values (preserving order, excluding deleted rule) 2. Rewrite all rules with sequential indices starting from 0 3. Preserve all non-rule lines (comments, blanks) in their original positions
---
---
| Error | Message | |-------|---------| | Domain not found | `Error: Domain "{name}" not found in manifest.` | | Domain file missing | `Error: Domain file ".synapse/{name}" not found on disk.` | | Index not found | `Error: Rule index {index} not found in domain "{name}". Domain has rules 0-{max}.` | | Negative index | `Error: Rule index must be a non-negative integer.` | | Edit with empty text | `Error: New rule text cannot be empty. To delete, omit the new text.` |
---
*Edit Rule — SYNAPSE CRUD Command C4* *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
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/aiox-master/SKILL.md --> <!-- Source:…
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/analyst/SKILL.md --> <!-- Source:…
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/architect/SKILL.md --> <!-- Source:…
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/data-engineer/SKILL.md --> <!-- Source:…
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/dev/SKILL.md --> <!-- Source:…
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/devops/SKILL.md --> <!-- Source:…