wish-ssh-code-review

Audit Wish SSH server code for middleware and session security.

75|9|Updated Dec 21, 2025
One-click install
npx skills add https://github.com/anderskev/beagle --skill wish-ssh-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wish-ssh-code-review
Source: https://github.com/anderskev/beagle/tree/main/skills/wish-ssh-code-review
Command: npx skills add https://github.com/anderskev/beagle --skill wish-ssh-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It audits Wish SSH server code and middleware for security, session handling, and proper lifecycle management.

Core Features & Use Cases

  • Middleware Ordering: Validate logging, auth, and timeout order.
  • Session Context: Ensure per-connection state handling.
  • Graceful Shutdown: Confirm shutdowns handle active sessions cleanly.

Quick Start

Review the Wish SSH server implementation to ensure middleware, session handling, and PTY support align with security best practices.

Frequently Asked Questions about wish-ssh-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Wish SSH server code for security vulnerabilities?

Security code review for Wish SSH servers focuses on host key management, middleware ordering, session handling, and PTY configuration. This Skill analyzes those components to verify they follow security best practices and functional requirements for authentication, authorization, and graceful shutdown.

What should I check when configuring Wish SSH middleware?

Middleware order matters for security: logging, authentication, and timeout enforcement must be sequenced correctly. This Skill validates that your middleware configuration ensures proper per-connection session context, applies timeouts consistently, and doesn't bypass security checks.

How do I ensure Wish SSH handles sessions and PTY management securely?

Secure session handling requires per-connection state isolation, idle and max timeouts, proper PTY allocation, and clean shutdown of active connections. This Skill verifies these mechanisms work together to prevent session leaks and enforce connection limits.

What's required for secure host key management in a Wish SSH implementation?

Host keys must be loaded and persisted securely without exposure. This Skill checks that your implementation handles key lifecycle correctly, integrates properly with BubbleTea and charmbracelet/wish, and meets authentication and authorization defaults.

Can I use this review process with BubbleTea-based SSH interfaces?

Yes. This Skill is designed specifically for Wish SSH servers built with charmbracelet/wish and BubbleTea integration. It validates middleware, session context, and graceful shutdown patterns that apply to terminal UI SSH implementations.

What happens during graceful shutdown in Wish SSH, and how do I verify it's correct?

Graceful shutdown must cleanly close active sessions without data loss or orphaned connections. This Skill confirms your shutdown logic properly drains in-flight requests, respects timeouts, and releases resources before terminating.