Customize Upstream Sync logo

Customize Upstream Sync

Community
jmagly
customize-upstream-sync

Pull the latest upstream AIWG updates into the user's fork and rebuild — preserves user customizations

Overview

Publisherjmagly
Repositoryaiwg
Skill namecustomize-upstream-sync
Stars
225
Forks
34
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by jmagly on GitHub. Read the source before you install it.

Installation

Install the Customize Upstream Sync AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/customize-upstream-sync
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagly/aiwg.git /tmp/aiwg
mkdir -p .claude/skills
cp -r /tmp/aiwg/agentic/code/addons/aiwg-utils/skills/customize-upstream-sync .claude/skills/customize-upstream-sync
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Customize Upstream Sync in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Customize Upstream Sync on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Customize Upstream Sync is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Customize Upstream Sync

You pull the latest upstream AIWG changes into the user's fork, handle conflicts (preserving user customizations), rebuild, and report what changed. This only works in fork mode (where the upstream remote points to jmagly/aiwg).

Triggers

  • "sync my AIWG"
  • "pull in the latest AIWG updates"
  • "update my fork"
  • "update my AIWG from upstream"
  • "what's new in upstream AIWG?"
  • "pull upstream changes"
  • "get the latest AIWG"

Trigger Patterns Reference

PatternExampleAction
Sync request"sync my AIWG"Full upstream sync + rebuild
Check only"what's new in upstream?"Fetch + diff summary, no merge
Update request"update my fork"Full upstream sync + rebuild

Behavior

When triggered:

  1. Verify fork mode — upstream remote must exist:

    bash
    git -C <edgePath> remote get-url upstream

    If no upstream remote, explain: "This only works if you forked AIWG. Your clone doesn't have an upstream remote. If you want to track upstream updates, I can add one — or consider setting up a fork."

  2. Show what's incoming (before merging):

    bash
    git -C <edgePath> fetch upstream
    git -C <edgePath> log HEAD..upstream/main --oneline

    Report: "Here's what upstream has (N commits):" with the log summary.

  3. If check-only ("what's new") — stop here. Don't merge unless user confirms.

  4. Merge:

    bash
    git -C <edgePath> merge upstream/main
  5. Handle conflicts:

    • If clean merge: proceed to rebuild
    • If conflicts: run git -C <edgePath> diff --name-only --diff-filter=U
    • For each conflicted file:
      • If it's a user-added file (new file, not in upstream): auto-resolve keeping user's version
      • If it's an upstream file the user also modified: pause and show the diff, ask which version to keep
    • After all conflicts resolved: git -C <edgePath> commit --no-edit
  6. Rebuild and redeploy:

    bash
    npm --prefix <edgePath> run build
    aiwg use all
  7. Push fork (so GitHub fork stays current):

    bash
    git -C <edgePath> push origin main
  8. Report:

    Synced to upstream/main (N commits merged).
    
    What changed upstream:
      - New skill: agentic/code/.../new-skill
      - Updated agent: agentic/code/.../some-agent.md
      + 3 more changes
    
    Your customizations: preserved (2 files unaffected)
    
    Deployed and pushed to your fork.

Conflict Strategy

  • User-only files (new files the user added): always preserve, never overwrite
  • Upstream-modified files the user also touched: pause, show diff, ask
  • Pure upstream changes (files user never touched): auto-accept upstream version

When in doubt, keep the user's version and flag it for review.

Examples

Example 1: Clean sync

User: "sync my AIWG"

Action: fetch → log 5 new commits → merge (clean) → build → aiwg use all → push

Response: "Synced — 5 upstream commits merged, 0 conflicts. Your 2 customizations untouched. Rebuilt and pushed to your fork."

Example 2: Check only

User: "what's new in upstream AIWG?"

Action: fetch → git log HEAD..upstream/main --oneline

Response: "Upstream has 3 new commits: [list]. Say 'sync my AIWG' to pull them in."

Example 3: Conflict

User: "sync my AIWG"

Action: fetch → merge → conflict in agentic/code/addons/aiwg-utils/agents/aiwg-steward.md (user modified it too)

Response: "Upstream changed aiwg-steward.md which you've also modified. Here's the diff: [diff]. Keep yours, keep upstream's, or merge manually?"

Clarification Prompts

  • "This will merge N upstream commits into your fork. Proceed?"
  • "Upstream changed [file] which you also modified. Keep your version, upstream's version, or should I show you the diff?"

References

  • @$AIWG_ROOT/src/channel/manager.mjs — edgePath config
  • @$AIWG_ROOT/docs/customization/fork-workflow.md — Fork lifecycle docs

Frequently asked questions

What does the Customize Upstream Sync AI skill do?

Pull the latest upstream AIWG updates into the user's fork and rebuild — preserves user customizations

Why use Customize Upstream Sync on TypingMind?

Because you install it once and use it with any model. Customize Upstream Sync is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Customize Upstream Sync in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jmagly/aiwg/tree/main/agentic/code/addons/aiwg-utils/skills/customize-upstream-sync. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Customize Upstream Sync?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Customize Upstream Sync?

As many as you like. As long as a model supports skills, you can use Customize Upstream Sync with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Customize Upstream Sync AI skill free?

Yes. It is published on GitHub by jmagly under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇