> 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
Python FastAPI Expert
by @Claude Rules
Building high-performance REST APIs with FastAPI, Pydantic, and async Python.
Django Web Framework
by @Claude Rules
Full-stack Django development with DRF, proper models, and security best practices.
Mindx CLAUDE.md
by @DotNetAge
一个可自主进化的数字化分身
Minimal Second Brain CLAUDE.md
by @gokhanarkan
A minimal, AI-native Obsidian vault template. 3 folders, manifest files for Claude/Copilot, automated maintenance.
Awesome Claude Notes CLAUDE.md
by @loulanyue
🏄 帮助你快速搭建 Claude Code 与 AI Agent 生产力工作流的实战仓库 🏄 A practical toolkit to help you quickly build high-productivity workflows for Claude Code and AI agents
N8n Install CLAUDE.md
by @kossakovsky
🚀 Self-hosted AI automation platform. Deploy n8n, Ollama, Flowise, RAG, Supabase & 30+ tools with one command. Auto HTTPS. Free Zapier/Make alternative.
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.
