| name | archi-data-sync |
| description | Sync data governance files with protocol outputs. Must run in isolated context/subagent. Protocol-invoked only; do not auto-trigger from casual user requests. |
| disable-model-invocation | true |
Invocation
- Auto-invoke: No, not triggered by model based on description.
- Trigger location: Only explicitly called via
[[SUBAGENT]] / [[NO-SUBAGENT]] in /archi.* protocols.
- Execution context: When subagent supported must execute in independent subagent/independent context; only downgrade to inline Skill when no subagent.
- Boundary: Only return protocol-required structured artifacts, subsequent write, confirm and signoff handled by calling protocol.
Data Governance Sync Executor
Sync Matrix
| File | Sync Content | Trigger Condition |
|---|
map.json | directoryMapping / logicalTopology / featureRelations | New code module or directory |
dictionary.json | New business entity / action / shared tool / public component | Output has unregistered business term or tool |
error_codes.json | New business error code | Output has unregistered error scenario |
env_registry.json | New environment variable | Output introduces new process.env.X |
| [[WHEN: ui | | ui |
| [[WHEN: ui | | ui |
| [[WHEN: data | | data |
| [[WHEN: api | | api |
| [[WHEN: cli | | cli |
| [[WHEN: lib | | lib |
Execution Protocol
- Load corresponding
global_files per project_features (fixed four + feature matches)
- Scan each item in
agent_output, route to matrix-corresponding result bucket by type
- For each change:
- Compare against existing entries for dedup; exact duplicate → skip; partial duplicate → merge
- Pass "boundary check": Hit framework concept blacklist → skip and mark
SKIPPED (framework) in Diff
- Removed entries not deleted, only record MODIFIED
- Summarize into
writes, each item has file / op (append / merge) / path (JSON path) / value
- Output Diff +
writes
Hard Boundaries
- Do not register framework concepts:
scripts / scaffold / roadmap / plan / protocol / skill / architext.* etc Architext's own concepts not in project global files
- Do not modify
00_system.md: This skill is rule executor, not rule maker
- Do not delete: Only append / merge; removed entries handled by
/archi.remove cleanup path
Output Format
### Data Sync Results
ADDED:
- <file>: <path> += <value summary>
MODIFIED:
- <file>: <path> extended <new field summary>
SKIPPED:
- <file>: <path> — <skip reason (duplicate / framework)>
Summary: <X> files changed / <Y> added / <Z> modified / <W> skipped
writes:
- file: <file>
op: <append|merge>
path: <JSON path>
value: <specific value>
No changes only output: ### Data Sync Results — NO CHANGES
Output Verification