SuperAPI AI Directory

chinese-copyright-application

Office & productivity

View repository

Updated 10-15 23:45

About this skill

Chinese Software Copyright Application Material Generation

Use when the user needs to generate Chinese software copyright registration application materials. Generates four documents: application form, source code document (front/back 30 pages each), user manual, and design specification.

Workflow

Step 1: Collect copyright owner information

Ask the user for the name of the copyright owner, and ensure that the copyright owner's name is included at the beginning of every generated document.

Step 2: Analyze the project and extract information

Automatically detect the project type and extract information from configuration files. You can use scripts/generate_copyright_docs.py to automate this step:

python3 scripts/generate_copyright_docs.py <项目路径> [输出目录]

Detection logic:

  • exists app.json → WeChat Mini Program (get the name from window.navigationBarTitleText )
  • exists package.json → Web/Node.js project
  • Other → Find pom.xml、build.gradle、Cargo.toml and other configuration files

Step 3: Generate the application form

Use the application-form-template.md template and fill in all fields.

Key formatting requirements:

  • The full software name must be distinctive, in the format "xxx software"
  • Keep two digits for the version number (such as "V1.0", "V1.1")
  • For all fields, see Application requirements

Verification: Check that all {placeholder} in the template have been replaced, with no empty fields.

Step 4: Generate the source code document

Strict requirements: first 30 pages + last 30 pages, 50 lines per page, 3000 lines in total. If the code is less than 3000 lines, provide all of it.

Extraction and pagination algorithm:

  1. Collect all code files in the project (exclude node_modules、.git、dist、build)
  2. Sort by priority: entry files (app.js/main.js/index.js)→ utils/ → pages/ → components/ → config/
  3. Count the total number of code lines:find <project> -name "*.js" -o -name "*.ts" -o -name "*.py" | xargs wc -l
  4. First 30 pages: starting from the highest-priority file, extract the first 1500 lines (30 pages × 50 lines)
  5. Last 30 pages: extract the last 1500 lines in reverse from the final files
  6. Add a file header comment to each file, and insert a page number marker every 50 lines --- 第 N 页 ---

Verification: Confirm that the total number of pages is 60 (or the actual number of pages if the code is insufficient), with exactly 50 lines per page.

Step 5: Generate the user manual

Use the user-manual-template.md template to extract feature descriptions and operation flows from the project README and code structure.

Verification: The manual must be no fewer than 10 pages and include feature introduction, operation steps, and notes.

Step 6: Generate the design specification

Use the design-doc-template.md template to generate technical documentation by analyzing the project structure, code logic, and data flow.

Verification: The specification must be no fewer than 10 pages and include requirements analysis, overall design, detailed design, and data structures.

Step 7: Convert to PDF and output

Convert all Markdown documents to PDF:

# 使用 pandoc 转换(推荐,需安装 pandoc + CJK 字体支持)
pandoc 软件著作权登记申请表.md -o 软件著作权登记申请表.pdf --pdf-engine=xelatex -V mainfont="SimSun"

# 或使用 mdpdf / md-to-pdf
npx md-to-pdf 软件著作权登记申请表.md

Write all output files to the copyright-application-materials/ directory:

File Format
Software Copyright Registration Application Form .md + .pdf
Source Code Document .md + .pdf
User Manual .md + .pdf
Design Specification .md + .pdf

Final verification checklist

  • The software name and version number are consistent in all documents
  • Source code document page count is correct (60 pages or the total number of code pages)
  • User manual ≥ 10 pages
  • Design specification ≥ 10 pages
  • Application form has no empty fields
  • PDF file has been generated and can be opened normally
  • No sensitive information in the source code (keys, passwords, etc.)

Project type mapping

Project type Software category Platform Technical features
WeChat Mini Program Mobile application software - Mini Program WeChat Mini Program platform WeChat Mini Program native framework
Web application Application software - Web application Browser Front-end framework + back-end technology
Mobile App Mobile application software - App iOS/Android Native/cross-platform framework

Reference documents