Logo di Customer Context

Customer Context

Community
Dan-Cleary
customer-context

Load a customer's context at the start of every session. Run this before any other FDEstack skill. Reads all 7 context files, surfaces drift since last session, asks what's new, and commits updates. Proactively invoke this skill (do NOT answer customer-specific questions directly) when the user references a customer name in an FDE ops repo without context being loaded this session. Always the first skill in a customer session — every other FDEstack skill requires its session marker. Usage: /customer-context <customer-name> Voice triggers: "load <customer>", "start session with <customer>", "what's the state on <customer>", "open <customer>".

Panoramica

AutoreDan-Cleary
Repositoryfdestack
Nome della skillcustomer-context
Stelle
49
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da Dan-Cleary su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Customer Context in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/Dan-Cleary/fdestack/tree/main/skills/customer-context
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dan-Cleary/fdestack.git /tmp/fdestack
mkdir -p .claude/skills
cp -r /tmp/fdestack/skills/customer-context .claude/skills/customer-context
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Customer Context in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Customer Context non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Customer Context non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

/customer-context

Load and update a customer's context. Run this at the start of every customer session.

Step 0: Parse customer name

The customer name is the first argument after the skill invocation. If no name is provided, ask: "Which customer? (e.g. /customer-context acme)"

Set CUSTOMER_NAME from the argument. All file paths below use this name. The ops repo root is the current working directory — all paths are relative to it.

Step 1: Ops repo safety check

Run:

bash
git remote -v 2>/dev/null | head -4
[ -d customers/ ] && ls customers/ | head -3 || echo "NO_CUSTOMERS_DIR"

If NO_CUSTOMERS_DIR appears AND there are git remotes that don't look like a personal ops repo (e.g., remote URL contains a company/project name that matches obvious customer patterns), print:

Warning: I don't see a customers/ directory here. Are you sure you're in your FDE ops repo (e.g. ~/fde-ops/) and not inside a customer's codebase? Committing customer context here could expose internal notes to the customer's team. Type "yes" to proceed anyway, or cd to your ops repo first.

Wait for confirmation before continuing if this warning fires.

Step 2: Check session marker freshness

bash
MARKER="/tmp/fdestack-session-$CUSTOMER_NAME"
if [ -f "$MARKER" ]; then
  MARKER_TS=$(cat "$MARKER" | grep '^ts=' | cut -d= -f2)
  NOW=$(date +%s)
  AGE=$(( NOW - MARKER_TS ))
  if [ "$AGE" -lt 43200 ]; then
    echo "MARKER_FRESH=true AGE_HOURS=$(( AGE / 3600 ))"
  else
    echo "MARKER_FRESH=false AGE_HOURS=$(( AGE / 3600 ))"
  fi
  DECLINED=$(cat "$MARKER" | grep '^declined=true' || echo "")
  [ -n "$DECLINED" ] && echo "DECLINED_LAST_SESSION=true"
else
  echo "MARKER_FRESH=false MARKER_MISSING=true"
fi

If DECLINED_LAST_SESSION=true: print at the top of the Session Brief:

Note: last session's changes were not committed — drift detection may show accumulated changes from multiple sessions.

Step 3: Load cross-customer learnings

bash
LEARNINGS_FILE="$HOME/.fdestack/learnings.jsonl"
if [ -f "$LEARNINGS_FILE" ] && [ -s "$LEARNINGS_FILE" ]; then
  echo "LEARNINGS: $(wc -l < "$LEARNINGS_FILE" | tr -d ' ') entries"
  # Surface top 3 most recent entries
  tail -3 "$LEARNINGS_FILE" | jq -r '"[learning] " + .key + ": " + .insight' 2>/dev/null || true
else
  echo "LEARNINGS: 0"
fi

If learnings are found, incorporate relevant ones into your analysis during this session. Display them under "PRIOR LEARNINGS" in the Session Brief if any seem applicable.

Step 4: Load customer context files

bash
CUSTOMER_DIR="customers/$CUSTOMER_NAME"
mkdir -p "$CUSTOMER_DIR"
for f in profile stack stakeholders blockers unknowns decisions timeline; do
  if [ ! -f "$CUSTOMER_DIR/$f.md" ]; then
    FDESTACK_DIR=$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || echo "$HOME/.claude/skills/customer-context/SKILL.md")")")
    cp "$FDESTACK_DIR/templates/$f.md" "$CUSTOMER_DIR/$f.md" 2>/dev/null || \
    cp "$HOME/.claude/skills/fdestack/templates/$f.md" "$CUSTOMER_DIR/$f.md" 2>/dev/null || \
    echo "## Last Updated" > "$CUSTOMER_DIR/$f.md"
    echo "  created: $f.md from template"
  fi
done
ls "$CUSTOMER_DIR/"

Read all 7 files:

  • customers/<name>/profile.md
  • customers/<name>/stack.md
  • customers/<name>/stakeholders.md
  • customers/<name>/blockers.md
  • customers/<name>/unknowns.md
  • customers/<name>/decisions.md
  • customers/<name>/timeline.md

Step 5: Drift detection

bash
CUSTOMER_DIR="customers/$CUSTOMER_NAME"
# Check if files have git history
HAS_HISTORY=$(git log --oneline -1 -- "$CUSTOMER_DIR/" 2>/dev/null)
if [ -n "$HAS_HISTORY" ]; then
  git diff HEAD -- "$CUSTOMER_DIR/" 2>/dev/null
  echo "DRIFT_CHECK=done"
else
  echo "DRIFT_CHECK=first_session"
fi

If DRIFT_CHECK=first_session: note "First session — no drift to show." If diff output is non-empty: summarize as "DRIFT SINCE LAST SESSION" in the Brief. If diff is empty: note "No changes since last session."

Step 6: Print Session Brief

Print this to the terminal:

════════════════════════════════════════════════════════════
CUSTOMER: <name> | SESSION: <YYYY-MM-DD> | FDE: <git user.name>
════════════════════════════════════════════════════════════

CURRENT STATE:
  [3-5 bullets synthesized from profile.md + recent decisions.md]

OPEN UNKNOWNS:
  [unknowns.md items, HIGH first, then MED, then LOW]
  [if none: "No open unknowns — nice."]

CURRENT BLOCKERS:
  [blockers.md items, HIGH first]
  [if none: "No active blockers."]

DRIFT SINCE LAST SESSION:
  [summary of git diff, or "No changes" or "First session"]
  [if DECLINED_LAST_SESSION: "Note: last session not committed — diff may span multiple sessions"]

[PRIOR LEARNINGS: <applicable entries from learnings.jsonl, if any>]

RECOMMENDED FIRST ACTION:
  [one sentence based on highest-priority blocker or unknown]
  [first session with empty context: "Tell me what you already know about this customer
   (company, engagement stage, who's involved) — I'll route it to the right context file."]
════════════════════════════════════════════════════════════

Step 7: Ask what's new

Ask: "Anything to update before we start?"

Route answers to the right file by content type:

  • New person / contact / org chart change → stakeholders.md
  • New tool / system / infra / API / data format → stack.md
  • New deadline / date / milestone → timeline.md
  • New blocker / stuck / can't proceed → blockers.md
  • New unknown / unclear / need to find out → unknowns.md
  • Decision made / resolved / agreed → decisions.md
  • General company / product info → profile.md

If the answer is ambiguous (could go to 2+ files), ask which file before writing. If nothing to update, skip to Step 8.

Update the ## Last Updated line in each file you modify with today's date.

Step 8: Confirm before committing

Show what changed:

bash
git diff -- "customers/$CUSTOMER_NAME/" 2>/dev/null
git status --short -- "customers/$CUSTOMER_NAME/" 2>/dev/null

If nothing changed: write the session marker (Step 9) and stop. Print "Nothing changed — context is current."

If changes exist, print:

Here's what I'm about to commit to your ops repo: [show the diff summary — which files changed and what] Commit these changes? (yes / no / let me edit first)

  • yes: proceed to commit in Step 8a
  • no: write declined flag to session marker (Step 9), print "OK — changes not committed. Next session will note that drift detection may be incomplete.", stop
  • let me edit first: wait for the user to make edits, then re-show the diff and ask again

Step 8a: Commit

bash
git add "customers/$CUSTOMER_NAME/"
git commit -m "context: $CUSTOMER_NAME session $(date +%Y-%m-%d)"

Step 9: Write session marker

bash
MARKER="/tmp/fdestack-session-$CUSTOMER_NAME"
printf "ts=%s\n" "$(date +%s)" > "$MARKER"
# If commit was declined, add the flag:
# printf "declined=true\n" >> "$MARKER"

Write ts=<unix_timestamp> to the marker. If the commit was declined in Step 8, also write declined=true on a second line.

Print: "Session marker written. Other FDEstack skills are ready to use for $CUSTOMER_NAME."

Domande frequenti

Cosa fa la skill IA Customer Context?

Load a customer's context at the start of every session. Run this before any other FDEstack skill. Reads all 7 context files, surfaces drift since last session, asks what's new, and commits updates. Proactively invoke this skill (do NOT answer customer-specific questions directly) when the user references a customer name in an FDE ops repo without context being loaded this session. Always the first skill in a customer session — every other FDEstack skill requires its session marker. Usage: /customer-context <customer-name> Voice triggers: "load <customer>", "start session with <customer>",...

Perché usare Customer Context su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Customer Context è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Customer Context in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/Dan-Cleary/fdestack/tree/main/skills/customer-context. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Customer Context?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Customer Context?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Customer Context: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Customer Context è gratuita?

Sì. È pubblicata su GitHub da Dan-Cleary con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇