Token导航 LogoToken导航

Agent Skill · 研究检索

infra-manage-ssh-services(基础设施管理 ssh 服务)

infra-manage-ssh-services 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

infra-manage-ssh-services 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 68,884。

总安装 222周安装 9GitHub Stars 1下载 70核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:infra-manage-ssh-services(基础设施管理 ssh 服务)
来源仓库:https://github.com/dawiddutoit/custom-claude
仓库路径:skills/infra-manage-ssh-services
安装命令:
npx skills add https://github.com/dawiddutoit/custom-claude --skill infra-manage-ssh-services
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill infra-manage-ssh-services

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,适合在 SSH 服务管理与运维任务中定位配置与故障点。可基于关键词匹配日志、命令示例或安全策略文档,辅助排查与修复。通过 npx skills add 命令从指定仓库安装,需确认权限与网络访问能力。建议核对维护状态,避免在运行中服务上直接执行未经验证的操作。

infra-manage-ssh-services 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/infra-manage-ssh-services

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/dawiddutoit/custom-claude --skill infra-manage…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

infra-manage-ssh-services 怎么安装?

在终端执行 npx skills add https://github.com/dawiddutoit/custom-claude --skill infra-manage-ssh-servi…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

infra-manage-ssh-services 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

infra-manage-ssh-services 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

infra-manage-ssh-services 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

infra-manage-ssh-services 用的人多吗?

公开数据是累计安装 222 次,近一周安装 9 次,下载 70 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

infra-manage-ssh-services 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
infra-manage-ssh-services

基础设施管理 ssh 服务 · 本页

2221接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Works with SSH commands, Docker remote management, and infrastructure health checks.

Infrastructure SSH Service Management

Quick Start

Discover available infrastructure:

# List all hosts and their status
ping -c 1 -W 1 infra.local && echo "✅ infra.local (primary)" || echo "❌ infra.local"
ping -c 1 -W 1 192.168.68.135 && echo "✅ deus (development)" || echo "❌ deus"
ping -c 1 -W 1 homeassistant.local && echo "✅ homeassistant.local" || echo "❌ homeassistant.local"

Check primary infrastructure services:

# View all running Docker services on infra.local
ssh infra "docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"

# Quick MongoDB health check (MongoDB 4.4 uses 'mongo' not 'mongosh')
ssh infra "docker exec local-infra-mongodb-1 mongo off --quiet --eval 'db.runCommand({ping: 1})'" 2>/dev/null

Before using remote MongoDB (NomNom project):

# Verify MongoDB is accessible
nc -z infra.local 27017 && echo "✅ MongoDB port open" || echo "❌ MongoDB unreachable"

Connection Reference

To connect to infra.local, you have three equivalent options:

# Option 1: Use the connect function (recommended)
connect infra

# Option 2: Use the SSH alias from ~/.ssh/config
ssh infra

# Option 3: Use the full hostname
ssh dawiddutoit@infra.local

All three commands do the same thing:

  • Connect to infra.local
  • Authenticate as user dawiddutoit
  • Use SSH key ~/.ssh/id_ed25519

First-time setup (if SSH key not yet copied):

connect infra --setup
# This copies your SSH public key to infra.local for passwordless authentication

For other hosts:

connect deus        # or: ssh deus        # or: ssh dawiddutoit@192.168.68.135
connect ha          # or: ssh ha          # or: ssh root@homeassistant.local
connect motor       # or: ssh motor       # or: ssh dawiddutoit@pi4-motor.local
connect armitage    # or: ssh unit@armitage.local

Running commands on infra.local (without interactive shell):

# Execute single command
ssh infra "docker ps"

# Execute multiple commands
ssh infra "cd ~/projects/local-infra && docker compose ps"

# Chain commands
ssh infra "docker ps -f name=mongodb && docker logs --tail 10 local-infra-mongodb-1"

Table of Contents

  1. When to Use This Skill
  2. What This Skill Does
  3. Instructions

- 3.1 Discovery Phase - Find Available Hosts and Services - 3.2 Health Check Phase - Verify Connectivity - 3.3 Execution Phase - Manage Services

  1. Supporting Files
  2. Common Workflows
  3. Expected Outcomes
  4. Integration Points
  5. Expected Benefits
  6. Requirements
  7. Red Flags to Avoid

When to Use This Skill

Explicit Triggers (User Requests)

  • "Check infrastructure status"
  • "Connect to infra/deus/ha"
  • "View Docker services on infra"
  • "Test MongoDB connectivity"
  • "What services are running on infra.local?"
  • "Troubleshoot remote MongoDB connection"
  • "Check Langfuse status"
  • "View OTLP collector logs"

Implicit Triggers (Contextual Needs)

  • Before using remote MongoDB in NomNom project
  • When remote service connection fails (MongoDB, Neo4j, Langfuse)
  • Before starting development session that uses remote resources
  • When planning to use OpenTelemetry/Langfuse observability
  • When investigating service availability for integration work

Debugging/Troubleshooting Triggers

  • Connection refused errors to infra.local services
  • MongoDB ServerSelectionTimeoutError
  • SSH authentication failures
  • Docker container not responding
  • Service appears running but not accessible
  • Neo4j or Infinity in restart loop

What This Skill Does

This skill provides systematic workflows for:

  1. Service Discovery - Identify available hosts (5 total) and running services (16+ on infra.local)
  2. Connectivity Testing - Verify network reachability, port availability, SSH access
  3. Docker Management - View, restart, and monitor remote Docker containers
  4. Health Verification - Check service health status and logs
  5. Troubleshooting - Diagnose connection issues and service failures
  6. Infrastructure Integration - Ensure remote resources (MongoDB, Langfuse, OTLP) are ready for use

Instructions

3.1 Discovery Phase

Step 1: Identify Target Host

Use the connect function to determine which host you need:

# View available hosts
connect
# Output: Hosts: infra, armitage, deus, ha, motor

Infrastructure Inventory:

HostConnectionStatusPrimary Services
infra.localconnect infra✅ OnlineMongoDB, Langfuse, OTLP, Jaeger, Neo4j, Infinity, PostgreSQL, Redis, MinIO, Mosquitto, Caddy
deusconnect deus✅ OnlineNone detected (development machine)
homeassistant.localconnect ha✅ OnlineHome Assistant (port 8123)
pi4-motor.localconnect motor❌ OfflineMotor control (Raspberry Pi 4)
armitage.localconnect armitage❌ OfflineNeo4j, Infinity Embeddings (WSL2 PC)

Step 2: Test Host Reachability

# Quick network ping test
ping -c 1 -W 1 infra.local

# Test specific port availability
nc -z infra.local 27017  # MongoDB
nc -z infra.local 3000   # Langfuse
nc -z infra.local 4317   # OTLP Collector
nc -z infra.local 7687   # Neo4j (if not in restart loop)

Step 3: Discover Running Services

# View all Docker containers on infra.local
ssh infra "docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}'"

# Count running services
ssh infra "docker ps --format '{{.Names}}' | wc -l"

# Check specific service
ssh infra "docker ps -f name=mongodb"

3.2 Health Check Phase

Step 1: Verify SSH Connectivity

# Test basic SSH connection
ssh infra "echo 'Connection OK'"

# If SSH fails, check SSH agent
ssh-add -l

# Copy SSH key if needed (first-time setup)
connect infra --setup

Step 2: Check Service Health

# MongoDB health check
ssh infra "docker inspect --format='{{.State.Health.Status}}' local-infra-mongodb-1"
ssh infra "docker exec local-infra-mongodb-1 mongo off --quiet --eval 'db.runCommand({ping: 1})'"

# Langfuse health check (HTTP)
curl -s -o /dev/null -w "%{http_code}" http://infra.local:3000

# OTLP Collector health check
ssh infra "docker inspect --format='{{.State.Status}}' local-infra-otel-collector-1"

# View container logs for errors
ssh infra "docker logs --tail 50 local-infra-mongodb-1"

Step 3: Verify Application-Level Connectivity

For MongoDB (NomNom project):

# Test from application environment
cd ~/projects/play/nomnom
python -c "from motor.motor_asyncio import AsyncIOMotorClient; import asyncio; asyncio.run(AsyncIOMotorClient('mongodb://infra.local:27017').admin.command('ping'))" && echo "✅ MongoDB reachable"

For Langfuse:

# Check web UI accessibility
curl -I http://infra.local:3000 | grep "HTTP"

3.3 Execution Phase

Service Management Commands:

# Restart single service
ssh infra "cd ~/projects/local-infra && docker compose restart mongodb"

# Restart all services
ssh infra "cd ~/projects/local-infra && docker compose restart"

# Stop service
ssh infra "cd ~/projects/local-infra && docker compose stop mongodb"

# Start service
ssh infra "cd ~/projects/local-infra && docker compose up -d mongodb"

# View Docker Compose configuration
ssh infra "cd ~/projects/local-infra && docker compose config"

Monitoring Commands:

# Follow logs in real-time
ssh infra "docker logs -f local-infra-mongodb-1"

# View last 100 lines
ssh infra "docker logs --tail 100 local-infra-langfuse-web-1"

# View logs for all services
ssh infra "cd ~/projects/local-infra && docker compose logs -f"

# Check resource usage
ssh infra "docker stats --no-stream"

File Synchronization:

# Push file to infra.local
syncpi push ~/path/to/file

# Pull file from infra.local
syncpi pull ~/path/to/file

# Sync zsh configuration
syncpi zsh push
syncpi zsh pull

Supporting Files

references/infrastructure_guide.md

Complete infrastructure documentation - Read this for:

  • Detailed service inventory with ports and URLs
  • Environment variable mappings
  • Docker Compose management on infra.local
  • Troubleshooting guides for specific services
  • Security notes and credential locations

When to read: Before performing any infrastructure operations, when troubleshooting connection issues, or when needing detailed service information.

Location: /Users/dawiddutoit/.claude/artifacts/2026-01-01/infrastructure/SSH_INFRASTRUCTURE_GUIDE.md

scripts/health_check.sh

Quick health check script - Automated connectivity and service status checks.

Usage:

See references/detailed-workflows.md for:

  • 7 comprehensive workflows (NomNom setup, connection debugging, service discovery, restart loop diagnosis, SSH setup, OTLP verification, file syncing)
  • Expected outcomes (successful/failed health checks, restart loop diagnosis)
  • Integration examples (NomNom, observability, Home Assistant, quality gates)
  • Troubleshooting guide (connection refused, permission denied, restart loops, slow SSH)
  • Advanced techniques (complex commands, real-time monitoring, batch health checks)

Environment variables:

MONGODB_URL=mongodb://infra.local:27017
MONGODB_DATABASE=off

With Observability Skills

Before using observability skills:

# Verify OTLP Collector is running
ssh infra "docker ps -f name=otel-collector -q" | grep -q . || echo "⚠️ OTLP Collector offline"

# Then use skills:
# - observability-analyze-logs
# - observability-analyze-session-logs

With Home Assistant Skills

Before using HA skills:

# Verify Home Assistant is accessible
curl -s -H "Authorization: Bearer $HA_LONG_LIVED_TOKEN" http://192.168.68.123:8123/api/ | grep -q "message" && echo "✅ HA API accessible"

# Then use skills:
# - ha-dashboard-create
# - ha-custom-cards
# - ha-mushroom-cards

With Quality Gates

Infrastructure verification as quality gate:

# Add to pre-start checks
if ! nc -z infra.local 27017; then
  echo "❌ QUALITY GATE FAILED: MongoDB unreachable"
  echo "Run: ssh infra 'cd ~/projects/local-infra && docker compose restart mongodb'"
  exit 1
fi

Expected Benefits

MetricBefore SkillAfter SkillImprovement
Discovery Time5-10 min (manual SSH, guessing)30 sec (automated checks)10-20x faster
Troubleshooting Time10-30 min (trial and error)2-5 min (systematic workflow)5-6x faster
Connection Failures30-40% (no verification)<5% (proactive health checks)6-8x reduction
Service Availability AwarenessUnknown until failureReal-time statusProactive visibility
Documentation AccessSearch files, guess locationsSingle skill referenceImmediate context

Success Metrics

  1. Discovery Success Rate - Can identify all online hosts and services in <30 seconds
  2. Health Check Coverage - Verify critical services (MongoDB, Langfuse, OTLP) before use
  3. Troubleshooting Efficiency - Resolve 80% of connection issues within 5 minutes
  4. Proactive Usage - Check infrastructure before remote operations (NomNom, observability)
  5. Zero Surprise Failures - No "connection refused" errors due to unchecked infrastructure

Requirements

Tools

  • Bash (for SSH commands and connectivity tests)
  • Read (for comprehensive infrastructure guide)

Environment

  • SSH access to remote hosts (via ~/.ssh/config)
  • SSH keys configured (use connect <host> --setup if needed)
  • Network connectivity to infra.local (primary), deus, homeassistant.local
  • connect function in ~/.zshrc (lines 290-306)
  • Optional: syncpi function for file synchronization

Knowledge

  • Basic SSH command syntax
  • Understanding of Docker and Docker Compose
  • Familiarity with port-based service discovery (nc, curl)
  • Environment variables for service endpoints

Utility Scripts

scripts/health_check.sh

Purpose: Run comprehensive health checks across all infrastructure hosts

Usage:

# Check all hosts
bash /Users/dawiddutoit/.claude/skills/infra-manage-ssh-services/scripts/health_check.sh

# Check specific host
bash /Users/dawiddutoit/.claude/skills/infra-manage-ssh-services/scripts/health_check.sh infra

# Verbose output
bash /Users/dawiddutoit/.claude/skills/infra-manage-ssh-services/scripts/health_check.sh --verbose

Checks performed:

  1. Network reachability (ping)
  2. SSH connectivity
  3. Docker daemon status
  4. Container health for critical services
  5. Port availability for key services
  6. Service-specific health endpoints

Red Flags to Avoid

  1. Assuming local MongoDB - MongoDB runs on infra.local, NOT localhost
  2. Skipping connectivity checks - Always verify before using remote services
  3. Ignoring offline hosts - armitage.local and pi4-motor.local are offline (environment variables may point to them)
  4. Missing SSH key setup - Run connect <host> --setup on first use
  5. Not checking container health - Container "Up" ≠ healthy (use docker inspect for health)
  6. Hardcoding IPs - Use hostnames (infra.local, homeassistant.local) for mDNS resolution
  7. Ignoring restart loops - Neo4j and Infinity are restarting on infra.local (check logs)
  8. Skipping logs when debugging - Always view logs before restarting services
  9. Not testing ports - Use nc -z to verify port availability before connection attempts
  10. Missing Docker Compose context - Always cd ~/projects/local-infra before Docker Compose commands

Notes

Key Infrastructure Facts:

  • Primary Host: infra.local (16+ services, always online)
  • MongoDB: 632K OpenFoodFacts products already imported
  • Telemetry: All Claude Code sessions automatically send OTLP to infra.local:4317
  • Offline Services: Neo4j and Infinity Embeddings in restart loop on infra.local
  • Alternative Endpoints: armitage.local has Neo4j/Infinity but is currently offline
  • Home Assistant: Separate host with 16 related skills in ~/.claude/skills/

Environment Variable Locations:

  • SSH config: ~/.ssh/config
  • Secrets: ~/.zshrc (lines 366-540)
  • Project.env: ~/projects/play/nomnom/.env (MongoDB URL)

Related Documentation:

  • Complete infrastructure guide: /Users/dawiddutoit/.claude/artifacts/2026-01-01/infrastructure/SSH_INFRASTRUCTURE_GUIDE.md
  • NomNom MongoDB setup: /Users/dawiddutoit/projects/play/nomnom/CLAUDE.md (lines 224-235)
  • Observability skills: ~/.claude/CLAUDE.md (search "observability-*")
  • Home Assistant skills: ~/.claude/CLAUDE.md (search "ha-*")

平台分布

Codex

38.65%
按下载量换算27

Claude

31.1%
按下载量换算22

Cursor

16.82%
按下载量换算12

Gemini CLI

8.83%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills