opsy

作者 datolabs-io已验证

Opsy - Your AI-Powered SRE Colleague

206
Stars
13
Forks
Go
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/datolabs-io/opsy

快速入门

使用 opsy 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Opsy - Your AI-Powered SRE Colleague

GitHub Actions Workflow Status GitHub Release

Opsy is an intelligent command-line assistant designed for Site Reliability Engineers (SREs), DevOps professionals, and platform engineers. It uses AI to help you navigate operational challenges, troubleshoot issues, and automate routine workflows. Opsy integrates with your existing tools and provides contextual assistance to make your daily operations more efficient.

Opsy uses a "tools-as-agents" architecture where each tool functions as a specialized AI agent with expertise in its domain (Kubernetes, Git, AWS, etc.). The main Opsy agent orchestrates these specialized agents, breaking down complex tasks and delegating them to the appropriate tools. This approach provides domain-specific expertise, improved safety through tool-specific validation, better context management for multi-step operations, and modular extensibility for adding new capabilities.

[!WARNING] Opsy is currently in early development. While the core functionality works well, some features are still being refined. We recommend using it in non-production environments for now. We welcome your feedback to help improve Opsy.

Demo

Opsy Demo

The demo above shows Opsy handling this complex task:

Analyze the pods in the current namespace. If there are any pods that are failing, I need you to analyze the reason it is failing. Then, create a single Jira task named Kubernetes issues in OPSY project reporting the issue. The task description must contain your analysis for on the failing pods. In addition, I want to have backups for our deployments: extract the deployment manifests and push them into a new private backup repo in datolabs-io-sandbox.

Click on the screenshot to watch the full demonstration.

Prerequisites

Anthropic API Key

Opsy uses Anthropic's Claude AI models to provide intelligent assistance. You'll need an Anthropic API key:

  1. Create an account at Anthropic's website

  2. Generate an API key from your account dashboard

  3. Set the API key in your Opsy configuration (see Configuration section) or as an environment variable:

    export ANTHROPIC_API_KEY=your_api_key_here
    

Command-Line Tools

Opsy works with standard command-line tools. While none are strictly required to run Opsy, having them installed expands its capabilities:

Opsy adapts to your environment and only uses tools that are installed on your system.

Installation

Via Go Install

For users with Go 1.24 or later:

go install github.com/datolabs-io/opsy/cmd/opsy@latest

Ensure your Go bin directory is in your PATH.

Via Homebrew

For macOS and Linux users with Homebrew:

brew tap datolabs-io/opsy https://github.com/datolabs-io/opsy
brew install datolabs-io/opsy/opsy

Direct Download

Each release includes binaries for various platforms:

  1. Download the appropriate binary for your operating system
  2. Make it executable (Unix-based systems): chmod +x opsy
  3. Move it to a directory in your PATH: mv opsy /usr/local/bin/ (or another directory in your PATH)

Usage

Opsy is simple to use. Just describe what you want to do in plain language, and Opsy will handle the rest.

opsy 'Your task description here'

For example:

# Repository management
opsy 'Create a new private repository in datolabs-io organization named backup'

# Kubernetes troubleshooting
opsy 'Check why pods in the production namespace are crashing'

# Log analysis
opsy 'Find errors in the application logs from the last hour'

Opsy interprets your instructions, builds a plan, and executes the necessary actions to complete your task—no additional input required.

Configuration

Opsy is configured via a YAML file located at ~/.opsy/config.yaml:

# UI configuration
ui:
  # Theme for the UI (default: "default")
  theme: default

# Logging configuration
logging:
  # Path to the log file (default: "~/.opsy/log.log")
  path: ~/.opsy/log.log
  # Logging level: debug, info, warn, error (default: "info")
  level: info

# Anthropic API configuration
anthropic:
  # Your Anthropic API key (required)
  api_key: your_api_key_here
  # Model to use (default: "claude-3-7-sonnet-latest")
  model: claude-3-7-sonnet-latest
  # Temperature for generation (default: 0.5)
  temperature: 0.5
  # Maximum tokens to generate (default: 1024)
  max_tokens: 1024

# Tools configuration
tools:
  # Maximum duration in seconds for a tool to execute (default: 120)
  timeout: 120
  # Exec tool configuration
  exec:
    # Timeout for exec tool (0 means use global timeout) (default: 0)
    timeout: 0
    # Shell to use for execution (default: "/bin/bash")
    shell: /bin/bash

You can also set configuration using environment variables with the prefix OPSY_ followed by the configuration path in uppercase with underscores:

# Set the logging level
export OPSY_LOGGING_LEVEL=debug

# Set the tools timeout
export OPSY_TOOLS_TIMEOUT=180

The Anthropic API key can also be set via ANTHROPIC_API_KEY (without the OPSY_ prefix).

Extending & Contributing

We welcome contributions to Opsy! The project is designed to be easily extended.

To contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please update tests as appropriate and follow the existing coding style.

Here's how you can extend Opsy's capabilities:

System Prompts

System prompts in ./assets/prompts define how Opsy understands and responds to user tasks:

Agent System Prompt

The primary prompt (assets/prompts/agent_system.tmpl) guides Opsy's overall behavior, establishing its identity as an AI assistant for SREs and DevOps professionals and defining the format for execution plans.

Tool System Prompt

This prompt (assets/prompts/tool_system.tmpl) defines how Opsy interacts with external tools, ensuring interactions are safe, effective, and follow best practices.

Tool User Prompt

This prompt (assets/prompts/tool_user.tmpl) defines the format for requesting tool execution, maintaining consistency in how tools are invoked.

To contribute a new prompt or modify an existing one, add it to the repository and submit a pull request.

Tools

Tool definitions in assets/tools/ allow Opsy to interact with various systems and services:

---
display_name: Tool Name
executable: command-name
description: Description of what the tool does
inputs:
  parameter1:
    type: string
    description: Description of the first parameter
    default: "default-value"  # Optional default value
    examples:
      - "example1"
      - "example2"
    optional: false  # Whether this parameter is required
rules:
  - 'Rule 1 for using this tool'
  - 'Rule 2 for using this tool'

Themes

Theme definitions in assets/themes/ control Opsy's visual appearance:

base:
  base00: "#1A1B26"  # Primary background
  base01: "#24283B"  # Secondary background
  base02: "#292E42"  # Borders and dividers
  base03: "#565F89"  # Muted text
  base04: "#A9B1D6"  # Primary text

accent:
  accent0: "#FF9E64"  # Command text
  accent1: "#9ECE6A"  # Agent messages
  accent2: "#7AA2F7"  # Tool output

Acknowledgments

  • Charm for their TUI libraries
  • Anthropic for their Go SDK for Claude AI models
  • Viper for configuration management
  • Various Go libraries for schema validation, data structures, and YAML parsing
  • The Go community for excellent tooling and support

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

常见问题

What is opsy?

opsy is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by datolabs-io. Opsy - Your AI-Powered SRE Colleague. It has 206 GitHub stars.

Is opsy safe to use?

Yes. opsy passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install opsy?

Clone the repository with "git clone https://github.com/datolabs-io/opsy" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is opsy written in?

opsy is primarily written in Go. It is open-source under datolabs-io on GitHub, so you can review or fork the full source.

Are there alternatives to opsy?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh opsy against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情