Sync Template logo

Sync Template

Community
Littlpinguin
sync-template

Synchronise un repo client dérivé du marketing-cockpit-template avec les évolutions du template public (git fetch upstream + merge upstream/main). Diff résumé avant merge, alerte si des fichiers de marque (01-brand/, profile/) sont touchés, résolution guidée des conflits. À utiliser quand l'utilisateur veut « récupérer les nouveautés du template », « mettre à jour depuis upstream » ou « synchroniser le template ».

Overview

PublisherLittlpinguin
Repositorymarketing-cockpit-template
Skill namesync-template
Stars
9
Forks
0
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 Littlpinguin on GitHub. Read the source before you install it.

Installation

Install the Sync Template 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/Littlpinguin/marketing-cockpit-template/tree/main/.claude/skills/sync-template
  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/Littlpinguin/marketing-cockpit-template.git /tmp/marketing-cockpit-template
mkdir -p .claude/skills
cp -r /tmp/marketing-cockpit-template/.claude/skills/sync-template .claude/skills/sync-template
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sync Template 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 Sync Template 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 Sync Template 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.

sync-template — récupérer les évolutions du template dans un repo client

Cette skill s'exécute dans un repo client (fork/dérivé du template, déjà personnalisé pour {{COMPANY_NAME}}). Objectif : récupérer les améliorations de mécanique du template public sans jamais écraser la personnalisation de marque.

Principe de séparation

CatégorieExemplesVient d'upstream ?
Mécanique.claude/skills/, .claude/commands/, .claude/hooks/, scripts/, _integrations/, docs/, _templates/✅ Oui, c'est le but du sync
Marque & données client01-brand/, profile/, .setup-completed, .env, contenus produits (03- à 09-)🔴 Jamais — un commit upstream qui les touche est suspect

Préflight

  1. Vérifier qu'on est bien dans un repo client : .setup-completed existe. Si absent → ce repo EST probablement le template, sync inutile ; s'arrêter.
  2. git status — l'arbre de travail doit être propre. Sinon, demander de committer ou stasher d'abord.
  3. Vérifier le remote : git remote -v. Si upstream manque, proposer :
    bash
    git remote add upstream <URL du template public>
    (demander l'URL à l'utilisateur, ne pas la deviner).
  4. Noter la branche courante et le SHA de départ (git rev-parse HEAD) pour pouvoir revenir en arrière.

Workflow

Étape 1 — Fetch et diff résumé (AVANT tout merge)

bash
git fetch upstream
git log --oneline HEAD..upstream/main        # commits à intégrer
git diff --stat HEAD...upstream/main         # fichiers touchés

Présenter à l'utilisateur un résumé lisible : nombre de commits, thèmes (nouvelles skills, fixes de scripts, docs...), liste des fichiers modifiés groupés par dossier.

Étape 2 — Alerte fichiers de marque

Contrôler le diff entrant :

bash
git diff --name-only HEAD...upstream/main | grep -E '^(01-brand/|profile/)' || true

Si des fichiers de 01-brand/ ou profile/ apparaissent : 🔴 ALERTE bloquante. Ces fichiers contiennent la marque du client et ne devraient jamais venir d'upstream (au pire, upstream modifie ses gabarits _templates/brand/, pas 01-brand/). Expliquer le risque, et proposer :

  • exclure ces chemins du merge (les restaurer depuis HEAD juste après le merge), option par défaut ;
  • ou, si l'utilisateur confirme que c'est un changement de structure voulu, l'intégrer en re-personnalisant manuellement.

Ne jamais merger silencieusement un changement upstream sur ces dossiers.

Étape 3 — Merge

Avec l'accord explicite de l'utilisateur :

bash
git merge upstream/main
  • Merge propre → passer à l'étape 5.
  • Conflits → étape 4.

Étape 4 — Résolution guidée des conflits

Pour chaque fichier en conflit (git diff --name-only --diff-filter=U), appliquer la grille :

Fichier en conflitRésolution recommandée
01-brand/, profile/, .setup-completedours (version client), toujours
.claude/skills/, scripts/, _integrations/, docs/theirs (upstream) si le client ne l'a pas personnalisé ; sinon fusion manuelle en préservant les personnalisations
CLAUDE.md racine, README.mdFusion manuelle : structure upstream + valeurs de marque client
Contenus 03- à 09-ours, toujours (production client)

Montrer chaque conflit à l'utilisateur avec la résolution proposée et sa justification ; appliquer après validation. Terminer par git merge --continue (jamais de --force, jamais de reset --hard sans confirmation explicite — cf. SECURITY.md).

Étape 5 — Vérification après merge

  1. git diff --stat <SHA de départ>..HEAD — récapituler ce qui a réellement changé.
  2. Confirmer que 01-brand/ et profile/ sont identiques à l'état de départ (git diff <SHA de départ> HEAD -- 01-brand/ profile/ doit être vide, sauf choix explicite contraire).
  3. Chercher des placeholders réintroduits par upstream : grep -rn "{{" --include="*.md" .claude/ CLAUDE.md — si des {{...}} apparaissent dans des fichiers censés être personnalisés, les re-remplir avec les valeurs de .setup-completed / 01-brand/.
  4. Si de nouvelles skills ou commandes sont arrivées, les lister à l'utilisateur avec une ligne de description.
  5. Proposer un /health-check si le merge a touché _integrations/, hooks ou scripts.

En cas de problème

Retour arrière propre (avec confirmation) : git merge --abort pendant le merge ; après coup, créer une branche de secours puis git reset --keep <SHA de départ>.

Ce que cette skill ne fait PAS

  • ❌ Remonter une amélioration client vers le template (→ backport-to-template, le sens inverse)
  • ❌ git push automatique — l'utilisateur pousse lui-même après vérification

Frequently asked questions

What does the Sync Template AI skill do?

Synchronise un repo client dérivé du marketing-cockpit-template avec les évolutions du template public (git fetch upstream + merge upstream/main). Diff résumé avant merge, alerte si des fichiers de marque (01-brand/, profile/) sont touchés, résolution guidée des conflits. À utiliser quand l'utilisateur veut « récupérer les nouveautés du template », « mettre à jour depuis upstream » ou « synchroniser le template ».

Why use Sync Template on TypingMind?

Because you install it once and use it with any model. Sync Template 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 Sync Template in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Littlpinguin/marketing-cockpit-template/tree/main/.claude/skills/sync-template. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Sync Template?

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 Sync Template?

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

Is the Sync Template AI skill free?

Yes. It is published on GitHub by Littlpinguin 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 👇