Генерация DOCX для регистрации авторского права на ПО
documentation
ruanzhu is a Claude Code skill that generates a DOCX file containing project source code formatted for Chinese software copyright registration (软著) when the /ruanzhu command is invoked. It executes a single chained bash command: copies generate_docx.py from ~/.claude/templates/ruanzhu/, runs it, then deletes it — leaving no .py files in the project. The underlying script auto-detects the project language from marker files (pom.xml for Java, package.json for TypeScript/JavaScript, Cargo.toml for Rust, go.mod for Go, and others), reads the software name and version from CLAUDE.md, package.json, or pom.xml in priority order, and scans prioritized source directories while excluding tests and build artifacts. The output — e.g. "TradeSystemV1.0-源代码.docx" — is saved to docs/ruanzhu/ as an A4 document with a header, page numbering, and up to 60 pages of code (auto mode outputs the first 30 + last 30 pages when the total exceeds the limit).
- #software-copyright
- #code-documentation
- #automation
- #docx-generation