Logo di Gait Session Tracking

Gait Session Tracking

Community
automateyournetwork
gait-session-tracking

Gestione del ciclo di vita delle sessioni GAIT: creazione di branch, registrazione dei turni e logging di audit per ogni operazione NetClaw. Usalo per avviare una nuova sessione NetClaw, registrare un controllo dello stato o una modifica alla configurazione, fissare una baseline prima di una modifica o consultare il registro di audit di una sessione di troubleshooting.

Panoramica

Pubblicato daautomateyournetwork
Repositorynetclaw
Nome della skillgait-session-tracking
Stelle
680
Fork
189
File inclusi
Solo istruzioni
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.

  • Tutto nelle istruzioni

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

  • Open source

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

Installazione

Installa la skill IA Gait Session Tracking 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/automateyournetwork/netclaw/tree/main/workspace/skills/gait-session-tracking
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi 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 della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/automateyournetwork/netclaw.git /tmp/netclaw
mkdir -p .claude/skills
cp -r /tmp/netclaw/workspace/skills/gait-session-tracking .claude/skills/gait-session-tracking
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Gait Session Tracking 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 Gait Session Tracking 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 Gait Session Tracking 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à.

GAIT Session Tracking

This skill is mandatory. Every NetClaw session MUST begin with gait_branch and end with gait_log.

How to Call the Tools

The GAIT MCP server provides the lifecycle tools below (discover tools/list for the complete installed inventory). Call them via mcp-call:

Check Repository Status

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_status '{}'

Returns current branch, uncommitted changes, and repository state.

Initialize a New GAIT Repository

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_init '{"path":"/absolute/path/to/project"}'

Creates a new GAIT repository if one does not already exist. Supply the actual absolute project path; do not run against the filesystem root. Run once during initial setup, then verify gait_status names the intended root.

Create a New Branch (SESSION START)

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_branch '{"name":"health-check-r1-2026-02-21"}'

Creating a branch does not switch to it. Call gait_checkout with the same name and verify gait_status before recording turns. Every session begins here. Use a descriptive branch name that includes the action type, target device(s), and date. Examples:

  • health-check-r1-2026-02-21
  • ospf-troubleshoot-core-2026-02-21
  • config-deploy-acl-update-2026-02-21
  • netbox-reconcile-site-hq-2026-02-21
  • security-audit-dmz-2026-02-21

Switch to an Existing Branch

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_checkout '{"name":"health-check-r1-2026-02-21"}'

Use this to resume a previous session or switch context between parallel investigations.

Record an AI Turn (PRIMARY RECORDING TOOL)

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"User asked to check CPU on R1","assistant_text":"Ran show processes cpu sorted. CPU 5-min avg: 12%. Status: HEALTHY.","artifacts":[{"path":"show_proc_cpu_r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."}]}'

Record a turn after every significant action. Each turn captures:

  • user_text: What was asked or what triggered the action
  • assistant_text: What data was collected and what the result was
  • artifacts: List of {"path": "...", "content": "..."} objects (optional; use sanitized content only)

View Commit History (SESSION END)

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_log '{}'

Every session ends here. Display the full audit log before concluding. This provides the user with a complete record of everything that happened.

Show Commit Details

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_show '{"commit":"HEAD"}'

Inspect a specific commit to see its full content. Use HEAD, HEAD~1, or a commit hash.

Pin Important Commits

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_pin '{"commit":"HEAD","last":false,"note":"pre-change-baseline"}'

Mark critical moments in a session so they can be easily found later. Common pin labels:

  • pre-change-baseline -- state before any modifications
  • post-change-verified -- state after changes are validated
  • critical-finding -- an important discovery during investigation
  • rollback-point -- safe state to return to if needed

Summarize and Squash Turns

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"Session summary","assistant_text":"Summarize findings, changes, verification and remaining gaps.","note":"session-summary"}'

Do not squash immutable operational audit history. Record an additive summary using gait_record_turn instead. The server exposes squashing for other use cases; its availability is not authorization to rewrite this project's audit trail.

Mandatory Session Lifecycle

Every NetClaw session follows this exact lifecycle:

1. Session Start -- Create Branch

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_branch '{"name":"ACTION-TYPE-TARGET-DATE"}'
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_checkout '{"name":"ACTION-TYPE-TARGET-DATE"}'
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_status '{}'

2. During Session -- Record Every Turn

After each meaningful action (show command, config change, API call, verification), record a turn:

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"WHAT_WAS_ASKED","assistant_text":"WHAT_DATA_COLLECTED_AND_WHAT_CHANGED_AND_VERIFICATION_RESULT","artifacts":[]}'

Record format guidelines:

  • user_text: State clearly what the user asked or what triggered the action
  • assistant_text: Include three parts:
    1. What data was collected (commands run, API responses)
    2. What changed (config applied, ticket created, NetBox updated)
    3. Verification result (HEALTHY/WARNING/CRITICAL, pass/fail, before/after diff)
  • artifacts: List any files generated (logs, configs, diagrams, reports)

3. Session End -- Display Log

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_log '{}'

Always show the session log to the user so they have a complete record.

Recording Examples by Skill Type

Health Check Turn

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"Run full health check on R1","assistant_text":"Collected: show version, show processes cpu sorted, show processes memory sorted, show ip interface brief, show interfaces, show ntp associations, show logging. Results: CPU 12% HEALTHY, Memory 45% HEALTHY, Interfaces 4/5 up WARNING (Gi2 down), NTP synced HEALTHY, no critical log patterns. Overall: WARNING.","artifacts":[{"path":"health-report-r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."}]}'

Configuration Change Turn

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"Apply ACL update to block 192.168.50.0/24 on R1 Gi1","assistant_text":"Pre-change: captured running-config. Applied: ip access-list extended BLOCK-LIST, permit/deny entries. Post-change: verified ACL in show access-lists, tested with ping from blocked subnet -- dropped as expected. Change verified successfully.","artifacts":[{"path":"pre-change-config-r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."},{"path":"post-change-config-r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."},{"path":"acl-diff.txt","content":"Sanitized evidence reference; raw evidence retained locally."}]}'

Troubleshooting Turn

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"Investigate OSPF adjacency failure between R1 and R3","assistant_text":"Checked show ip ospf neighbor on R1 -- R3 missing. Checked show ip ospf interface on both -- area mismatch: R1 area 0, R3 area 1 on shared link. Root cause identified: area misconfiguration on R3 Gi0/1.","artifacts":[{"path":"ospf-neighbor-r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."},{"path":"ospf-interface-r1.txt","content":"Sanitized evidence reference; raw evidence retained locally."},{"path":"ospf-interface-r3.txt","content":"Sanitized evidence reference; raw evidence retained locally."}]}'

NetBox Reconciliation Turn

bash
python3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"user_text":"Reconcile R1 interfaces against NetBox","assistant_text":"Live state: 5 interfaces discovered via show ip interface brief. NetBox state: 4 interfaces documented. Drift detected: Gi5 exists on device but missing from NetBox. Gi2 documented in NetBox but admin-down on device. Reconciliation report generated.","artifacts":[{"path":"reconcile-report-r1.json","content":"Sanitized evidence reference; raw evidence retained locally."}]}'

Integration with ALL Other Skills

GAIT session tracking is used by every other NetClaw skill for audit compliance:

  • pyats-health-check -- Record each health check step and overall results
  • pyats-topology -- Record discovered neighbors and topology changes
  • pyats-security -- Record audit findings by severity
  • pyats-config-mgmt -- Record pre-change baseline, change applied, post-change verification
  • pyats-troubleshoot -- Record each investigation step and root cause
  • pyats-routing -- Record routing table snapshots and protocol state
  • netbox-reconcile -- Record drift detection and remediation actions
  • drawio-diagram -- Record diagram generation with source data reference
  • markmap-viz -- Record mind map creation with underlying data
  • rfc-lookup -- Record RFC references used during investigation
  • wikipedia-research -- Record protocol research context
  • servicenow-incidents -- Record ticket creation and updates
  • nvd-cve -- Record vulnerability findings and remediation tracking

When to Use

Always. Every NetClaw session. No exceptions. This is the audit backbone of the system.

Failure Behavior

  • If a tool call fails with an authentication or connection error, check that GAIT_MCP_SCRIPT is set and valid before assuming a data or device problem.
  • On a tool error (timeout, unreachable host, malformed response), report the failure and its error message directly to the user rather than fabricating or guessing at results.
  • Branch, checkout, initialization and turn recording mutate audit state. On timeout, use gait_status/gait_log to establish whether the mutation succeeded before retrying; a blind retry can duplicate a record. Read-only lookups may be retried once after confirming connectivity.
  • A transport-level response is not proof of success: inspect MCP isError and the returned ok value. Report failure without inventing a successful audit record.
  • Tool schemas vary by installed server revision. Discover tools/list and compare with these examples; do not guess alternate argument names. These examples match the inspected gait_mcp lifecycle signatures (spec 124).

Domande frequenti

Cosa fa la skill IA Gait Session Tracking?

Gestione del ciclo di vita delle sessioni GAIT: creazione di branch, registrazione dei turni e logging di audit per ogni operazione NetClaw. Usalo per avviare una nuova sessione NetClaw, registrare un controllo dello stato o una modifica alla configurazione, fissare una baseline prima di una modifica o consultare il registro di audit di una sessione di troubleshooting.

Perché usare Gait Session Tracking su TypingMind?

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

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/gait-session-tracking. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Gait Session Tracking?

Qualsiasi modello che colleghi a 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 Gait Session Tracking?

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

La skill IA Gait Session Tracking è gratuita?

Sì. È pubblicata su GitHub da automateyournetwork 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, template 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.

Elenco completo

Crea subito il tuo spazio di lavoro AI

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