Preface¶
Feasibility studies, preliminary designs, and specialized chapters in industries such as water conservancy, architecture, electromechanical engineering, and environmental engineering are often delivered in sets. The same parameters frequently appear repeatedly in the main text, tables, and reports across different disciplines. Manual cross-referencing easily leads to missing numerical conflicts across chapters or documents, while maintaining a “project-wide parameter table” for prior verification is costly. The following introduces the community Skill auto-parameter-consistency-review (Coordinate @user_1b22b3b1/spec-param-verify): it extracts parameters appearing repeatedly from .docx/.doc files, performs unit and name normalization, entity-aware grouping, and cross-document comparison, then outputs a Markdown review report and an Excel summary table without relying on external parameter tables or knowledge bases.
What is this¶
auto-parameter-consistency-review is a community Skill on SkillHub (Category office-efficiency, current version 2.1.0, publisher user_1b22b3b1). It is designed for “no parameter table” scenarios: an Agent calls built-in Python scripts according to the SKILL.md workflow to perform parsing and preliminary screening, followed by semantic review by an LLM. It ultimately delivers only two types of artifacts: review-result.md and review-result.xlsx. The page is marked with requires_api_key=false, meaning no external API Key is required for the review process.
The SkillHub page (as of writing) shows a rating of 100000 and 1234 downloads.
Core Functions¶
The verified capabilities can be summarized as follows:
- Document Parsing: Uses
parse_docx.pyto convert Word files into blocks JSON with chapter paths;.docxprioritizespython-docx, while.doccan fall back to antiword. If a single set of blocks exceeds approximately 100,000 characters,split_blocks.pycan be used to split them by chapter for batch processing. - Parameter Extraction & Normalization:
param_extract.pymatches parameter names, values, and units (including tables and compound dimensions) from blocks. It performs unit normalization, parameter name normalization, and groups by “Entity + Parameter Name”, keeping only groups that appear ≥2 times. - Conflict Secondary Review:
conflict_review.pyfilters noise, identifies differences in comparison schemes or working conditions, and strengthens consistency checks for cross-document global parameters such as water levels and storage capacities. - LLM Review: Corrects misgrouping, supplements expressions difficult for scripts to capture, and confirms whether the same parameter across documents belongs to the same group; cross-document comparison is mandatory in multi-document scenarios.
- Structured Output:
merge_review.pymerges script results with manual correction JSON;review_to_excel.pyconvertsreview-full-result.jsonto Excel. The Excel contains four worksheets: Statistics Summary, Conflict List, Needs Review, and Consistent Items (consistent with the “Statistics Summary, Conflict List, Needs Review, Consistent Items” mentioned in the introduction).
Hard constraints include: only reviewing repeated parameters; not directly comparing parameters with the same name across different schemes, working conditions, structures, or equipment instances; and not fabricating parameters or values not present in the documents.
Installation and Activation¶
The Skill follows the standard SKILL.md format. Before installation, if the SkillHub CLI is not present on the local machine, check the version first:
command -v skillhub && skillhub --version
If not installed, perform a full installation according to the official SkillHub instructions (the example below is the recommended command from the documentation):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the Skill, use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized. The installation prompt provided on the official page is:
Please install `@user_1b22b3b1/spec-param-verify` according to https://skillhub.cn/install/skillhub.md.
Equivalent CLI example (replace <skills directory> with the path in your current environment):
skillhub install @user_1b22b3b1/spec-param-verify --dir <skills directory>
Common client skills directories (from SkillHub installation documentation): Cursor is ~/.cursor/skills/; Claude Code is ~/.claude/skills/; Codex is ~/.codex/skills/ or .agents/skills/ under the project. Paths vary by environment; refer to the official documentation. After installation, refresh or restart the Agent according to the requirements of the respective client.
Prepare Python dependencies before running scripts:
pip install python-docx openpyxl
To parse .doc files, the SKILL documentation indicates that antiword needs to be installed (documentation example for macOS: brew install antiword).
Typical Usage¶
Below is a reproducible main workflow. Replace <skill_dir> in the script paths with the installed Skill directory.
1. Parse Word into blocks
python <skill_dir>/scripts/parse_docx.py <document path or directory> review_blocks.json
2. Extract, Normalize, Group, and Preliminary Compare
python <skill_dir>/scripts/param_extract.py review_blocks.json pre_grouped_result.json
3. Conflict Secondary Review
python <skill_dir>/scripts/conflict_review.py pre_grouped_result.json review_blocks.json refined_result.json
After the Agent completes the LLM review according to SKILL.md, merge the results and export:
python <skill_dir>/scripts/merge_review.py pre_grouped_result.json review-full-result.json
# If corrections.json exists:
# python <skill_dir>/scripts/merge_review.py pre_grouped_result.json review-full-result.json corrections.json
python <skill_dir>/scripts/review_to_excel.py review-full-result.json review-result.xlsx
Meanwhile, review-result.md should be generated (containing statistics, conflict lists, items needing review, consistent items summary, and evidence). Typical trigger words include: parameter consistency, parameter review, check parameter contradictions, cross-reference parameters, repeated parameters.
Applicable Scenarios and Notes¶
Target Audience: Teams that need to batch verify multiple engineering Word reports without wanting to build a full parameter ledger first. Projects spanning disciplines such as hydrology, hydraulic engineering, electromechanical engineering, and construction organization, where water levels, storage capacities, installed capacities, etc., under the same entity are repeatedly referenced across multiple documents.
Limitations and Notes:
- Only processes parameters appearing repeatedly (≥2 times); values appearing only once will not enter the conclusion.
- Encrypted or corrupted documents must be provided as parseable
.docxfiles first. - For multi-document reviews with more than 6 documents, the SKILL suggests no more than 4 per batch; if grouping is too sparse, it will be marked as “Parameter Sparse”.
- For large documents, strictly control the volume of blocks per batch (empirically 30,000–80,000 characters) to avoid extraction timeout.
- Output is based on scripts + LLM review; final manual inspection of the “Needs Review” table is still required for precision, unit conversion, and scheme boundaries.
Conclusion¶
auto-parameter-consistency-review encapsulates the workflow of “Extract parameters from Word → Entity grouping → Cross-document comparison → Markdown + Excel delivery” into a fixed process, making it suitable as a parameter consistency check step before finalizing engineering reports. Official Skill page and API entry:
- https://www.skillhub.cn/skills/user_1b22b3b1/spec-param-verify
- https://api.skillhub.cn/user_1b22b3b1/spec-param-verify