Skill: leegodamn/codeflicker (version 1.1.1)

--- name: codeflicker description: CodeFlicker CLI 编程助手 - 快手员工专用的 AI 代码开发工具，支持更多模型和免费用量 --- # CodeFlicker CLI Skill AI programming assistant CLI by Kuaishou. Similar to Claude Code or Codex CLI. **专为快手员工设计** - 使用 CodeFlicker 进行代码开发，可享受： - 更多模型选择（GLM、Claude 系列等） - 快手提供的免费 token 用量 ## Auto-Use (for OpenClaw) When OpenClaw needs to perform development tasks (writing code, refactoring, debugging, etc.): 1. **Check if flickcli is available:** ```bash which flickcli ``` 2. **If available, use flickcli with --cwd:** ```bash flickcli -q --cwd ~/work "开发任务描述" ``` 3. **Use workspace as default if no specific path:** ```bash flickcli -q --cwd ~/work "任务描述" ``` ## Install ### Step 1: Set npm registry (for Kuaishou internal network) ```bash export npm_config_registry="https://npm.corp.kuaishou.com" ``` ### Step 2: Install CLI ```bash npm install -g @ks-codeflicker/cli ``` ### Step 3: Login with SSO ```bash flickcli /login ``` ### Step 4: Create workspace directory (recommended) ```bash mkdir -p ~/work ``` Check installation: ```bash flickcli --version ``` ## Config ### Workspace Setup (Recommended) Create a workspace directory for codeflicker to use as project base: ```bash mkdir -p ~/work cd ~/work ``` ### View config: ```bash flickcli config list -g ``` ### Set config (global): ```bash flickcli config set -g model glm-5 flickcli config set -g smallModel claude-haiku-4.5 flickcli config set -g planModel claude-4.5-sonnet flickcli config set -g visionModel claude-4.5-sonnet flickcli config set -g approvalMode yolo ``` Available models (wanqing provider): - `glm-5` - default - `glm-4.7`, `claude-haiku-4.5` - lightweight - `claude-4.5-sonnet` - planning/vision Approval modes: - `default` - require confirmation - `autoEdit` - auto edit - `yolo` - auto execute (use with caution) ## Usage ### For OpenClaw (auto-detect and use) ```bash # Check if available if which flickcli >/dev/null 2>&1; then # Use flickcli with cwd flickcli -q --cwd ~/work "开发任务" fi ``` ### Basic Commands Interactive mode: ```bash flickcli "create a new react project" ``` Quiet mode (non-interactive): ```bash flickcli -q "implement fibonacci" ``` Continue last session: ```bash flickcli -q -c "add unit tests" ``` Specify model: ```bash flickcli -m glm-5 "task" ``` Specify working directory: ```bash flickcli --cwd /path/to/project "task" ``` ### ⭐ Workspace (Git Worktree) Isolated development using git worktrees: ```bash # Create new workspace with random name flickcli workspace create # Create with custom name flickcli workspace create --name feature-login # Create from specific branch flickcli workspace create -b develop # List all workspaces flickcli workspace list # Complete and merge (run from repo root) flickcli workspace complete # Delete without merging flickcli workspace delete <name> flickcli workspace delete <name> --force # even with uncommitted changes ``` ### Run (Natural Language to Shell) Interactive shell command generator: ```bash flickcli run # Then type: "list all files modified today" # Press Enter to generate command # Press Enter again to execute, Ctrl+C to cancel ``` ### Skills Management ```bash # Add skill from GitHub flickcli skill add user/repo # Add globally flickcli skill add -g user/repo # List skills flickcli skill list # Remove skill flickcli skill remove <name> ``` ### MCP Servers ```bash # Add MCP server flickcli mcp add my-server npx @example/mcp-server # List MCP servers flickcli mcp list # Remove MCP server flickcli mcp remove my-server ``` ### View Session Logs ```bash flickcli log flickcli log /path/to/logfile ``` ### Tools Control Enable/disable specific tools: ```bash # Disable write tool (read-only mode) flickcli --tools '{"write":false}' "analyze this code" # Disable bash and write (safe mode) flickcli --tools '{"bash":false,"write":false}' "explain the logic" ``` ## Common Workflows ### Bug Fix ```bash flickcli -q --cwd ~/work "fix the null pointer exception in userService.js" ``` ### New Feature ```bash flickcli -q --cwd ~/work "implement REST API for user management" ``` ### Code Review ```bash flickcli -q --cwd ~/work "review this codebase and identify issues" ``` ### Refactoring ```bash flickcli -q --cwd ~/work "refactor database layer to use SQLAlchemy" ``` ### Using Workspace for Isolated Development ```bash # 1. Create isolated workspace flickcli workspace create --name feature-payment # 2. Work in the workspace directory cd .codeflicker-workspaces/feature-payment # 3. Do your work with flickcli flickcli -q "implement payment API" # 4. Return to root and complete cd <repository-root> flickcli workspace complete ``` ## Quick Reference | Command | Description | |---------|-------------| | `flickcli "task"` | Interactive mode | | `flickcli -q "task"` | Quiet mode | | `flickcli -q -c "task"` | Continue session | | `flickcli -q -r <id> "task"` | Resume session | | `flickcli -q --cwd /path "task"` | Run in specific directory | | `flickcli config set -g approvalMode yolo` | Auto-execute mode | | `flickcli workspace create` | Create git worktree | | `flickcli workspace complete` | Merge workspace | | `flickcli run` | Natural language to shell | | `flickcli skill add user/repo` | Add skill | ## Notes - Install requires Kuaishou internal npm registry - **Must login with SSO before first use:** `flickcli /login` - **Recommended: Create ~/work directory** for project base - Use `--cwd` to specify working directory for development tasks - yolo mode auto-executes all operations - Workspace feature uses git worktrees for isolated development

path: README.md
content: # CodeFlicker CLI Skill

AI programming assistant skill for OpenClaw. Integrates with CodeFlicker CLI by Kuaishou.

**快手员工专用** - 使用 CodeFlicker 进行代码开发，可享受更多模型选择和免费 token 用量。

## Features

- Install and configure CodeFlicker CLI
- Execute coding tasks with flickcli
- Configure models (glm-5, claude-haiku-4.5, etc.)
- Set approval mode (default, autoEdit, yolo)
- Continue sessions
- Auto-use from OpenClaw with --cwd support
- **Workspace** - Git worktree based isolated development
- **Run** - Natural language to shell command
- **MCP** - MCP server management
- **Skills** - Skill management system

## Installation

```bash
# Install via ClawHub
clawhub install codeflicker
```

Or clone from GitHub:
```bash
git clone https://github.com/LeeGoDamn/codeflicker-skill.git
```

## Usage

### Auto-Use from OpenClaw

When OpenClaw needs to perform development tasks:

```bash
# Check if flickcli is available
if which flickcli >/dev/null 2>&1; then
    # Use flickcli with --cwd
    flickcli -q --cwd ~/work "开发任务描述"
fi
```

### Check Installation

```bash
codeflicker/scripts/check.sh
```

### Run Task

```bash
codeflicker/scripts/run.sh "write a hello world program"
```

### Configure

```bash
# Set default model
codeflicker/scripts/config.sh model glm-5

# Set auto-execute mode
codeflicker/scripts/config.sh approvalMode yolo

# View all config
codeflicker/scripts/config.sh list
```

### Continue Conversation

```bash
codeflicker/scripts/continue.sh "add unit tests"
```

### ⭐ Workspace (Git Worktree)

```bash
# Create isolated development workspace
flickcli workspace create --name feature-x

# List workspaces
flickcli workspace list

# Complete and merge
flickcli workspace complete

# Delete without merge
flickcli workspace delete <name>
```

## Requirements

- Node.js >= 22
- npm or pnpm
- Kuaishou internal network access

## Installation Steps

### 1. Set npm registry (Kuaishou internal network)

```bash
export npm_config_registry="https://npm.corp.kuaishou.com"
```

### 2. Install CLI

```bash
npm install -g @ks-codeflicker/cli
```

### 3. Create workspace directory (recommended)

```bash
mkdir -p ~/work
```

### 4. Login with SSO

```bash
flickcli /login
```

## License

MIT


path: _meta.json
content: {
  "name": "codeflicker",
  "version": "1.1.0",
  "description": "CodeFlicker CLI 编程助手 - 快手员工专用的 AI 代码开发工具，支持更多模型和免费用量",
  "author": "QingQing",
  "homepage": "https://github.com/LeeGoDamn/codeflicker-skill",
  "tags": ["快手", "kwai", "kuaishou", "codeflicker", "flickcli", "cli", "ai", "coding", "programming", "开发"]
}

path: scripts/check.sh
content: #!/bin/bash
# 检查 flickcli 是否已安装

if command -v flickcli &> /dev/null; then
    echo "✅ CodeFlicker CLI 已安装"
    flickcli --version
    echo ""
    echo "位置: $(which flickcli)"
else
    echo "❌ CodeFlicker CLI 未安装"
    echo ""
    echo "安装方法:"
    echo "  npm install -g @ks-codeflicker/cli"
    echo "  或"
    echo "  pnpm add -g @ks-codeflicker/cli"
fi

path: scripts/config.sh
content: #!/bin/bash
# 配置 CodeFlicker
# 用法: config.sh [model|smallModel|planModel|visionModel|approvalMode] [值]

KEY="$1"
VALUE="$2"

if [ -z "$KEY" ]; then
    echo "用法: config.sh <配置项> [值]"
    echo ""
    echo "配置项:"
    echo "  model           主模型 (如 glm-5)"
    echo "  smallModel      轻量模型 (如 claude-haiku-4.5)"
    echo "  planModel       规划模型 (如 claude-4.5-sonnet)"
    echo "  visionModel     视觉模型 (如 claude-4.5-sonnet)"
    echo "  approvalMode    审批模式 (default|autoEdit|yolo)"
    echo ""
    echo "示例:"
    echo "  config.sh model glm-5"
    echo "  config.sh approvalMode yolo"
    echo "  config.sh list"
    exit 0
fi

if [ "$KEY" = "list" ]; then
    flickcli config list -g
    exit 0
fi

if [ -z "$VALUE" ]; then
    flickcli config get "$KEY"
else
    flickcli config set -g "$KEY" "$VALUE"
    echo "✅ 已设置 $KEY = $VALUE"
fi

path: scripts/continue.sh
content: #!/bin/bash
# 继续与 CodeFlicker 对话
# 用法: continue.sh "继续的任务"

TASK="$1"

if [ -z "$TASK" ]; then
    echo "用法: continue.sh \"继续任务描述\""
    exit 1
fi

if ! command -v flickcli &> /dev/null; then
    echo "❌ flickcli 未安装"
    exit 1
fi

echo "🤖 继续对话: $TASK"
echo ""

flickcli -q -c "$TASK"

path: scripts/run.sh
content: #!/bin/bash
# 使用 CodeFlicker 执行任务
# 用法: run.sh "任务描述"

TASK="$1"

if [ -z "$TASK" ]; then
    echo "用法: run.sh \"任务描述\""
    exit 1
fi

# 检查是否安装
if ! command -v flickcli &> /dev/null; then
    echo "❌ flickcli 未安装，请先安装"
    exit 1
fi

echo "🤖 正在执行: $TASK"
echo ""

flickcli -q "$TASK"

path: scripts/workspace.sh
content: #!/bin/bash
# CodeFlicker Workspace 管理
# 用法: workspace.sh [create|list|complete|delete] [选项]

COMMAND="$1"
NAME="$2"

if [ -z "$COMMAND" ]; then
    echo "用法: workspace.sh <命令> [选项]"
    echo ""
    echo "命令:"
    echo "  create [options]     创建 workspace"
    echo "    --name <name>     自定义名称"
    echo "    --branch, -b      基于分支 (默认: main)"
    echo "  list                 列出所有 workspace"
    echo "  complete             完成并合并 (从根目录运行)"
    echo "  delete <name>       删除 workspace"
    echo ""
    echo "示例:"
    echo "  workspace.sh create"
    echo "  workspace.sh create --name feature-login"
    echo "  workspace.sh create -b develop"
    echo "  workspace.sh list"
    echo "  workspace.sh delete tokyo"
    exit 0
fi

if ! command -v flickcli &> /dev/null; then
    echo "❌ flickcli 未安装"
    exit 1
fi

case "$COMMAND" in
    create)
        if [ -n "$NAME" ] && [ "$NAME" != "--name" ]; then
            flickcli workspace create --name "$NAME"
        else
            flickcli workspace create "$@"
        fi
        ;;
    list|ls)
        flickcli workspace list
        ;;
    complete)
        flickcli workspace complete
        ;;
    delete|rm)
        if [ -z "$NAME" ]; then
            echo "用法: workspace.sh delete <名称>"
            exit 1
        fi
        flickcli workspace delete "$NAME"
        ;;
    *)
        echo "未知命令: $COMMAND"
        exit 1
        ;;
esac

Security scan verdicts — ClawScan: suspicious | static analysis: clean | VirusTotal: suspicious | SkillSpector: suspicious (CRITICAL)