Logo : Gait Session Tracking

Gait Session Tracking

Communauté
automateyournetwork
gait-session-tracking

Gestion du cycle de vie des sessions GAIT : création de branches, enregistrement des étapes et journalisation d’audit de chaque opération NetClaw. À utiliser pour démarrer une session NetClaw, enregistrer une vérification d’état ou une modification de configuration, marquer une référence avant modification ou consulter la piste d’audit d’une session de dépannage.

Présentation

Éditeurautomateyournetwork
Dépôtnetclaw
Nom de la compétencegait-session-tracking
Étoiles
680
Forks
189
Fichiers inclus
Instructions uniquement
LicenceApache-2.0
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Tout dans les instructions

    Tout ce dont le modèle a besoin se trouve dans les instructions : aucun fichier supplémentaire à synchroniser.

  • Open source

    Publiée par automateyournetwork sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Gait Session Tracking dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/gait-session-tracking
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Gait Session Tracking dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Gait Session Tracking dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Gait Session Tracking n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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).

Foire aux questions

À quoi sert la compétence IA Gait Session Tracking ?

Gestion du cycle de vie des sessions GAIT : création de branches, enregistrement des étapes et journalisation d’audit de chaque opération NetClaw. À utiliser pour démarrer une session NetClaw, enregistrer une vérification d’état ou une modification de configuration, marquer une référence avant modification ou consulter la piste d’audit d’une session de dépannage.

Pourquoi utiliser Gait Session Tracking sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Gait Session Tracking se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Gait Session Tracking dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/automateyournetwork/netclaw/tree/main/workspace/skills/gait-session-tracking. TypingMind lit le fichier SKILL.md et l’installe sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Gait Session Tracking ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Gait Session Tracking ?

Autant que vous le souhaitez. Vous pouvez utiliser Gait Session Tracking avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Gait Session Tracking est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par automateyournetwork sous licence Apache-2.0. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇