Introduction¶
In tender bidding or proposal projects, a common practice is to place multiple Word and PDF files into a folder and rely on manual reading or simple full-text comparison to find duplicates. The former is time-consuming and prone to missing segments, while the latter is often insensitive to layouts, headings, and short sentence fragments, and it is also difficult to generate archivable comparison reports.
Below is an introduction to the SkillHub community Skill “Local Multi-Document Cross-Plagiarism Checker” (Coordinate @user_509b3ac1/tender-similarity-analyzer). It embeds multi-document cross-plagiarism checking, HTML report generation, and local security constraints into the SKILL.md, enabling Agents like Cursor that support Skills to call local Python scripts via a fixed workflow, rather than sending document content to external services.
What is this¶
The “Local Multi-Document Cross-Plagiarism Checker” is an Agent Skill designed for plagiarism checking and analysis of tender documents, with a core positioning of local multi-document cross-plagiarism checking at the paragraph level. It is published by SkillHub user user_509b3ac1, sourced from the community, categorized under data-analysis. The current store version is 1.0.0, and the tags indicate requires_api_key=false, meaning no API Key configuration is needed.
SkillHub page data (as of data capture): Rating 100000, Downloads 1413, Installations 15.
- Store Page: https://www.skillhub.cn/skills/user_509b3ac1/tender-similarity-analyzer
- API Coordinate Page: https://api.skillhub.cn/user_509b3ac1/tender-similarity-analyzer
Core Features¶
The following capabilities are derived from the SKILL.md and scripts/main.py within the Skill package. They execute locally and do not rely on external networks to transmit files.
-
Multi-Document Cross-Plagiarism Checking
Requires at least 2 files for analysis. Supports scanning by directory or directly passing a file list. It can recursively scan subdirectories and limit file extensions. -
Paragraph-Level Detection and Reporting
Outputs a beautified HTML plagiarism check report containing overall statistics, duplication rates, paragraph pair distribution, status determination (Pass / Warning / Fail), and a side-by-side comparison of duplicate paragraphs. The body text duplication rate thresholds are defined in the Skill documentation as: below 10% is Pass, 10%–30% is Warning, and 30% or above is Fail. -
Optional Revision Suggestions
The Skill documentation emphasizes: It can provide AI-generated rewriting directions, but these are for suggestion only and are not written to source files by default. -
Local and Security Constraints
Files are read locally only; network isolation is enabled during the check (restricting common HTTP libraries). It does not modify source files or upload content. First-time use requires installing Python dependencies viapip install -r requirements.txton the local machine. -
Algorithm Summary (“Three-Layer Funnel” in Skill docs)
Paragraph classification and short segment merging → N-gram (3-gram) preliminary screening (Jaccard ≥ 0.25) → Character-level TF-IDF precise comparison (dynamic threshold approximately 0.30–0.50). Heading-like paragraphs are identified and filtered; paragraphs shorter than approximately 50 characters can be merged with context to reduce false positives caused by fragmentation. -
Supported Formats
.docx/.doc,.pdf,.txt,.md.
Installation and Enablement¶
1. Install SkillHub CLI (if not already installed)¶
Check or install the CLI according to the SkillHub Installation Instructions:
command -v skillhub && skillhub --version
If not installed, you can execute the officially recommended one-click installation (fully including the CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install the Skill to the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory recognized by the current environment. Otherwise, it may default to ./skills/ where the Agent cannot load it.
Cursor example:
skillhub install @user_509b3ac1/tender-similarity-analyzer --dir ~/.cursor/skills/
Claude Code can use ~/.claude/skills/; Codex can use ~/.codex/skills/ or .agents/skills/ under the project. For path rules and more clients, see Section 4 of the same installation document.
You can also send the following prompt to the Agent to let it install via the official process:
Please install `@user_509b3ac1/tender-similarity-analyzer` according to https://skillhub.cn/install/skillhub.md.
3. Install Python Dependencies¶
Enter the Skill installation directory (usually ~/.cursor/skills/@user_509b3ac1/tender-similarity-analyzer for Cursor) and install dependencies:
pip install -r requirements.txt
requirements.txt includes python-docx, pdfplumber, scikit-learn, Jinja2, jieba, simhash, etc., used for text extraction, similarity calculation, and report rendering.
Typical Usage¶
Trigger in Conversation (Skill Convention)¶
Natural language examples provided in the Skill documentation:
Check for plagiarism in ~/Desktop/TenderDocuments
The Agent should scan the directory, call the local script to complete the analysis, and return the HTML report path or a summary. Optional parameters are written in the Skill as --include docx,pdf (limit formats), --output <path> (report location); directory scanning can also be combined with --recursive.
Run Directly via Command Line¶
Execute main.py in the scripts directory of the Skill package (replace the path according to your local installation location):
cd ~/.cursor/skills/@user_509b3ac1/tender-similarity-analyzer
pip install -r requirements.txt
# Scan directory (default report is tender_plagiarism_report.html)
python scripts/main.py --dir ~/Desktop/TenderDocuments
# Recursive subdirectories
python scripts/main.py --dir ./chapters --recursive
# Only docx and pdf
python scripts/main.py --dir ./docs --include docx,pdf
# Specify output file
python scripts/main.py --dir ~/Desktop/tender -o my_report.html
# Directly specify multiple files
python scripts/main.py --files a.docx b.docx c.pdf
The default report file name is tender_plagiarism_report.html, which can be modified using -o / --output.
Use Cases and Notes¶
Who it is for
- Teams or individuals who need to perform cross-duplication checks on multiple tender bids, technical proposals, or bid attachments on their local machine.
- Those already using Skills capabilities like Cursor or Claude Code, hoping to reduce the cost of “re-describing checking steps every time” by using fixed scripts and commands.
- Scenarios sensitive to data leaving the country, hoping to keep the plagiarism check process as local as possible (The Skill explicitly emphasizes local reading and network isolation, but you still need to trust the installed Python environment and dependency packages on your local machine).
Limitations and Notes
- At least two files are required to produce meaningful results; a single file will only prompt that it is insufficient.
- Relies on the quality of PDF/Word parsing. If scanned PDFs cannot extract text, the effectiveness of the check will decrease.
- The determination thresholds (10% / 30%) come from tender specification examples in the Skill documentation. Different industries or internal regulations may require manual review; they should not be mechanically equated with compliance conclusions.
- The Skill store version number is 1.0.0. There is a more detailed revision history at the end of the
SKILL.mdwithin the package; refer to the content of the package you actually installed. - Revision suggestions are not written back to files by default; if you use the automatic modification capabilities in the code, you need to confirm whether it complies with your process and audit trail requirements.
Conclusion¶
The “Local Multi-Document Cross-Plagiarism Checker” encapsulates paragraph-level cross-duplication checking, HTML reporting, and local security constraints into an installable Agent Skill. It is suitable for triggering directory scans with a single sentence in a Skills environment, or reproducing the same workflow via scripts/main.py on the command line.
Official Entry Points:
- https://www.skillhub.cn/skills/user_509b3ac1/tender-similarity-analyzer
- https://api.skillhub.cn/user_509b3ac1/tender-similarity-analyzer