Install any skill in seconds. Free to start, no credit card required.
Get Started Free →GAIT session lifecycle management - branch creation, turn recording, audit logging for every NetClaw operation. Use when starting a new NetClaw session, recording a health check or config change, pinning a pre-change baseline, or viewing the audit trail for a troubleshooting session.
.claude/skills/automateyournetwork-gait-session-tracking/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 88% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 161% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 203% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 68% | 0% |
This skill is mandatory. Every NetClaw session MUST begin with gait_branch and end with gait_log.
The GAIT MCP server provides 9 tools. Call them via mcp-call:
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_status '{}'
Returns current branch, uncommitted changes, and repository state.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_init '{}'
Creates a new GAIT repository if one does not already exist. Run this once during initial NetClaw setup.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_branch '{"branch_name":"health-check-r1-2026-02-21"}'
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-21ospf-troubleshoot-core-2026-02-21config-deploy-acl-update-2026-02-21netbox-reconcile-site-hq-2026-02-21security-audit-dmz-2026-02-21bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_checkout '{"branch_name":"health-check-r1-2026-02-21"}'
Use this to resume a previous session or switch context between parallel investigations.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"User asked to check CPU on R1","response":"Ran show processes cpu sorted. CPU 5-min avg: 12%. Status: HEALTHY.","artifacts":["show_proc_cpu_r1.txt"]}'
Record a turn after every significant action. Each turn captures:
bashpython3 $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.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_show '{"commit_ref":"HEAD"}'
Inspect a specific commit to see its full content. Use HEAD, HEAD~1, or a commit hash.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_pin '{"commit_ref":"HEAD","label":"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 modificationspost-change-verified -- state after changes are validatedcritical-finding -- an important discovery during investigationrollback-point -- safe state to return to if neededbashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_summarize_and_squash '{}'
Consolidate multiple granular turns into a single summary commit. Use at the end of a long session to create a clean audit record.
Every NetClaw session follows this exact lifecycle:
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_branch '{"branch_name":"ACTION-TYPE-TARGET-DATE"}'
After each meaningful action (show command, config change, API call, verification), record a turn:
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"WHAT_WAS_ASKED","response":"WHAT_DATA_COLLECTED_AND_WHAT_CHANGED_AND_VERIFICATION_RESULT","artifacts":[]}'
Record format guidelines:
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_log '{}'
Always show the session log to the user so they have a complete record.
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"Run full health check on R1","response":"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":["health-report-r1.txt"]}'
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"Apply ACL update to block 192.168.50.0/24 on R1 Gi1","response":"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":["pre-change-config-r1.txt","post-change-config-r1.txt","acl-diff.txt"]}'
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"Investigate OSPF adjacency failure between R1 and R3","response":"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":["ospf-neighbor-r1.txt","ospf-interface-r1.txt","ospf-interface-r3.txt"]}'
bashpython3 $MCP_CALL "python3 -u $GAIT_MCP_SCRIPT" gait_record_turn '{"prompt":"Reconcile R1 interfaces against NetBox","response":"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":["reconcile-report-r1.json"]}'
GAIT session tracking is used by every other NetClaw skill for audit compliance:
Always. Every NetClaw session. No exceptions. This is the audit backbone of the system.
Other measured skills in the registry, with their headline benchmark lift.