{"id":"5a96e4ca-1a5a-4996-8031-abb03e8a7cf4","shortId":"JaQ9cq","kind":"skill","title":"pilot-audit-log","tagline":"Comprehensive audit trail of all Pilot Protocol activity for security and compliance.  Use this skill when: 1. You need detailed logs of all trust decisions and connections 2. You require compliance audit trails for security reviews 3. You want to investigate suspicious activity ","description":"# Pilot Audit Log\n\nComprehensive audit logging for Pilot Protocol with structured event capture, retention policies, and compliance-ready output formats.\n\n## Commands\n\n**Initialize audit log:**\n```bash\nmkdir -p ~/.pilot/audit\ncat > ~/.pilot/audit/config.json <<EOF\n{\n  \"enabled\": true,\n  \"log_file\": \"$HOME/.pilot/audit/events.jsonl\",\n  \"retention_days\": 90,\n  \"event_types\": [\"trust.handshake\", \"trust.approve\", \"connection.open\"]\n}\nEOF\n```\n\n**Log trust events:**\n```bash\nlog_audit() {\n  local EVENT_TYPE=$1\n  local DETAILS=$2\n  echo \"$(date -u +%Y-%m-%dT%H:%M:%SZ) $EVENT_TYPE $DETAILS\" >> ~/.pilot/audit/events.jsonl\n}\n\npilotctl --json handshake \"$AGENT\" \"Audit test\"\nlog_audit \"trust.handshake\" \"{\\\"agent\\\": \\\"$AGENT\\\"}\"\n```\n\n**Query audit log:**\n```bash\ngrep \"trust.approve\" ~/.pilot/audit/events.jsonl\njq 'select(.event_type == \"trust.approve\")' ~/.pilot/audit/events.jsonl\n```\n\n**Generate audit report:**\n```bash\ncat > ~/.pilot/audit/report-$(date +%Y-%m-%d).json <<EOF\n{\n  \"date\": \"$(date +%Y-%m-%d)\",\n  \"total_events\": $(wc -l < ~/.pilot/audit/events.jsonl),\n  \"handshakes\": $(grep -c \"trust.handshake\" ~/.pilot/audit/events.jsonl || echo 0),\n  \"approvals\": $(grep -c \"trust.approve\" ~/.pilot/audit/events.jsonl || echo 0)\n}\nEOF\n```\n\n## Workflow Example\n\n```bash\n#!/bin/bash\n# Audit logging with automatic event capture\n\nAUDIT_DIR=~/.pilot/audit\nLOG_FILE=$AUDIT_DIR/events.jsonl\nmkdir -p \"$AUDIT_DIR\"\n\naudit_log() {\n  local EVENT_TYPE=$1\n  local AGENT=$2\n  local ACTION=$3\n  local RESULT=$4\n\n  cat >> \"$LOG_FILE\" <<EOF\n{\"timestamp\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"event_type\":\"$EVENT_TYPE\",\"agent\":\"$AGENT\",\"action\":\"$ACTION\",\"result\":\"$RESULT\"}\nEOF\n}\n\n# Wrap trust commands with audit logging\naudit_handshake() {\n  local AGENT=$1\n  audit_log \"trust\" \"$AGENT\" \"handshake\" \"started\"\n\n  if pilotctl --json handshake \"$AGENT\" \"Audit tracked\"; then\n    audit_log \"trust\" \"$AGENT\" \"handshake\" \"success\"\n  else\n    audit_log \"trust\" \"$AGENT\" \"handshake\" \"failed\"\n  fi\n}\n\naudit_handshake \"agent1.pilot\"\n```\n\n## Dependencies\n\nRequires `pilot-protocol` skill, `pilotctl` binary, running daemon, and `jq` for JSON parsing.","tags":["pilot","audit","log","skills","teoslayer","agent-skills","ai-agents","clawhub","networking","openclaw","overlay-network","p2p"],"capabilities":["skill","source-teoslayer","skill-pilot-audit-log","topic-agent-skills","topic-ai-agents","topic-clawhub","topic-networking","topic-openclaw","topic-overlay-network","topic-p2p","topic-pilot-protocol"],"categories":["pilot-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/TeoSlayer/pilot-skills/pilot-audit-log","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add TeoSlayer/pilot-skills","source_repo":"https://github.com/TeoSlayer/pilot-skills","install_from":"skills.sh"}},"qualityScore":"0.453","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 6 github stars · SKILL.md body (2,123 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:14:51.460Z","embedding":null,"createdAt":"2026-05-18T13:22:34.452Z","updatedAt":"2026-05-18T19:14:51.460Z","lastSeenAt":"2026-05-18T19:14:51.460Z","tsv":"'/.pilot/audit':76,193 '/.pilot/audit/config.json':78 '/.pilot/audit/events.jsonl':119,137,143,165,170,177 '/.pilot/audit/report-':149 '/bin/bash':184 '0':172,179 '1':21,103,207,251 '2':32,106,210 '3':41,213 '4':216 '90':87 'action':212,236,237 'activ':12,47 'agent':123,129,130,209,234,235,250,255,262,269,276 'agent1.pilot':282 'approv':173 'audit':3,6,36,49,52,71,99,124,127,132,145,185,191,196,200,202,245,247,252,263,266,273,280 'automat':188 'bash':73,97,134,147,183 'binari':290 'c':168,175 'captur':60,190 'cat':77,148,217 'command':69,243 'complianc':16,35,65 'compliance-readi':64 'comprehens':5,51 'connect':31 'connection.open':92 'd':153,160 'daemon':292 'date':108,150,156,157,222 'day':86 'decis':29 'depend':283 'detail':24,105,118 'dir':192,201 'dir/events.jsonl':197 'dt':112,226 'echo':107,171,178 'els':272 'enabl':80 'eof':79,93,155,180,220,240 'event':59,88,96,101,116,140,162,189,205,230,232 'exampl':182 'fail':278 'fi':279 'file':83,195,219 'format':68 'generat':144 'grep':135,167,174 'h':113,227 'handshak':122,166,248,256,261,270,277,281 'home/.pilot/audit/events.jsonl':84 'initi':70 'investig':45 'jq':138,294 'json':121,154,260,296 'l':164 'local':100,104,204,208,211,214,249 'log':4,25,50,53,72,82,94,98,126,133,186,194,203,218,246,253,267,274 'm':111,114,152,159,225,228 'mkdir':74,198 'need':23 'output':67 'p':75,199 'pars':297 'pilot':2,10,48,55,286 'pilot-audit-log':1 'pilot-protocol':285 'pilotctl':120,259,289 'polici':62 'protocol':11,56,287 'queri':131 'readi':66 'report':146 'requir':34,284 'result':215,238,239 'retent':61,85 'review':40 'run':291 'secur':14,39 'select':139 'skill':19,288 'skill-pilot-audit-log' 'source-teoslayer' 'start':257 'structur':58 'success':271 'suspici':46 'sz':115,229 'test':125 'timestamp':221 'topic-agent-skills' 'topic-ai-agents' 'topic-clawhub' 'topic-networking' 'topic-openclaw' 'topic-overlay-network' 'topic-p2p' 'topic-pilot-protocol' 'total':161 'track':264 'trail':7,37 'true':81 'trust':28,95,242,254,268,275 'trust.approve':91,136,142,176 'trust.handshake':90,128,169 'type':89,102,117,141,206,231,233 'u':109,223 'use':17 'want':43 'wc':163 'workflow':181 'wrap':241 'y':110,151,158,224","prices":[{"id":"7a4ec208-d3f0-4e51-8f0f-a4b6956d7e5a","listingId":"5a96e4ca-1a5a-4996-8031-abb03e8a7cf4","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"TeoSlayer","category":"pilot-skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:22:34.452Z"}],"sources":[{"listingId":"5a96e4ca-1a5a-4996-8031-abb03e8a7cf4","source":"github","sourceId":"TeoSlayer/pilot-skills/pilot-audit-log","sourceUrl":"https://github.com/TeoSlayer/pilot-skills/tree/main/skills/pilot-audit-log","isPrimary":false,"firstSeenAt":"2026-05-18T13:22:34.452Z","lastSeenAt":"2026-05-18T19:14:51.460Z"}],"details":{"listingId":"5a96e4ca-1a5a-4996-8031-abb03e8a7cf4","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"TeoSlayer","slug":"pilot-audit-log","github":{"repo":"TeoSlayer/pilot-skills","stars":6,"topics":["agent-skills","ai-agents","clawhub","networking","openclaw","overlay-network","p2p","pilot-protocol"],"license":"agpl-3.0","html_url":"https://github.com/TeoSlayer/pilot-skills","pushed_at":"2026-05-13T06:08:49Z","description":"80+ agent skills for Pilot Protocol — communication, file transfer, trust, task routing, swarm coordination, and more","skill_md_sha":"c355e1a21a47bdc5f3afa54f90148c57219a9a64","skill_md_path":"skills/pilot-audit-log/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/TeoSlayer/pilot-skills/tree/main/skills/pilot-audit-log"},"layout":"multi","source":"github","category":"pilot-skills","frontmatter":{"name":"pilot-audit-log","license":"AGPL-3.0","description":"Comprehensive audit trail of all Pilot Protocol activity for security and compliance.  Use this skill when: 1. You need detailed logs of all trust decisions and connections 2. You require compliance audit trails for security reviews 3. You want to investigate suspicious activity or incidents  Do NOT use this skill when: - You need real-time alerting (use pilot-watchdog instead) - You only need basic daemon logs (use pilotctl info) - You're doing performance profiling (use dedicated profiling tools)","compatibility":"Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start)."},"skills_sh_url":"https://skills.sh/TeoSlayer/pilot-skills/pilot-audit-log"},"updatedAt":"2026-05-18T19:14:51.460Z"}}