aiox-master
<!-- ACORE-CLAUDE-AGENT-COMMAND: legacy-shim --> <!-- Canonical Skill: .claude/skills/AIOX/agents/aiox-master/SKILL.md --> <!-- Source:…
Adds a new rule to 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.
/add-ruleContext preview
What this command does when you run it.
Adds a new rule to an existing SYNAPSE domain file.
Adds a new rule to an existing SYNAPSE domain file.
---
Append a new rule to a domain file in `.synapse/`, auto-incrementing the rule index to maintain a valid KEY=VALUE sequence.
---
---
| Parameter | Required | Description | |-----------|----------|-------------| | `domain-name` | Yes | Existing domain name (kebab-case) | | `rule-text` | Yes | The rule text to add |
---
1. Derive the domain key: `my-domain` -> `MY_DOMAIN` 2. Read `.synapse/manifest` and check that `{DOMAIN_KEY}_STATE` exists 3. Check that `.synapse/{domain-name}` file exists on disk
If domain not found in manifest: `Error: Domain "{domain-name}" not found in manifest. Use "create" to create it first.`
If domain file not found: `Error: Domain file ".synapse/{domain-name}" not found on disk. Manifest entry exists but file is missing.`
Read the domain file `.synapse/{domain-name}` and find all existing rules matching the pattern `{DOMAIN_KEY}_RULE_{N}=`.
Count the number of matching rules. The new rule index is `count(matching_rules)`.
This ensures sequential indices with no gaps (e.g., if rules 0 and 2 exist but 1 was deleted, there are 2 rules, so the next index is 2 — which re-fills gaps).
If no rules exist yet, start at `0`.
Append the new rule line to the domain file:
{DOMAIN_KEY}_RULE_{NEXT_INDEX}={rule-text}Ensure there is a newline before the new rule if the file does not end with one.
Display confirmation:
Added rule to {domain-name}:
{DOMAIN_KEY}_RULE_{NEXT_INDEX}={rule-text}
Domain now has {TOTAL} rules.---
---
| Error | Message | |-------|---------| | Domain not in manifest | `Error: Domain "{name}" not found in manifest. Use "create" to create it first.` | | Domain file missing | `Error: Domain file ".synapse/{name}" not found on disk.` | | Empty rule text | `Error: Rule text cannot be empty.` | | Manifest not found | `Error: .synapse/manifest not found. SYNAPSE must be initialized first.` |
---
*Add Rule — SYNAPSE CRUD Command C3* *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:…