Install and configure Superpowers workflow for Kimi Code CLI.
Superpowers is a workflow system for AI coding assistants that enforces best practices like:
- Test-Driven Development (TDD)
- Systematic debugging
- Structured planning
- Subagent-driven development
This repository provides installation instructions (as an AI skill) to set up Superpowers for Kimi Code CLI, which doesn't have native Superpowers support.
feat/hook-inject-prompt branch of Kimi Code CLI, which adds the inject_prompt hook feature. This feature allows automatic injection of Superpowers reminders before every conversation.
# Clone the kimi-cli repository with the hook-inject-prompt feature
git clone -b feat/hook-inject-prompt https://github.com/Dqz00116/kimi-cli.git
cd kimi-cli
# Install using uv (recommended)
uv sync
uv pip install -e .
# Or run directly without installing
uv run kimi --helpWindows (PowerShell):
# Clone the repository
git clone -b feat/hook-inject-prompt https://github.com/Dqz00116/kimi-cli.git C:\Tools\kimi-cli
cd C:\Tools\kimi-cli
# Install
uv sync
uv pip install -e .If you're using Kimi (or any AI assistant with the Skill tool), simply invoke this skill and let the AI handle the installation:
Read and follow the instructions from:
https://raw.githubusercontent.com/Dqz00116/kimi-with-superpowers/main/SKILL.md
- Ensure you have the
feat/hook-inject-promptbranch of Kimi CLI installed - Read
SKILL.mdin this repository - Follow the step-by-step instructions for your platform
- Configure your shell aliases (optional)
The installation process:
- Install Kimi CLI from
feat/hook-inject-promptbranch (see Requirements above) - Clone the superpowers repository to
~/.kimi/superpowers/ - Link skills from superpowers to
~/.kimi/skills/ - Patch the
using-superpowersskill for Kimi compatibility - Configure
UserPromptSubmithook to auto-inject Superpowers reminders (NEW!) - Create a custom agent with mandatory superpowers rules (optional)
- Setup shell aliases (optional)
Since Kimi doesn't have a native Skill tool like Claude Code, this setup:
- Places Superpowers skills in Kimi's skill discovery path (
~/.kimi/skills/) - Modifies the
using-superpowersskill to explain that Kimi should useReadFileto "invoke" skills - Uses the new
inject_prompthook feature to automatically inject Superpowers reminders before every conversation - Provides a custom agent configuration that enforces these rules
The key innovation is the UserPromptSubmit hook with inject_prompt, which:
- Automatically injects the Superpowers invocation instruction as a system reminder
- Works with EVERY conversation without requiring the
--agentflag - Eliminates the need to patch Kimi's built-in system.md
.
├── SKILL.md # Main installation skill (read this!)
├── README.md # This file
├── agents/ # Pre-configured custom agent files
│ └── superpowers/
│ ├── agent.yaml
│ ├── system.md # System prompt with mandatory superpowers
│ ├── coder.yaml
│ ├── explore.yaml
│ └── plan.yaml
├── prompts/ # Prompt templates for hook injection
│ └── superpowers-reminder.md
└── scripts/ # Optional helper scripts (if any)
To update Superpowers to the latest version:
cd ~/.kimi/superpowers
git pullSkills are linked (not copied), so they update automatically.
To update Kimi CLI to the latest feat/hook-inject-prompt branch:
cd <path-to-kimi-cli>
git pull origin feat/hook-inject-prompt
uv syncSee the "Uninstallation" section in SKILL.md for detailed steps.
- Kimi CLI: Requires
feat/hook-inject-promptbranch - Windows: PowerShell with junction support
- macOS: Any modern version
- Linux: Any modern distribution
- Superpowers by Jesse Vincent
- Kimi Code CLI by Moonshot AI
feat/hook-inject-promptbranch by Dqz00116
MIT (same as Superpowers)