Logo di Chains

Chains

Community
DeevsDeevs
chains

Save, load, fork and search .chains links: work context that survives sessions, compaction and handoffs between agents (Claude Code, Codex, pi). Use on 'continue', 'resume', 'pick up', 'where were we', 'save progress', before a long task switch, and when handing work to another agent.

Panoramica

AutoreDeevsDeevs
Repositoryagent-system
Nome della skillchains
Stelle
41
Fork
6
File inclusi
2
LicenzaApache-2.0
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.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da DeevsDeevs su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Chains 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/DeevsDeevs/agent-system/tree/main/skills/chains
  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/DeevsDeevs/agent-system.git /tmp/agent-system
mkdir -p .claude/skills
cp -r /tmp/agent-system/skills/chains .claude/skills/chains
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Chains 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 Chains 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 Chains 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à.

Chains

A chain is a folder of markdown links in the project: .chains/<chain>/<timestamp>-<slug>.md. Each link is a handoff: what was asked, what's done, what was decided, what's next. Any agent on any machine reads the same files.

Run the bundled script from this skill's folder (Node is on PATH):

sh
C=<this skill's folder>/chain.mjs
node $C list [--max N]               # chains here, newest first, with next steps (sessions start with this)
node $C list <chain>                 # its links, newest first
node $C load <chain>                 # newest link on main (--branch B, --link FILE)
node $C context <chain>              # newest link + 2 parents + recent titles: for resuming or a delegate
node $C search <words> [--chain C]   # ranked hits with the matching line
node $C save <chain> --next "…" < link.md     # parent = the branch's newest link
node $C fork <chain> <branch>        # prints the parent for the branch's first save

.chains is found by walking up from the current folder, no further than the git root (outside git, no further than just below ~); a new one goes at the git root, else in the current folder. --json on any command gives JSON. Chain and branch names: letters, digits, ., _, -. A [chains reminder] comes from the end-of-turn hooks (node $C remind), once a session has worked 30 minutes with no link: save one if the work is worth keeping, otherwise just finish.

When to load

  • "Continue", "resume", "pick up", or a reference to earlier work: load or context the named chain; if you don't know which, list, then search.
  • Before non-trivial work in a project with a .chains folder: one quick search before rediscovering old decisions.
  • A link older than 7 days (marked stale), or one that conflicts with the files: treat it as a lead to verify, not as fact.

When to save

  • After a milestone: feature works, fix verified, design decided, approach rejected for a reason worth keeping, review done.
  • Before context may be lost: long session, before compacting, task switch, handoff, stopping with work pending.
  • Not for one-shot answers, tiny edits, or what the git diff already says, and never when the user says not to.

Always pass --next with the single next step. Write the link as a handoff another agent could act on without this conversation:

  1. Request and intent
  2. Key decisions and why
  3. Work completed (files, commands, results)
  4. Open issues, blockers, risks
  5. Next step

For important handoffs, follow link-rubric.md in this folder. Include exact paths, commands, ids and unresolved errors; skip routine tool chatter.

Branches

main is the default. Branch only for a different hypothesis: a competing design, a risky spike, a delegate's research track. Continuations, fixes and end-of-session handoffs stay on the current branch.

sh
node $C fork work spike              # → parent: <file>
node $C save work --branch spike --parent <file> --next "…" < link.md

When a branch is accepted or dropped, save an outcome link on main.

Handing work to another agent

Put node $C context <chain> output (or the chain name and "run the chains skill's context") in the delegate's task, whether it's a subagent or an agent started with hc. When its report changes decisions, exposes a risk or creates follow-up work, save a link naming who reported and what changed.

Without Node

Write the file yourself, same layout: .chains/<chain>/YYYY-MM-DD-HHMMSSmmm-<slug>.md (local time), starting with

yaml
---
chain: "<chain>"
branch: "main"
parent: "<previous link's file name>"
nextStep: "<next step>"
created: "<ISO time>"
---

Load = read the newest file; search = rg in .chains.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Chains?

Save, load, fork and search .chains links: work context that survives sessions, compaction and handoffs between agents (Claude Code, Codex, pi). Use on 'continue', 'resume', 'pick up', 'where were we', 'save progress', before a long task switch, and when handing work to another agent.

Perché usare Chains su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Chains è 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 Chains in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/DeevsDeevs/agent-system/tree/main/skills/chains. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Chains?

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 Chains?

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

La skill IA Chains è gratuita?

Sì. È pubblicata su GitHub da DeevsDeevs con licenza Apache-2.0. 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 👇