protocol-analyzer

Serial protocol analysis and debugging for common embedded interfaces (I2C, SPI, UART)

509 stars

Best use case

protocol-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Serial protocol analysis and debugging for common embedded interfaces (I2C, SPI, UART)

Teams using protocol-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/protocol-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/a5c-ai/babysitter/main/library/specializations/embedded-systems/skills/protocol-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/protocol-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How protocol-analyzer Compares

Feature / Agentprotocol-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Serial protocol analysis and debugging for common embedded interfaces (I2C, SPI, UART)

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Protocol Analyzer Skill

## Overview

This skill provides serial protocol analysis and debugging capabilities for common embedded communication interfaces including I2C, SPI, and UART.

## Capabilities

### I2C Analysis
- Bus address detection and scanning
- Transaction decoding and timing
- NACK handling and error detection
- Multi-master arbitration analysis
- Clock stretching detection
- 7-bit and 10-bit addressing
- Fast mode and fast mode plus support

### SPI Analysis
- Transaction decoding
- Mode configuration (CPOL/CPHA)
- Clock frequency analysis
- Chip select timing verification
- Full-duplex data capture
- Multi-slave configurations

### UART Analysis
- Frame analysis and decoding
- Baud rate auto-detection
- Parity and stop bit verification
- Flow control analysis (RTS/CTS)
- Break condition detection
- Error frame identification

### Timing Analysis
- Setup and hold time verification
- Clock frequency measurement
- Inter-frame timing analysis
- Protocol timing compliance
- Glitch and noise detection

### Integration
- Saleae Logic analyzer integration
- Sigrok/PulseView support
- Protocol decoder libraries
- Export to standard formats

## Target Processes

- `device-driver-development.js` - Driver debugging and validation
- `hardware-bring-up.js` - Initial communication verification
- `signal-integrity-testing.js` - Protocol signal analysis
- `bsp-development.js` - BSP communication testing

## Dependencies

- Logic analyzer software (Saleae Logic, Sigrok)
- Protocol decoder libraries
- Logic analyzer hardware

## Usage Context

This skill is invoked when tasks require:
- Serial protocol debugging
- Communication timing verification
- Bus error diagnosis
- Protocol compliance testing
- Multi-device communication analysis

## Protocol Configurations

### I2C Standard Settings
```yaml
i2c:
  mode: standard | fast | fast_plus | high_speed
  addressing: 7bit | 10bit
  clock_stretching: enabled | disabled
```

### SPI Mode Settings
```yaml
spi:
  mode: 0 | 1 | 2 | 3  # CPOL/CPHA combinations
  bit_order: msb_first | lsb_first
  word_size: 8 | 16 | 32
```

### UART Settings
```yaml
uart:
  baud_rate: 9600 | 115200 | etc.
  data_bits: 7 | 8 | 9
  parity: none | even | odd
  stop_bits: 1 | 2
```

Related Skills

terraform-analyzer

509
from a5c-ai/babysitter

Specialized skill for analyzing Terraform configurations. Supports parsing, security scanning (tfsec, checkov), cost estimation (infracost), drift detection, and plan visualization across AWS, Azure, and GCP.

db-query-analyzer

509
from a5c-ai/babysitter

Analyze database query performance with execution plans and index recommendations

code-complexity-analyzer

509
from a5c-ai/babysitter

Analyze code complexity metrics including cyclomatic complexity, code smells, and technical debt

cloudformation-analyzer

509
from a5c-ai/babysitter

Validate and analyze AWS CloudFormation templates for security and best practices

Network Protocol Analysis Skill

509
from a5c-ai/babysitter

Network protocol capture, analysis, and fuzzing capabilities

semantic-code-analyzer

509
from a5c-ai/babysitter

LLM-powered semantic analysis of code diffs to detect business-logic trojans

sast-analyzer

509
from a5c-ai/babysitter

Static Application Security Testing orchestration and analysis. Execute Semgrep, Bandit, ESLint security plugins, CodeQL, and other SAST tools. Parse, prioritize, and deduplicate findings across multiple tools with remediation guidance.

crypto-analyzer

509
from a5c-ai/babysitter

Cryptographic implementation analysis and validation for encryption algorithms, key sizes, and certificate management

semver-analyzer

509
from a5c-ai/babysitter

Analyze code changes and determine semantic version bumps. Detect breaking changes automatically, suggest version bump (major/minor/patch), generate changelog entries, and validate version consistency.

api-diff-analyzer

509
from a5c-ai/babysitter

Compare API specifications to detect breaking changes. Compare OpenAPI spec versions, categorize changes by severity, generate migration guides, and block breaking changes in CI.

Language Server Protocol

509
from a5c-ai/babysitter

Expert skill for implementing Language Server Protocol servers with full IDE feature support

Debug Adapter Protocol

509
from a5c-ai/babysitter

Expert skill for implementing Debug Adapter Protocol for debugger integration