Ships in cc-sync. Installing the plugin adds it to Claude Code.
查看当前自定义同步列表中的所有项目。优先使用 cc-sync MCP 服务器,如果不可用则直接读取配置文件。
listCustomItems 工具(不需要参数)~/.cc-sync-config.json/cc-sync:initsyncMode 是否为 custom,如果不是则提示用户切换到 custom 模式customItems 数组/cc-sync:listCustomItems
如果 MCP 服务器不可用,执行:
CONFIG_FILE="$HOME/.cc-sync-config.json"
# 检查配置是否存在
if [ ! -f "$CONFIG_FILE" ]; then
echo "错误: 未初始化同步。请先运行 /cc-sync:init"
exit 1
fi
# 检查模式
MODE=$(grep -o '"syncMode":"[^"]*"' "$CONFIG_FILE" | cut -d'"' -f4)
if [ "$MODE" != "custom" ]; then
echo "当前不是自定义模式。请先运行: /cc-sync:setMode mode=custom"
exit 1
fi
# 读取自定义项
if command -v jq &> /dev/null; then
jq '.customItems' "$CONFIG_FILE"
else
grep -o '"customItems":\[[^]]*\]' "$CONFIG_FILE"
fi
Use the listCustomItems tool from the cc-sync MCP Server to view all items in the custom sync list. Falls back to reading the config file directly if MCP server is unavailable.
Call the listCustomItems tool from the cc-sync MCP Server (no parameters needed)
Display the custom sync items list
~/.cc-sync-config.json/cc-sync:init firstsyncMode is custom, if not prompt user to switch to custom modecustomItems array/cc-sync:listCustomItems
If MCP server is unavailable, execute:
CONFIG_FILE="$HOME/.cc-sync-config.json"
# Check if config exists
if [ ! -f "$CONFIG_FILE" ]; then
echo "Error: Sync not initialized. Please run /cc-sync:init first"
exit 1
fi
# Check mode
MODE=$(grep -o '"syncMode":"[^"]*"' "$CONFIG_FILE" | cut -d'"' -f4)
if [ "$MODE" != "custom" ]; then
echo "Not in custom mode. Please run: /cc-sync:setMode mode=custom"
exit 1
fi
# Read custom items
if command -v jq &> /dev/null; then
jq '.customItems' "$CONFIG_FILE"
else
grep -o '"customItems":\[[^]]*\]' "$CONFIG_FILE"
fi
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub taoidle/cc-sync --plugin cc-sync9 commands in this plugin
/addCustomItem添加自定义同步项 (Add Custom Item)添加文件或目录到自定义同步列表 - Add file or directory to custom sync list/getMode查看同步模式 (Get Sync Mode)查看当前同步模式和同步项目列表 - View current sync mode and items to sync/init初始化配置同步 (Initialize Sync)初始化配置同步仓库 - Initialize sync repository for Claude Code configurations/pull拉取配置 (Pull Configs)从同步仓库拉取 Claude Code 配置 - Pull Claude Code configurations from sync repository/push推送配置 (Push Configs)推送 Claude Code 配置到同步仓库 - Push Claude Code configurations to sync repository/removeCustomItem移除自定义同步项 (Remove Custom Item)从自定义同步列表移除文件或目录 - Remove file or directory from custom sync listOther plugins' commands for the same job