Repolode
CatCatUncle

CatCatUncle/ruanzhu-kit

CLI and Claude skill that turns a source tree into a page-exact Chinese software-copyright (软著) registration PDF, with manual and form checklist.

Stars
112
Forks
33
Open issues
0
Last commit
14 days ago

What is it?

ruanzhu-kit generates the materials required for a Chinese software copyright (软著) registration from a project's source tree. It produces a source-code PDF for the program identification section, following the rule of the first 30 and last 30 pages when the code exceeds 60 pages, with a generated summary page noting the omitted lines. It also renders a manual PDF from a Markdown skeleton and writes a copy-paste checklist for the online form.

Pagination is computed before rendering: each line's height in units is calculated after wrapping, lines are accumulated to a fixed count per page, and the page breaks are pinned before Chrome headless renders the PDF. The tool then reads the PDF back to verify the page count and headers. The tool runs on Node 18+ with a local Chrome or Chromium and has no npm dependencies.

The tool does not call any AI model. It counts lines, flags suspicious files such as build output, checks field word counts, and warns about boilerplate phrasing. The author notes that the manual and form descriptions should be written by the applicant. The project also ships as a Claude Code skill with a SKILL.md file.

Key features

  • 01Generates a source-code PDF with the first and last 30 pages and an auto-written omission page.
  • 02Computes pagination before rendering so the page count is fixed, then verifies the output PDF.
  • 03Renders the manual PDF from a fixed 11-chapter Markdown skeleton.
  • 04Counts lines and lists the largest included files so stray build artifacts are easy to spot.
  • 05Produces a form checklist with word-count checks, and can optionally export editable .doc files.
  • 06Runs on Node 18+ with zero npm dependencies and ships as a Claude skill.

Use cases

  • Preparing a Chinese software copyright registration package for a self-developed project.
  • Checking source line counts before submission to avoid inflated totals.
  • Letting an AI agent run the mechanical steps of copyright paperwork while the applicant writes the text.

Quick start

  1. 1

    Run init in your project to generate the config and manual skeleton

    npx github:CatCatUncle/ruanzhu-kit init
  2. 2

    Fill in the config and write the manual and form descriptions yourself

  3. 3

    Generate the source PDF, manual PDF, form checklist and Word copies

    ruanzhu all --doc

Things to know

  • Requires Node 18+ and Chrome, Chromium or Edge version 131 or newer.
  • Only targets Chinese software-copyright (软著) registration; it does not write the manual or form text for you.
  • Output page counts depend on the Chrome rendering path and the source-line statistics, so review the files before submitting.

In collections

Topics

FAQ

What is ruanzhu-kit?
CLI and Claude skill that turns a source tree into a page-exact Chinese software-copyright (软著) registration PDF, with manual and form checklist. ruanzhu-kit generates the materials required for a Chinese software copyright (软著) registration from a project's source tree. It produces a source-code PDF for the program identification section, following the rule of the first 30 and last 30 pages when the code exceeds 60 pages, with a generated summary page noting the omitted lines. It also renders a manual PDF from a Markdown skeleton and writes a copy-paste checklist for the online form.
Is ruanzhu-kit free to use? What license does it have?
ruanzhu-kit is open source under the MIT license. Check the license terms before using it in commercial products.
Is ruanzhu-kit still maintained?
Actively maintained. The last commit to ruanzhu-kit was on Oct 24, 2026.
What can I use ruanzhu-kit for?
Preparing a Chinese software copyright registration package for a self-developed project. Checking source line counts before submission to avoid inflated totals. Letting an AI agent run the mechanical steps of copyright paperwork while the applicant writes the text.
How do I install ruanzhu-kit?
Run init in your project to generate the config and manual skeleton: npx github:CatCatUncle/ruanzhu-kit init Fill in the config and write the manual and form descriptions yourself Generate the source PDF, manual PDF, form checklist and Word copies: ruanzhu all --doc
Where can I get ruanzhu-kit?
The source code and installation instructions are on GitHub: https://github.com/CatCatUncle/ruanzhu-kit

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects