> Sourced from [TianyiDataScience/humanize](https://github.com/TianyiDataScience/humanize) — [MIT](https://github.com/TianyiDataScience/humanize/blob/6dbbe508528b36dbd327b994ae6dcf3657f09fd5/CLAUDE.md).
# Claude Code 使用说明
这个仓库可以直接在 Claude Code 中使用。
当用户要求使用 `humanize` 优化中文文案时,执行:
```bash
python3 humanize.py --text "{完整用户请求}" --output-root ./runs
```
如果是第一次使用,可以先运行:
```bash
python3 scripts/bootstrap_runtime.py
```
注意:
- 保留用户完整输入,尤其是 `原文`、`原稿`、`正文` 后面的长文本。
- 不要传 `--mode rewrite`。
- 不要手写 challenger。
- 不要自己总结替代官方输出。
- 如果输出中有 `=== HUMANIZE_FINAL_RESPONSE_BEGIN ===` 和 `=== HUMANIZE_FINAL_RESPONSE_END ===`,最终只返回 marker 中间的 markdown。
如果当前环境没有可检测的宿主 active model,可以配置本地 OpenAI-compatible endpoint:
```bash
export HUMANIZE_GENERATION_BACKEND=local
export HUMANIZE_LLM_BASE_URL=http://127.0.0.1:54841/v1
export HUMANIZE_LLM_MODEL=<your-local-model-id>
```
如果你用的是 Ollama 上的 thinking 模型,建议再加:
```bash
export HUMANIZE_LLM_REASONING_EFFORT=none
```
如果在 Apple 芯片机器上想避免 scorer 首次走 MPS 带来的等待,也可以固定:
```bash
export HUMANIZE_SCORER_DEVICE=cpu
```
没有生成模型时,系统会降级到 `heuristic-only`,常见模板化文案仍可跑完整流程。
Add to your project
Paste into your project's CLAUDE.md or ~/.claude/CLAUDE.md for global rules.
More for Python
Mindx CLAUDE.md
by @DotNetAge
一个可自主进化的数字化分身
Teamster CLAUDE.md
by @TEAMSchools
A modern data stack for K-12 education
Tree Sitter Analyzer CLAUDE.md
by @aimasteracc
A scalable, multi-language code analysis framework based on Tree-sitter, usable both as a CLI tool and an MCP server.
Claude Codex Settings CLAUDE.md
by @fcakyon
My personal Claude Code and OpenAI Codex setup with battle-tested skills, plugins, hooks and agents that I use daily.
Minimal Second Brain CLAUDE.md
by @gokhanarkan
A minimal, AI-native Obsidian vault template. 3 folders, manifest files for Claude/Copilot, automated maintenance.
Graphgrc CLAUDE.md
by @engseclabs
Build security program documentation using Git and Markdown
MCP servers for Python
microsoft/markitdown
🎖️ 🐍 🏠 - MCP tool access to MarkItDown -- a library that converts many file formats (local or remote) to Markdown for LLM consumption.
mindsdb/mindsdb
Connect and unify data across various platforms and databases with .
FastMCP
🐍 - A high-level framework for building MCP servers in Python
Browse by Tag
Get the Claude Code Starter Pack
Top CLAUDE.md rules for Next.js, TypeScript, Python, Go, and React — free.
