NEW Browse AI tools across categories — updated daily. See what's new →

Sync

This skill should be used when the user asks to "document sync patterns", "map sync handlers", "create SYNCS.md", "audit sync coordination", "wyx sync", "wyx", or wants to understand how concepts c...

Authorjlifyio
Version1.0.0
LicenseMIT
Token count~1,907
UpdatedJun 5, 2026

This skill should be used when the user asks to "document sync patterns", "map sync handlers", "create SYNCS.md", "audit sync coordination", "wyx sync", "wyx", or wants to understand how concepts communicate through orchestrated workflows. Produces SYNCS.md coordination maps.

Install

Quick install

via npx skills · works with 57+ agents
npx skills add https://github.com/jlifyio/wyx
Or pick agent:
npx skills add jlifyio/wyx --agent claude-code
npx skills add jlifyio/wyx --agent cursor
npx skills add jlifyio/wyx --agent codex
npx skills add jlifyio/wyx --agent opencode
npx skills add jlifyio/wyx --agent github-copilot
npx skills add jlifyio/wyx --agent windsurf
More install options

Shorthand — useful for multi-skill repos:

npx skills add jlifyio/wyx

Manual — clone the repo and drop the folder into your agent's skills directory:

git clone https://github.com/jlifyio/wyx.git
cp -r wyx ~/.claude/skills/
How to use: Once installed, ask your agent to "use the Sync skill" or describe what you want (e.g. "This skill should be used when the user asks to "document sync patterns", "map s"). Requires Node.js 18+.

Sync

This skill should be used when the user asks to "document sync patterns", "map sync handlers", "create SYNCS.md", "audit sync coordination", "wyx sync", "wyx", or wants to understand how concepts communicate through orchestrated workflows. Produces SYNCS.md coordination maps.

---
name: sync
description: >
This skill should be used when the user asks to "document sync patterns",
"map sync handlers", "create SYNCS.md", "audit sync coordination",
"wyx sync", "wyx", or wants to understand how concepts communicate
through orchestrated workflows. Produces SYNCS.md coordination maps.
argument-hint: "e.g. src/lib/server/syncs/ or Stock-to-Indicators pipeline"
allowed-tools: Read, Glob, Grep, Write, Edit
---

Sync Coordination Mapping

Generate a sync coordination map — a structured description of how
independent concepts interact through synchronization handlers. A sync map replaces
reading dozens of handler files with a single page showing the coordination topology,
timing patterns, and error strategies.

Syncs implement the execution mechanics of concept interactions. Where CONCEPT.md
## interactions declares relationships, SYNCS.md specifies the execution mechanics:
when the sync fires, what data flows, when it skips, and how errors propagate.

How to interpret $ARGUMENTS

Determine the mode from the argument:

  • Path to sync directory (e.g. src/lib/server/syncs/): Retrofit mode — read the existing sync handlers, map the coordination patterns, and propose a SYNCS.md. Flag any patterns that bypass concept boundaries.
  • Sync description (e.g. Order fulfillment → Inventory update): Greenfield mode — design a sync spec for the described coordination. Define trigger, flow, qualification, and error strategy.
  • No arguments: Discovery mode — analyze the project for sync-like patterns (event handlers, cross-concept calls, scheduled jobs, dispatch registrations) and list candidates. Do NOT generate full specs; ask the user which to elaborate.

SYNCS.md Format

Write the spec as a SYNCS.md file placed in the sync directory (e.g. src/lib/server/syncs/SYNCS.md).

# syncs: [Module/Area Name]

## coordination graph
[Text diagram showing concept-to-concept flow through syncs]

[Concept] --(action)--> (SyncName) --> [Concept]
[Concept] --(action)--> (SyncName) --> [Concept]
                                   --> [Concept]

## dispatching
- pattern: [event-driven | explicit-call | hybrid]
- error-isolation: [sync failure does NOT propagate to source | propagates]
- depth-limit: [max cascading depth, if applicable]
- context: [how correlation/tracing works across sync boundaries]

## sync: [SyncName]
trigger: [Concept.action | schedule(interval) | manual]
timing: [post-action | pre-validation | scheduled]
flow:
  1. [Concept.action] → [what data is read]
  2. [transform/filter/validate] → [what happens]
  3. [Concept.action] → [what data is written]
qualification: [conditions for execution vs skip]
error: [isolated | propagates | skip-and-log]
file: [relative path to implementation]

Design Rules for Sync Patterns

  1. Syncs live between concepts: A sync never belongs to a single concept. It
coordinates two or more concepts. Place sync code in a dedicated directory, not inside concept directories.
  1. One direction per sync: Each sync has a clear source and target. If two
concepts need bidirectional coordination, use two separate syncs. This keeps the coordination graph acyclic and prevents cascading loops.
  1. Three timing patterns:
  • Post-action: Runs AFTER source concept's action completes. Source succeeds
regardless of sync outcome. Error-isolated.
  • Pre-validation: Runs BEFORE target concept's action. Validates cross-concept
references. Blocks the target action on failure. Error-propagating.
  • Scheduled: Runs on a timer. Checks what needs updating, processes in batch.
Independent of individual concept actions.
  1. Qualification over silent filtering: Sync handlers should declare explicit
qualification criteria (when to execute, when to skip). This makes the coordination graph truthful — you can see exactly when a sync fires vs when it is skipped.
  1. Error isolation by timing: Post-action syncs should NOT fail the source action —
the source concept completed its work. Pre-validation syncs SHOULD fail the target action — that is their purpose. Scheduled syncs should log errors and continue processing remaining items.

Retrofit Mode Guidelines

When analyzing existing sync code:

  1. Read all sync handler files in the directory
  2. Read the index/registry file to understand registration and dispatch patterns
  3. Read any dispatcher or context module to understand execution infrastructure
  4. Map each sync to: trigger → flow → target
  5. Classify timing patterns (post-action, pre-validation, scheduled)
  6. Check for concept boundary violations within syncs (direct database imports
for data owned by other concepts)
  1. Note error handling strategies and correlation tracking

Present findings as:

## patterns detected
- [N] post-action syncs (event-driven, error-isolated)
- [N] pre-validation syncs (called before target action, error-propagating)
- [N] scheduled syncs (periodic batch processing)

## boundary concerns
- [file:line] sync directly queries [table] owned by [Concept] — should use [Concept.action]

Greenfield Mode Guidelines

When designing from a sync description:

  1. Identify source and target concepts (must each have CONCEPT.md or be candidates)
  2. Determine timing: post-action, pre-validation, or scheduled?
  3. Define the data contract: what fields flow from source to target?
  4. Specify qualification criteria: when does this sync execute vs skip?
  5. Choose error strategy based on timing pattern (see Design Rule 5)
  6. Consider cascading: can this sync trigger another sync? If so, declare depth limits

After Generating

  1. Present the sync map to the user for review
  2. Ask: "Are the timing patterns correct? Should any syncs be split or merged?"
  3. Only write the SYNCS.md file after the user approves
  4. If a SYNCS.md already exists, show a diff of proposed changes
  5. If ARCHITECTURE.md exists in the project, remind the user: "SYNCS.md changed — run /wyx:map to regenerate ARCHITECTURE.md." The ## coordination graph is the highest-priority source for architecture map edges (per /wyx:map Step 2 priority order #1), so sync changes are graph-relevant.
  6. If related CONCEPT.md specs exist, suggest: "Run /wyx:concept drift to verify
sync references match current concept declarations."

Relationship to Other wyx Skills

  • /wyx:concept: Each concept in the coordination graph should have a CONCEPT.md.
SYNCS.md references concept actions declared in CONCEPT.md specs. CONCEPT.md ## interactions is the concept's view of its sync relationships. SYNCS.md is the sync directory's view of the same relationships — with execution details. Placement: Keep all syncs in a single SYNCS.md per sync directory — the coordination graph requires a complete view of all sync flows. See /wyx:concept for hook traversal behavior.
  • /wyx:pipeline: When a sync includes data transformation stages, those stages may also
appear in a PIPELINE.md. SYNCS.md handles coordination; PIPELINE.md handles data quality. A sync that transforms data should reference its PIPELINE.md.

---

Source: https://github.com/jlifyio/wyx
Author: jlifyio
Discovered via: skillsdirectory.com
Genre: development

SKILL.md source

---
name: Sync
description: This skill should be used when the user asks to "document sync patterns", "map sync handlers", "create SYNCS.md", "audit sync coordination", "wyx sync", "wyx", or wants to understand how concepts c...
---

# Sync

This skill should be used when the user asks to "document sync patterns", "map sync handlers", "create SYNCS.md", "audit sync coordination", "wyx sync", "wyx", or wants to understand how concepts communicate through orchestrated workflows. Produces SYNCS.md coordination maps.

---
name: sync
description: >
  This skill should be used when the user asks to "document sync patterns",
  "map sync handlers", "create SYNCS.md", "audit sync coordination",
  "wyx sync", "wyx", or wants to understand how concepts communicate
  through orchestrated workflows. Produces SYNCS.md coordination maps.
argument-hint: "e.g. src/lib/server/syncs/ or Stock-to-Indicators pipeline"
allowed-tools: Read, Glob, Grep, Write, Edit
---

# Sync Coordination Mapping

Generate a **sync coordination map** — a structured description of how
independent concepts interact through synchronization handlers. A sync map replaces
reading dozens of handler files with a single page showing the coordination topology,
timing patterns, and error strategies.

Syncs implement the execution mechanics of concept interactions. Where CONCEPT.md
`## interactions` declares relationships, SYNCS.md specifies the **execution mechanics**:
when the sync fires, what data flows, when it skips, and how errors propagate.

## How to interpret $ARGUMENTS

Determine the mode from the argument:

- **Path to sync directory** (e.g. `src/lib/server/syncs/`): **Retrofit mode** — read the existing sync handlers, map the coordination patterns, and propose a SYNCS.md. Flag any patterns that bypass concept boundaries.
- **Sync description** (e.g. `Order fulfillment → Inventory update`): **Greenfield mode** — design a sync spec for the described coordination. Define trigger, flow, qualification, and error strategy.
- **No arguments**: **Discovery mode** — analyze the project for sync-like patterns (event handlers, cross-concept calls, scheduled jobs, dispatch registrations) and list candidates. Do NOT generate full specs; ask the user which to elaborate.

## SYNCS.md Format

Write the spec as a `SYNCS.md` file placed **in the sync directory** (e.g. `src/lib/server/syncs/SYNCS.md`).

```markdown
# syncs: [Module/Area Name]

## coordination graph
[Text diagram showing concept-to-concept flow through syncs]

[Concept] --(action)--> (SyncName) --> [Concept]
[Concept] --(action)--> (SyncName) --> [Concept]
                                   --> [Concept]

## dispatching
- pattern: [event-driven | explicit-call | hybrid]
- error-isolation: [sync failure does NOT propagate to source | propagates]
- depth-limit: [max cascading depth, if applicable]
- context: [how correlation/tracing works across sync boundaries]

## sync: [SyncName]
trigger: [Concept.action | schedule(interval) | manual]
timing: [post-action | pre-validation | scheduled]
flow:
  1. [Concept.action] → [what data is read]
  2. [transform/filter/validate] → [what happens]
  3. [Concept.action] → [what data is written]
qualification: [conditions for execution vs skip]
error: [isolated | propagates | skip-and-log]
file: [relative path to implementation]
```

## Design Rules for Sync Patterns

1. **Syncs live between concepts**: A sync never belongs to a single concept. It
   coordinates two or more concepts. Place sync code in a dedicated directory, not
   inside concept directories.

2. **One direction per sync**: Each sync has a clear source and target. If two
   concepts need bidirectional coordination, use two separate syncs. This keeps
   the coordination graph acyclic and prevents cascading loops.

3. **Three timing patterns**:
   - **Post-action**: Runs AFTER source concept's action completes. Source succeeds
     regardless of sync outcome. Error-isolated.
   - **Pre-validation**: Runs BEFORE target concept's action. Validates cross-concept
     references. Blocks the target action on failure. Error-propagating.
   - **Scheduled**: Runs on a timer. Checks what needs updating, processes in batch.
     Independent of individual concept actions.

4. **Qualification over silent filtering**: Sync handlers should declare explicit
   qualification criteria (when to execute, when to skip). This makes the coordination
   graph truthful — you can see exactly when a sync fires vs when it is skipped.

5. **Error isolation by timing**: Post-action syncs should NOT fail the source action —
   the source concept completed its work. Pre-validation syncs SHOULD fail the target
   action — that is their purpose. Scheduled syncs should log errors and continue
   processing remaining items.

## Retrofit Mode Guidelines

When analyzing existing sync code:

1. Read all sync handler files in the directory
2. Read the index/registry file to understand registration and dispatch patterns
3. Read any dispatcher or context module to understand execution infrastructure
4. Map each sync to: trigger → flow → target
5. Classify timing patterns (post-action, pre-validation, scheduled)
6. Check for concept boundary violations within syncs (direct database imports
   for data owned by other concepts)
7. Note error handling strategies and correlation tracking

Present findings as:
```
## patterns detected
- [N] post-action syncs (event-driven, error-isolated)
- [N] pre-validation syncs (called before target action, error-propagating)
- [N] scheduled syncs (periodic batch processing)

## boundary concerns
- [file:line] sync directly queries [table] owned by [Concept] — should use [Concept.action]
```

## Greenfield Mode Guidelines

When designing from a sync description:

1. Identify source and target concepts (must each have CONCEPT.md or be candidates)
2. Determine timing: post-action, pre-validation, or scheduled?
3. Define the data contract: what fields flow from source to target?
4. Specify qualification criteria: when does this sync execute vs skip?
5. Choose error strategy based on timing pattern (see Design Rule 5)
6. Consider cascading: can this sync trigger another sync? If so, declare depth limits

## After Generating

1. Present the sync map to the user for review
2. Ask: "Are the timing patterns correct? Should any syncs be split or merged?"
3. Only write the `SYNCS.md` file after the user approves
4. If a `SYNCS.md` already exists, show a diff of proposed changes
5. If `ARCHITECTURE.md` exists in the project, remind the user: "SYNCS.md changed — run `/wyx:map` to regenerate ARCHITECTURE.md." The `## coordination graph` is the highest-priority source for architecture map edges (per `/wyx:map` Step 2 priority order #1), so sync changes are graph-relevant.
6. If related CONCEPT.md specs exist, suggest: "Run `/wyx:concept drift` to verify
   sync references match current concept declarations."

## Relationship to Other wyx Skills

- **`/wyx:concept`**: Each concept in the coordination graph should have a CONCEPT.md.
  SYNCS.md references concept actions declared in CONCEPT.md specs.
  CONCEPT.md `## interactions` is the concept's view of its sync relationships.
  SYNCS.md is the sync directory's view of the same relationships — with execution details.
  **Placement**: Keep all syncs in a single SYNCS.md per sync directory — the coordination graph requires a complete view of all sync flows. See `/wyx:concept` for hook traversal behavior.
- **`/wyx:pipeline`**: When a sync includes data transformation stages, those stages may also
  appear in a PIPELINE.md. SYNCS.md handles coordination; PIPELINE.md handles data quality.
  A sync that transforms data should reference its PIPELINE.md.


---

**Source**: https://github.com/jlifyio/wyx
**Author**: jlifyio
**Discovered via**: skillsdirectory.com
**Genre**: development

Related skills 6

caveman

★ Featured

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

juliusbrussee 167k
Development

secure-linux-web-hosting

★ Featured

Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.

xixu-me 155k
Development

readme-i18n

★ Featured

Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

xixu-me 155k
Development

lark-shared

★ Featured

Use when first setting up lark-cli, running auth login, switching user/bot identity (--as), handling permission denied or scope errors, needing to update lark-cli, or seeing _notice in JSON output.

larksuite 155k
Development

improve-codebase-architecture

★ Featured

Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.

mattpocock 151k
Development

paper-context-resolver

★ Featured

Optional RigorPilot helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacin...

lllllllama 127k
Development