claude
claude - Claude Code Enhancement Module
The claude module extends the capabilities of Anthropic's claude-code, allowing users to connect to various AI model providers, manage sessions, and monitor token usage through a unified CLI.
When to Activate
- When the user wants to start a Claude Code session with a specific provider (e.g., DeepSeek, Kimi, Moonshot, SiliconFlow, Doubao, MiniMax, Zhipu, etc.).
- When the user needs to configure Claude Code to use a third-party model globally or per project.
- When the user wants to track token consumption and costs for the last 7 days.
- When the user needs to manage Model Context Protocol (MCP) servers.
- When the user wants to clean up or customize Claude Code's status line or author attribution.
Core Principles & Rules
- Provider Connection: Use subcommands like
ds(DeepSeek),kimi,moonshot,sili(SiliconFlow),doubao,mm(MiniMax),zhipu(GLM),or(OpenRouter),ali(Qwen),baidu(Ernie),tencent(Hunyuan), ormt(Mthreads) to launch Claude Code with those specific backends. - Global vs. Project Config: Use
usefor global settings anduse --projectfor project-specific model overrides. - Session Management: Use
sess(Interactive FZF App) orresumeto manage and recover previous conversations. - Security: Be cautious when using the
--dangerously-skip-permissionsflag; it should only be recommended in trusted sandbox environments.
Additional Scenarios
- Local LLM: Connect Claude Code to a local Ollama service using
x claude use other. - Token Analysis: Run
x claude usageto get a detailed breakdown of costs and token count. - Clean Git History: Remove the automatic Co-Author signature from Git commits using
x claude attribution rm.
Patterns & Examples
Launch with Third-party Providers
# Start Claude Code using the DeepSeek model
x claude ds
# Start Claude Code using SiliconFlow
x claude sili
# Start Claude Code using Kimi
x claude kimi
Configure Project Model
# Set the current project to use Zhipu (GLM) model provider
x claude use --project glm
# Set the current project to use SiliconFlow
x claude use --project sili
Track Usage
# Analyze token usage and costs for the past 7 days
x claude usage
Interactive Session Management
# Browse and manage local sessions via FZF
x claude sess
Checklist
- Confirm if the user wants to use a specific model provider (DeepSeek, MiniMax, etc.).
- Verify if the configuration should be global or project-specific.
- Ensure the relevant API Key is configured for the chosen provider.
More from x-cmd/skill
x-cmd
|
25x-security
This skill provides comprehensive security assessment and vulnerability management tools through x-cmd CLI, including network reconnaissance with Shodan, vulnerability scanning with OSV, and known exploited vulnerability tracking with KEV. This skill should be used when users need to perform security assessments, vulnerability research, network reconnaissance, or security monitoring from command line interfaces.
13x-network
This skill provides comprehensive network administration and diagnostic tools through x-cmd CLI, including network scanning with Nmap, ARP table management, DNS configuration, routing table analysis, and enhanced ping utilities. This skill should be used when users need to perform network diagnostics, troubleshoot connectivity issues, analyze network topology, or monitor network performance from command line interfaces.
11x-knowledge
This skill provides access to various knowledge search tools through x-cmd CLI, including Hacker News, Wikipedia, DuckDuckGo search, RFC documents, Project Gutenberg books, and Stack Exchange. This skill should be used when users need to search for technical information, browse online knowledge bases, or access documentation from command line interfaces.
6x-git
This skill provides comprehensive Git and code hosting platform management tools through x-cmd CLI, including GitHub, GitLab, Codeberg, Forgejo integration, and Git hooks management. This skill should be used when users need to manage Git repositories, work with code hosting platforms, automate Git workflows, or configure Git hooks from command line interfaces.
6x-system
This skill provides comprehensive system administration and monitoring tools through x-cmd CLI, including process management, macOS system utilities, network configuration, disk health monitoring, and storage analysis. This skill should be used when users need to perform system administration tasks, monitor system performance, manage network configurations, or troubleshoot system issues from command line interfaces.
6