obra/superpowers-lab

Experimental skills for Claude Code Superpowers - new techniques and tools

License:MITLanguage:Shell1318

Deep Analysis

为Claude Code提供三个实验性superpowers技能:语义代码重复检测、MCP CLI工具和tmux交互命令支持

Recommended

Core Features

finding-duplicate-functions

LLM驱动的语义代码重复检测,识别相同意图但不同实现的函数

mcp-cli

按需使用MCP服务器,无需预加载MCP集成

using-tmux-for-interactive-commands

通过tmux会话控制vim、git rebase -i等交互式CLI工具

Technical Implementation

Architecture:插件架构,包含三个独立的实验性技能模块
Execution Flow:
函数提取与聚类

使用Haiku进行经典函数提取,Opus分析语义重复

MCP服务器发现

通过mcp CLI查询可用工具和资源

tmux交互控制

创建分离tmux会话,编程式发送键盘输入

Key Components:
LLM语义分析识别意图相同的代码重复
tmux会话管理自动化交互式命令行工具
MCP协议动态发现和调用外部服务器
Highlights
  • 语义重复检测超越传统语法检测
  • 支持交互式CLI工具自动化
  • MCP服务器动态发现和一次性调用
  • 活跃开发维护中
Use Cases
  • 代码库审计识别重复功能
  • vim等交互式编辑器自动化
  • Git交互式操作自动化
  • REPL环境自动化
Limitations
  • tmux是必需的系统依赖
  • 所有技能处于实验性状态
Tech Stack
ShelltmuxClaude HaikuClaude OpusMCP

Superpowers Lab

Experimental skills for Claude Code Superpowers - new techniques and tools under active development.

What is this?

This plugin contains experimental skills that extend Claude Code's capabilities with new techniques that are still being refined and tested. These skills are functional but may evolve based on real-world usage and feedback.

Current Skills

finding-duplicate-functions

Detect semantic code duplication in LLM-generated codebases. Unlike traditional copy-paste detectors that find syntactic duplicates, this skill identifies functions with the same intent but different implementations.

Use cases:

  • Audit codebases that have grown organically with multiple contributors
  • Identify utility functions that have been reimplemented multiple times
  • Find consolidation opportunities before major refactoring
  • Complement jscpd after syntactic duplicates are handled

How it works: Two-phase approach using classical function extraction followed by LLM-powered intent clustering. Haiku categorizes functions by domain, then Opus analyzes each category to find semantic duplicates.

See skills/finding-duplicate-functions/SKILL.md for full documentation.

mcp-cli

Use MCP servers on-demand via the mcp CLI tool. Discover and invoke tools, resources, and prompts without polluting context with pre-loaded MCP integrations.

Use cases:

  • Query MCP servers without permanent configuration
  • Explore available tools before deciding to integrate
  • One-off MCP tool invocations

See skills/mcp-cli/SKILL.md for full documentation.

using-tmux-for-interactive-commands

Enables Claude Code to control interactive CLI tools (vim, git rebase -i, menuconfig, REPLs, etc.) through tmux sessions.

Use cases:

  • Interactive text editors (vim, nano)
  • Terminal UI tools (menuconfig, htop)
  • Interactive REPLs (Python, Node, etc.)
  • Interactive git operations (rebase -i, add -p)
  • Any tool requiring keyboard navigation and real-time interaction

How it works: Creates detached tmux sessions, sends keystrokes programmatically, and captures terminal output to enable automation of traditionally manual workflows.

See skills/using-tmux-for-interactive-commands/SKILL.md for full documentation.

Installation

# Install the plugin
claude-code plugin install https://github.com/obra/superpowers-lab

# Or add to your claude.json
{
  "plugins": [
    "https://github.com/obra/superpowers-lab"
  ]
}

Requirements

  • tmux must be installed on your system
  • Skills are tested on Linux/macOS (tmux required)

Experimental Status

Skills in this plugin are:

  • ✅ Functional and tested
  • 🧪 Under active refinement
  • 📝 May evolve based on usage
  • 🔬 Open to feedback and improvements

Contributing

Found a bug or have an improvement? Please open an issue or PR!

Related Projects

License

MIT License - see LICENSE for details