Skip to main content

Claude Code 配置管理工具 - 快速初始化项目的 .claude 配置目录

Project description

ClaudeSettings 配置扩展包

PyPI version Python 3.8+

Claude Code 配置管理工具 - 快速初始化项目的 .claude 配置目录

安装

方式一:通过 pip 安装(推荐)

pip install zco-claude

方式二:本地安装

git clone <repository-url>
cd zco-claude-skills
pip install -e .

方式三:使用 Makefile

make install   # 复制安装
make link      # 软链接安装(开发推荐)
make uninstall # 卸载

使用方法

初始化项目

# 初始化当前目录
zco-claude init

# 初始化指定目录
zco-claude init /path/to/project

# 使用自定义模板
zco-claude init /path/to/project --tpl /custom/template

管理已链接项目

# 列出所有已链接的项目
zco-claude list-linked-repos

# 修复所有项目的软链接
zco-claude fix-linked-repos

# 删除不存在的项目记录
zco-claude fix-linked-repos --remove-not-found

# 修复指定项目
zco-claude fix /path/to/project

生成全局配置

# 仅生成全局配置
zco-claude

支持的命令

命令 说明
init [path] [--tpl] 初始化项目配置
list-linked-repos 列出已链接项目
fix-linked-repos [--remove-not-found] 修复所有项目软链接
fix [path] [--tpl] 修复指定项目软链接

zco-plan 工作流程

1. 安装工具

pip install zco-claude

2. 初始化项目

cd /path/to/your/project
zco-claude init

3. 启动 Claude Code

claude .

4. 执行计划

/zco-plan 001

5. 创建新计划

/zco-plan-new 实现用户认证功能

项目结构

.
├── src/
│   └── zco_claude/
│       ├── __init__.py
│       ├── __main__.py
│       ├── cli.py              # 主命令行工具
│       └── ClaudeSettings/     # 配置模板
│           ├── commands/
│           ├── hooks/
│           ├── rules/
│           ├── skills/
│           └── zco-scripts/
├── docs/
│   └── plans/                  # 计划文档
├── pyproject.toml              # 包配置
├── setup.py                    # 安装脚本
└── Makefile                    # 快捷命令

开发

构建包

python setup.py sdist bdist_wheel

本地测试安装

pip install -e .

上传到 PyPI

# 安装工具
pip install twine

# 上传
python -m twine upload dist/*

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zco_claude-0.0.8.tar.gz (74.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zco_claude-0.0.8-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file zco_claude-0.0.8.tar.gz.

File metadata

  • Download URL: zco_claude-0.0.8.tar.gz
  • Upload date:
  • Size: 74.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for zco_claude-0.0.8.tar.gz
Algorithm Hash digest
SHA256 aabc9bddf9adf034665e3eee7a11606b605a6c9bcc0e8b8e52a9ddf2c2527538
MD5 ad5728f8841e0fea64f6d6961bef6060
BLAKE2b-256 edb223fcef3570b024340b7b01bf50bc45d522217f8e156079794e521ad7d7ff

See more details on using hashes here.

File details

Details for the file zco_claude-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: zco_claude-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.16

File hashes

Hashes for zco_claude-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1ea4b0d68c72ed3048c0f5cf0d03006c83313df7a9ac8eeb968e2a2b9096ebe2
MD5 af1c1fbe6179e5528ff9e5cafe4b33ec
BLAKE2b-256 1b166329868669b49a12d5a1ce05f1023526ce59aea7f76242dd72a5789a67e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page