@pikaa-ai/pikaa 0.2.5 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +153 -104
- package/assets/frames/blocks/frame_1.txt +17 -0
- package/assets/frames/blocks/frame_10.txt +17 -0
- package/assets/frames/blocks/frame_11.txt +17 -0
- package/assets/frames/blocks/frame_12.txt +17 -0
- package/assets/frames/blocks/frame_13.txt +17 -0
- package/assets/frames/blocks/frame_14.txt +17 -0
- package/assets/frames/blocks/frame_15.txt +17 -0
- package/assets/frames/blocks/frame_16.txt +17 -0
- package/assets/frames/blocks/frame_17.txt +17 -0
- package/assets/frames/blocks/frame_18.txt +17 -0
- package/assets/frames/blocks/frame_19.txt +17 -0
- package/assets/frames/blocks/frame_2.txt +17 -0
- package/assets/frames/blocks/frame_20.txt +17 -0
- package/assets/frames/blocks/frame_21.txt +17 -0
- package/assets/frames/blocks/frame_22.txt +17 -0
- package/assets/frames/blocks/frame_23.txt +17 -0
- package/assets/frames/blocks/frame_24.txt +17 -0
- package/assets/frames/blocks/frame_25.txt +17 -0
- package/assets/frames/blocks/frame_26.txt +17 -0
- package/assets/frames/blocks/frame_27.txt +17 -0
- package/assets/frames/blocks/frame_28.txt +17 -0
- package/assets/frames/blocks/frame_29.txt +17 -0
- package/assets/frames/blocks/frame_3.txt +17 -0
- package/assets/frames/blocks/frame_30.txt +17 -0
- package/assets/frames/blocks/frame_31.txt +17 -0
- package/assets/frames/blocks/frame_32.txt +17 -0
- package/assets/frames/blocks/frame_33.txt +17 -0
- package/assets/frames/blocks/frame_34.txt +17 -0
- package/assets/frames/blocks/frame_35.txt +17 -0
- package/assets/frames/blocks/frame_36.txt +17 -0
- package/assets/frames/blocks/frame_4.txt +17 -0
- package/assets/frames/blocks/frame_5.txt +17 -0
- package/assets/frames/blocks/frame_6.txt +17 -0
- package/assets/frames/blocks/frame_7.txt +17 -0
- package/assets/frames/blocks/frame_8.txt +17 -0
- package/assets/frames/blocks/frame_9.txt +17 -0
- package/assets/frames/default/frame_1.txt +17 -0
- package/assets/frames/default/frame_10.txt +17 -0
- package/assets/frames/default/frame_11.txt +17 -0
- package/assets/frames/default/frame_12.txt +17 -0
- package/assets/frames/default/frame_13.txt +17 -0
- package/assets/frames/default/frame_14.txt +17 -0
- package/assets/frames/default/frame_15.txt +17 -0
- package/assets/frames/default/frame_16.txt +17 -0
- package/assets/frames/default/frame_17.txt +17 -0
- package/assets/frames/default/frame_18.txt +17 -0
- package/assets/frames/default/frame_19.txt +17 -0
- package/assets/frames/default/frame_2.txt +17 -0
- package/assets/frames/default/frame_20.txt +17 -0
- package/assets/frames/default/frame_21.txt +17 -0
- package/assets/frames/default/frame_22.txt +17 -0
- package/assets/frames/default/frame_23.txt +17 -0
- package/assets/frames/default/frame_24.txt +17 -0
- package/assets/frames/default/frame_25.txt +17 -0
- package/assets/frames/default/frame_26.txt +17 -0
- package/assets/frames/default/frame_27.txt +17 -0
- package/assets/frames/default/frame_28.txt +17 -0
- package/assets/frames/default/frame_29.txt +17 -0
- package/assets/frames/default/frame_3.txt +17 -0
- package/assets/frames/default/frame_30.txt +17 -0
- package/assets/frames/default/frame_31.txt +17 -0
- package/assets/frames/default/frame_32.txt +17 -0
- package/assets/frames/default/frame_33.txt +17 -0
- package/assets/frames/default/frame_34.txt +17 -0
- package/assets/frames/default/frame_35.txt +17 -0
- package/assets/frames/default/frame_36.txt +17 -0
- package/assets/frames/default/frame_4.txt +17 -0
- package/assets/frames/default/frame_5.txt +17 -0
- package/assets/frames/default/frame_6.txt +17 -0
- package/assets/frames/default/frame_7.txt +17 -0
- package/assets/frames/default/frame_8.txt +17 -0
- package/assets/frames/default/frame_9.txt +17 -0
- package/assets/frames/dots/frame_1.txt +17 -0
- package/assets/frames/dots/frame_10.txt +17 -0
- package/assets/frames/dots/frame_11.txt +17 -0
- package/assets/frames/dots/frame_12.txt +17 -0
- package/assets/frames/dots/frame_13.txt +17 -0
- package/assets/frames/dots/frame_14.txt +17 -0
- package/assets/frames/dots/frame_15.txt +17 -0
- package/assets/frames/dots/frame_16.txt +17 -0
- package/assets/frames/dots/frame_17.txt +17 -0
- package/assets/frames/dots/frame_18.txt +17 -0
- package/assets/frames/dots/frame_19.txt +17 -0
- package/assets/frames/dots/frame_2.txt +17 -0
- package/assets/frames/dots/frame_20.txt +17 -0
- package/assets/frames/dots/frame_21.txt +17 -0
- package/assets/frames/dots/frame_22.txt +17 -0
- package/assets/frames/dots/frame_23.txt +17 -0
- package/assets/frames/dots/frame_24.txt +17 -0
- package/assets/frames/dots/frame_25.txt +17 -0
- package/assets/frames/dots/frame_26.txt +17 -0
- package/assets/frames/dots/frame_27.txt +17 -0
- package/assets/frames/dots/frame_28.txt +17 -0
- package/assets/frames/dots/frame_29.txt +17 -0
- package/assets/frames/dots/frame_3.txt +17 -0
- package/assets/frames/dots/frame_30.txt +17 -0
- package/assets/frames/dots/frame_31.txt +17 -0
- package/assets/frames/dots/frame_32.txt +17 -0
- package/assets/frames/dots/frame_33.txt +17 -0
- package/assets/frames/dots/frame_34.txt +17 -0
- package/assets/frames/dots/frame_35.txt +17 -0
- package/assets/frames/dots/frame_36.txt +17 -0
- package/assets/frames/dots/frame_4.txt +17 -0
- package/assets/frames/dots/frame_5.txt +17 -0
- package/assets/frames/dots/frame_6.txt +17 -0
- package/assets/frames/dots/frame_7.txt +17 -0
- package/assets/frames/dots/frame_8.txt +17 -0
- package/assets/frames/dots/frame_9.txt +17 -0
- package/assets/frames/groupy/frame_1.txt +17 -0
- package/assets/frames/groupy/frame_10.txt +17 -0
- package/assets/frames/groupy/frame_11.txt +17 -0
- package/assets/frames/groupy/frame_12.txt +17 -0
- package/assets/frames/groupy/frame_13.txt +17 -0
- package/assets/frames/groupy/frame_14.txt +17 -0
- package/assets/frames/groupy/frame_15.txt +17 -0
- package/assets/frames/groupy/frame_16.txt +17 -0
- package/assets/frames/groupy/frame_17.txt +17 -0
- package/assets/frames/groupy/frame_18.txt +17 -0
- package/assets/frames/groupy/frame_19.txt +17 -0
- package/assets/frames/groupy/frame_2.txt +17 -0
- package/assets/frames/groupy/frame_20.txt +17 -0
- package/assets/frames/groupy/frame_21.txt +17 -0
- package/assets/frames/groupy/frame_22.txt +17 -0
- package/assets/frames/groupy/frame_23.txt +17 -0
- package/assets/frames/groupy/frame_24.txt +17 -0
- package/assets/frames/groupy/frame_25.txt +17 -0
- package/assets/frames/groupy/frame_26.txt +17 -0
- package/assets/frames/groupy/frame_27.txt +17 -0
- package/assets/frames/groupy/frame_28.txt +17 -0
- package/assets/frames/groupy/frame_29.txt +17 -0
- package/assets/frames/groupy/frame_3.txt +17 -0
- package/assets/frames/groupy/frame_30.txt +17 -0
- package/assets/frames/groupy/frame_31.txt +17 -0
- package/assets/frames/groupy/frame_32.txt +17 -0
- package/assets/frames/groupy/frame_33.txt +17 -0
- package/assets/frames/groupy/frame_34.txt +17 -0
- package/assets/frames/groupy/frame_35.txt +17 -0
- package/assets/frames/groupy/frame_36.txt +17 -0
- package/assets/frames/groupy/frame_4.txt +17 -0
- package/assets/frames/groupy/frame_5.txt +17 -0
- package/assets/frames/groupy/frame_6.txt +17 -0
- package/assets/frames/groupy/frame_7.txt +17 -0
- package/assets/frames/groupy/frame_8.txt +17 -0
- package/assets/frames/groupy/frame_9.txt +17 -0
- package/assets/frames/hash/frame_1.txt +17 -0
- package/assets/frames/hash/frame_10.txt +17 -0
- package/assets/frames/hash/frame_11.txt +17 -0
- package/assets/frames/hash/frame_12.txt +17 -0
- package/assets/frames/hash/frame_13.txt +17 -0
- package/assets/frames/hash/frame_14.txt +17 -0
- package/assets/frames/hash/frame_15.txt +17 -0
- package/assets/frames/hash/frame_16.txt +17 -0
- package/assets/frames/hash/frame_17.txt +17 -0
- package/assets/frames/hash/frame_18.txt +17 -0
- package/assets/frames/hash/frame_19.txt +17 -0
- package/assets/frames/hash/frame_2.txt +17 -0
- package/assets/frames/hash/frame_20.txt +17 -0
- package/assets/frames/hash/frame_21.txt +17 -0
- package/assets/frames/hash/frame_22.txt +17 -0
- package/assets/frames/hash/frame_23.txt +17 -0
- package/assets/frames/hash/frame_24.txt +17 -0
- package/assets/frames/hash/frame_25.txt +17 -0
- package/assets/frames/hash/frame_26.txt +17 -0
- package/assets/frames/hash/frame_27.txt +17 -0
- package/assets/frames/hash/frame_28.txt +17 -0
- package/assets/frames/hash/frame_29.txt +17 -0
- package/assets/frames/hash/frame_3.txt +17 -0
- package/assets/frames/hash/frame_30.txt +17 -0
- package/assets/frames/hash/frame_31.txt +17 -0
- package/assets/frames/hash/frame_32.txt +17 -0
- package/assets/frames/hash/frame_33.txt +17 -0
- package/assets/frames/hash/frame_34.txt +17 -0
- package/assets/frames/hash/frame_35.txt +17 -0
- package/assets/frames/hash/frame_36.txt +17 -0
- package/assets/frames/hash/frame_4.txt +17 -0
- package/assets/frames/hash/frame_5.txt +17 -0
- package/assets/frames/hash/frame_6.txt +17 -0
- package/assets/frames/hash/frame_7.txt +17 -0
- package/assets/frames/hash/frame_8.txt +17 -0
- package/assets/frames/hash/frame_9.txt +17 -0
- package/assets/frames/hbars/frame_1.txt +17 -0
- package/assets/frames/hbars/frame_10.txt +17 -0
- package/assets/frames/hbars/frame_11.txt +17 -0
- package/assets/frames/hbars/frame_12.txt +17 -0
- package/assets/frames/hbars/frame_13.txt +17 -0
- package/assets/frames/hbars/frame_14.txt +17 -0
- package/assets/frames/hbars/frame_15.txt +17 -0
- package/assets/frames/hbars/frame_16.txt +17 -0
- package/assets/frames/hbars/frame_17.txt +17 -0
- package/assets/frames/hbars/frame_18.txt +17 -0
- package/assets/frames/hbars/frame_19.txt +17 -0
- package/assets/frames/hbars/frame_2.txt +17 -0
- package/assets/frames/hbars/frame_20.txt +17 -0
- package/assets/frames/hbars/frame_21.txt +17 -0
- package/assets/frames/hbars/frame_22.txt +17 -0
- package/assets/frames/hbars/frame_23.txt +17 -0
- package/assets/frames/hbars/frame_24.txt +17 -0
- package/assets/frames/hbars/frame_25.txt +17 -0
- package/assets/frames/hbars/frame_26.txt +17 -0
- package/assets/frames/hbars/frame_27.txt +17 -0
- package/assets/frames/hbars/frame_28.txt +17 -0
- package/assets/frames/hbars/frame_29.txt +17 -0
- package/assets/frames/hbars/frame_3.txt +17 -0
- package/assets/frames/hbars/frame_30.txt +17 -0
- package/assets/frames/hbars/frame_31.txt +17 -0
- package/assets/frames/hbars/frame_32.txt +17 -0
- package/assets/frames/hbars/frame_33.txt +17 -0
- package/assets/frames/hbars/frame_34.txt +17 -0
- package/assets/frames/hbars/frame_35.txt +17 -0
- package/assets/frames/hbars/frame_36.txt +17 -0
- package/assets/frames/hbars/frame_4.txt +17 -0
- package/assets/frames/hbars/frame_5.txt +17 -0
- package/assets/frames/hbars/frame_6.txt +17 -0
- package/assets/frames/hbars/frame_7.txt +17 -0
- package/assets/frames/hbars/frame_8.txt +17 -0
- package/assets/frames/hbars/frame_9.txt +17 -0
- package/assets/frames/mesosfer/frame_1.txt +17 -0
- package/assets/frames/mesosfer/frame_10.txt +17 -0
- package/assets/frames/mesosfer/frame_11.txt +17 -0
- package/assets/frames/mesosfer/frame_12.txt +17 -0
- package/assets/frames/mesosfer/frame_13.txt +17 -0
- package/assets/frames/mesosfer/frame_14.txt +17 -0
- package/assets/frames/mesosfer/frame_15.txt +17 -0
- package/assets/frames/mesosfer/frame_16.txt +17 -0
- package/assets/frames/mesosfer/frame_17.txt +17 -0
- package/assets/frames/mesosfer/frame_18.txt +17 -0
- package/assets/frames/mesosfer/frame_19.txt +17 -0
- package/assets/frames/mesosfer/frame_2.txt +17 -0
- package/assets/frames/mesosfer/frame_20.txt +17 -0
- package/assets/frames/mesosfer/frame_21.txt +17 -0
- package/assets/frames/mesosfer/frame_22.txt +17 -0
- package/assets/frames/mesosfer/frame_23.txt +17 -0
- package/assets/frames/mesosfer/frame_24.txt +17 -0
- package/assets/frames/mesosfer/frame_25.txt +17 -0
- package/assets/frames/mesosfer/frame_26.txt +17 -0
- package/assets/frames/mesosfer/frame_27.txt +17 -0
- package/assets/frames/mesosfer/frame_28.txt +17 -0
- package/assets/frames/mesosfer/frame_29.txt +17 -0
- package/assets/frames/mesosfer/frame_3.txt +17 -0
- package/assets/frames/mesosfer/frame_30.txt +17 -0
- package/assets/frames/mesosfer/frame_31.txt +17 -0
- package/assets/frames/mesosfer/frame_32.txt +17 -0
- package/assets/frames/mesosfer/frame_33.txt +17 -0
- package/assets/frames/mesosfer/frame_34.txt +17 -0
- package/assets/frames/mesosfer/frame_35.txt +17 -0
- package/assets/frames/mesosfer/frame_36.txt +17 -0
- package/assets/frames/mesosfer/frame_4.txt +17 -0
- package/assets/frames/mesosfer/frame_5.txt +17 -0
- package/assets/frames/mesosfer/frame_6.txt +17 -0
- package/assets/frames/mesosfer/frame_7.txt +17 -0
- package/assets/frames/mesosfer/frame_8.txt +17 -0
- package/assets/frames/mesosfer/frame_9.txt +17 -0
- package/assets/frames/shapes/frame_1.txt +17 -0
- package/assets/frames/shapes/frame_10.txt +17 -0
- package/assets/frames/shapes/frame_11.txt +17 -0
- package/assets/frames/shapes/frame_12.txt +17 -0
- package/assets/frames/shapes/frame_13.txt +17 -0
- package/assets/frames/shapes/frame_14.txt +17 -0
- package/assets/frames/shapes/frame_15.txt +17 -0
- package/assets/frames/shapes/frame_16.txt +17 -0
- package/assets/frames/shapes/frame_17.txt +17 -0
- package/assets/frames/shapes/frame_18.txt +17 -0
- package/assets/frames/shapes/frame_19.txt +17 -0
- package/assets/frames/shapes/frame_2.txt +17 -0
- package/assets/frames/shapes/frame_20.txt +17 -0
- package/assets/frames/shapes/frame_21.txt +17 -0
- package/assets/frames/shapes/frame_22.txt +17 -0
- package/assets/frames/shapes/frame_23.txt +17 -0
- package/assets/frames/shapes/frame_24.txt +17 -0
- package/assets/frames/shapes/frame_25.txt +17 -0
- package/assets/frames/shapes/frame_26.txt +17 -0
- package/assets/frames/shapes/frame_27.txt +17 -0
- package/assets/frames/shapes/frame_28.txt +17 -0
- package/assets/frames/shapes/frame_29.txt +17 -0
- package/assets/frames/shapes/frame_3.txt +17 -0
- package/assets/frames/shapes/frame_30.txt +17 -0
- package/assets/frames/shapes/frame_31.txt +17 -0
- package/assets/frames/shapes/frame_32.txt +17 -0
- package/assets/frames/shapes/frame_33.txt +17 -0
- package/assets/frames/shapes/frame_34.txt +17 -0
- package/assets/frames/shapes/frame_35.txt +17 -0
- package/assets/frames/shapes/frame_36.txt +17 -0
- package/assets/frames/shapes/frame_4.txt +17 -0
- package/assets/frames/shapes/frame_5.txt +17 -0
- package/assets/frames/shapes/frame_6.txt +17 -0
- package/assets/frames/shapes/frame_7.txt +17 -0
- package/assets/frames/shapes/frame_8.txt +17 -0
- package/assets/frames/shapes/frame_9.txt +17 -0
- package/assets/frames/slug/frame_1.txt +17 -0
- package/assets/frames/slug/frame_10.txt +17 -0
- package/assets/frames/slug/frame_11.txt +17 -0
- package/assets/frames/slug/frame_12.txt +17 -0
- package/assets/frames/slug/frame_13.txt +17 -0
- package/assets/frames/slug/frame_14.txt +17 -0
- package/assets/frames/slug/frame_15.txt +17 -0
- package/assets/frames/slug/frame_16.txt +17 -0
- package/assets/frames/slug/frame_17.txt +17 -0
- package/assets/frames/slug/frame_18.txt +17 -0
- package/assets/frames/slug/frame_19.txt +17 -0
- package/assets/frames/slug/frame_2.txt +17 -0
- package/assets/frames/slug/frame_20.txt +17 -0
- package/assets/frames/slug/frame_21.txt +17 -0
- package/assets/frames/slug/frame_22.txt +17 -0
- package/assets/frames/slug/frame_23.txt +17 -0
- package/assets/frames/slug/frame_24.txt +17 -0
- package/assets/frames/slug/frame_25.txt +17 -0
- package/assets/frames/slug/frame_26.txt +17 -0
- package/assets/frames/slug/frame_27.txt +17 -0
- package/assets/frames/slug/frame_28.txt +17 -0
- package/assets/frames/slug/frame_29.txt +17 -0
- package/assets/frames/slug/frame_3.txt +17 -0
- package/assets/frames/slug/frame_30.txt +17 -0
- package/assets/frames/slug/frame_31.txt +17 -0
- package/assets/frames/slug/frame_32.txt +17 -0
- package/assets/frames/slug/frame_33.txt +17 -0
- package/assets/frames/slug/frame_34.txt +17 -0
- package/assets/frames/slug/frame_35.txt +17 -0
- package/assets/frames/slug/frame_36.txt +17 -0
- package/assets/frames/slug/frame_4.txt +17 -0
- package/assets/frames/slug/frame_5.txt +17 -0
- package/assets/frames/slug/frame_6.txt +17 -0
- package/assets/frames/slug/frame_7.txt +17 -0
- package/assets/frames/slug/frame_8.txt +17 -0
- package/assets/frames/slug/frame_9.txt +17 -0
- package/assets/frames/vbars/frame_1.txt +17 -0
- package/assets/frames/vbars/frame_10.txt +17 -0
- package/assets/frames/vbars/frame_11.txt +17 -0
- package/assets/frames/vbars/frame_12.txt +17 -0
- package/assets/frames/vbars/frame_13.txt +17 -0
- package/assets/frames/vbars/frame_14.txt +17 -0
- package/assets/frames/vbars/frame_15.txt +17 -0
- package/assets/frames/vbars/frame_16.txt +17 -0
- package/assets/frames/vbars/frame_17.txt +17 -0
- package/assets/frames/vbars/frame_18.txt +17 -0
- package/assets/frames/vbars/frame_19.txt +17 -0
- package/assets/frames/vbars/frame_2.txt +17 -0
- package/assets/frames/vbars/frame_20.txt +17 -0
- package/assets/frames/vbars/frame_21.txt +17 -0
- package/assets/frames/vbars/frame_22.txt +17 -0
- package/assets/frames/vbars/frame_23.txt +17 -0
- package/assets/frames/vbars/frame_24.txt +17 -0
- package/assets/frames/vbars/frame_25.txt +17 -0
- package/assets/frames/vbars/frame_26.txt +17 -0
- package/assets/frames/vbars/frame_27.txt +17 -0
- package/assets/frames/vbars/frame_28.txt +17 -0
- package/assets/frames/vbars/frame_29.txt +17 -0
- package/assets/frames/vbars/frame_3.txt +17 -0
- package/assets/frames/vbars/frame_30.txt +17 -0
- package/assets/frames/vbars/frame_31.txt +17 -0
- package/assets/frames/vbars/frame_32.txt +17 -0
- package/assets/frames/vbars/frame_33.txt +17 -0
- package/assets/frames/vbars/frame_34.txt +17 -0
- package/assets/frames/vbars/frame_35.txt +17 -0
- package/assets/frames/vbars/frame_36.txt +17 -0
- package/assets/frames/vbars/frame_4.txt +17 -0
- package/assets/frames/vbars/frame_5.txt +17 -0
- package/assets/frames/vbars/frame_6.txt +17 -0
- package/assets/frames/vbars/frame_7.txt +17 -0
- package/assets/frames/vbars/frame_8.txt +17 -0
- package/assets/frames/vbars/frame_9.txt +17 -0
- package/bin/pikaa.js +1 -0
- package/dist/cli.js +3484 -879
- package/dist/index.js +6835 -437
- package/package.json +6 -1
- package/skills/adaptyv/SKILL.md +240 -0
- package/skills/adaptyv/references/api-endpoints.md +690 -0
- package/skills/aeon/SKILL.md +402 -0
- package/skills/aeon/references/anomaly_detection.md +154 -0
- package/skills/aeon/references/classification.md +144 -0
- package/skills/aeon/references/clustering.md +123 -0
- package/skills/aeon/references/datasets_benchmarking.md +392 -0
- package/skills/aeon/references/distances.md +256 -0
- package/skills/aeon/references/forecasting.md +109 -0
- package/skills/aeon/references/networks.md +289 -0
- package/skills/aeon/references/regression.md +118 -0
- package/skills/aeon/references/segmentation.md +163 -0
- package/skills/aeon/references/similarity_search.md +187 -0
- package/skills/aeon/references/transformations.md +246 -0
- package/skills/analytical-method-validation/SKILL.md +299 -0
- package/skills/analytical-method-validation/assets/validation-protocol-template.md +106 -0
- package/skills/analytical-method-validation/assets/validation-report-template.md +116 -0
- package/skills/analytical-method-validation/references/compendial-and-clsi.md +96 -0
- package/skills/analytical-method-validation/references/framework-selection.md +87 -0
- package/skills/analytical-method-validation/references/ich-m10-bioanalytical.md +123 -0
- package/skills/analytical-method-validation/references/ich-q2r2.md +229 -0
- package/skills/analytical-method-validation/references/source-ledger.md +125 -0
- package/skills/analytical-method-validation/references/statistics.md +209 -0
- package/skills/analytical-method-validation/scripts/_catalog.py +499 -0
- package/skills/analytical-method-validation/scripts/_common.py +955 -0
- package/skills/analytical-method-validation/scripts/check_accuracy_precision.py +328 -0
- package/skills/analytical-method-validation/scripts/check_bioanalytical_run.py +293 -0
- package/skills/analytical-method-validation/scripts/check_detection_limits.py +310 -0
- package/skills/analytical-method-validation/scripts/check_response.py +243 -0
- package/skills/analytical-method-validation/scripts/compare_methods.py +215 -0
- package/skills/analytical-method-validation/scripts/plan_validation.py +381 -0
- package/skills/anndata/SKILL.md +431 -0
- package/skills/anndata/references/best_practices.md +532 -0
- package/skills/anndata/references/concatenation.md +399 -0
- package/skills/anndata/references/data_structure.md +314 -0
- package/skills/anndata/references/io_operations.md +466 -0
- package/skills/anndata/references/manipulation.md +516 -0
- package/skills/arbor/SKILL.md +152 -0
- package/skills/arbor/references/arbor-upstream.md +91 -0
- package/skills/arbor/references/executor-brief.md +68 -0
- package/skills/arbor/references/htr-methodology.md +177 -0
- package/skills/arbor/references/report-template.md +39 -0
- package/skills/arbor/scripts/tree.py +564 -0
- package/skills/arboreto/SKILL.md +267 -0
- package/skills/arboreto/references/algorithms.md +152 -0
- package/skills/arboreto/references/basic_inference.md +181 -0
- package/skills/arboreto/references/distributed_computing.md +242 -0
- package/skills/arboreto/scripts/basic_grn_inference.py +107 -0
- package/skills/astropy/SKILL.md +353 -0
- package/skills/astropy/references/coordinates.md +280 -0
- package/skills/astropy/references/cosmology.md +309 -0
- package/skills/astropy/references/fits.md +398 -0
- package/skills/astropy/references/tables.md +495 -0
- package/skills/astropy/references/time.md +412 -0
- package/skills/astropy/references/units.md +178 -0
- package/skills/astropy/references/wcs_and_other_modules.md +377 -0
- package/skills/autoskill/SKILL.md +233 -0
- package/skills/autoskill/config.yaml +53 -0
- package/skills/autoskill/references/https-proxy.md +62 -0
- package/skills/autoskill/references/screenpipe-config.yaml +61 -0
- package/skills/autoskill/scripts/autoskill.py +35 -0
- package/skills/autoskill/scripts/backends.py +116 -0
- package/skills/autoskill/scripts/cluster.py +54 -0
- package/skills/autoskill/scripts/doctor.py +108 -0
- package/skills/autoskill/scripts/fetch_window.py +33 -0
- package/skills/autoskill/scripts/match_skills.py +46 -0
- package/skills/autoskill/scripts/promote.py +58 -0
- package/skills/autoskill/scripts/redact.py +40 -0
- package/skills/autoskill/scripts/run.py +194 -0
- package/skills/autoskill/scripts/synthesize.py +72 -0
- package/skills/benchling-integration/SKILL.md +229 -0
- package/skills/benchling-integration/references/api_endpoints.md +883 -0
- package/skills/benchling-integration/references/authentication.md +390 -0
- package/skills/benchling-integration/references/core_capabilities.md +355 -0
- package/skills/benchling-integration/references/eventbridge.md +255 -0
- package/skills/benchling-integration/references/sdk_reference.md +772 -0
- package/skills/bgpt-paper-search/SKILL.md +75 -0
- package/skills/bids/SKILL.md +237 -0
- package/skills/bids/references/beps.yml +637 -0
- package/skills/bids/references/bids_schema.json +21015 -0
- package/skills/bids/references/bids_specification.md +165 -0
- package/skills/bids/references/conversion_tools.md +475 -0
- package/skills/bids/references/core_workflows.md +552 -0
- package/skills/bids/references/metadata_fields.md +365 -0
- package/skills/bids/scripts/update_schema.py +89 -0
- package/skills/biopython/SKILL.md +472 -0
- package/skills/biopython/references/advanced.md +580 -0
- package/skills/biopython/references/alignment.md +377 -0
- package/skills/biopython/references/blast.md +463 -0
- package/skills/biopython/references/databases.md +492 -0
- package/skills/biopython/references/phylogenetics.md +566 -0
- package/skills/biopython/references/sequence_io.md +289 -0
- package/skills/biopython/references/structure.md +564 -0
- package/skills/bioservices/SKILL.md +399 -0
- package/skills/bioservices/references/identifier_mapping.md +685 -0
- package/skills/bioservices/references/services_reference.md +638 -0
- package/skills/bioservices/references/workflow_patterns.md +813 -0
- package/skills/bioservices/scripts/batch_id_converter.py +347 -0
- package/skills/bioservices/scripts/compound_cross_reference.py +387 -0
- package/skills/bioservices/scripts/pathway_analysis.py +309 -0
- package/skills/bioservices/scripts/protein_analysis_workflow.py +441 -0
- package/skills/bulk-rnaseq/SKILL.md +198 -0
- package/skills/bulk-rnaseq/references/counts-and-handoff.md +91 -0
- package/skills/bulk-rnaseq/references/design-and-qc.md +68 -0
- package/skills/bulk-rnaseq/references/upstream-manual.md +128 -0
- package/skills/bulk-rnaseq/references/upstream-nfcore.md +108 -0
- package/skills/bulk-rnaseq/scripts/build_counts_matrix.py +203 -0
- package/skills/bulk-rnaseq/scripts/validate_samplesheet.py +206 -0
- package/skills/cellxgene-census/SKILL.md +283 -0
- package/skills/cellxgene-census/references/census_schema.md +218 -0
- package/skills/cellxgene-census/references/common_patterns.md +368 -0
- package/skills/cellxgene-census/references/core_workflow_patterns.md +297 -0
- package/skills/cirq/SKILL.md +370 -0
- package/skills/cirq/references/building.md +307 -0
- package/skills/cirq/references/experiments.md +572 -0
- package/skills/cirq/references/hardware.md +527 -0
- package/skills/cirq/references/noise.md +514 -0
- package/skills/cirq/references/simulation.md +353 -0
- package/skills/cirq/references/transformation.md +416 -0
- package/skills/citation-management/SKILL.md +329 -0
- package/skills/citation-management/assets/bibtex_template.bib +264 -0
- package/skills/citation-management/assets/citation_checklist.md +386 -0
- package/skills/citation-management/references/best_practices.md +91 -0
- package/skills/citation-management/references/bibtex_formatting.md +908 -0
- package/skills/citation-management/references/citation_validation.md +835 -0
- package/skills/citation-management/references/core_workflow.md +569 -0
- package/skills/citation-management/references/example_workflows.md +126 -0
- package/skills/citation-management/references/google_scholar_search.md +732 -0
- package/skills/citation-management/references/metadata_extraction.md +870 -0
- package/skills/citation-management/references/pubmed_search.md +839 -0
- package/skills/citation-management/references/script_reference.md +250 -0
- package/skills/citation-management/references/search_strategies.md +110 -0
- package/skills/citation-management/scripts/_common.py +331 -0
- package/skills/citation-management/scripts/doi_to_bibtex.py +204 -0
- package/skills/citation-management/scripts/extract_metadata.py +690 -0
- package/skills/citation-management/scripts/format_bibtex.py +356 -0
- package/skills/citation-management/scripts/search_google_scholar.py +268 -0
- package/skills/citation-management/scripts/search_openalex.py +297 -0
- package/skills/citation-management/scripts/search_pubmed.py +419 -0
- package/skills/citation-management/scripts/validate_citations.py +688 -0
- package/skills/clinical-decision-support/SKILL.md +238 -0
- package/skills/clinical-decision-support/assets/aggregate_cohort_table_template.json +114 -0
- package/skills/clinical-decision-support/assets/aggregate_model_evaluation_template.json +115 -0
- package/skills/clinical-decision-support/assets/artifact_intended_use_template.json +81 -0
- package/skills/clinical-decision-support/assets/decision_logic_traceability_template.json +108 -0
- package/skills/clinical-decision-support/assets/deidentification_checklist_template.json +176 -0
- package/skills/clinical-decision-support/assets/evidence_profile_template.json +139 -0
- package/skills/clinical-decision-support/assets/survival_analysis_plan_template.json +134 -0
- package/skills/clinical-decision-support/references/README.md +62 -0
- package/skills/clinical-decision-support/references/cohort_evaluation.md +142 -0
- package/skills/clinical-decision-support/references/decision_logic_traceability.md +146 -0
- package/skills/clinical-decision-support/references/evidence_profiles.md +153 -0
- package/skills/clinical-decision-support/references/model_biomarker_evaluation.md +152 -0
- package/skills/clinical-decision-support/references/privacy_and_disclosure.md +144 -0
- package/skills/clinical-decision-support/references/regulatory_and_governance.md +104 -0
- package/skills/clinical-decision-support/references/safety_and_scope.md +103 -0
- package/skills/clinical-decision-support/references/security_validation.md +60 -0
- package/skills/clinical-decision-support/references/sources.md +119 -0
- package/skills/clinical-decision-support/references/study_reporting.md +134 -0
- package/skills/clinical-decision-support/references/survival_analysis.md +156 -0
- package/skills/clinical-decision-support/scripts/_common.py +223 -0
- package/skills/clinical-decision-support/scripts/cohort_table_generator.py +288 -0
- package/skills/clinical-decision-support/scripts/decision_logic_traceability.py +313 -0
- package/skills/clinical-decision-support/scripts/deidentification_checklist.py +260 -0
- package/skills/clinical-decision-support/scripts/evidence_profile_check.py +259 -0
- package/skills/clinical-decision-support/scripts/model_biomarker_evaluation.py +345 -0
- package/skills/clinical-decision-support/scripts/survival_plan_validator.py +294 -0
- package/skills/clinical-decision-support/scripts/validate_cds_artifact.py +269 -0
- package/skills/clinical-reports/SKILL.md +248 -0
- package/skills/clinical-reports/assets/adverse_event_aggregate_input_template.csv +1 -0
- package/skills/clinical-reports/assets/case_report_template.json +43 -0
- package/skills/clinical-reports/assets/clinical_trial_csr_template.json +51 -0
- package/skills/clinical-reports/assets/clinical_trial_results_template.json +66 -0
- package/skills/clinical-reports/assets/clinical_trial_safety_aggregate_template.json +49 -0
- package/skills/clinical-reports/assets/consistency_manifest_template.json +15 -0
- package/skills/clinical-reports/assets/deidentification_process_checklist.json +56 -0
- package/skills/clinical-reports/assets/lab_report_template.json +36 -0
- package/skills/clinical-reports/assets/pathology_report_template.json +36 -0
- package/skills/clinical-reports/assets/provenance_manifest_template.json +17 -0
- package/skills/clinical-reports/assets/quality_review_checklist.json +34 -0
- package/skills/clinical-reports/assets/radiology_report_template.json +34 -0
- package/skills/clinical-reports/assets/research_summary_template.json +36 -0
- package/skills/clinical-reports/assets/terminology_manifest_template.json +11 -0
- package/skills/clinical-reports/assets/trial_protocol_reporting_checklist.json +70 -0
- package/skills/clinical-reports/references/README.md +34 -0
- package/skills/clinical-reports/references/case_report_guidelines.md +72 -0
- package/skills/clinical-reports/references/clinical_trial_reporting.md +97 -0
- package/skills/clinical-reports/references/data_presentation.md +92 -0
- package/skills/clinical-reports/references/diagnostic_reports_standards.md +76 -0
- package/skills/clinical-reports/references/medical_terminology.md +84 -0
- package/skills/clinical-reports/references/privacy_and_deidentification.md +84 -0
- package/skills/clinical-reports/references/professional_review.md +78 -0
- package/skills/clinical-reports/references/report_type_routing.md +57 -0
- package/skills/clinical-reports/references/safety_reporting.md +109 -0
- package/skills/clinical-reports/references/sources.md +75 -0
- package/skills/clinical-reports/scripts/_common.py +263 -0
- package/skills/clinical-reports/scripts/check_deidentification.py +298 -0
- package/skills/clinical-reports/scripts/consistency_checker.py +390 -0
- package/skills/clinical-reports/scripts/format_adverse_events.py +455 -0
- package/skills/clinical-reports/scripts/generate_report_template.py +115 -0
- package/skills/clinical-reports/scripts/provenance_validator.py +263 -0
- package/skills/clinical-reports/scripts/terminology_validator.py +277 -0
- package/skills/clinical-reports/scripts/validate_case_report.py +278 -0
- package/skills/clinical-reports/scripts/validate_trial_report.py +534 -0
- package/skills/cobrapy/SKILL.md +496 -0
- package/skills/cobrapy/references/api_quick_reference.md +665 -0
- package/skills/cobrapy/references/workflows.md +600 -0
- package/skills/consciousness-council/SKILL.md +151 -0
- package/skills/consciousness-council/references/advanced-configurations.md +96 -0
- package/skills/dask/SKILL.md +482 -0
- package/skills/dask/references/arrays.md +495 -0
- package/skills/dask/references/bags.md +468 -0
- package/skills/dask/references/best-practices.md +277 -0
- package/skills/dask/references/dataframes.md +370 -0
- package/skills/dask/references/futures.md +541 -0
- package/skills/dask/references/schedulers.md +517 -0
- package/skills/database-lookup/SKILL.md +386 -0
- package/skills/database-lookup/references/addgene.md +38 -0
- package/skills/database-lookup/references/alphafold.md +52 -0
- package/skills/database-lookup/references/alphavantage.md +261 -0
- package/skills/database-lookup/references/bea.md +409 -0
- package/skills/database-lookup/references/bindingdb.md +85 -0
- package/skills/database-lookup/references/biogrid.md +110 -0
- package/skills/database-lookup/references/bls.md +235 -0
- package/skills/database-lookup/references/brenda.md +71 -0
- package/skills/database-lookup/references/cbioportal.md +206 -0
- package/skills/database-lookup/references/census.md +251 -0
- package/skills/database-lookup/references/chebi.md +103 -0
- package/skills/database-lookup/references/chembl.md +80 -0
- package/skills/database-lookup/references/clinicaltrials.md +86 -0
- package/skills/database-lookup/references/clinpgx.md +64 -0
- package/skills/database-lookup/references/clinvar.md +91 -0
- package/skills/database-lookup/references/cod.md +121 -0
- package/skills/database-lookup/references/cosmic.md +59 -0
- package/skills/database-lookup/references/dailymed.md +65 -0
- package/skills/database-lookup/references/database_selection_guide.md +166 -0
- package/skills/database-lookup/references/datacommons.md +237 -0
- package/skills/database-lookup/references/dbsnp.md +143 -0
- package/skills/database-lookup/references/disgenet.md +52 -0
- package/skills/database-lookup/references/drugbank.md +54 -0
- package/skills/database-lookup/references/ecb.md +191 -0
- package/skills/database-lookup/references/emdb.md +37 -0
- package/skills/database-lookup/references/ena.md +372 -0
- package/skills/database-lookup/references/encode.md +47 -0
- package/skills/database-lookup/references/ensembl.md +539 -0
- package/skills/database-lookup/references/epa.md +232 -0
- package/skills/database-lookup/references/eurostat.md +237 -0
- package/skills/database-lookup/references/fda.md +64 -0
- package/skills/database-lookup/references/federal-reserve.md +216 -0
- package/skills/database-lookup/references/fred.md +297 -0
- package/skills/database-lookup/references/gene-ontology.md +147 -0
- package/skills/database-lookup/references/geo.md +130 -0
- package/skills/database-lookup/references/gnomad.md +93 -0
- package/skills/database-lookup/references/gtex.md +136 -0
- package/skills/database-lookup/references/gwas-catalog.md +46 -0
- package/skills/database-lookup/references/hca.md +35 -0
- package/skills/database-lookup/references/hpo.md +48 -0
- package/skills/database-lookup/references/human-protein-atlas.md +57 -0
- package/skills/database-lookup/references/interpro.md +120 -0
- package/skills/database-lookup/references/jaspar.md +50 -0
- package/skills/database-lookup/references/kegg.md +78 -0
- package/skills/database-lookup/references/lincs-l1000.md +68 -0
- package/skills/database-lookup/references/materials-project.md +123 -0
- package/skills/database-lookup/references/metabolomics-workbench.md +98 -0
- package/skills/database-lookup/references/monarch.md +46 -0
- package/skills/database-lookup/references/mousemine.md +40 -0
- package/skills/database-lookup/references/nasa-exoplanet-archive.md +112 -0
- package/skills/database-lookup/references/nasa.md +121 -0
- package/skills/database-lookup/references/ncbi-gene.md +64 -0
- package/skills/database-lookup/references/ncbi-protein.md +104 -0
- package/skills/database-lookup/references/ncbi-taxonomy.md +121 -0
- package/skills/database-lookup/references/nist.md +105 -0
- package/skills/database-lookup/references/noaa.md +199 -0
- package/skills/database-lookup/references/omim.md +114 -0
- package/skills/database-lookup/references/opentargets.md +459 -0
- package/skills/database-lookup/references/openweathermap.md +255 -0
- package/skills/database-lookup/references/pdb.md +121 -0
- package/skills/database-lookup/references/pride.md +74 -0
- package/skills/database-lookup/references/pubchem.md +145 -0
- package/skills/database-lookup/references/quickgo.md +45 -0
- package/skills/database-lookup/references/reactome.md +140 -0
- package/skills/database-lookup/references/retrieval-contract.md +123 -0
- package/skills/database-lookup/references/rummageo.md +32 -0
- package/skills/database-lookup/references/sdss.md +130 -0
- package/skills/database-lookup/references/sec-edgar.md +315 -0
- package/skills/database-lookup/references/simbad.md +405 -0
- package/skills/database-lookup/references/sra.md +149 -0
- package/skills/database-lookup/references/string.md +283 -0
- package/skills/database-lookup/references/tcga-gdc.md +58 -0
- package/skills/database-lookup/references/treasury.md +215 -0
- package/skills/database-lookup/references/ucsc-genome.md +135 -0
- package/skills/database-lookup/references/uniprot.md +283 -0
- package/skills/database-lookup/references/usgs.md +260 -0
- package/skills/database-lookup/references/uspto.md +130 -0
- package/skills/database-lookup/references/who.md +283 -0
- package/skills/database-lookup/references/worldbank.md +239 -0
- package/skills/database-lookup/references/zinc.md +202 -0
- package/skills/datamol/SKILL.md +200 -0
- package/skills/datamol/references/conformers_module.md +131 -0
- package/skills/datamol/references/core_api.md +136 -0
- package/skills/datamol/references/core_workflows.md +451 -0
- package/skills/datamol/references/descriptors_viz.md +195 -0
- package/skills/datamol/references/fragments_scaffolds.md +174 -0
- package/skills/datamol/references/io_module.md +112 -0
- package/skills/datamol/references/reactions_data.md +218 -0
- package/skills/datamol/references/workflow_patterns.md +104 -0
- package/skills/deepchem/SKILL.md +244 -0
- package/skills/deepchem/references/api_reference.md +305 -0
- package/skills/deepchem/references/core_capabilities.md +276 -0
- package/skills/deepchem/references/typical_workflows.md +109 -0
- package/skills/deepchem/references/workflows.md +491 -0
- package/skills/deepchem/scripts/graph_neural_network.py +350 -0
- package/skills/deepchem/scripts/predict_solubility.py +223 -0
- package/skills/deepchem/scripts/transfer_learning.py +443 -0
- package/skills/deepspot-m/SKILL.md +175 -0
- package/skills/deepspot-m/references/api.md +186 -0
- package/skills/deepspot-m/references/whole_slide.md +174 -0
- package/skills/deeptools/SKILL.md +412 -0
- package/skills/deeptools/assets/quick_reference.md +65 -0
- package/skills/deeptools/references/core_workflows.md +134 -0
- package/skills/deeptools/references/effective_genome_sizes.md +118 -0
- package/skills/deeptools/references/normalization_methods.md +424 -0
- package/skills/deeptools/references/tools_reference.md +569 -0
- package/skills/deeptools/references/workflows.md +476 -0
- package/skills/deeptools/scripts/validate_files.py +195 -0
- package/skills/deeptools/scripts/workflow_generator.py +520 -0
- package/skills/depmap/SKILL.md +301 -0
- package/skills/depmap/references/dependency_analysis.md +178 -0
- package/skills/dhdna-profiler/SKILL.md +184 -0
- package/skills/dhdna-profiler/references/advanced-profiling.md +72 -0
- package/skills/diffdock/SKILL.md +488 -0
- package/skills/diffdock/assets/batch_template.csv +4 -0
- package/skills/diffdock/assets/custom_inference_config.yaml +94 -0
- package/skills/diffdock/references/confidence_and_limitations.md +182 -0
- package/skills/diffdock/references/parameters_reference.md +173 -0
- package/skills/diffdock/references/workflows_examples.md +401 -0
- package/skills/diffdock/scripts/analyze_results.py +346 -0
- package/skills/diffdock/scripts/prepare_batch_csv.py +257 -0
- package/skills/diffdock/scripts/setup_check.py +283 -0
- package/skills/dnanexus-integration/SKILL.md +325 -0
- package/skills/dnanexus-integration/references/app-development.md +371 -0
- package/skills/dnanexus-integration/references/authentication.md +226 -0
- package/skills/dnanexus-integration/references/configuration.md +444 -0
- package/skills/dnanexus-integration/references/data-operations.md +474 -0
- package/skills/dnanexus-integration/references/job-execution.md +482 -0
- package/skills/dnanexus-integration/references/operations-and-troubleshooting.md +506 -0
- package/skills/dnanexus-integration/references/python-sdk.md +548 -0
- package/skills/dnanexus-integration/references/sources.md +168 -0
- package/skills/dnanexus-integration/references/workflow-languages.md +292 -0
- package/skills/dnanexus-integration/scripts/inspect_dxpy.py +366 -0
- package/skills/dnanexus-integration/scripts/validate_dxapp.py +796 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +99 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/accept_changes.py +135 -0
- package/skills/docx/scripts/comment.py +368 -0
- package/skills/docx/scripts/merge_runs.py +310 -0
- package/skills/docx/scripts/office/helpers/__init__.py +111 -0
- package/skills/docx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/docx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/docx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/scripts/office/soffice.py +232 -0
- package/skills/docx/scripts/office/validate.py +173 -0
- package/skills/docx/scripts/office/validators/__init__.py +15 -0
- package/skills/docx/scripts/office/validators/base.py +875 -0
- package/skills/docx/scripts/office/validators/docx.py +466 -0
- package/skills/docx/scripts/office/validators/pptx.py +441 -0
- package/skills/docx/scripts/office/validators/redlining.py +299 -0
- package/skills/docx/scripts/templates/comments.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/docx/scripts/templates/people.xml +3 -0
- package/skills/esm/SKILL.md +334 -0
- package/skills/esm/references/biohub-platform.md +111 -0
- package/skills/esm/references/esm-c-api.md +609 -0
- package/skills/esm/references/esm3-api.md +462 -0
- package/skills/esm/references/forge-api.md +675 -0
- package/skills/esm/references/workflows.md +685 -0
- package/skills/etetoolkit/SKILL.md +327 -0
- package/skills/etetoolkit/references/api_reference.md +546 -0
- package/skills/etetoolkit/references/migration-ete3-to-ete4.md +579 -0
- package/skills/etetoolkit/references/taxonomy.md +362 -0
- package/skills/etetoolkit/references/visualization.md +516 -0
- package/skills/etetoolkit/references/workflows.md +537 -0
- package/skills/etetoolkit/scripts/quick_visualize.py +455 -0
- package/skills/etetoolkit/scripts/tree_operations.py +446 -0
- package/skills/exa-search/SKILL.md +102 -0
- package/skills/exa-search/references/web-extract.md +53 -0
- package/skills/exa-search/references/web-search.md +119 -0
- package/skills/exa-search/scripts/exa_extract.py +117 -0
- package/skills/exa-search/scripts/exa_search.py +179 -0
- package/skills/executing-plans/SKILL.md +14 -0
- package/skills/experimental-design/SKILL.md +234 -0
- package/skills/experimental-design/references/design_types.md +129 -0
- package/skills/experimental-design/references/factorial_and_doe.md +130 -0
- package/skills/experimental-design/references/randomization_and_blocking.md +116 -0
- package/skills/experimental-design/references/sequential_and_adaptive.md +97 -0
- package/skills/experimental-design/scripts/doe_designs.py +183 -0
- package/skills/experimental-design/scripts/randomization.py +171 -0
- package/skills/exploratory-data-analysis/SKILL.md +280 -0
- package/skills/exploratory-data-analysis/assets/report_template.md +202 -0
- package/skills/exploratory-data-analysis/references/bioinformatics_genomics_formats.md +192 -0
- package/skills/exploratory-data-analysis/references/chemistry_molecular_formats.md +183 -0
- package/skills/exploratory-data-analysis/references/general_scientific_formats.md +259 -0
- package/skills/exploratory-data-analysis/references/microscopy_imaging_formats.md +189 -0
- package/skills/exploratory-data-analysis/references/proteomics_metabolomics_formats.md +217 -0
- package/skills/exploratory-data-analysis/references/spectroscopy_analytical_formats.md +191 -0
- package/skills/exploratory-data-analysis/scripts/__init__.py +1 -0
- package/skills/exploratory-data-analysis/scripts/_capabilities.py +576 -0
- package/skills/exploratory-data-analysis/scripts/_common.py +460 -0
- package/skills/exploratory-data-analysis/scripts/_structured.py +391 -0
- package/skills/exploratory-data-analysis/scripts/_tabular.py +905 -0
- package/skills/exploratory-data-analysis/scripts/capability_manifest.py +184 -0
- package/skills/exploratory-data-analysis/scripts/distribution_sensitivity.py +117 -0
- package/skills/exploratory-data-analysis/scripts/eda_analyzer.py +345 -0
- package/skills/exploratory-data-analysis/scripts/image_inspector.py +214 -0
- package/skills/exploratory-data-analysis/scripts/missingness_leakage_audit.py +130 -0
- package/skills/exploratory-data-analysis/scripts/report_scaffold.py +143 -0
- package/skills/exploratory-data-analysis/scripts/sequence_inspector.py +255 -0
- package/skills/exploratory-data-analysis/scripts/tabular_profile.py +109 -0
- package/skills/flowio/SKILL.md +310 -0
- package/skills/flowio/references/api_reference.md +355 -0
- package/skills/flowio/references/fcs_semantics.md +315 -0
- package/skills/flowio/references/sources.md +89 -0
- package/skills/flowio/references/troubleshooting.md +399 -0
- package/skills/flowio/references/workflows.md +368 -0
- package/skills/flowio/scripts/inspect_fcs.py +439 -0
- package/skills/fluidsim/SKILL.md +279 -0
- package/skills/fluidsim/references/advanced_features.md +347 -0
- package/skills/fluidsim/references/installation.md +263 -0
- package/skills/fluidsim/references/output_analysis.md +314 -0
- package/skills/fluidsim/references/parameters.md +322 -0
- package/skills/fluidsim/references/simulation_workflow.md +329 -0
- package/skills/fluidsim/references/solvers.md +191 -0
- package/skills/fluidsim/scripts/__init__.py +1 -0
- package/skills/fluidsim/scripts/_common.py +491 -0
- package/skills/fluidsim/scripts/_schema.py +872 -0
- package/skills/fluidsim/scripts/budget_summary.py +396 -0
- package/skills/fluidsim/scripts/grid_resource_estimator.py +286 -0
- package/skills/fluidsim/scripts/output_inventory.py +353 -0
- package/skills/fluidsim/scripts/restart_compatibility.py +424 -0
- package/skills/fluidsim/scripts/simulation_dry_run.py +246 -0
- package/skills/fluidsim/scripts/solver_config_validator.py +70 -0
- package/skills/frontend-design/SKILL.md +99 -0
- package/skills/generate-image/SKILL.md +304 -0
- package/skills/generate-image/references/models.md +173 -0
- package/skills/generate-image/scripts/generate_image.py +752 -0
- package/skills/geniml/SKILL.md +310 -0
- package/skills/geniml/references/bedspace.md +267 -0
- package/skills/geniml/references/consensus_peaks.md +334 -0
- package/skills/geniml/references/region2vec.md +289 -0
- package/skills/geniml/references/scembed.md +307 -0
- package/skills/geniml/references/utilities.md +385 -0
- package/skills/geniml/scripts/__init__.py +1 -0
- package/skills/geniml/scripts/_common.py +399 -0
- package/skills/geniml/scripts/bed_validator.py +363 -0
- package/skills/geniml/scripts/consensus_plan.py +416 -0
- package/skills/geniml/scripts/corpus_auditor.py +304 -0
- package/skills/geniml/scripts/embedding_plan.py +476 -0
- package/skills/geniml/scripts/model_artifact_inspector.py +358 -0
- package/skills/geniml/scripts/tokenizer_compatibility.py +321 -0
- package/skills/genomic-coordinates/SKILL.md +189 -0
- package/skills/genomic-coordinates/references/format-conventions.md +205 -0
- package/skills/genomic-coordinates/references/reference-builds.md +154 -0
- package/skills/genomic-coordinates/references/transcript-coordinates.md +141 -0
- package/skills/genomic-coordinates/references/variant-representation.md +155 -0
- package/skills/genomic-coordinates/scripts/_common.py +335 -0
- package/skills/genomic-coordinates/scripts/audit_intervals.py +511 -0
- package/skills/genomic-coordinates/scripts/check_contigs.py +382 -0
- package/skills/genomic-coordinates/scripts/convert_coords.py +180 -0
- package/skills/genomic-coordinates/scripts/normalize_variant.py +290 -0
- package/skills/genomic-intelligence/SKILL.md +243 -0
- package/skills/genomic-intelligence/references/api-and-auth.md +45 -0
- package/skills/genomic-intelligence/references/mcp.md +94 -0
- package/skills/genomic-intelligence/references/sequence-acquisition.md +52 -0
- package/skills/genomic-intelligence/references/tasks.md +75 -0
- package/skills/geomaster/README.md +105 -0
- package/skills/geomaster/SKILL.md +366 -0
- package/skills/geomaster/references/advanced-gis.md +376 -0
- package/skills/geomaster/references/big-data.md +363 -0
- package/skills/geomaster/references/code-examples.md +531 -0
- package/skills/geomaster/references/coordinate-systems.md +364 -0
- package/skills/geomaster/references/core-libraries.md +273 -0
- package/skills/geomaster/references/data-sources.md +330 -0
- package/skills/geomaster/references/gis-software.md +369 -0
- package/skills/geomaster/references/industry-applications.md +420 -0
- package/skills/geomaster/references/machine-learning.md +462 -0
- package/skills/geomaster/references/programming-languages.md +456 -0
- package/skills/geomaster/references/remote-sensing.md +370 -0
- package/skills/geomaster/references/scientific-domains.md +416 -0
- package/skills/geomaster/references/specialized-topics.md +428 -0
- package/skills/geomaster/references/troubleshooting.md +439 -0
- package/skills/geopandas/SKILL.md +250 -0
- package/skills/geopandas/references/crs-management.md +231 -0
- package/skills/geopandas/references/data-io.md +323 -0
- package/skills/geopandas/references/data-structures.md +207 -0
- package/skills/geopandas/references/geometric-operations.md +262 -0
- package/skills/geopandas/references/spatial-analysis.md +294 -0
- package/skills/geopandas/references/visualization.md +230 -0
- package/skills/geopandas/scripts/_common.py +605 -0
- package/skills/geopandas/scripts/crs_reprojection_plan.py +210 -0
- package/skills/geopandas/scripts/export_plan.py +305 -0
- package/skills/geopandas/scripts/geometry_validity_report.py +227 -0
- package/skills/geopandas/scripts/sensitive_coordinates_checklist.py +230 -0
- package/skills/geopandas/scripts/spatial_join_audit.py +368 -0
- package/skills/geopandas/scripts/vector_inventory.py +140 -0
- package/skills/get-available-resources/SKILL.md +260 -0
- package/skills/get-available-resources/references/resource_semantics.md +206 -0
- package/skills/get-available-resources/references/snapshot_schema.md +172 -0
- package/skills/get-available-resources/references/sources.md +124 -0
- package/skills/get-available-resources/scripts/_common.py +190 -0
- package/skills/get-available-resources/scripts/accelerator_diagnostics.py +151 -0
- package/skills/get-available-resources/scripts/detect_resources.py +1767 -0
- package/skills/get-available-resources/scripts/plan_workload.py +311 -0
- package/skills/get-available-resources/scripts/snapshot_tools.py +486 -0
- package/skills/gget/SKILL.md +153 -0
- package/skills/gget/references/common_workflows.md +120 -0
- package/skills/gget/references/database_info.md +336 -0
- package/skills/gget/references/module_catalog.md +733 -0
- package/skills/gget/references/module_reference.md +526 -0
- package/skills/gget/references/workflows.md +815 -0
- package/skills/gget/scripts/batch_sequence_analysis.py +192 -0
- package/skills/gget/scripts/enrichment_pipeline.py +235 -0
- package/skills/gget/scripts/gene_analysis.py +175 -0
- package/skills/ginkgo-cloud-lab/SKILL.md +106 -0
- package/skills/ginkgo-cloud-lab/references/cell-free-protein-expression-hibit.md +53 -0
- package/skills/ginkgo-cloud-lab/references/cell-free-protein-expression-optimization.md +85 -0
- package/skills/ginkgo-cloud-lab/references/cell-free-protein-expression-validation.md +71 -0
- package/skills/ginkgo-cloud-lab/references/cfps-expression-purification-quantification.md +60 -0
- package/skills/ginkgo-cloud-lab/references/cfps-strep-purification-thermal-shift.md +63 -0
- package/skills/ginkgo-cloud-lab/references/cfps-strep-tag-purification-a280.md +55 -0
- package/skills/ginkgo-cloud-lab/references/echo-ms-cfps-detection.md +49 -0
- package/skills/ginkgo-cloud-lab/references/echo-ms-method-onboarding.md +56 -0
- package/skills/ginkgo-cloud-lab/references/ecoli-expression-purification-quantification.md +49 -0
- package/skills/ginkgo-cloud-lab/references/ecoli-minibinder-expression-histag-a280.md +62 -0
- package/skills/ginkgo-cloud-lab/references/ecoli-protein-expression-hibit.md +44 -0
- package/skills/ginkgo-cloud-lab/references/ecoli-protein-expression-histag-a280.md +47 -0
- package/skills/ginkgo-cloud-lab/references/fluorescent-pixel-art-generation.md +73 -0
- package/skills/ginkgo-cloud-lab/references/ivt-rna-synthesis-qpcr.md +67 -0
- package/skills/ginkgo-cloud-lab/references/minibinder-strep-tag-a280.md +58 -0
- package/skills/ginkgo-cloud-lab/references/pichia-protein-expression-labchip.md +43 -0
- package/skills/ginkgo-cloud-lab/references/spr-target-onboarding.md +58 -0
- package/skills/glycoengineering/SKILL.md +339 -0
- package/skills/glycoengineering/references/glycan_databases.md +165 -0
- package/skills/gtars/SKILL.md +282 -0
- package/skills/gtars/references/cli.md +334 -0
- package/skills/gtars/references/coverage.md +224 -0
- package/skills/gtars/references/overlap.md +220 -0
- package/skills/gtars/references/python-api.md +280 -0
- package/skills/gtars/references/refget.md +318 -0
- package/skills/gtars/references/tokenizers.md +256 -0
- package/skills/gtars/scripts/__init__.py +1 -0
- package/skills/gtars/scripts/_common.py +461 -0
- package/skills/gtars/scripts/artifact_inspector.py +328 -0
- package/skills/gtars/scripts/bed_validator.py +183 -0
- package/skills/gtars/scripts/coverage_preflight.py +256 -0
- package/skills/gtars/scripts/execution_plan.py +365 -0
- package/skills/gtars/scripts/refget_digest_plan.py +311 -0
- package/skills/gtars/scripts/tokenizer_manifest.py +238 -0
- package/skills/histolab/SKILL.md +243 -0
- package/skills/histolab/references/core_capabilities.md +305 -0
- package/skills/histolab/references/filters_preprocessing.md +537 -0
- package/skills/histolab/references/slide_management.md +184 -0
- package/skills/histolab/references/tile_extraction.md +421 -0
- package/skills/histolab/references/tissue_masks.md +251 -0
- package/skills/histolab/references/typical_workflows.md +196 -0
- package/skills/histolab/references/visualization.md +548 -0
- package/skills/hugging-science/SKILL.md +132 -0
- package/skills/hugging-science/references/flagship-resources.md +81 -0
- package/skills/hugging-science/references/topics-and-slugs.md +82 -0
- package/skills/hugging-science/references/using-datasets.md +107 -0
- package/skills/hugging-science/references/using-models.md +122 -0
- package/skills/hugging-science/references/using-spaces.md +119 -0
- package/skills/hugging-science/scripts/fetch_catalog.py +358 -0
- package/skills/hypogenic/SKILL.md +290 -0
- package/skills/hypogenic/assets/dataset_manifest.example.json +30 -0
- package/skills/hypogenic/assets/result.example.json +18 -0
- package/skills/hypogenic/assets/run_config.example.json +46 -0
- package/skills/hypogenic/assets/task_config.example.yaml +38 -0
- package/skills/hypogenic/references/configuration.md +136 -0
- package/skills/hypogenic/references/datasets.md +146 -0
- package/skills/hypogenic/references/evaluation.md +155 -0
- package/skills/hypogenic/references/security.md +167 -0
- package/skills/hypogenic/references/sources.md +113 -0
- package/skills/hypogenic/references/upstream.md +188 -0
- package/skills/hypogenic/scripts/__init__.py +1 -0
- package/skills/hypogenic/scripts/_common.py +1312 -0
- package/skills/hypogenic/scripts/audit_dataset.py +410 -0
- package/skills/hypogenic/scripts/evaluate_local.py +250 -0
- package/skills/hypogenic/scripts/inspect_outputs.py +166 -0
- package/skills/hypogenic/scripts/plan_run.py +247 -0
- package/skills/hypogenic/scripts/validate_config.py +192 -0
- package/skills/hypothesis-generation/SKILL.md +264 -0
- package/skills/hypothesis-generation/assets/evidence_ledger_template.csv +2 -0
- package/skills/hypothesis-generation/assets/falsification_controls_template.json +116 -0
- package/skills/hypothesis-generation/assets/hypothesis_record_template.json +331 -0
- package/skills/hypothesis-generation/assets/operationalization_template.json +56 -0
- package/skills/hypothesis-generation/assets/prediction_rival_matrix_template.csv +3 -0
- package/skills/hypothesis-generation/assets/preregistration_scaffold_template.md +137 -0
- package/skills/hypothesis-generation/assets/search_boundary_template.json +23 -0
- package/skills/hypothesis-generation/assets/source_ledger.csv +37 -0
- package/skills/hypothesis-generation/references/causal_inference_and_claims.md +190 -0
- package/skills/hypothesis-generation/references/concepts_and_workflow.md +173 -0
- package/skills/hypothesis-generation/references/ethics_safety_and_ai.md +216 -0
- package/skills/hypothesis-generation/references/experimental_design_patterns.md +301 -0
- package/skills/hypothesis-generation/references/hypothesis_quality_criteria.md +203 -0
- package/skills/hypothesis-generation/references/literature_search_strategies.md +208 -0
- package/skills/hypothesis-generation/references/preregistration_and_open_science.md +205 -0
- package/skills/hypothesis-generation/references/security_validation.md +74 -0
- package/skills/hypothesis-generation/references/source_ledger.md +116 -0
- package/skills/hypothesis-generation/references/tool_reference.md +246 -0
- package/skills/hypothesis-generation/scripts/_common.py +412 -0
- package/skills/hypothesis-generation/scripts/audit_evidence_ledger.py +337 -0
- package/skills/hypothesis-generation/scripts/check_falsification_controls.py +455 -0
- package/skills/hypothesis-generation/scripts/check_operationalization.py +237 -0
- package/skills/hypothesis-generation/scripts/generate_preregistration_scaffold.py +384 -0
- package/skills/hypothesis-generation/scripts/lint_causal_claims.py +189 -0
- package/skills/hypothesis-generation/scripts/validate_hypothesis_schema.py +1078 -0
- package/skills/hypothesis-generation/scripts/validate_prediction_matrix.py +286 -0
- package/skills/imaging-data-commons/SKILL.md +496 -0
- package/skills/imaging-data-commons/references/bigquery_guide.md +858 -0
- package/skills/imaging-data-commons/references/cli_guide.md +287 -0
- package/skills/imaging-data-commons/references/clinical_data_guide.md +328 -0
- package/skills/imaging-data-commons/references/cloud_storage_guide.md +333 -0
- package/skills/imaging-data-commons/references/dicomweb_guide.md +399 -0
- package/skills/imaging-data-commons/references/digital_pathology_guide.md +403 -0
- package/skills/imaging-data-commons/references/index_tables_guide.md +203 -0
- package/skills/imaging-data-commons/references/licensing_and_citation.md +230 -0
- package/skills/imaging-data-commons/references/mcp_guide.md +181 -0
- package/skills/imaging-data-commons/references/parquet_access_guide.md +200 -0
- package/skills/imaging-data-commons/references/rest_api_guide.md +612 -0
- package/skills/imaging-data-commons/references/sql_patterns.md +462 -0
- package/skills/imaging-data-commons/references/use_cases.md +277 -0
- package/skills/imaging-data-commons/scripts/check_version.py +132 -0
- package/skills/infographics/SKILL.md +315 -0
- package/skills/infographics/references/color_palettes.md +496 -0
- package/skills/infographics/references/design_principles.md +636 -0
- package/skills/infographics/references/infographic_type_catalog.md +158 -0
- package/skills/infographics/references/infographic_types.md +907 -0
- package/skills/infographics/references/iterative_refinement.md +119 -0
- package/skills/infographics/scripts/generate_infographic.py +291 -0
- package/skills/infographics/scripts/generate_infographic_ai.py +1446 -0
- package/skills/iso-standards-readiness/SKILL.md +352 -0
- package/skills/iso-standards-readiness/assets/templates/capa-record-template.json +99 -0
- package/skills/iso-standards-readiness/assets/templates/document-register-template.json +75 -0
- package/skills/iso-standards-readiness/assets/templates/evidence-manifest-template.json +65 -0
- package/skills/iso-standards-readiness/assets/templates/laboratory-scope-intake-template.json +111 -0
- package/skills/iso-standards-readiness/assets/templates/medical-laboratory-scope-intake-template.json +111 -0
- package/skills/iso-standards-readiness/assets/templates/procedures/CAPA-procedure-template.md +148 -0
- package/skills/iso-standards-readiness/assets/templates/procedures/document-control-procedure-template.md +132 -0
- package/skills/iso-standards-readiness/assets/templates/qmsr-transition-template.json +181 -0
- package/skills/iso-standards-readiness/assets/templates/quality-manual-template.md +182 -0
- package/skills/iso-standards-readiness/assets/templates/scope-intake-template.json +109 -0
- package/skills/iso-standards-readiness/assets/templates/supplier-controls-template.json +119 -0
- package/skills/iso-standards-readiness/assets/templates/traceability-matrix-template.json +154 -0
- package/skills/iso-standards-readiness/references/assurance-lanes.md +116 -0
- package/skills/iso-standards-readiness/references/evidence-architecture.md +282 -0
- package/skills/iso-standards-readiness/references/gap-analysis-checklist.md +346 -0
- package/skills/iso-standards-readiness/references/iso-13485.md +236 -0
- package/skills/iso-standards-readiness/references/iso-14971.md +172 -0
- package/skills/iso-standards-readiness/references/iso-15189.md +219 -0
- package/skills/iso-standards-readiness/references/iso-17025.md +208 -0
- package/skills/iso-standards-readiness/references/quality-manual-guide.md +282 -0
- package/skills/iso-standards-readiness/references/source-ledger.md +357 -0
- package/skills/iso-standards-readiness/scripts/_catalog.py +248 -0
- package/skills/iso-standards-readiness/scripts/_common.py +558 -0
- package/skills/iso-standards-readiness/scripts/audit_document_records.py +148 -0
- package/skills/iso-standards-readiness/scripts/check_capa.py +240 -0
- package/skills/iso-standards-readiness/scripts/check_qmsr_transition.py +164 -0
- package/skills/iso-standards-readiness/scripts/check_supplier_controls.py +166 -0
- package/skills/iso-standards-readiness/scripts/check_traceability.py +171 -0
- package/skills/iso-standards-readiness/scripts/gap_analyzer.py +167 -0
- package/skills/iso-standards-readiness/scripts/validate_evidence_manifest.py +246 -0
- package/skills/iso-standards-readiness/scripts/validate_scope_intake.py +209 -0
- package/skills/lab-hardware-cad/SKILL.md +372 -0
- package/skills/lab-hardware-cad/assets/standards.json +198 -0
- package/skills/lab-hardware-cad/references/behavior-rigs.md +136 -0
- package/skills/lab-hardware-cad/references/build123d-patterns.md +363 -0
- package/skills/lab-hardware-cad/references/fabrication-limits.md +156 -0
- package/skills/lab-hardware-cad/references/labware-adapters.md +190 -0
- package/skills/lab-hardware-cad/references/microfluidics.md +157 -0
- package/skills/lab-hardware-cad/references/optomechanics.md +148 -0
- package/skills/lab-hardware-cad/references/validation.md +132 -0
- package/skills/lab-hardware-cad/scripts/_common.py +650 -0
- package/skills/lab-hardware-cad/scripts/check.py +645 -0
- package/skills/lab-hardware-cad/scripts/gen.py +264 -0
- package/skills/lab-hardware-cad/scripts/snapshot.py +278 -0
- package/skills/labarchive-integration/SKILL.md +216 -0
- package/skills/labarchive-integration/references/api_reference.md +250 -0
- package/skills/labarchive-integration/references/authentication_guide.md +191 -0
- package/skills/labarchive-integration/references/integrations.md +162 -0
- package/skills/labarchive-integration/references/sources.md +213 -0
- package/skills/labarchive-integration/scripts/entry_operations.py +381 -0
- package/skills/labarchive-integration/scripts/notebook_operations.py +451 -0
- package/skills/labarchive-integration/scripts/setup_config.py +258 -0
- package/skills/lamindb/SKILL.md +408 -0
- package/skills/lamindb/references/annotation-validation.md +510 -0
- package/skills/lamindb/references/core-concepts.md +383 -0
- package/skills/lamindb/references/data-management.md +432 -0
- package/skills/lamindb/references/integrations.md +663 -0
- package/skills/lamindb/references/ontologies.md +498 -0
- package/skills/lamindb/references/setup-deployment.md +755 -0
- package/skills/latchbio-integration/SKILL.md +227 -0
- package/skills/latchbio-integration/references/data-management.md +257 -0
- package/skills/latchbio-integration/references/latch-mcp.md +158 -0
- package/skills/latchbio-integration/references/nextflow-snakemake.md +258 -0
- package/skills/latchbio-integration/references/operations-and-debugging.md +320 -0
- package/skills/latchbio-integration/references/registry.md +275 -0
- package/skills/latchbio-integration/references/resource-configuration.md +274 -0
- package/skills/latchbio-integration/references/ui-and-automation.md +355 -0
- package/skills/latchbio-integration/references/verified-workflows.md +226 -0
- package/skills/latchbio-integration/references/workflow-creation.md +275 -0
- package/skills/latchbio-integration/scripts/inspect_latch_sdk.py +290 -0
- package/skills/latex-posters/SKILL.md +369 -0
- package/skills/latex-posters/assets/baposter_template.tex +257 -0
- package/skills/latex-posters/assets/beamerposter_template.tex +244 -0
- package/skills/latex-posters/assets/poster_quality_checklist.md +358 -0
- package/skills/latex-posters/assets/tikzposter_template.tex +251 -0
- package/skills/latex-posters/references/README.md +439 -0
- package/skills/latex-posters/references/ai_graphics_for_posters.md +524 -0
- package/skills/latex-posters/references/compilation_and_quality_control.md +467 -0
- package/skills/latex-posters/references/latex_poster_packages.md +745 -0
- package/skills/latex-posters/references/latex_poster_reference.md +241 -0
- package/skills/latex-posters/references/poster_content_guide.md +748 -0
- package/skills/latex-posters/references/poster_design_principles.md +806 -0
- package/skills/latex-posters/references/poster_layout_design.md +900 -0
- package/skills/latex-posters/references/poster_patterns_and_presentation.md +81 -0
- package/skills/latex-posters/scripts/generate_schematic.py +198 -0
- package/skills/latex-posters/scripts/generate_schematic_ai.py +950 -0
- package/skills/latex-posters/scripts/review_poster.sh +214 -0
- package/skills/liteparse/SKILL.md +295 -0
- package/skills/liteparse/references/api_reference.md +169 -0
- package/skills/liteparse/references/choosing_a_parser.md +70 -0
- package/skills/liteparse/references/cli_reference.md +118 -0
- package/skills/liteparse/references/ocr_and_formats.md +143 -0
- package/skills/liteparse/references/output_formats.md +146 -0
- package/skills/liteparse/scripts/batch_parse_dir.py +163 -0
- package/skills/literature-review/SKILL.md +263 -0
- package/skills/literature-review/assets/review_template.md +412 -0
- package/skills/literature-review/references/citation_styles.md +166 -0
- package/skills/literature-review/references/core_workflow.md +260 -0
- package/skills/literature-review/references/database_strategies.md +455 -0
- package/skills/literature-review/references/example_workflow.md +68 -0
- package/skills/literature-review/references/search_and_citation.md +157 -0
- package/skills/literature-review/scripts/generate_pdf.py +176 -0
- package/skills/literature-review/scripts/generate_schematic.py +198 -0
- package/skills/literature-review/scripts/generate_schematic_ai.py +950 -0
- package/skills/literature-review/scripts/search_databases.py +303 -0
- package/skills/literature-review/scripts/verify_citations.py +222 -0
- package/skills/markdown-mermaid-writing/SKILL.md +322 -0
- package/skills/markdown-mermaid-writing/assets/examples/example-research-report.md +221 -0
- package/skills/markdown-mermaid-writing/references/diagrams/architecture.md +108 -0
- package/skills/markdown-mermaid-writing/references/diagrams/block.md +177 -0
- package/skills/markdown-mermaid-writing/references/diagrams/c4.md +136 -0
- package/skills/markdown-mermaid-writing/references/diagrams/class.md +246 -0
- package/skills/markdown-mermaid-writing/references/diagrams/complex_examples.md +384 -0
- package/skills/markdown-mermaid-writing/references/diagrams/er.md +222 -0
- package/skills/markdown-mermaid-writing/references/diagrams/flowchart.md +177 -0
- package/skills/markdown-mermaid-writing/references/diagrams/gantt.md +138 -0
- package/skills/markdown-mermaid-writing/references/diagrams/git_graph.md +74 -0
- package/skills/markdown-mermaid-writing/references/diagrams/kanban.md +107 -0
- package/skills/markdown-mermaid-writing/references/diagrams/mindmap.md +74 -0
- package/skills/markdown-mermaid-writing/references/diagrams/packet.md +55 -0
- package/skills/markdown-mermaid-writing/references/diagrams/pie.md +52 -0
- package/skills/markdown-mermaid-writing/references/diagrams/quadrant.md +66 -0
- package/skills/markdown-mermaid-writing/references/diagrams/radar.md +59 -0
- package/skills/markdown-mermaid-writing/references/diagrams/requirement.md +88 -0
- package/skills/markdown-mermaid-writing/references/diagrams/sankey.md +71 -0
- package/skills/markdown-mermaid-writing/references/diagrams/sequence.md +174 -0
- package/skills/markdown-mermaid-writing/references/diagrams/state.md +150 -0
- package/skills/markdown-mermaid-writing/references/diagrams/timeline.md +96 -0
- package/skills/markdown-mermaid-writing/references/diagrams/treemap.md +66 -0
- package/skills/markdown-mermaid-writing/references/diagrams/user_journey.md +108 -0
- package/skills/markdown-mermaid-writing/references/diagrams/xy_chart.md +53 -0
- package/skills/markdown-mermaid-writing/references/diagrams/zenuml.md +71 -0
- package/skills/markdown-mermaid-writing/references/markdown_style_guide.md +733 -0
- package/skills/markdown-mermaid-writing/references/mermaid_style_guide.md +458 -0
- package/skills/markdown-mermaid-writing/templates/decision_record.md +211 -0
- package/skills/markdown-mermaid-writing/templates/how_to_guide.md +275 -0
- package/skills/markdown-mermaid-writing/templates/issue.md +303 -0
- package/skills/markdown-mermaid-writing/templates/kanban.md +223 -0
- package/skills/markdown-mermaid-writing/templates/presentation.md +312 -0
- package/skills/markdown-mermaid-writing/templates/project_documentation.md +412 -0
- package/skills/markdown-mermaid-writing/templates/pull_request.md +319 -0
- package/skills/markdown-mermaid-writing/templates/research_paper.md +304 -0
- package/skills/markdown-mermaid-writing/templates/status_report.md +185 -0
- package/skills/market-research-reports/SKILL.md +337 -0
- package/skills/market-research-reports/assets/FORMATTING_GUIDE.md +149 -0
- package/skills/market-research-reports/assets/claims_ledger_template.csv +4 -0
- package/skills/market-research-reports/assets/competitor_feature_matrix_template.csv +5 -0
- package/skills/market-research-reports/assets/consistency_check_template.csv +3 -0
- package/skills/market-research-reports/assets/forecast_sensitivity_template.json +90 -0
- package/skills/market-research-reports/assets/market_report_template.tex +279 -0
- package/skills/market-research-reports/assets/market_research.sty +241 -0
- package/skills/market-research-reports/assets/market_sizing_scenarios_template.json +129 -0
- package/skills/market-research-reports/assets/report_manifest_template.json +27 -0
- package/skills/market-research-reports/assets/source_ledger_template.csv +4 -0
- package/skills/market-research-reports/references/data_analysis_patterns.md +290 -0
- package/skills/market-research-reports/references/evidence_model.md +148 -0
- package/skills/market-research-reports/references/methods_and_ethics.md +162 -0
- package/skills/market-research-reports/references/official_data_sources.md +196 -0
- package/skills/market-research-reports/references/report_structure_guide.md +283 -0
- package/skills/market-research-reports/references/sources.md +73 -0
- package/skills/market-research-reports/references/visual_generation_guide.md +158 -0
- package/skills/market-research-reports/scripts/_common.py +312 -0
- package/skills/market-research-reports/scripts/audit_claim_citations.py +326 -0
- package/skills/market-research-reports/scripts/calculate_market_sizing.py +389 -0
- package/skills/market-research-reports/scripts/check_unit_consistency.py +217 -0
- package/skills/market-research-reports/scripts/forecast_sensitivity.py +326 -0
- package/skills/market-research-reports/scripts/generate_report_scaffold.py +444 -0
- package/skills/market-research-reports/scripts/validate_competitor_matrix.py +223 -0
- package/skills/market-research-reports/scripts/validate_evidence_ledger.py +291 -0
- package/skills/markitdown/SKILL.md +264 -0
- package/skills/markitdown/references/api_reference.md +418 -0
- package/skills/markitdown/references/cloud_and_ocr.md +320 -0
- package/skills/markitdown/references/file_formats.md +281 -0
- package/skills/markitdown/references/mcp_and_plugins.md +243 -0
- package/skills/markitdown/references/migration.md +356 -0
- package/skills/markitdown/references/security.md +246 -0
- package/skills/markitdown/references/workflows.md +309 -0
- package/skills/markitdown/scripts/batch_convert.py +354 -0
- package/skills/markitdown/scripts/convert_literature.py +405 -0
- package/skills/markitdown/scripts/inspect_installation.py +162 -0
- package/skills/matchms/SKILL.md +276 -0
- package/skills/matchms/references/filtering.md +299 -0
- package/skills/matchms/references/importing_exporting.md +323 -0
- package/skills/matchms/references/migration.md +387 -0
- package/skills/matchms/references/similarity.md +413 -0
- package/skills/matchms/references/sources.md +113 -0
- package/skills/matchms/references/workflows.md +451 -0
- package/skills/matchms/scripts/library_search.py +593 -0
- package/skills/matlab/SKILL.md +274 -0
- package/skills/matlab/assets/project_manifest_template.json +33 -0
- package/skills/matlab/assets/python_compatibility_r2026a.json +27 -0
- package/skills/matlab/assets/reproducibility_manifest_template.json +32 -0
- package/skills/matlab/references/data-import-export.md +221 -0
- package/skills/matlab/references/executing-scripts.md +213 -0
- package/skills/matlab/references/graphics-visualization.md +181 -0
- package/skills/matlab/references/mathematics.md +208 -0
- package/skills/matlab/references/matrices-arrays.md +228 -0
- package/skills/matlab/references/octave-compatibility.md +212 -0
- package/skills/matlab/references/programming.md +225 -0
- package/skills/matlab/references/python-integration.md +248 -0
- package/skills/matlab/scripts/_common.py +263 -0
- package/skills/matlab/scripts/generate_function_scaffold.py +165 -0
- package/skills/matlab/scripts/inventory_mat_file.py +351 -0
- package/skills/matlab/scripts/plan_batch_command.py +257 -0
- package/skills/matlab/scripts/plan_python_compatibility.py +176 -0
- package/skills/matlab/scripts/reproducibility_report.py +233 -0
- package/skills/matlab/scripts/scan_m_code.py +433 -0
- package/skills/matlab/scripts/validate_project_manifest.py +348 -0
- package/skills/matplotlib/SKILL.md +378 -0
- package/skills/matplotlib/references/api_reference.md +409 -0
- package/skills/matplotlib/references/common_issues.md +562 -0
- package/skills/matplotlib/references/plot_types.md +469 -0
- package/skills/matplotlib/references/styling_guide.md +600 -0
- package/skills/matplotlib/scripts/plot_template.py +406 -0
- package/skills/matplotlib/scripts/style_configurator.py +412 -0
- package/skills/medchem/SKILL.md +321 -0
- package/skills/medchem/references/api_guide.md +331 -0
- package/skills/medchem/references/rules_catalog.md +328 -0
- package/skills/medchem/scripts/filter_molecules.py +302 -0
- package/skills/modal/SKILL.md +468 -0
- package/skills/modal/references/api_reference.md +225 -0
- package/skills/modal/references/examples.md +276 -0
- package/skills/modal/references/functions.md +260 -0
- package/skills/modal/references/getting-started.md +171 -0
- package/skills/modal/references/gpu.md +177 -0
- package/skills/modal/references/images.md +266 -0
- package/skills/modal/references/resources.md +117 -0
- package/skills/modal/references/scaling.md +173 -0
- package/skills/modal/references/scheduled-jobs.md +147 -0
- package/skills/modal/references/secrets.md +119 -0
- package/skills/modal/references/volumes.md +247 -0
- package/skills/modal/references/web-endpoints.md +259 -0
- package/skills/molecular-dynamics/SKILL.md +458 -0
- package/skills/molecular-dynamics/references/mdanalysis_analysis.md +208 -0
- package/skills/molfeat/SKILL.md +348 -0
- package/skills/molfeat/references/api_reference.md +429 -0
- package/skills/molfeat/references/available_featurizers.md +335 -0
- package/skills/molfeat/references/choosing_a_featurizer.md +192 -0
- package/skills/molfeat/references/examples.md +720 -0
- package/skills/ncats-arax/SKILL.md +178 -0
- package/skills/ncats-arax/references/output-schema.md +186 -0
- package/skills/ncats-arax/references/query-contract.md +140 -0
- package/skills/ncats-arax/scripts/arax_client.py +2087 -0
- package/skills/networkx/SKILL.md +440 -0
- package/skills/networkx/references/algorithms.md +384 -0
- package/skills/networkx/references/generators.md +385 -0
- package/skills/networkx/references/graph-basics.md +284 -0
- package/skills/networkx/references/io.md +457 -0
- package/skills/networkx/references/visualization.md +531 -0
- package/skills/neurokit2/SKILL.md +323 -0
- package/skills/neurokit2/references/bio_module.md +244 -0
- package/skills/neurokit2/references/complexity.md +212 -0
- package/skills/neurokit2/references/ecg_cardiac.md +193 -0
- package/skills/neurokit2/references/eda.md +185 -0
- package/skills/neurokit2/references/eeg.md +204 -0
- package/skills/neurokit2/references/emg.md +157 -0
- package/skills/neurokit2/references/eog.md +154 -0
- package/skills/neurokit2/references/epochs_events.md +199 -0
- package/skills/neurokit2/references/hrv.md +205 -0
- package/skills/neurokit2/references/ppg.md +191 -0
- package/skills/neurokit2/references/rsp.md +212 -0
- package/skills/neurokit2/references/signal_processing.md +160 -0
- package/skills/neurokit2/scripts/_common.py +567 -0
- package/skills/neurokit2/scripts/ecg_hrv_pipeline.py +303 -0
- package/skills/neurokit2/scripts/eda_pipeline.py +288 -0
- package/skills/neurokit2/scripts/generate_synthetic.py +221 -0
- package/skills/neurokit2/scripts/inspect_signal.py +362 -0
- package/skills/neurokit2/scripts/plan_epochs.py +281 -0
- package/skills/neurokit2/scripts/validate_multimodal.py +350 -0
- package/skills/neuropixels-analysis/SKILL.md +412 -0
- package/skills/neuropixels-analysis/assets/analysis_template.py +271 -0
- package/skills/neuropixels-analysis/references/AI_CURATION.md +164 -0
- package/skills/neuropixels-analysis/references/ANALYSIS.md +392 -0
- package/skills/neuropixels-analysis/references/AUTOMATED_CURATION.md +435 -0
- package/skills/neuropixels-analysis/references/MOTION_CORRECTION.md +323 -0
- package/skills/neuropixels-analysis/references/PREPROCESSING.md +273 -0
- package/skills/neuropixels-analysis/references/QUALITY_METRICS.md +359 -0
- package/skills/neuropixels-analysis/references/SPIKE_SORTING.md +339 -0
- package/skills/neuropixels-analysis/references/api_reference.md +229 -0
- package/skills/neuropixels-analysis/references/plotting_guide.md +454 -0
- package/skills/neuropixels-analysis/references/standard_workflow.md +305 -0
- package/skills/neuropixels-analysis/scripts/compute_metrics.py +182 -0
- package/skills/neuropixels-analysis/scripts/explore_recording.py +168 -0
- package/skills/neuropixels-analysis/scripts/export_to_phy.py +79 -0
- package/skills/neuropixels-analysis/scripts/neuropixels_pipeline.py +442 -0
- package/skills/neuropixels-analysis/scripts/preprocess_recording.py +122 -0
- package/skills/neuropixels-analysis/scripts/run_sorting.py +98 -0
- package/skills/nextflow/SKILL.md +195 -0
- package/skills/nextflow/references/configuration.md +276 -0
- package/skills/nextflow/references/containers.md +92 -0
- package/skills/nextflow/references/developing.md +301 -0
- package/skills/nextflow/references/language.md +327 -0
- package/skills/nextflow/references/nf-core-tools.md +130 -0
- package/skills/nextflow/references/running-pipelines.md +131 -0
- package/skills/nextflow/references/testing.md +189 -0
- package/skills/omero-integration/SKILL.md +222 -0
- package/skills/omero-integration/references/advanced.md +273 -0
- package/skills/omero-integration/references/connection.md +293 -0
- package/skills/omero-integration/references/data_access.md +359 -0
- package/skills/omero-integration/references/image_processing.md +286 -0
- package/skills/omero-integration/references/metadata.md +313 -0
- package/skills/omero-integration/references/rois.md +291 -0
- package/skills/omero-integration/references/scripts.md +304 -0
- package/skills/omero-integration/references/sources.md +194 -0
- package/skills/omero-integration/references/tables.md +269 -0
- package/skills/omero-integration/scripts/export_image_metadata.py +560 -0
- package/skills/omero-integration/scripts/inventory.py +302 -0
- package/skills/omero-integration/scripts/omero_common.py +490 -0
- package/skills/omero-integration/scripts/plan_transfer.py +393 -0
- package/skills/omero-integration/scripts/validate_config.py +140 -0
- package/skills/onekgpd/SKILL.md +371 -0
- package/skills/onekgpd/assets/kgpe.json +48032 -0
- package/skills/onekgpd/references/annotation_vocabularies.md +187 -0
- package/skills/onekgpd/references/onekgpd_commands.md +296 -0
- package/skills/onekgpd/scripts/onekgpd_api.py +794 -0
- package/skills/onekgpd/scripts/onekgpd_meta.py +485 -0
- package/skills/ontology-term-resolution/SKILL.md +147 -0
- package/skills/ontology-term-resolution/references/curation-rules.md +110 -0
- package/skills/ontology-term-resolution/references/ols4-api.md +135 -0
- package/skills/ontology-term-resolution/references/ontology-registry.md +110 -0
- package/skills/ontology-term-resolution/scripts/ols_client.py +341 -0
- package/skills/ontology-term-resolution/scripts/resolve_terms.py +255 -0
- package/skills/ontology-term-resolution/scripts/validate_terms.py +297 -0
- package/skills/open-notebook/SKILL.md +297 -0
- package/skills/open-notebook/references/api_reference.md +715 -0
- package/skills/open-notebook/references/architecture.md +163 -0
- package/skills/open-notebook/references/configuration.md +226 -0
- package/skills/open-notebook/references/examples.md +290 -0
- package/skills/open-notebook/scripts/chat_interaction.py +190 -0
- package/skills/open-notebook/scripts/notebook_management.py +142 -0
- package/skills/open-notebook/scripts/source_ingestion.py +160 -0
- package/skills/openpiv/SKILL.md +469 -0
- package/skills/openpiv/references/advanced_algorithms.md +233 -0
- package/skills/openpiv/scripts/__init__.py +1 -0
- package/skills/openpiv/scripts/analyze.py +143 -0
- package/skills/openpiv/scripts/run_example.py +78 -0
- package/skills/openpiv/scripts/runner.py +214 -0
- package/skills/opentrons-integration/SKILL.md +322 -0
- package/skills/opentrons-integration/references/api_reference.md +382 -0
- package/skills/opentrons-integration/references/liquid_handling.md +387 -0
- package/skills/opentrons-integration/references/migration-api-2-19-to-2-29.md +328 -0
- package/skills/opentrons-integration/references/modules_and_deck.md +409 -0
- package/skills/opentrons-integration/references/protocol_authoring.md +352 -0
- package/skills/opentrons-integration/references/sources.md +151 -0
- package/skills/opentrons-integration/references/validation_and_operations.md +314 -0
- package/skills/opentrons-integration/requirements-flex.txt +1 -0
- package/skills/opentrons-integration/requirements-ot2.txt +1 -0
- package/skills/opentrons-integration/scripts/absorbance_reader_template.py +82 -0
- package/skills/opentrons-integration/scripts/basic_protocol_template.py +68 -0
- package/skills/opentrons-integration/scripts/ot2_basic_protocol_template.py +63 -0
- package/skills/opentrons-integration/scripts/pcr_setup_template.py +146 -0
- package/skills/opentrons-integration/scripts/runtime_parameters_template.py +110 -0
- package/skills/opentrons-integration/scripts/serial_dilution_template.py +113 -0
- package/skills/optimize-for-gpu/SKILL.md +176 -0
- package/skills/optimize-for-gpu/references/code_transformation_patterns.md +301 -0
- package/skills/optimize-for-gpu/references/cucim.md +679 -0
- package/skills/optimize-for-gpu/references/cudf.md +762 -0
- package/skills/optimize-for-gpu/references/cugraph.md +733 -0
- package/skills/optimize-for-gpu/references/cuml.md +710 -0
- package/skills/optimize-for-gpu/references/cupy.md +668 -0
- package/skills/optimize-for-gpu/references/cuspatial.md +420 -0
- package/skills/optimize-for-gpu/references/cuvs.md +671 -0
- package/skills/optimize-for-gpu/references/cuxfilter.md +600 -0
- package/skills/optimize-for-gpu/references/decision_framework.md +234 -0
- package/skills/optimize-for-gpu/references/installation.md +121 -0
- package/skills/optimize-for-gpu/references/kvikio.md +612 -0
- package/skills/optimize-for-gpu/references/numba.md +808 -0
- package/skills/optimize-for-gpu/references/raft.md +312 -0
- package/skills/optimize-for-gpu/references/warp.md +623 -0
- package/skills/owasp-top10/SKILL.md +48 -0
- package/skills/pacsomatic/LICENSE +21 -0
- package/skills/pacsomatic/SKILL.md +150 -0
- package/skills/pacsomatic/config.yaml +42 -0
- package/skills/pacsomatic/references/agent-playbook.md +73 -0
- package/skills/pacsomatic/references/config-and-output.md +100 -0
- package/skills/pacsomatic/references/pacsomatic_guide.md +254 -0
- package/skills/pacsomatic/scripts/run_pacsomatic.py +794 -0
- package/skills/paper-lookup/SKILL.md +263 -0
- package/skills/paper-lookup/references/arxiv.md +275 -0
- package/skills/paper-lookup/references/biorxiv.md +163 -0
- package/skills/paper-lookup/references/core.md +150 -0
- package/skills/paper-lookup/references/crossref.md +181 -0
- package/skills/paper-lookup/references/europepmc.md +226 -0
- package/skills/paper-lookup/references/medrxiv.md +126 -0
- package/skills/paper-lookup/references/openalex.md +174 -0
- package/skills/paper-lookup/references/pmc.md +228 -0
- package/skills/paper-lookup/references/pubmed.md +124 -0
- package/skills/paper-lookup/references/semantic-scholar.md +203 -0
- package/skills/paper-lookup/references/unpaywall.md +127 -0
- package/skills/paper-lookup/scripts/_common.py +227 -0
- package/skills/paper-lookup/scripts/arxiv_atom.py +200 -0
- package/skills/paper-lookup/scripts/jats_to_text.py +324 -0
- package/skills/paper-lookup/scripts/openalex_abstract.py +163 -0
- package/skills/paper-lookup/scripts/paginate.py +490 -0
- package/skills/paperclip/SKILL.md +413 -0
- package/skills/paperclip/references/cli-reference.md +389 -0
- package/skills/paperclip/references/installation.md +341 -0
- package/skills/paperclip/references/map-reduce.md +252 -0
- package/skills/paperclip/references/python-sdk.md +323 -0
- package/skills/paperclip/references/repos-and-workspace.md +271 -0
- package/skills/paperclip/references/search-and-retrieval.md +281 -0
- package/skills/paperzilla/SKILL.md +159 -0
- package/skills/parallel-web/SKILL.md +128 -0
- package/skills/parallel-web/references/data-enrichment.md +104 -0
- package/skills/parallel-web/references/deep-research.md +91 -0
- package/skills/parallel-web/references/findall.md +81 -0
- package/skills/parallel-web/references/monitor.md +83 -0
- package/skills/parallel-web/references/web-extract.md +59 -0
- package/skills/parallel-web/references/web-search.md +100 -0
- package/skills/pathml/SKILL.md +222 -0
- package/skills/pathml/references/data_management.md +357 -0
- package/skills/pathml/references/graphs.md +335 -0
- package/skills/pathml/references/image_loading.md +301 -0
- package/skills/pathml/references/machine_learning.md +408 -0
- package/skills/pathml/references/multiparametric.md +352 -0
- package/skills/pathml/references/preprocessing.md +371 -0
- package/skills/pathml/scripts/_common.py +385 -0
- package/skills/pathml/scripts/image_qc.py +325 -0
- package/skills/pathml/scripts/plan_inference.py +282 -0
- package/skills/pathml/scripts/plan_pipeline.py +239 -0
- package/skills/pathml/scripts/slide_manifest.py +405 -0
- package/skills/pathml/scripts/validate_spatial_schema.py +420 -0
- package/skills/pathogen-variant-surveillance/SKILL.md +208 -0
- package/skills/pathogen-variant-surveillance/references/lapis-api.md +209 -0
- package/skills/pathogen-variant-surveillance/references/lineage-nomenclature.md +126 -0
- package/skills/pathogen-variant-surveillance/references/surveillance-caveats.md +149 -0
- package/skills/pathogen-variant-surveillance/scripts/lapis_client.py +776 -0
- package/skills/pathogen-variant-surveillance/scripts/lineage_prevalence.py +310 -0
- package/skills/pathogen-variant-surveillance/scripts/mutation_profile.py +215 -0
- package/skills/pathogen-variant-surveillance/scripts/reporting_lag.py +217 -0
- package/skills/pathogen-variant-surveillance/scripts/resolve_lineage.py +198 -0
- package/skills/pathway-enrichment/SKILL.md +194 -0
- package/skills/pathway-enrichment/references/databases-and-gene-sets.md +140 -0
- package/skills/pathway-enrichment/references/gseapy.md +189 -0
- package/skills/pathway-enrichment/references/interpretation.md +118 -0
- package/skills/pathway-enrichment/scripts/run_enrichment.py +231 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +322 -0
- package/skills/pdf/forms.md +294 -0
- package/skills/pdf/reference.md +612 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +65 -0
- package/skills/pdf/scripts/check_fillable_fields.py +11 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +33 -0
- package/skills/pdf/scripts/create_validation_image.py +37 -0
- package/skills/pdf/scripts/extract_form_field_info.py +122 -0
- package/skills/pdf/scripts/extract_form_structure.py +115 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +98 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
- package/skills/peer-review/SKILL.md +288 -0
- package/skills/peer-review/assets/citation_references_template.csv +2 -0
- package/skills/peer-review/assets/claim_evidence_matrix_template.csv +4 -0
- package/skills/peer-review/assets/reporting_checklist_template.csv +31 -0
- package/skills/peer-review/assets/reporting_guidelines.json +466 -0
- package/skills/peer-review/assets/review_intake_template.json +52 -0
- package/skills/peer-review/assets/review_scaffold_template.md +68 -0
- package/skills/peer-review/assets/source_ledger.csv +32 -0
- package/skills/peer-review/assets/statistical_reproducibility_template.json +210 -0
- package/skills/peer-review/assets/study_profile_template.json +12 -0
- package/skills/peer-review/references/common_issues.md +257 -0
- package/skills/peer-review/references/ethical_review_practice.md +233 -0
- package/skills/peer-review/references/reporting_standards.md +249 -0
- package/skills/peer-review/references/security_validation.md +75 -0
- package/skills/peer-review/references/statistical_reproducibility.md +329 -0
- package/skills/peer-review/references/tool_reference.md +253 -0
- package/skills/peer-review/scripts/_common.py +398 -0
- package/skills/peer-review/scripts/audit_citations.py +207 -0
- package/skills/peer-review/scripts/audit_statistics_reproducibility.py +305 -0
- package/skills/peer-review/scripts/generate_review_scaffold.py +81 -0
- package/skills/peer-review/scripts/lint_review.py +254 -0
- package/skills/peer-review/scripts/select_reporting_guidelines.py +383 -0
- package/skills/peer-review/scripts/validate_claim_evidence.py +221 -0
- package/skills/peer-review/scripts/validate_review_intake.py +452 -0
- package/skills/penetration-testing/SKILL.md +31 -0
- package/skills/pennylane/SKILL.md +240 -0
- package/skills/pennylane/references/advanced_features.md +667 -0
- package/skills/pennylane/references/devices_backends.md +562 -0
- package/skills/pennylane/references/getting_started.md +232 -0
- package/skills/pennylane/references/optimization.md +670 -0
- package/skills/pennylane/references/quantum_chemistry.md +576 -0
- package/skills/pennylane/references/quantum_circuits.md +443 -0
- package/skills/pennylane/references/quantum_ml.md +555 -0
- package/skills/phylogenetics/SKILL.md +409 -0
- package/skills/phylogenetics/references/iqtree_inference.md +181 -0
- package/skills/phylogenetics/scripts/phylogenetic_analysis.py +272 -0
- package/skills/pi-agent/SKILL.md +83 -0
- package/skills/pi-agent/references/compaction.md +76 -0
- package/skills/pi-agent/references/containerization.md +80 -0
- package/skills/pi-agent/references/custom-provider.md +131 -0
- package/skills/pi-agent/references/development.md +61 -0
- package/skills/pi-agent/references/environment-variables.md +57 -0
- package/skills/pi-agent/references/extensions.md +185 -0
- package/skills/pi-agent/references/json.md +69 -0
- package/skills/pi-agent/references/keybindings.md +58 -0
- package/skills/pi-agent/references/llama-cpp.md +69 -0
- package/skills/pi-agent/references/models.md +114 -0
- package/skills/pi-agent/references/overview.md +37 -0
- package/skills/pi-agent/references/packages.md +103 -0
- package/skills/pi-agent/references/pi-interview.md +123 -0
- package/skills/pi-agent/references/pi-mcp-adapter.md +191 -0
- package/skills/pi-agent/references/pi-subagents.md +371 -0
- package/skills/pi-agent/references/pi-web-access.md +243 -0
- package/skills/pi-agent/references/prompt-templates.md +48 -0
- package/skills/pi-agent/references/providers.md +122 -0
- package/skills/pi-agent/references/quickstart.md +73 -0
- package/skills/pi-agent/references/rpc.md +95 -0
- package/skills/pi-agent/references/sdk.md +151 -0
- package/skills/pi-agent/references/security.md +52 -0
- package/skills/pi-agent/references/session-format.md +90 -0
- package/skills/pi-agent/references/sessions.md +56 -0
- package/skills/pi-agent/references/settings.md +102 -0
- package/skills/pi-agent/references/shell-aliases.md +15 -0
- package/skills/pi-agent/references/skills.md +83 -0
- package/skills/pi-agent/references/terminal-setup.md +87 -0
- package/skills/pi-agent/references/termux.md +31 -0
- package/skills/pi-agent/references/themes.md +69 -0
- package/skills/pi-agent/references/tmux.md +44 -0
- package/skills/pi-agent/references/tui.md +97 -0
- package/skills/pi-agent/references/usage.md +129 -0
- package/skills/pi-agent/references/windows.md +23 -0
- package/skills/pkpd-modeling/SKILL.md +381 -0
- package/skills/pkpd-modeling/assets/nca-reporting-checklist.md +72 -0
- package/skills/pkpd-modeling/assets/popk-analysis-plan.md +136 -0
- package/skills/pkpd-modeling/references/antimicrobial-and-tdm.md +110 -0
- package/skills/pkpd-modeling/references/bioequivalence.md +132 -0
- package/skills/pkpd-modeling/references/dataset-standards.md +103 -0
- package/skills/pkpd-modeling/references/ddi-and-qt.md +132 -0
- package/skills/pkpd-modeling/references/nca-conventions.md +128 -0
- package/skills/pkpd-modeling/references/pbpk.md +103 -0
- package/skills/pkpd-modeling/references/pd-and-exposure-response.md +149 -0
- package/skills/pkpd-modeling/references/population-pk.md +133 -0
- package/skills/pkpd-modeling/references/regulatory-guidance.md +82 -0
- package/skills/pkpd-modeling/references/software-ecosystem.md +123 -0
- package/skills/pkpd-modeling/references/source-ledger.md +89 -0
- package/skills/pkpd-modeling/references/special-populations.md +126 -0
- package/skills/pkpd-modeling/references/structural-models.md +140 -0
- package/skills/pkpd-modeling/references/tmdd-and-biologics.md +115 -0
- package/skills/pkpd-modeling/scripts/_common.py +327 -0
- package/skills/pkpd-modeling/scripts/_models.py +673 -0
- package/skills/pkpd-modeling/scripts/allometry_and_fih.py +346 -0
- package/skills/pkpd-modeling/scripts/bioequivalence.py +480 -0
- package/skills/pkpd-modeling/scripts/check_popk_dataset.py +400 -0
- package/skills/pkpd-modeling/scripts/ddi_static.py +346 -0
- package/skills/pkpd-modeling/scripts/exposure_response.py +328 -0
- package/skills/pkpd-modeling/scripts/fit_compartmental.py +558 -0
- package/skills/pkpd-modeling/scripts/nca.py +587 -0
- package/skills/pkpd-modeling/scripts/simulate_regimen.py +323 -0
- package/skills/pkpd-modeling/scripts/tdm_bayes.py +312 -0
- package/skills/polars/SKILL.md +393 -0
- package/skills/polars/references/best_practices.md +651 -0
- package/skills/polars/references/core_concepts.md +380 -0
- package/skills/polars/references/io_guide.md +564 -0
- package/skills/polars/references/operations.md +602 -0
- package/skills/polars/references/pandas_migration.md +417 -0
- package/skills/polars/references/transformations.md +549 -0
- package/skills/polars-bio/SKILL.md +379 -0
- package/skills/polars-bio/references/bioframe_migration.md +250 -0
- package/skills/polars-bio/references/configuration.md +187 -0
- package/skills/polars-bio/references/file_io.md +469 -0
- package/skills/polars-bio/references/interval_operations.md +370 -0
- package/skills/polars-bio/references/pileup_operations.md +176 -0
- package/skills/polars-bio/references/sql_processing.md +224 -0
- package/skills/ponytail/SKILL.md +31 -0
- package/skills/ponytail-audit/SKILL.md +18 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +246 -0
- package/skills/pptx/scripts/__init__.py +0 -0
- package/skills/pptx/scripts/add_slide.py +367 -0
- package/skills/pptx/scripts/clean.py +309 -0
- package/skills/pptx/scripts/office/helpers/__init__.py +111 -0
- package/skills/pptx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/pptx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/pptx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/scripts/office/soffice.py +232 -0
- package/skills/pptx/scripts/office/validate.py +173 -0
- package/skills/pptx/scripts/office/validators/__init__.py +15 -0
- package/skills/pptx/scripts/office/validators/base.py +875 -0
- package/skills/pptx/scripts/office/validators/docx.py +466 -0
- package/skills/pptx/scripts/office/validators/pptx.py +441 -0
- package/skills/pptx/scripts/office/validators/redlining.py +299 -0
- package/skills/pptx/scripts/thumbnail.py +311 -0
- package/skills/pptx-posters/SKILL.md +258 -0
- package/skills/pptx-posters/assets/generation_dependencies.json +5 -0
- package/skills/pptx-posters/assets/poster_manifest_template.json +154 -0
- package/skills/pptx-posters/assets/poster_quality_checklist.md +192 -0
- package/skills/pptx-posters/references/manifest_spec.md +297 -0
- package/skills/pptx-posters/references/poster_content_guide.md +176 -0
- package/skills/pptx-posters/references/poster_design_principles.md +226 -0
- package/skills/pptx-posters/references/poster_layout_design.md +189 -0
- package/skills/pptx-posters/references/pptx_security.md +202 -0
- package/skills/pptx-posters/references/security_validation.md +90 -0
- package/skills/pptx-posters/references/source_ledger.md +256 -0
- package/skills/pptx-posters/scripts/_common.py +396 -0
- package/skills/pptx-posters/scripts/_manifest.py +1318 -0
- package/skills/pptx-posters/scripts/_pptx.py +1484 -0
- package/skills/pptx-posters/scripts/check_layout.py +179 -0
- package/skills/pptx-posters/scripts/check_palette.py +142 -0
- package/skills/pptx-posters/scripts/generate_poster.py +427 -0
- package/skills/pptx-posters/scripts/inspect_pptx.py +40 -0
- package/skills/pptx-posters/scripts/inventory_images.py +252 -0
- package/skills/pptx-posters/scripts/plan_export.py +201 -0
- package/skills/pptx-posters/scripts/validate_manifest.py +55 -0
- package/skills/primekg/SKILL.md +99 -0
- package/skills/primekg/scripts/query_primekg.py +128 -0
- package/skills/protocolsio-integration/SKILL.md +236 -0
- package/skills/protocolsio-integration/assets/protocol-snapshot.schema.json +179 -0
- package/skills/protocolsio-integration/references/additional_features.md +202 -0
- package/skills/protocolsio-integration/references/authentication.md +135 -0
- package/skills/protocolsio-integration/references/discussions.md +192 -0
- package/skills/protocolsio-integration/references/file_manager.md +256 -0
- package/skills/protocolsio-integration/references/protocols_api.md +256 -0
- package/skills/protocolsio-integration/references/workspaces.md +192 -0
- package/skills/protocolsio-integration/scripts/__init__.py +1 -0
- package/skills/protocolsio-integration/scripts/_common.py +613 -0
- package/skills/protocolsio-integration/scripts/pagination_helper.py +248 -0
- package/skills/protocolsio-integration/scripts/plan_write_request.py +657 -0
- package/skills/protocolsio-integration/scripts/protocols_read.py +493 -0
- package/skills/protocolsio-integration/scripts/validate_auth_config.py +128 -0
- package/skills/protocolsio-integration/scripts/validate_protocol_json.py +358 -0
- package/skills/pufferlib/SKILL.md +328 -0
- package/skills/pufferlib/references/environments.md +260 -0
- package/skills/pufferlib/references/integration.md +192 -0
- package/skills/pufferlib/references/policies.md +181 -0
- package/skills/pufferlib/references/training.md +287 -0
- package/skills/pufferlib/references/vectorization.md +210 -0
- package/skills/pufferlib/scripts/__init__.py +1 -0
- package/skills/pufferlib/scripts/_common.py +199 -0
- package/skills/pufferlib/scripts/benchmark_vectorization.py +244 -0
- package/skills/pufferlib/scripts/env_contract_validator.py +198 -0
- package/skills/pufferlib/scripts/env_template.py +210 -0
- package/skills/pufferlib/scripts/inspect_checkpoint.py +225 -0
- package/skills/pufferlib/scripts/repro_plan.py +177 -0
- package/skills/pufferlib/scripts/train_template.py +282 -0
- package/skills/pufferlib/scripts/validate_plan.py +570 -0
- package/skills/pydeseq2/SKILL.md +369 -0
- package/skills/pydeseq2/references/analysis_patterns.md +70 -0
- package/skills/pydeseq2/references/api_reference.md +256 -0
- package/skills/pydeseq2/references/core_workflow_steps.md +162 -0
- package/skills/pydeseq2/references/workflow_guide.md +603 -0
- package/skills/pydeseq2/scripts/run_deseq2_analysis.py +388 -0
- package/skills/pydicom/SKILL.md +381 -0
- package/skills/pydicom/references/common_tags.md +277 -0
- package/skills/pydicom/references/transfer_syntaxes.md +348 -0
- package/skills/pydicom/scripts/__init__.py +1 -0
- package/skills/pydicom/scripts/_common.py +916 -0
- package/skills/pydicom/scripts/anonymize_dicom.py +713 -0
- package/skills/pydicom/scripts/deidentification_audit.py +380 -0
- package/skills/pydicom/scripts/dicom_inventory.py +402 -0
- package/skills/pydicom/scripts/dicom_to_image.py +459 -0
- package/skills/pydicom/scripts/extract_metadata.py +330 -0
- package/skills/pydicom/scripts/pixel_frame_planner.py +303 -0
- package/skills/pydicom/scripts/transfer_syntax_inspector.py +245 -0
- package/skills/pydicom/scripts/uid_mapping_validator.py +240 -0
- package/skills/pyhealth/SKILL.md +124 -0
- package/skills/pyhealth/assets/starter_pipeline.py +58 -0
- package/skills/pyhealth/references/datasets.md +126 -0
- package/skills/pyhealth/references/examples.md +237 -0
- package/skills/pyhealth/references/installation.md +112 -0
- package/skills/pyhealth/references/medcode.md +94 -0
- package/skills/pyhealth/references/models.md +114 -0
- package/skills/pyhealth/references/tasks.md +143 -0
- package/skills/pylabrobot/SKILL.md +216 -0
- package/skills/pylabrobot/assets/protocol-manifest.schema.json +367 -0
- package/skills/pylabrobot/references/analytical-equipment.md +200 -0
- package/skills/pylabrobot/references/hardware-backends.md +215 -0
- package/skills/pylabrobot/references/liquid-handling.md +223 -0
- package/skills/pylabrobot/references/material-handling.md +229 -0
- package/skills/pylabrobot/references/resources.md +238 -0
- package/skills/pylabrobot/references/visualization.md +187 -0
- package/skills/pylabrobot/scripts/__init__.py +1 -0
- package/skills/pylabrobot/scripts/_common.py +718 -0
- package/skills/pylabrobot/scripts/check_deck_geometry.py +52 -0
- package/skills/pylabrobot/scripts/generate_simulation_plan.py +140 -0
- package/skills/pylabrobot/scripts/inspect_backends.py +216 -0
- package/skills/pylabrobot/scripts/plan_transfers.py +59 -0
- package/skills/pylabrobot/scripts/validate_manifest.py +47 -0
- package/skills/pymatgen/SKILL.md +404 -0
- package/skills/pymatgen/references/analysis_modules.md +352 -0
- package/skills/pymatgen/references/core_classes.md +290 -0
- package/skills/pymatgen/references/io_formats.md +323 -0
- package/skills/pymatgen/references/materials_project_api.md +406 -0
- package/skills/pymatgen/references/transformations_workflows.md +385 -0
- package/skills/pymatgen/scripts/_common.py +316 -0
- package/skills/pymatgen/scripts/artifact_manifest.py +172 -0
- package/skills/pymatgen/scripts/composition_structure_validator.py +300 -0
- package/skills/pymatgen/scripts/io_conversion_plan.py +204 -0
- package/skills/pymatgen/scripts/mp_query.py +416 -0
- package/skills/pymatgen/scripts/phase_diagram_generator.py +415 -0
- package/skills/pymatgen/scripts/structure_analyzer.py +293 -0
- package/skills/pymatgen/scripts/structure_converter.py +219 -0
- package/skills/pymatgen/scripts/symmetry_sensitivity_report.py +212 -0
- package/skills/pymc/SKILL.md +310 -0
- package/skills/pymc/assets/hierarchical_model_template.py +332 -0
- package/skills/pymc/assets/linear_regression_template.py +244 -0
- package/skills/pymc/references/distributions.md +345 -0
- package/skills/pymc/references/model_patterns.md +130 -0
- package/skills/pymc/references/sampling_inference.md +432 -0
- package/skills/pymc/references/standard_workflow.md +176 -0
- package/skills/pymc/references/workflows.md +530 -0
- package/skills/pymc/scripts/model_comparison.py +409 -0
- package/skills/pymc/scripts/model_diagnostics.py +328 -0
- package/skills/pymoo/SKILL.md +276 -0
- package/skills/pymoo/references/algorithms.md +232 -0
- package/skills/pymoo/references/constraints_mcdm.md +417 -0
- package/skills/pymoo/references/operators.md +345 -0
- package/skills/pymoo/references/parallelization.md +80 -0
- package/skills/pymoo/references/problems.md +265 -0
- package/skills/pymoo/references/quick_start_workflows.md +404 -0
- package/skills/pymoo/references/visualization.md +353 -0
- package/skills/pymoo/scripts/custom_problem_example.py +181 -0
- package/skills/pymoo/scripts/decision_making_example.py +161 -0
- package/skills/pymoo/scripts/many_objective_example.py +74 -0
- package/skills/pymoo/scripts/multi_objective_example.py +63 -0
- package/skills/pymoo/scripts/single_objective_example.py +59 -0
- package/skills/pyopenms/SKILL.md +179 -0
- package/skills/pyopenms/references/data_structures.md +498 -0
- package/skills/pyopenms/references/feature_detection.md +495 -0
- package/skills/pyopenms/references/file_io.md +359 -0
- package/skills/pyopenms/references/identification.md +431 -0
- package/skills/pyopenms/references/metabolomics.md +548 -0
- package/skills/pyopenms/references/signal_processing.md +444 -0
- package/skills/pyopenms/scripts/accurate_mass_search.py +111 -0
- package/skills/pyopenms/scripts/align_link_quantify.py +140 -0
- package/skills/pyopenms/scripts/consensus_to_matrix.py +70 -0
- package/skills/pyopenms/scripts/convert_format.py +95 -0
- package/skills/pyopenms/scripts/detect_adducts.py +90 -0
- package/skills/pyopenms/scripts/detect_features_centroided.py +80 -0
- package/skills/pyopenms/scripts/detect_features_metabo.py +110 -0
- package/skills/pyopenms/scripts/digest_protein.py +102 -0
- package/skills/pyopenms/scripts/export_gnps_sirius.py +90 -0
- package/skills/pyopenms/scripts/extract_chromatograms.py +105 -0
- package/skills/pyopenms/scripts/inspect_ms_data.py +167 -0
- package/skills/pyopenms/scripts/mass_calculator.py +92 -0
- package/skills/pyopenms/scripts/plot_ms_data.py +129 -0
- package/skills/pyopenms/scripts/process_identifications.py +111 -0
- package/skills/pyopenms/scripts/process_spectra.py +124 -0
- package/skills/pyopenms/scripts/theoretical_spectrum.py +75 -0
- package/skills/pysam/SKILL.md +330 -0
- package/skills/pysam/references/alignment_files.md +374 -0
- package/skills/pysam/references/api_reference.md +421 -0
- package/skills/pysam/references/common_workflows.md +442 -0
- package/skills/pysam/references/coordinates_and_indexing.md +318 -0
- package/skills/pysam/references/cram_and_performance.md +314 -0
- package/skills/pysam/references/migration_to_0_24.md +177 -0
- package/skills/pysam/references/sequence_files.md +316 -0
- package/skills/pysam/references/sources.md +132 -0
- package/skills/pysam/references/variant_files.md +396 -0
- package/skills/pysam/scripts/alignment_qc.py +326 -0
- package/skills/pysam/scripts/filter_alignments.py +359 -0
- package/skills/pysam/scripts/inspect_hts.py +485 -0
- package/skills/pysam/scripts/variant_summary.py +362 -0
- package/skills/pytdc/SKILL.md +297 -0
- package/skills/pytdc/references/datasets.md +242 -0
- package/skills/pytdc/references/oracles.md +273 -0
- package/skills/pytdc/references/sources.md +165 -0
- package/skills/pytdc/references/utilities.md +364 -0
- package/skills/pytdc/scripts/_common.py +205 -0
- package/skills/pytdc/scripts/benchmark_evaluation.py +367 -0
- package/skills/pytdc/scripts/cache_audit.py +146 -0
- package/skills/pytdc/scripts/discover_metadata.py +174 -0
- package/skills/pytdc/scripts/load_and_split_data.py +374 -0
- package/skills/pytdc/scripts/molecular_generation.py +417 -0
- package/skills/pytorch-lightning/SKILL.md +191 -0
- package/skills/pytorch-lightning/references/best_practices.md +724 -0
- package/skills/pytorch-lightning/references/callbacks.md +564 -0
- package/skills/pytorch-lightning/references/data_module.md +565 -0
- package/skills/pytorch-lightning/references/distributed_training.md +644 -0
- package/skills/pytorch-lightning/references/lightning_module.md +487 -0
- package/skills/pytorch-lightning/references/logging.md +636 -0
- package/skills/pytorch-lightning/references/trainer.md +641 -0
- package/skills/pytorch-lightning/scripts/quick_trainer_setup.py +473 -0
- package/skills/pytorch-lightning/scripts/template_datamodule.py +328 -0
- package/skills/pytorch-lightning/scripts/template_lightning_module.py +220 -0
- package/skills/pyzotero/SKILL.md +137 -0
- package/skills/pyzotero/references/authentication.md +105 -0
- package/skills/pyzotero/references/cli.md +102 -0
- package/skills/pyzotero/references/collections.md +113 -0
- package/skills/pyzotero/references/error-handling.md +108 -0
- package/skills/pyzotero/references/exports.md +102 -0
- package/skills/pyzotero/references/files-attachments.md +97 -0
- package/skills/pyzotero/references/full-text.md +68 -0
- package/skills/pyzotero/references/mcp.md +90 -0
- package/skills/pyzotero/references/pagination.md +79 -0
- package/skills/pyzotero/references/read-api.md +137 -0
- package/skills/pyzotero/references/saved-searches.md +77 -0
- package/skills/pyzotero/references/search-params.md +90 -0
- package/skills/pyzotero/references/tags.md +87 -0
- package/skills/pyzotero/references/write-api.md +123 -0
- package/skills/qiskit/SKILL.md +259 -0
- package/skills/qiskit/references/algorithms.md +311 -0
- package/skills/qiskit/references/backends.md +382 -0
- package/skills/qiskit/references/circuits.md +319 -0
- package/skills/qiskit/references/migration.md +338 -0
- package/skills/qiskit/references/patterns.md +386 -0
- package/skills/qiskit/references/primitives.md +400 -0
- package/skills/qiskit/references/setup.md +253 -0
- package/skills/qiskit/references/sources.md +156 -0
- package/skills/qiskit/references/testing.md +428 -0
- package/skills/qiskit/references/transpilation.md +333 -0
- package/skills/qiskit/references/visualization.md +361 -0
- package/skills/qiskit/scripts/check_environment.py +260 -0
- package/skills/qiskit/scripts/inspect_runtime.py +224 -0
- package/skills/qiskit/scripts/run_local_primitives.py +200 -0
- package/skills/qutip/SKILL.md +317 -0
- package/skills/qutip/references/advanced.md +413 -0
- package/skills/qutip/references/analysis.md +319 -0
- package/skills/qutip/references/core_concepts.md +300 -0
- package/skills/qutip/references/time_evolution.md +373 -0
- package/skills/qutip/references/visualization.md +334 -0
- package/skills/qutip/scripts/_common.py +370 -0
- package/skills/qutip/scripts/convergence_sweep.py +358 -0
- package/skills/qutip/scripts/qobj_model_validator.py +327 -0
- package/skills/qutip/scripts/result_audit.py +395 -0
- package/skills/qutip/scripts/solver_config_planner.py +297 -0
- package/skills/qutip/scripts/steady_state_spectrum_planner.py +245 -0
- package/skills/qutip/scripts/two_level_simulation.py +394 -0
- package/skills/rdkit/SKILL.md +94 -0
- package/skills/rdkit/references/api_reference.md +443 -0
- package/skills/rdkit/references/core_capabilities.md +604 -0
- package/skills/rdkit/references/descriptors_reference.md +595 -0
- package/skills/rdkit/references/smarts_patterns.md +668 -0
- package/skills/rdkit/references/workflows_and_best_practices.md +169 -0
- package/skills/rdkit/scripts/molecular_properties.py +243 -0
- package/skills/rdkit/scripts/similarity_search.py +297 -0
- package/skills/rdkit/scripts/substructure_filter.py +386 -0
- package/skills/relsa-severity-assessment/SKILL.md +354 -0
- package/skills/relsa-severity-assessment/assets/example_cohort.csv +55 -0
- package/skills/relsa-severity-assessment/references/forecasting.md +155 -0
- package/skills/relsa-severity-assessment/references/relsa-method.md +175 -0
- package/skills/relsa-severity-assessment/references/thresholds-and-zones.md +154 -0
- package/skills/relsa-severity-assessment/scripts/_common.py +287 -0
- package/skills/relsa-severity-assessment/scripts/forecast_relsa.py +757 -0
- package/skills/relsa-severity-assessment/scripts/kde_thresholds.py +369 -0
- package/skills/relsa-severity-assessment/scripts/relsa_score.py +488 -0
- package/skills/research-grants/SKILL.md +296 -0
- package/skills/research-grants/assets/budget_justification_template.md +453 -0
- package/skills/research-grants/assets/nih_specific_aims_template.md +166 -0
- package/skills/research-grants/assets/nsf_project_summary_template.md +92 -0
- package/skills/research-grants/references/README.md +287 -0
- package/skills/research-grants/references/broader_impacts.md +392 -0
- package/skills/research-grants/references/core_components.md +397 -0
- package/skills/research-grants/references/darpa_guidelines.md +636 -0
- package/skills/research-grants/references/doe_guidelines.md +586 -0
- package/skills/research-grants/references/nih_guidelines.md +853 -0
- package/skills/research-grants/references/nsf_guidelines.md +570 -0
- package/skills/research-grants/references/nstc_guidelines.md +733 -0
- package/skills/research-grants/references/proposal_types_and_resubmission.md +81 -0
- package/skills/research-grants/references/review_criteria.md +93 -0
- package/skills/research-grants/references/specific_aims_guide.md +458 -0
- package/skills/research-grants/references/writing_principles.md +94 -0
- package/skills/research-lookup/README.md +106 -0
- package/skills/research-lookup/SKILL.md +338 -0
- package/skills/research-lookup/scripts/manuscript_packet.py +754 -0
- package/skills/research-lookup/scripts/research_lookup.py +1204 -0
- package/skills/rowan/SKILL.md +398 -0
- package/skills/rowan/references/access_and_pricing.md +37 -0
- package/skills/rowan/references/batch_and_webhooks.md +255 -0
- package/skills/rowan/references/end_to_end_example.md +119 -0
- package/skills/rowan/references/troubleshooting.md +106 -0
- package/skills/rowan/references/workflow_catalog.md +308 -0
- package/skills/scanpy/SKILL.md +303 -0
- package/skills/scanpy/assets/analysis_template.py +301 -0
- package/skills/scanpy/assets/celltype_mapping.json +10 -0
- package/skills/scanpy/assets/gene_signatures.json +9 -0
- package/skills/scanpy/assets/pipeline_config.json +19 -0
- package/skills/scanpy/references/analysis_workflow.md +236 -0
- package/skills/scanpy/references/api_reference.md +267 -0
- package/skills/scanpy/references/plotting_guide.md +365 -0
- package/skills/scanpy/references/r_interop.md +292 -0
- package/skills/scanpy/references/standard_workflow.md +223 -0
- package/skills/scanpy/scripts/_common.py +127 -0
- package/skills/scanpy/scripts/annotate.py +84 -0
- package/skills/scanpy/scripts/batch_correct.py +65 -0
- package/skills/scanpy/scripts/cluster.py +63 -0
- package/skills/scanpy/scripts/convert.py +43 -0
- package/skills/scanpy/scripts/find_markers.py +75 -0
- package/skills/scanpy/scripts/inspect_data.py +81 -0
- package/skills/scanpy/scripts/plot.py +78 -0
- package/skills/scanpy/scripts/preprocess.py +88 -0
- package/skills/scanpy/scripts/pseudobulk.py +74 -0
- package/skills/scanpy/scripts/qc_analysis.py +104 -0
- package/skills/scanpy/scripts/reduce_dimensions.py +64 -0
- package/skills/scanpy/scripts/run_pipeline.py +182 -0
- package/skills/scanpy/scripts/score_genes.py +82 -0
- package/skills/scanpy/scripts/subset.py +64 -0
- package/skills/scholar-evaluation/SKILL.md +296 -0
- package/skills/scholar-evaluation/assets/evaluation_template.json +50 -0
- package/skills/scholar-evaluation/assets/evidence_manifest_template.json +63 -0
- package/skills/scholar-evaluation/assets/process_checklist_template.json +70 -0
- package/skills/scholar-evaluation/assets/ratings_template.csv +21 -0
- package/skills/scholar-evaluation/assets/rubric_template.json +301 -0
- package/skills/scholar-evaluation/references/evaluation_framework.md +264 -0
- package/skills/scholar-evaluation/references/local_tooling.md +232 -0
- package/skills/scholar-evaluation/references/responsible_assessment.md +196 -0
- package/skills/scholar-evaluation/references/security_validation.md +95 -0
- package/skills/scholar-evaluation/references/source_ledger.md +222 -0
- package/skills/scholar-evaluation/scripts/_common.py +986 -0
- package/skills/scholar-evaluation/scripts/calculate_scores.py +57 -0
- package/skills/scholar-evaluation/scripts/check_process.py +231 -0
- package/skills/scholar-evaluation/scripts/check_traceability.py +233 -0
- package/skills/scholar-evaluation/scripts/generate_report_scaffold.py +231 -0
- package/skills/scholar-evaluation/scripts/summarize_agreement.py +235 -0
- package/skills/scholar-evaluation/scripts/validate_rubric.py +54 -0
- package/skills/scholar-evaluation/scripts/weight_sensitivity.py +251 -0
- package/skills/scientific-brainstorming/SKILL.md +282 -0
- package/skills/scientific-brainstorming/references/brainstorming_methods.md +292 -0
- package/skills/scientific-brainstorming/references/facilitation_workflows.md +284 -0
- package/skills/scientific-brainstorming/references/idea_evaluation.md +268 -0
- package/skills/scientific-brainstorming/references/responsible_ai.md +220 -0
- package/skills/scientific-brainstorming/references/sources.md +364 -0
- package/skills/scientific-brainstorming/scripts/_common.py +307 -0
- package/skills/scientific-brainstorming/scripts/evaluate_matrix.py +518 -0
- package/skills/scientific-brainstorming/scripts/session_scaffold.py +248 -0
- package/skills/scientific-brainstorming/scripts/validate_register.py +654 -0
- package/skills/scientific-critical-thinking/SKILL.md +180 -0
- package/skills/scientific-critical-thinking/references/common_biases.md +364 -0
- package/skills/scientific-critical-thinking/references/core_capabilities.md +407 -0
- package/skills/scientific-critical-thinking/references/evidence_hierarchy.md +485 -0
- package/skills/scientific-critical-thinking/references/experimental_design.md +496 -0
- package/skills/scientific-critical-thinking/references/logical_fallacies.md +478 -0
- package/skills/scientific-critical-thinking/references/scientific_method.md +169 -0
- package/skills/scientific-critical-thinking/references/statistical_pitfalls.md +506 -0
- package/skills/scientific-schematics/SKILL.md +370 -0
- package/skills/scientific-schematics/references/best_practices.md +574 -0
- package/skills/scientific-schematics/references/iterative_refinement.md +315 -0
- package/skills/scientific-schematics/scripts/example_usage.sh +92 -0
- package/skills/scientific-schematics/scripts/generate_schematic.py +198 -0
- package/skills/scientific-schematics/scripts/generate_schematic_ai.py +950 -0
- package/skills/scientific-slides/SKILL.md +379 -0
- package/skills/scientific-slides/assets/beamer_template_conference.tex +407 -0
- package/skills/scientific-slides/assets/beamer_template_defense.tex +906 -0
- package/skills/scientific-slides/assets/beamer_template_seminar.tex +870 -0
- package/skills/scientific-slides/assets/powerpoint_design_guide.md +662 -0
- package/skills/scientific-slides/assets/timing_guidelines.md +597 -0
- package/skills/scientific-slides/references/beamer_guide.md +1019 -0
- package/skills/scientific-slides/references/common_pitfalls.md +85 -0
- package/skills/scientific-slides/references/data_visualization_slides.md +708 -0
- package/skills/scientific-slides/references/presentation_structure.md +642 -0
- package/skills/scientific-slides/references/presentation_workflow.md +196 -0
- package/skills/scientific-slides/references/prompt_writing.md +42 -0
- package/skills/scientific-slides/references/script_reference.md +143 -0
- package/skills/scientific-slides/references/slide_capabilities.md +360 -0
- package/skills/scientific-slides/references/slide_design_principles.md +849 -0
- package/skills/scientific-slides/references/talk_types_guide.md +687 -0
- package/skills/scientific-slides/references/visual_review_workflow.md +775 -0
- package/skills/scientific-slides/scripts/generate_schematic.py +198 -0
- package/skills/scientific-slides/scripts/generate_schematic_ai.py +950 -0
- package/skills/scientific-slides/scripts/generate_slide_image.py +197 -0
- package/skills/scientific-slides/scripts/generate_slide_image_ai.py +877 -0
- package/skills/scientific-slides/scripts/pdf_to_images.py +221 -0
- package/skills/scientific-slides/scripts/slides_to_pdf.py +235 -0
- package/skills/scientific-slides/scripts/validate_presentation.py +408 -0
- package/skills/scientific-visualization/SKILL.md +285 -0
- package/skills/scientific-visualization/assets/color_palettes.py +263 -0
- package/skills/scientific-visualization/assets/nature.mplstyle +68 -0
- package/skills/scientific-visualization/assets/presentation.mplstyle +68 -0
- package/skills/scientific-visualization/assets/publication.mplstyle +77 -0
- package/skills/scientific-visualization/assets/publisher_profiles.json +269 -0
- package/skills/scientific-visualization/references/color_palettes.md +227 -0
- package/skills/scientific-visualization/references/journal_requirements.md +169 -0
- package/skills/scientific-visualization/references/matplotlib_examples.md +336 -0
- package/skills/scientific-visualization/references/publication_guidelines.md +196 -0
- package/skills/scientific-visualization/references/sources.md +76 -0
- package/skills/scientific-visualization/scripts/_common.py +136 -0
- package/skills/scientific-visualization/scripts/export_plan.py +493 -0
- package/skills/scientific-visualization/scripts/figure_export.py +642 -0
- package/skills/scientific-visualization/scripts/image_metadata.py +731 -0
- package/skills/scientific-visualization/scripts/palette_audit.py +327 -0
- package/skills/scientific-visualization/scripts/style_presets.py +501 -0
- package/skills/scientific-visualization/scripts/style_preview.py +232 -0
- package/skills/scientific-writing/SKILL.md +356 -0
- package/skills/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +60 -0
- package/skills/scientific-writing/assets/authorship_template.json +56 -0
- package/skills/scientific-writing/assets/claim_evidence_template.csv +2 -0
- package/skills/scientific-writing/assets/consistency_manifest_template.json +43 -0
- package/skills/scientific-writing/assets/manuscript_manifest_template.json +37 -0
- package/skills/scientific-writing/assets/manuscript_scaffold.md +65 -0
- package/skills/scientific-writing/assets/reporting_coverage_template.json +6 -0
- package/skills/scientific-writing/assets/reporting_guidelines.json +529 -0
- package/skills/scientific-writing/assets/source_manifest_template.json +27 -0
- package/skills/scientific-writing/references/authorship_ai_confidentiality.md +111 -0
- package/skills/scientific-writing/references/citation_styles.md +92 -0
- package/skills/scientific-writing/references/cli_reference.md +113 -0
- package/skills/scientific-writing/references/evidence_workflow.md +94 -0
- package/skills/scientific-writing/references/figures_tables.md +94 -0
- package/skills/scientific-writing/references/imrad_structure.md +114 -0
- package/skills/scientific-writing/references/journal_policies.md +56 -0
- package/skills/scientific-writing/references/professional_report_formatting.md +82 -0
- package/skills/scientific-writing/references/reporting_guidelines.md +107 -0
- package/skills/scientific-writing/references/research_integrity_open_science.md +97 -0
- package/skills/scientific-writing/references/source_ledger.md +268 -0
- package/skills/scientific-writing/references/writing_principles.md +97 -0
- package/skills/scientific-writing/scripts/_common.py +240 -0
- package/skills/scientific-writing/scripts/audit_claims.py +241 -0
- package/skills/scientific-writing/scripts/check_consistency.py +408 -0
- package/skills/scientific-writing/scripts/check_references.py +219 -0
- package/skills/scientific-writing/scripts/lint_manuscript.py +171 -0
- package/skills/scientific-writing/scripts/scaffold_manuscript.py +143 -0
- package/skills/scientific-writing/scripts/select_reporting_guidelines.py +214 -0
- package/skills/scientific-writing/scripts/validate_authorship.py +322 -0
- package/skills/scientific-writing/scripts/validate_manifest.py +460 -0
- package/skills/scikit-bio/SKILL.md +470 -0
- package/skills/scikit-bio/references/api_reference.md +766 -0
- package/skills/scikit-learn/SKILL.md +324 -0
- package/skills/scikit-learn/references/common_workflows.md +107 -0
- package/skills/scikit-learn/references/core_capabilities.md +133 -0
- package/skills/scikit-learn/references/model_evaluation.md +592 -0
- package/skills/scikit-learn/references/pipelines_and_composition.md +612 -0
- package/skills/scikit-learn/references/preprocessing.md +606 -0
- package/skills/scikit-learn/references/quick_reference.md +436 -0
- package/skills/scikit-learn/references/supervised_learning.md +379 -0
- package/skills/scikit-learn/references/unsupervised_learning.md +517 -0
- package/skills/scikit-learn/scripts/classification_pipeline.py +257 -0
- package/skills/scikit-learn/scripts/clustering_analysis.py +386 -0
- package/skills/scikit-survival/SKILL.md +313 -0
- package/skills/scikit-survival/references/competing-risks.md +302 -0
- package/skills/scikit-survival/references/cox-models.md +252 -0
- package/skills/scikit-survival/references/data-handling.md +278 -0
- package/skills/scikit-survival/references/ensemble-models.md +287 -0
- package/skills/scikit-survival/references/evaluation-metrics.md +391 -0
- package/skills/scikit-survival/references/svm-models.md +277 -0
- package/skills/scikit-survival/scripts/_common.py +456 -0
- package/skills/scikit-survival/scripts/competing_risk_cif.py +286 -0
- package/skills/scikit-survival/scripts/evaluate_survival_metrics.py +296 -0
- package/skills/scikit-survival/scripts/model_report.py +297 -0
- package/skills/scikit-survival/scripts/train_survival_model.py +583 -0
- package/skills/scikit-survival/scripts/validate_survival_csv.py +172 -0
- package/skills/scvelo/SKILL.md +328 -0
- package/skills/scvelo/references/velocity_models.md +168 -0
- package/skills/scvelo/scripts/rna_velocity_workflow.py +240 -0
- package/skills/scvi-tools/SKILL.md +201 -0
- package/skills/scvi-tools/references/differential-expression.md +597 -0
- package/skills/scvi-tools/references/models-atac-seq.md +329 -0
- package/skills/scvi-tools/references/models-multimodal.md +400 -0
- package/skills/scvi-tools/references/models-scrna-seq.md +333 -0
- package/skills/scvi-tools/references/models-spatial.md +432 -0
- package/skills/scvi-tools/references/models-specialized.md +376 -0
- package/skills/scvi-tools/references/theoretical-foundations.md +438 -0
- package/skills/scvi-tools/references/workflows.md +559 -0
- package/skills/seaborn/SKILL.md +254 -0
- package/skills/seaborn/references/examples.md +824 -0
- package/skills/seaborn/references/function_reference.md +772 -0
- package/skills/seaborn/references/grids_and_levels.md +85 -0
- package/skills/seaborn/references/objects_interface.md +963 -0
- package/skills/seaborn/references/palettes_and_theming.md +110 -0
- package/skills/seaborn/references/patterns_and_troubleshooting.md +114 -0
- package/skills/seaborn/references/plotting_functions.md +178 -0
- package/skills/security-auditor/SKILL.md +37 -0
- package/skills/shap/SKILL.md +282 -0
- package/skills/shap/references/data-maskers.md +287 -0
- package/skills/shap/references/explainers.md +376 -0
- package/skills/shap/references/migration.md +415 -0
- package/skills/shap/references/modalities.md +353 -0
- package/skills/shap/references/plots.md +406 -0
- package/skills/shap/references/theory.md +352 -0
- package/skills/shap/references/troubleshooting.md +442 -0
- package/skills/shap/references/workflows.md +565 -0
- package/skills/shap/scripts/tabular_report.py +326 -0
- package/skills/simpy/SKILL.md +283 -0
- package/skills/simpy/references/cli-guide.md +266 -0
- package/skills/simpy/references/events.md +225 -0
- package/skills/simpy/references/monitoring.md +260 -0
- package/skills/simpy/references/process-interaction.md +269 -0
- package/skills/simpy/references/real-time.md +174 -0
- package/skills/simpy/references/resources.md +274 -0
- package/skills/simpy/references/simulation-methodology.md +293 -0
- package/skills/simpy/references/sources.md +167 -0
- package/skills/simpy/scripts/_common.py +473 -0
- package/skills/simpy/scripts/basic_simulation_template.py +415 -0
- package/skills/simpy/scripts/bounded_queue_scenario.py +126 -0
- package/skills/simpy/scripts/event_trace_summary.py +296 -0
- package/skills/simpy/scripts/replication_runner.py +194 -0
- package/skills/simpy/scripts/resource_monitor.py +474 -0
- package/skills/simpy/scripts/validate_simulation_config.py +111 -0
- package/skills/stable-baselines3/SKILL.md +325 -0
- package/skills/stable-baselines3/references/algorithms.md +348 -0
- package/skills/stable-baselines3/references/callbacks.md +571 -0
- package/skills/stable-baselines3/references/custom_environments.md +528 -0
- package/skills/stable-baselines3/references/vectorized_envs.md +580 -0
- package/skills/stable-baselines3/scripts/custom_env_template.py +314 -0
- package/skills/stable-baselines3/scripts/evaluate_agent.py +245 -0
- package/skills/stable-baselines3/scripts/train_rl_agent.py +165 -0
- package/skills/statistical-analysis/SKILL.md +446 -0
- package/skills/statistical-analysis/references/assumptions_and_diagnostics.md +379 -0
- package/skills/statistical-analysis/references/bayesian_statistics.md +686 -0
- package/skills/statistical-analysis/references/effect_sizes_and_power.md +649 -0
- package/skills/statistical-analysis/references/reporting_standards.md +482 -0
- package/skills/statistical-analysis/references/test_selection_guide.md +129 -0
- package/skills/statistical-analysis/scripts/assumption_checks.py +652 -0
- package/skills/statistical-power/SKILL.md +200 -0
- package/skills/statistical-power/references/closed_form_recipes.md +174 -0
- package/skills/statistical-power/references/effect_sizes.md +121 -0
- package/skills/statistical-power/references/simulation_based_power.md +101 -0
- package/skills/statistical-power/scripts/power.py +320 -0
- package/skills/statistical-power/scripts/simulate_power.py +217 -0
- package/skills/statsmodels/SKILL.md +238 -0
- package/skills/statsmodels/references/discrete_choice.md +669 -0
- package/skills/statsmodels/references/glm.md +619 -0
- package/skills/statsmodels/references/linear_models.md +447 -0
- package/skills/statsmodels/references/model_selection.md +99 -0
- package/skills/statsmodels/references/modeling_capabilities.md +168 -0
- package/skills/statsmodels/references/quick_start_guide.md +154 -0
- package/skills/statsmodels/references/stats_diagnostics.md +859 -0
- package/skills/statsmodels/references/time_series.md +723 -0
- package/skills/sympy/SKILL.md +354 -0
- package/skills/sympy/references/advanced-topics.md +635 -0
- package/skills/sympy/references/code-generation-printing.md +628 -0
- package/skills/sympy/references/core-capabilities.md +348 -0
- package/skills/sympy/references/core_capabilities.md +190 -0
- package/skills/sympy/references/matrices-linear-algebra.md +526 -0
- package/skills/sympy/references/physics-mechanics.md +592 -0
- package/skills/systematic-debugging/SKILL.md +35 -0
- package/skills/tamarind/SKILL.md +285 -0
- package/skills/tamarind/references/api_reference.md +165 -0
- package/skills/tamarind/references/examples.md +132 -0
- package/skills/tamarind/references/tool_catalog.md +66 -0
- package/skills/tamarind/references/workflows.md +263 -0
- package/skills/tdd/SKILL.md +26 -0
- package/skills/tiledbvcf/SKILL.md +456 -0
- package/skills/timesfm-forecasting/SKILL.md +408 -0
- package/skills/timesfm-forecasting/examples/anomaly-detection/detect_anomalies.py +524 -0
- package/skills/timesfm-forecasting/examples/anomaly-detection/output/anomaly_detection.json +448 -0
- package/skills/timesfm-forecasting/examples/anomaly-detection/output/anomaly_detection.png +0 -0
- package/skills/timesfm-forecasting/examples/covariates-forecasting/demo_covariates.py +568 -0
- package/skills/timesfm-forecasting/examples/covariates-forecasting/output/covariates_data.png +0 -0
- package/skills/timesfm-forecasting/examples/covariates-forecasting/output/covariates_metadata.json +59 -0
- package/skills/timesfm-forecasting/examples/covariates-forecasting/output/sales_with_covariates.csv +109 -0
- package/skills/timesfm-forecasting/examples/global-temperature/README.md +178 -0
- package/skills/timesfm-forecasting/examples/global-temperature/generate_animation_data.py +147 -0
- package/skills/timesfm-forecasting/examples/global-temperature/generate_gif.py +248 -0
- package/skills/timesfm-forecasting/examples/global-temperature/generate_html.py +544 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/animation_data.json +5441 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/forecast_animation.gif +0 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/forecast_output.csv +13 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/forecast_output.json +188 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/forecast_visualization.png +0 -0
- package/skills/timesfm-forecasting/examples/global-temperature/output/interactive_forecast.html +5939 -0
- package/skills/timesfm-forecasting/examples/global-temperature/run_example.sh +53 -0
- package/skills/timesfm-forecasting/examples/global-temperature/run_forecast.py +167 -0
- package/skills/timesfm-forecasting/examples/global-temperature/temperature_anomaly.csv +37 -0
- package/skills/timesfm-forecasting/examples/global-temperature/visualize_forecast.py +123 -0
- package/skills/timesfm-forecasting/references/api_reference.md +231 -0
- package/skills/timesfm-forecasting/references/data_preparation.md +272 -0
- package/skills/timesfm-forecasting/references/examples_and_validation.md +103 -0
- package/skills/timesfm-forecasting/references/output_and_config.md +93 -0
- package/skills/timesfm-forecasting/references/performance_tuning.md +80 -0
- package/skills/timesfm-forecasting/references/system_requirements.md +201 -0
- package/skills/timesfm-forecasting/references/workflows.md +126 -0
- package/skills/timesfm-forecasting/scripts/check_system.py +521 -0
- package/skills/timesfm-forecasting/scripts/forecast_csv.py +269 -0
- package/skills/torch-geometric/SKILL.md +458 -0
- package/skills/torch-geometric/references/custom_datasets.md +239 -0
- package/skills/torch-geometric/references/explainability.md +208 -0
- package/skills/torch-geometric/references/heterogeneous.md +241 -0
- package/skills/torch-geometric/references/link_prediction.md +226 -0
- package/skills/torch-geometric/references/message_passing.md +121 -0
- package/skills/torch-geometric/references/scaling.md +269 -0
- package/skills/torchdrug/SKILL.md +241 -0
- package/skills/torchdrug/references/core_concepts.md +241 -0
- package/skills/torchdrug/references/datasets.md +179 -0
- package/skills/torchdrug/references/knowledge_graphs.md +226 -0
- package/skills/torchdrug/references/models_architectures.md +223 -0
- package/skills/torchdrug/references/molecular_generation.md +246 -0
- package/skills/torchdrug/references/molecular_property_prediction.md +239 -0
- package/skills/torchdrug/references/protein_modeling.md +221 -0
- package/skills/torchdrug/references/retrosynthesis.md +247 -0
- package/skills/transformers/SKILL.md +195 -0
- package/skills/transformers/references/generation.md +473 -0
- package/skills/transformers/references/models.md +371 -0
- package/skills/transformers/references/pipelines.md +334 -0
- package/skills/transformers/references/tokenizers.md +449 -0
- package/skills/transformers/references/training.md +504 -0
- package/skills/treatment-plans/SKILL.md +174 -0
- package/skills/treatment-plans/assets/clinician_authored_intervention_template.json +11 -0
- package/skills/treatment-plans/assets/goals_monitoring_checkpoint_template.json +13 -0
- package/skills/treatment-plans/assets/informed_preference_shared_decision_template.json +11 -0
- package/skills/treatment-plans/assets/intended_use_handoff_template.json +83 -0
- package/skills/treatment-plans/assets/source_fact_manifest_template.json +11 -0
- package/skills/treatment-plans/assets/transition_reconciliation_template.json +27 -0
- package/skills/treatment-plans/references/README.md +19 -0
- package/skills/treatment-plans/references/documentation_workflow.md +165 -0
- package/skills/treatment-plans/references/privacy_governance.md +119 -0
- package/skills/treatment-plans/references/safety_scope.md +101 -0
- package/skills/treatment-plans/references/security_validation.md +68 -0
- package/skills/treatment-plans/references/shared_decision_handoff.md +138 -0
- package/skills/treatment-plans/references/source_boundaries.md +127 -0
- package/skills/treatment-plans/references/source_ledger.md +131 -0
- package/skills/treatment-plans/scripts/_common.py +1160 -0
- package/skills/treatment-plans/scripts/check_completeness.py +572 -0
- package/skills/treatment-plans/scripts/check_consistency.py +386 -0
- package/skills/treatment-plans/scripts/generate_template.py +133 -0
- package/skills/treatment-plans/scripts/privacy_process_check.py +213 -0
- package/skills/treatment-plans/scripts/timeline_generator.py +260 -0
- package/skills/treatment-plans/scripts/validate_traceability.py +147 -0
- package/skills/treatment-plans/scripts/validate_treatment_plan.py +95 -0
- package/skills/umap-learn/SKILL.md +488 -0
- package/skills/umap-learn/references/api_reference.md +574 -0
- package/skills/uncertainty-and-units/SKILL.md +384 -0
- package/skills/uncertainty-and-units/references/domain-conversions.md +188 -0
- package/skills/uncertainty-and-units/references/gum-methodology.md +219 -0
- package/skills/uncertainty-and-units/references/pint-recipes.md +228 -0
- package/skills/uncertainty-and-units/references/plausibility-scales.md +168 -0
- package/skills/uncertainty-and-units/references/reporting-rules.md +133 -0
- package/skills/uncertainty-and-units/references/uncertainties-recipes.md +167 -0
- package/skills/uncertainty-and-units/scripts/_common.py +666 -0
- package/skills/uncertainty-and-units/scripts/audit_units.py +575 -0
- package/skills/uncertainty-and-units/scripts/check_plausibility.py +894 -0
- package/skills/uncertainty-and-units/scripts/convert_units.py +280 -0
- package/skills/uncertainty-and-units/scripts/format_result.py +326 -0
- package/skills/uncertainty-and-units/scripts/propagate_uncertainty.py +662 -0
- package/skills/uncertainty-and-units/scripts/uncertainty_budget.py +363 -0
- package/skills/usfiscaldata/SKILL.md +171 -0
- package/skills/usfiscaldata/references/api-basics.md +105 -0
- package/skills/usfiscaldata/references/datasets-debt.md +166 -0
- package/skills/usfiscaldata/references/datasets-fiscal.md +212 -0
- package/skills/usfiscaldata/references/datasets-interest-rates.md +188 -0
- package/skills/usfiscaldata/references/datasets-securities.md +238 -0
- package/skills/usfiscaldata/references/examples.md +258 -0
- package/skills/usfiscaldata/references/parameters.md +182 -0
- package/skills/usfiscaldata/references/response-format.md +178 -0
- package/skills/vaex/SKILL.md +204 -0
- package/skills/vaex/references/core_dataframes.md +373 -0
- package/skills/vaex/references/data_processing.md +555 -0
- package/skills/vaex/references/io_operations.md +718 -0
- package/skills/vaex/references/machine_learning.md +728 -0
- package/skills/vaex/references/performance.md +571 -0
- package/skills/vaex/references/visualization.md +644 -0
- package/skills/venue-templates/SKILL.md +269 -0
- package/skills/venue-templates/assets/examples/cell_summary_example.md +247 -0
- package/skills/venue-templates/assets/examples/medical_structured_abstract.md +313 -0
- package/skills/venue-templates/assets/examples/nature_abstract_examples.md +213 -0
- package/skills/venue-templates/assets/examples/neurips_introduction_example.md +245 -0
- package/skills/venue-templates/assets/grants/nih_specific_aims.tex +237 -0
- package/skills/venue-templates/assets/grants/nsf_proposal_template.tex +384 -0
- package/skills/venue-templates/assets/journals/elsarticle-harv.bst +1598 -0
- package/skills/venue-templates/assets/journals/elsarticle-num-names.bst +1535 -0
- package/skills/venue-templates/assets/journals/elsarticle-num.bst +1509 -0
- package/skills/venue-templates/assets/journals/elsarticle-template-harv.tex +286 -0
- package/skills/venue-templates/assets/journals/elsarticle-template-num-names.tex +284 -0
- package/skills/venue-templates/assets/journals/elsarticle-template-num.tex +286 -0
- package/skills/venue-templates/assets/journals/nature_article.tex +174 -0
- package/skills/venue-templates/assets/journals/neurips_article.tex +292 -0
- package/skills/venue-templates/assets/journals/plos_one.tex +320 -0
- package/skills/venue-templates/assets/posters/beamerposter_academic.tex +312 -0
- package/skills/venue-templates/references/cell_press_style.md +486 -0
- package/skills/venue-templates/references/conferences_formatting.md +175 -0
- package/skills/venue-templates/references/cs_conference_style.md +465 -0
- package/skills/venue-templates/references/grants_requirements.md +267 -0
- package/skills/venue-templates/references/journals_formatting.md +200 -0
- package/skills/venue-templates/references/medical_journal_styles.md +536 -0
- package/skills/venue-templates/references/ml_conference_style.md +562 -0
- package/skills/venue-templates/references/nature_science_style.md +407 -0
- package/skills/venue-templates/references/posters_guidelines.md +630 -0
- package/skills/venue-templates/references/reviewer_expectations.md +422 -0
- package/skills/venue-templates/references/venue_writing_styles.md +323 -0
- package/skills/venue-templates/scripts/customize_template.py +206 -0
- package/skills/venue-templates/scripts/query_template.py +202 -0
- package/skills/venue-templates/scripts/validate_format.py +321 -0
- package/skills/verification-before-completion/SKILL.md +21 -0
- package/skills/waypoint-bio/SKILL.md +273 -0
- package/skills/waypoint-bio/references/cli-reference.md +210 -0
- package/skills/waypoint-bio/references/compass-benchmark.md +124 -0
- package/skills/waypoint-bio/references/data-preparation.md +200 -0
- package/skills/waypoint-bio/references/python-api.md +219 -0
- package/skills/waypoint-bio/scripts/profiler_to_waypoint.py +481 -0
- package/skills/waypoint-bio/scripts/vocab_coverage.py +235 -0
- package/skills/what-if-oracle/SKILL.md +184 -0
- package/skills/what-if-oracle/references/scenario-templates.md +137 -0
- package/skills/writing-plans/SKILL.md +15 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +110 -0
- package/skills/xlsx/scripts/office/helpers/__init__.py +111 -0
- package/skills/xlsx/scripts/office/helpers/pptx_chart.py +170 -0
- package/skills/xlsx/scripts/office/helpers/pptx_slide.py +60 -0
- package/skills/xlsx/scripts/office/helpers/pptx_theme.py +114 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/xlsx/scripts/office/soffice.py +232 -0
- package/skills/xlsx/scripts/office/validate.py +173 -0
- package/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/skills/xlsx/scripts/office/validators/base.py +875 -0
- package/skills/xlsx/scripts/office/validators/docx.py +466 -0
- package/skills/xlsx/scripts/office/validators/pptx.py +441 -0
- package/skills/xlsx/scripts/office/validators/redlining.py +299 -0
- package/skills/xlsx/scripts/recalc.py +308 -0
- package/skills/zarr-python/SKILL.md +241 -0
- package/skills/zarr-python/references/api_reference.md +162 -0
- package/skills/zarr-python/references/chunking_and_compression.md +138 -0
- package/skills/zarr-python/references/integration.md +147 -0
- package/skills/zarr-python/references/performance_and_patterns.md +198 -0
- package/skills/zarr-python/references/storage_backends.md +91 -0
- package/skills/zarr-python/references/v3_migration.md +127 -0
- package/templates/agents/orchestrator.md +37 -0
- package/templates/base/groupy_prompt.md +92 -0
- package/templates/compact/prompt.md +9 -0
- package/templates/compact/summary_prefix.md +1 -0
- package/templates/modes/default.md +19 -0
- package/templates/modes/plan.md +128 -0
- package/templates/modes/review.md +60 -0
- package/templates/permissions/approval_policy/never.md +1 -0
- package/templates/permissions/approval_policy/on_request.md +23 -0
- package/templates/permissions/sandbox_mode/danger_full_access.md +1 -0
- package/templates/permissions/sandbox_mode/read_only.md +1 -0
- package/templates/permissions/sandbox_mode/workspace_write.md +1 -0
- package/templates/personalities/friendly.md +19 -0
- package/templates/personalities/pragmatic.md +17 -0
|
@@ -0,0 +1,1484 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Bounded, non-executing PPTX package inspection and layout analysis."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import posixpath
|
|
7
|
+
import re
|
|
8
|
+
import shutil
|
|
9
|
+
import stat
|
|
10
|
+
import struct
|
|
11
|
+
import xml.etree.ElementTree as ET
|
|
12
|
+
import zipfile
|
|
13
|
+
from pathlib import Path, PurePosixPath
|
|
14
|
+
from typing import Any
|
|
15
|
+
|
|
16
|
+
from _common import (
|
|
17
|
+
EMU_PER_INCH,
|
|
18
|
+
MAX_INPUT_BYTES,
|
|
19
|
+
CliError,
|
|
20
|
+
checked_input_file,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
REPORT_SCHEMA_VERSION = "1.0"
|
|
24
|
+
MAX_MEMBERS = 4_096
|
|
25
|
+
MAX_TOTAL_UNCOMPRESSED = 1024 * 1024 * 1024
|
|
26
|
+
MAX_MEMBER_UNCOMPRESSED = 128 * 1024 * 1024
|
|
27
|
+
MAX_XML_BYTES = 8 * 1024 * 1024
|
|
28
|
+
MAX_COMPRESSION_RATIO = 100.0
|
|
29
|
+
MAX_CENTRAL_DIRECTORY_BYTES = 64 * 1024 * 1024
|
|
30
|
+
DETERMINISTIC_ZIP_DATETIME = (1980, 1, 1, 0, 0, 0)
|
|
31
|
+
|
|
32
|
+
P_NS = "http://schemas.openxmlformats.org/presentationml/2006/main"
|
|
33
|
+
A_NS = "http://schemas.openxmlformats.org/drawingml/2006/main"
|
|
34
|
+
R_NS = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
35
|
+
PKG_REL_NS = "http://schemas.openxmlformats.org/package/2006/relationships"
|
|
36
|
+
CT_NS = "http://schemas.openxmlformats.org/package/2006/content-types"
|
|
37
|
+
|
|
38
|
+
STANDARD_PRESENTATION_CONTENT_TYPE = (
|
|
39
|
+
"application/vnd.openxmlformats-officedocument.presentationml."
|
|
40
|
+
"presentation.main+xml"
|
|
41
|
+
)
|
|
42
|
+
REQUIRED_PARTS = {
|
|
43
|
+
"[Content_Types].xml",
|
|
44
|
+
"_rels/.rels",
|
|
45
|
+
"ppt/_rels/presentation.xml.rels",
|
|
46
|
+
"ppt/presentation.xml",
|
|
47
|
+
}
|
|
48
|
+
FORBIDDEN_PREFIXES = (
|
|
49
|
+
"_xmlsignatures/",
|
|
50
|
+
"customxml/",
|
|
51
|
+
"customui/",
|
|
52
|
+
"ppt/activex/",
|
|
53
|
+
"ppt/comments/",
|
|
54
|
+
"ppt/ctrlprops/",
|
|
55
|
+
"ppt/embeddings/",
|
|
56
|
+
"ppt/externallinks/",
|
|
57
|
+
"ppt/fonts/",
|
|
58
|
+
"ppt/model3d/",
|
|
59
|
+
"ppt/notesmasters/",
|
|
60
|
+
"ppt/notesslides/",
|
|
61
|
+
"ppt/persons/",
|
|
62
|
+
"ppt/vba/",
|
|
63
|
+
"ppt/webextensions/",
|
|
64
|
+
"webextensions/",
|
|
65
|
+
)
|
|
66
|
+
FORBIDDEN_RELATIONSHIP_MARKERS = (
|
|
67
|
+
"activex",
|
|
68
|
+
"attachedtemplate",
|
|
69
|
+
"control",
|
|
70
|
+
"customui",
|
|
71
|
+
"externallink",
|
|
72
|
+
"relationships/hyperlink",
|
|
73
|
+
"notesmaster",
|
|
74
|
+
"notesslide",
|
|
75
|
+
"oleobject",
|
|
76
|
+
"person",
|
|
77
|
+
"relationships/package",
|
|
78
|
+
"relationships/audio",
|
|
79
|
+
"relationships/media",
|
|
80
|
+
"relationships/video",
|
|
81
|
+
"webextension",
|
|
82
|
+
"vbaproject",
|
|
83
|
+
)
|
|
84
|
+
FORBIDDEN_CONTENT_TYPE_MARKERS = (
|
|
85
|
+
"activex",
|
|
86
|
+
"macroenabled",
|
|
87
|
+
"oleobject",
|
|
88
|
+
"vba",
|
|
89
|
+
"vnd.ms-package",
|
|
90
|
+
)
|
|
91
|
+
FORBIDDEN_BINARY_SUFFIXES = {
|
|
92
|
+
".7z",
|
|
93
|
+
".app",
|
|
94
|
+
".applescript",
|
|
95
|
+
".bat",
|
|
96
|
+
".bin",
|
|
97
|
+
".class",
|
|
98
|
+
".cmd",
|
|
99
|
+
".com",
|
|
100
|
+
".doc",
|
|
101
|
+
".docm",
|
|
102
|
+
".docx",
|
|
103
|
+
".dll",
|
|
104
|
+
".dylib",
|
|
105
|
+
".exe",
|
|
106
|
+
".hta",
|
|
107
|
+
".htm",
|
|
108
|
+
".html",
|
|
109
|
+
".jar",
|
|
110
|
+
".js",
|
|
111
|
+
".lnk",
|
|
112
|
+
".msi",
|
|
113
|
+
".pdf",
|
|
114
|
+
".ppt",
|
|
115
|
+
".pptm",
|
|
116
|
+
".pptx",
|
|
117
|
+
".ps1",
|
|
118
|
+
".py",
|
|
119
|
+
".rar",
|
|
120
|
+
".rb",
|
|
121
|
+
".sh",
|
|
122
|
+
".so",
|
|
123
|
+
".svg",
|
|
124
|
+
".vbs",
|
|
125
|
+
".xls",
|
|
126
|
+
".xlsm",
|
|
127
|
+
".xlsx",
|
|
128
|
+
".zip",
|
|
129
|
+
}
|
|
130
|
+
ALLOWED_CONTENT_TYPES = {
|
|
131
|
+
"application/vnd.openxmlformats-package.core-properties+xml",
|
|
132
|
+
"application/vnd.openxmlformats-package.relationships+xml",
|
|
133
|
+
"application/vnd.openxmlformats-officedocument.extended-properties+xml",
|
|
134
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",
|
|
135
|
+
"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",
|
|
136
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",
|
|
137
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",
|
|
138
|
+
"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",
|
|
139
|
+
"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",
|
|
140
|
+
"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",
|
|
141
|
+
"application/vnd.openxmlformats-officedocument.theme+xml",
|
|
142
|
+
"application/xml",
|
|
143
|
+
"image/jpeg",
|
|
144
|
+
"image/png",
|
|
145
|
+
}
|
|
146
|
+
ALLOWED_PART_PATTERNS = tuple(
|
|
147
|
+
re.compile(pattern)
|
|
148
|
+
for pattern in (
|
|
149
|
+
r"\[Content_Types\]\.xml",
|
|
150
|
+
r"_rels/\.rels",
|
|
151
|
+
r"docProps/(?:app|core)\.xml",
|
|
152
|
+
r"docProps/thumbnail\.jpeg",
|
|
153
|
+
r"ppt/(?:presentation|presProps|tableStyles|viewProps)\.xml",
|
|
154
|
+
r"ppt/_rels/presentation\.xml\.rels",
|
|
155
|
+
r"ppt/theme/theme[1-9][0-9]*\.xml",
|
|
156
|
+
r"ppt/slideMasters/slideMaster[1-9][0-9]*\.xml",
|
|
157
|
+
r"ppt/slideMasters/_rels/slideMaster[1-9][0-9]*\.xml\.rels",
|
|
158
|
+
r"ppt/slideLayouts/slideLayout[1-9][0-9]*\.xml",
|
|
159
|
+
r"ppt/slideLayouts/_rels/slideLayout[1-9][0-9]*\.xml\.rels",
|
|
160
|
+
r"ppt/slides/slide[1-9][0-9]*\.xml",
|
|
161
|
+
r"ppt/slides/_rels/slide[1-9][0-9]*\.xml\.rels",
|
|
162
|
+
r"ppt/media/image[1-9][0-9]*\.(?:jpeg|jpg|png)",
|
|
163
|
+
r"ppt/printerSettings/printerSettings[1-9][0-9]*\.bin",
|
|
164
|
+
)
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
def _finding(code: str, message: str, *, location: str | None = None) -> dict[str, Any]:
|
|
169
|
+
record: dict[str, Any] = {"code": code, "message": message}
|
|
170
|
+
if location is not None:
|
|
171
|
+
record["location"] = location
|
|
172
|
+
return record
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def _allowed_generated_part(name: str) -> bool:
|
|
176
|
+
"""Return whether a part belongs to the strict generated-poster profile."""
|
|
177
|
+
return any(pattern.fullmatch(name) for pattern in ALLOWED_PART_PATTERNS)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def _preflight_zip_directory(path: Path) -> list[dict[str, Any]]:
|
|
181
|
+
"""Bound the central directory before ZipFile materializes all members."""
|
|
182
|
+
findings: list[dict[str, Any]] = []
|
|
183
|
+
file_size = path.stat().st_size
|
|
184
|
+
if file_size < 22:
|
|
185
|
+
return [_finding("NOT_ZIP", "file is too short to contain a ZIP directory")]
|
|
186
|
+
with path.open("rb") as handle:
|
|
187
|
+
if handle.read(4) != b"PK\x03\x04":
|
|
188
|
+
return [_finding("NOT_ZIP", "file does not begin with a ZIP local header")]
|
|
189
|
+
tail_size = min(file_size, 65_557)
|
|
190
|
+
handle.seek(file_size - tail_size)
|
|
191
|
+
tail = handle.read(tail_size)
|
|
192
|
+
marker = b"PK\x05\x06"
|
|
193
|
+
index = tail.rfind(marker)
|
|
194
|
+
if index < 0 or index + 22 > len(tail):
|
|
195
|
+
return [_finding("ZIP_DIRECTORY_INVALID", "end-of-central-directory not found")]
|
|
196
|
+
try:
|
|
197
|
+
(
|
|
198
|
+
signature,
|
|
199
|
+
disk_number,
|
|
200
|
+
central_disk,
|
|
201
|
+
entries_on_disk,
|
|
202
|
+
total_entries,
|
|
203
|
+
central_size,
|
|
204
|
+
central_offset,
|
|
205
|
+
comment_length,
|
|
206
|
+
) = struct.unpack_from("<4s4H2LH", tail, index)
|
|
207
|
+
except struct.error as exc:
|
|
208
|
+
return [_finding("ZIP_DIRECTORY_INVALID", str(exc))]
|
|
209
|
+
if signature != marker:
|
|
210
|
+
findings.append(
|
|
211
|
+
_finding("ZIP_DIRECTORY_INVALID", "invalid central-directory signature")
|
|
212
|
+
)
|
|
213
|
+
eocd_offset = file_size - tail_size + index
|
|
214
|
+
if eocd_offset + 22 + comment_length != file_size:
|
|
215
|
+
findings.append(
|
|
216
|
+
_finding(
|
|
217
|
+
"ZIP_DIRECTORY_INVALID",
|
|
218
|
+
"central-directory comment length or trailing bytes are invalid",
|
|
219
|
+
)
|
|
220
|
+
)
|
|
221
|
+
if (
|
|
222
|
+
disk_number != 0
|
|
223
|
+
or central_disk != 0
|
|
224
|
+
or entries_on_disk != total_entries
|
|
225
|
+
):
|
|
226
|
+
findings.append(
|
|
227
|
+
_finding("ZIP_MULTIDISK", "multi-disk ZIP packages are forbidden")
|
|
228
|
+
)
|
|
229
|
+
if (
|
|
230
|
+
total_entries == 0xFFFF
|
|
231
|
+
or central_size == 0xFFFFFFFF
|
|
232
|
+
or central_offset == 0xFFFFFFFF
|
|
233
|
+
):
|
|
234
|
+
findings.append(
|
|
235
|
+
_finding(
|
|
236
|
+
"ZIP64_DIRECTORY",
|
|
237
|
+
"ZIP64 central directories are outside the strict PPTX profile",
|
|
238
|
+
)
|
|
239
|
+
)
|
|
240
|
+
return findings
|
|
241
|
+
if total_entries > MAX_MEMBERS:
|
|
242
|
+
findings.append(
|
|
243
|
+
_finding(
|
|
244
|
+
"ZIP_MEMBER_LIMIT",
|
|
245
|
+
f"package declares {total_entries} members; limit is {MAX_MEMBERS}",
|
|
246
|
+
)
|
|
247
|
+
)
|
|
248
|
+
if central_size > MAX_CENTRAL_DIRECTORY_BYTES:
|
|
249
|
+
findings.append(
|
|
250
|
+
_finding(
|
|
251
|
+
"ZIP_DIRECTORY_SIZE",
|
|
252
|
+
f"central directory is {central_size} bytes; limit is "
|
|
253
|
+
f"{MAX_CENTRAL_DIRECTORY_BYTES}",
|
|
254
|
+
)
|
|
255
|
+
)
|
|
256
|
+
if central_offset + central_size != eocd_offset:
|
|
257
|
+
findings.append(
|
|
258
|
+
_finding(
|
|
259
|
+
"ZIP_DIRECTORY_INVALID",
|
|
260
|
+
"central-directory offset/size does not end at the ZIP footer",
|
|
261
|
+
)
|
|
262
|
+
)
|
|
263
|
+
return findings
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
def _unsafe_xml(text: str) -> bool:
|
|
267
|
+
upper = text.upper()
|
|
268
|
+
return "<!DOCTYPE" in upper or "<!ENTITY" in upper
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
def _parse_xml(raw: bytes, *, location: str) -> ET.Element:
|
|
272
|
+
if len(raw) > MAX_XML_BYTES:
|
|
273
|
+
raise CliError(
|
|
274
|
+
f"XML part {location} is {len(raw)} bytes; limit is {MAX_XML_BYTES}"
|
|
275
|
+
)
|
|
276
|
+
try:
|
|
277
|
+
text = raw.decode("utf-8-sig")
|
|
278
|
+
except UnicodeDecodeError as exc:
|
|
279
|
+
raise CliError(
|
|
280
|
+
f"XML part {location} must be UTF-8 in the strict generated profile"
|
|
281
|
+
) from exc
|
|
282
|
+
if "\x00" in text:
|
|
283
|
+
raise CliError(f"NUL is forbidden in XML part {location}")
|
|
284
|
+
if _unsafe_xml(text):
|
|
285
|
+
raise CliError(f"DTD or entity declaration is forbidden in {location}")
|
|
286
|
+
try:
|
|
287
|
+
return ET.fromstring(text)
|
|
288
|
+
except ET.ParseError as exc:
|
|
289
|
+
raise CliError(f"malformed XML in {location}: {exc}") from exc
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
def _relationship_source_directory(rels_name: str) -> str:
|
|
293
|
+
if rels_name == "_rels/.rels":
|
|
294
|
+
return ""
|
|
295
|
+
marker = "/_rels/"
|
|
296
|
+
if marker not in rels_name or not rels_name.endswith(".rels"):
|
|
297
|
+
raise CliError(f"invalid relationship part name: {rels_name}")
|
|
298
|
+
prefix, leaf = rels_name.split(marker, 1)
|
|
299
|
+
source_leaf = leaf[: -len(".rels")]
|
|
300
|
+
return posixpath.dirname(f"{prefix}/{source_leaf}")
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
def _resolve_internal_target(rels_name: str, target: str) -> str:
|
|
304
|
+
if not target or "\x00" in target or "\\" in target:
|
|
305
|
+
raise CliError(f"unsafe internal relationship target in {rels_name}: {target!r}")
|
|
306
|
+
if target.startswith("/") or "%" in target or "?" in target or "#" in target:
|
|
307
|
+
raise CliError(
|
|
308
|
+
f"unsupported internal relationship target in {rels_name}: {target!r}"
|
|
309
|
+
)
|
|
310
|
+
base = _relationship_source_directory(rels_name)
|
|
311
|
+
normalized = posixpath.normpath(posixpath.join(base, target))
|
|
312
|
+
if normalized in {"", ".", ".."} or normalized.startswith("../"):
|
|
313
|
+
raise CliError(
|
|
314
|
+
f"relationship target escapes the package in {rels_name}: {target!r}"
|
|
315
|
+
)
|
|
316
|
+
return normalized
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
def _preflight_members(
|
|
320
|
+
archive: zipfile.ZipFile,
|
|
321
|
+
) -> tuple[list[zipfile.ZipInfo], list[dict[str, Any]], set[str], int]:
|
|
322
|
+
findings: list[dict[str, Any]] = []
|
|
323
|
+
members = archive.infolist()
|
|
324
|
+
if len(members) > MAX_MEMBERS:
|
|
325
|
+
return (
|
|
326
|
+
members,
|
|
327
|
+
[
|
|
328
|
+
_finding(
|
|
329
|
+
"ZIP_MEMBER_LIMIT",
|
|
330
|
+
f"package has {len(members)} members; limit is {MAX_MEMBERS}",
|
|
331
|
+
)
|
|
332
|
+
],
|
|
333
|
+
set(),
|
|
334
|
+
0,
|
|
335
|
+
)
|
|
336
|
+
names: set[str] = set()
|
|
337
|
+
casefold_names: set[str] = set()
|
|
338
|
+
total_uncompressed = 0
|
|
339
|
+
|
|
340
|
+
for info in members:
|
|
341
|
+
name = info.filename
|
|
342
|
+
location = name or "<empty>"
|
|
343
|
+
if (
|
|
344
|
+
not name
|
|
345
|
+
or "\x00" in name
|
|
346
|
+
or "\\" in name
|
|
347
|
+
or ":" in name
|
|
348
|
+
or "%" in name
|
|
349
|
+
):
|
|
350
|
+
findings.append(
|
|
351
|
+
_finding(
|
|
352
|
+
"ZIP_UNSAFE_NAME",
|
|
353
|
+
"empty, NUL, backslash, colon, or percent-encoded member name",
|
|
354
|
+
location=location,
|
|
355
|
+
)
|
|
356
|
+
)
|
|
357
|
+
continue
|
|
358
|
+
pure = PurePosixPath(name)
|
|
359
|
+
if pure.is_absolute() or any(part in {"", ".", ".."} for part in pure.parts):
|
|
360
|
+
findings.append(
|
|
361
|
+
_finding("ZIP_TRAVERSAL", "absolute or traversing member path", location=name)
|
|
362
|
+
)
|
|
363
|
+
if name in names or name.casefold() in casefold_names:
|
|
364
|
+
findings.append(
|
|
365
|
+
_finding("ZIP_DUPLICATE_NAME", "duplicate or case-colliding member", location=name)
|
|
366
|
+
)
|
|
367
|
+
names.add(name)
|
|
368
|
+
casefold_names.add(name.casefold())
|
|
369
|
+
unix_mode = (info.external_attr >> 16) & 0o170000
|
|
370
|
+
if unix_mode == stat.S_IFLNK:
|
|
371
|
+
findings.append(
|
|
372
|
+
_finding("ZIP_SYMLINK", "symbolic-link member is forbidden", location=name)
|
|
373
|
+
)
|
|
374
|
+
if info.flag_bits & 0x1:
|
|
375
|
+
findings.append(
|
|
376
|
+
_finding("ZIP_ENCRYPTED", "encrypted member is forbidden", location=name)
|
|
377
|
+
)
|
|
378
|
+
if info.compress_type not in {zipfile.ZIP_STORED, zipfile.ZIP_DEFLATED}:
|
|
379
|
+
findings.append(
|
|
380
|
+
_finding(
|
|
381
|
+
"ZIP_COMPRESSION_METHOD",
|
|
382
|
+
f"unsupported compression method {info.compress_type}",
|
|
383
|
+
location=name,
|
|
384
|
+
)
|
|
385
|
+
)
|
|
386
|
+
total_uncompressed += info.file_size
|
|
387
|
+
if total_uncompressed > MAX_TOTAL_UNCOMPRESSED:
|
|
388
|
+
findings.append(
|
|
389
|
+
_finding(
|
|
390
|
+
"ZIP_TOTAL_SIZE",
|
|
391
|
+
f"package expands beyond {MAX_TOTAL_UNCOMPRESSED} bytes",
|
|
392
|
+
location=name,
|
|
393
|
+
)
|
|
394
|
+
)
|
|
395
|
+
return members, findings, names, total_uncompressed
|
|
396
|
+
if info.file_size > MAX_MEMBER_UNCOMPRESSED:
|
|
397
|
+
findings.append(
|
|
398
|
+
_finding(
|
|
399
|
+
"ZIP_MEMBER_SIZE",
|
|
400
|
+
f"member expands to {info.file_size} bytes; "
|
|
401
|
+
f"limit is {MAX_MEMBER_UNCOMPRESSED}",
|
|
402
|
+
location=name,
|
|
403
|
+
)
|
|
404
|
+
)
|
|
405
|
+
return members, findings, names, total_uncompressed
|
|
406
|
+
if info.file_size:
|
|
407
|
+
if info.compress_size == 0:
|
|
408
|
+
ratio = float("inf")
|
|
409
|
+
else:
|
|
410
|
+
ratio = info.file_size / info.compress_size
|
|
411
|
+
if ratio > MAX_COMPRESSION_RATIO:
|
|
412
|
+
findings.append(
|
|
413
|
+
_finding(
|
|
414
|
+
"ZIP_COMPRESSION_RATIO",
|
|
415
|
+
f"compression ratio {ratio:.1f}:1 exceeds "
|
|
416
|
+
f"{MAX_COMPRESSION_RATIO:.1f}:1",
|
|
417
|
+
location=name,
|
|
418
|
+
)
|
|
419
|
+
)
|
|
420
|
+
return members, findings, names, total_uncompressed
|
|
421
|
+
lowered = name.lower()
|
|
422
|
+
if lowered.startswith(FORBIDDEN_PREFIXES):
|
|
423
|
+
findings.append(
|
|
424
|
+
_finding(
|
|
425
|
+
"FORBIDDEN_PACKAGE_PART",
|
|
426
|
+
"active, external, or embedded package area is forbidden",
|
|
427
|
+
location=name,
|
|
428
|
+
)
|
|
429
|
+
)
|
|
430
|
+
if lowered == "docprops/custom.xml":
|
|
431
|
+
findings.append(
|
|
432
|
+
_finding(
|
|
433
|
+
"FORBIDDEN_CUSTOM_PROPERTIES",
|
|
434
|
+
"custom document properties are outside the strict poster profile",
|
|
435
|
+
location=name,
|
|
436
|
+
)
|
|
437
|
+
)
|
|
438
|
+
if PurePosixPath(lowered).suffix in FORBIDDEN_BINARY_SUFFIXES:
|
|
439
|
+
findings.append(
|
|
440
|
+
_finding(
|
|
441
|
+
"FORBIDDEN_BINARY_PART",
|
|
442
|
+
"binary or executable package part is forbidden",
|
|
443
|
+
location=name,
|
|
444
|
+
)
|
|
445
|
+
)
|
|
446
|
+
if not _allowed_generated_part(name):
|
|
447
|
+
findings.append(
|
|
448
|
+
_finding(
|
|
449
|
+
"UNKNOWN_PACKAGE_PART",
|
|
450
|
+
"part is outside the strict one-slide generated-poster profile",
|
|
451
|
+
location=name,
|
|
452
|
+
)
|
|
453
|
+
)
|
|
454
|
+
if lowered.startswith("ppt/media/") and PurePosixPath(lowered).suffix not in {
|
|
455
|
+
".jpeg",
|
|
456
|
+
".jpg",
|
|
457
|
+
".png",
|
|
458
|
+
}:
|
|
459
|
+
findings.append(
|
|
460
|
+
_finding(
|
|
461
|
+
"FORBIDDEN_MEDIA_PART",
|
|
462
|
+
"non-image media part is forbidden",
|
|
463
|
+
location=name,
|
|
464
|
+
)
|
|
465
|
+
)
|
|
466
|
+
|
|
467
|
+
missing = sorted(REQUIRED_PARTS - names)
|
|
468
|
+
if missing:
|
|
469
|
+
findings.append(
|
|
470
|
+
_finding(
|
|
471
|
+
"MISSING_REQUIRED_PART",
|
|
472
|
+
f"missing required package part(s): {', '.join(missing)}",
|
|
473
|
+
)
|
|
474
|
+
)
|
|
475
|
+
return members, findings, names, total_uncompressed
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def _inspect_content_types(
|
|
479
|
+
archive: zipfile.ZipFile,
|
|
480
|
+
names: set[str],
|
|
481
|
+
) -> list[dict[str, Any]]:
|
|
482
|
+
findings: list[dict[str, Any]] = []
|
|
483
|
+
if "[Content_Types].xml" not in names:
|
|
484
|
+
return findings
|
|
485
|
+
try:
|
|
486
|
+
root = _parse_xml(
|
|
487
|
+
archive.read("[Content_Types].xml"),
|
|
488
|
+
location="[Content_Types].xml",
|
|
489
|
+
)
|
|
490
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError) as exc:
|
|
491
|
+
return [
|
|
492
|
+
_finding(
|
|
493
|
+
"CONTENT_TYPES_INVALID",
|
|
494
|
+
str(exc),
|
|
495
|
+
location="[Content_Types].xml",
|
|
496
|
+
)
|
|
497
|
+
]
|
|
498
|
+
if root.tag != f"{{{CT_NS}}}Types":
|
|
499
|
+
findings.append(
|
|
500
|
+
_finding(
|
|
501
|
+
"CONTENT_TYPES_INVALID",
|
|
502
|
+
"root element is not the OPC content-types element",
|
|
503
|
+
location="[Content_Types].xml",
|
|
504
|
+
)
|
|
505
|
+
)
|
|
506
|
+
return findings
|
|
507
|
+
main_type = None
|
|
508
|
+
seen_defaults: set[str] = set()
|
|
509
|
+
seen_overrides: set[str] = set()
|
|
510
|
+
for node in root:
|
|
511
|
+
content_type = node.attrib.get("ContentType", "")
|
|
512
|
+
lowered = content_type.lower()
|
|
513
|
+
if node.tag not in {f"{{{CT_NS}}}Default", f"{{{CT_NS}}}Override"}:
|
|
514
|
+
findings.append(
|
|
515
|
+
_finding(
|
|
516
|
+
"CONTENT_TYPES_INVALID",
|
|
517
|
+
"unexpected element in content-types part",
|
|
518
|
+
location="[Content_Types].xml",
|
|
519
|
+
)
|
|
520
|
+
)
|
|
521
|
+
continue
|
|
522
|
+
if content_type not in ALLOWED_CONTENT_TYPES:
|
|
523
|
+
findings.append(
|
|
524
|
+
_finding(
|
|
525
|
+
"UNEXPECTED_CONTENT_TYPE",
|
|
526
|
+
f"content type is outside the strict profile: {content_type!r}",
|
|
527
|
+
location="[Content_Types].xml",
|
|
528
|
+
)
|
|
529
|
+
)
|
|
530
|
+
if any(marker in lowered for marker in FORBIDDEN_CONTENT_TYPE_MARKERS):
|
|
531
|
+
findings.append(
|
|
532
|
+
_finding(
|
|
533
|
+
"FORBIDDEN_CONTENT_TYPE",
|
|
534
|
+
f"forbidden content type {content_type!r}",
|
|
535
|
+
location="[Content_Types].xml",
|
|
536
|
+
)
|
|
537
|
+
)
|
|
538
|
+
if node.tag == f"{{{CT_NS}}}Default":
|
|
539
|
+
extension = node.attrib.get("Extension", "")
|
|
540
|
+
if (
|
|
541
|
+
not extension
|
|
542
|
+
or extension in seen_defaults
|
|
543
|
+
or "/" in extension
|
|
544
|
+
or "\\" in extension
|
|
545
|
+
or "." in extension
|
|
546
|
+
):
|
|
547
|
+
findings.append(
|
|
548
|
+
_finding(
|
|
549
|
+
"CONTENT_TYPES_INVALID",
|
|
550
|
+
f"invalid or duplicate default extension {extension!r}",
|
|
551
|
+
location="[Content_Types].xml",
|
|
552
|
+
)
|
|
553
|
+
)
|
|
554
|
+
seen_defaults.add(extension)
|
|
555
|
+
continue
|
|
556
|
+
part_name = node.attrib.get("PartName", "")
|
|
557
|
+
normalized_part = part_name[1:] if part_name.startswith("/") else ""
|
|
558
|
+
if (
|
|
559
|
+
not normalized_part
|
|
560
|
+
or normalized_part in seen_overrides
|
|
561
|
+
or normalized_part not in names
|
|
562
|
+
):
|
|
563
|
+
findings.append(
|
|
564
|
+
_finding(
|
|
565
|
+
"CONTENT_TYPES_INVALID",
|
|
566
|
+
f"invalid, duplicate, or missing override part {part_name!r}",
|
|
567
|
+
location="[Content_Types].xml",
|
|
568
|
+
)
|
|
569
|
+
)
|
|
570
|
+
seen_overrides.add(normalized_part)
|
|
571
|
+
if (
|
|
572
|
+
node.tag == f"{{{CT_NS}}}Override"
|
|
573
|
+
and part_name == "/ppt/presentation.xml"
|
|
574
|
+
):
|
|
575
|
+
main_type = content_type
|
|
576
|
+
if main_type != STANDARD_PRESENTATION_CONTENT_TYPE:
|
|
577
|
+
findings.append(
|
|
578
|
+
_finding(
|
|
579
|
+
"PRESENTATION_CONTENT_TYPE",
|
|
580
|
+
"ppt/presentation.xml is not a standard macro-free PPTX main part",
|
|
581
|
+
location="[Content_Types].xml",
|
|
582
|
+
)
|
|
583
|
+
)
|
|
584
|
+
return findings
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
def _inspect_relationships(
|
|
588
|
+
archive: zipfile.ZipFile,
|
|
589
|
+
names: set[str],
|
|
590
|
+
) -> tuple[list[dict[str, Any]], int]:
|
|
591
|
+
findings: list[dict[str, Any]] = []
|
|
592
|
+
relationship_count = 0
|
|
593
|
+
for rels_name in sorted(name for name in names if name.endswith(".rels")):
|
|
594
|
+
try:
|
|
595
|
+
root = _parse_xml(archive.read(rels_name), location=rels_name)
|
|
596
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError) as exc:
|
|
597
|
+
findings.append(
|
|
598
|
+
_finding("RELATIONSHIPS_INVALID", str(exc), location=rels_name)
|
|
599
|
+
)
|
|
600
|
+
continue
|
|
601
|
+
if root.tag != f"{{{PKG_REL_NS}}}Relationships":
|
|
602
|
+
findings.append(
|
|
603
|
+
_finding(
|
|
604
|
+
"RELATIONSHIPS_INVALID",
|
|
605
|
+
"root element is not the OPC relationships element",
|
|
606
|
+
location=rels_name,
|
|
607
|
+
)
|
|
608
|
+
)
|
|
609
|
+
continue
|
|
610
|
+
seen_ids: set[str] = set()
|
|
611
|
+
for relationship in root:
|
|
612
|
+
if relationship.tag != f"{{{PKG_REL_NS}}}Relationship":
|
|
613
|
+
findings.append(
|
|
614
|
+
_finding(
|
|
615
|
+
"RELATIONSHIPS_INVALID",
|
|
616
|
+
"unexpected element in relationship part",
|
|
617
|
+
location=rels_name,
|
|
618
|
+
)
|
|
619
|
+
)
|
|
620
|
+
continue
|
|
621
|
+
relationship_count += 1
|
|
622
|
+
relationship_id = relationship.attrib.get("Id", "")
|
|
623
|
+
relationship_type = relationship.attrib.get("Type", "")
|
|
624
|
+
target = relationship.attrib.get("Target", "")
|
|
625
|
+
target_mode = relationship.attrib.get("TargetMode", "")
|
|
626
|
+
if not relationship_id or relationship_id in seen_ids:
|
|
627
|
+
findings.append(
|
|
628
|
+
_finding(
|
|
629
|
+
"RELATIONSHIPS_INVALID",
|
|
630
|
+
f"missing or duplicate relationship Id {relationship_id!r}",
|
|
631
|
+
location=rels_name,
|
|
632
|
+
)
|
|
633
|
+
)
|
|
634
|
+
seen_ids.add(relationship_id)
|
|
635
|
+
if not relationship_type:
|
|
636
|
+
findings.append(
|
|
637
|
+
_finding(
|
|
638
|
+
"RELATIONSHIPS_INVALID",
|
|
639
|
+
"relationship Type is required",
|
|
640
|
+
location=rels_name,
|
|
641
|
+
)
|
|
642
|
+
)
|
|
643
|
+
if target_mode == "External":
|
|
644
|
+
code = (
|
|
645
|
+
"REMOTE_LINKED_IMAGE"
|
|
646
|
+
if relationship_type.lower().endswith("/image")
|
|
647
|
+
else "EXTERNAL_RELATIONSHIP"
|
|
648
|
+
)
|
|
649
|
+
findings.append(
|
|
650
|
+
_finding(
|
|
651
|
+
code,
|
|
652
|
+
f"external target is forbidden: {target!r}",
|
|
653
|
+
location=rels_name,
|
|
654
|
+
)
|
|
655
|
+
)
|
|
656
|
+
continue
|
|
657
|
+
if target_mode not in {"", "Internal"}:
|
|
658
|
+
findings.append(
|
|
659
|
+
_finding(
|
|
660
|
+
"RELATIONSHIP_TARGET_MODE_INVALID",
|
|
661
|
+
f"unsupported TargetMode {target_mode!r}",
|
|
662
|
+
location=rels_name,
|
|
663
|
+
)
|
|
664
|
+
)
|
|
665
|
+
continue
|
|
666
|
+
type_lower = relationship_type.lower()
|
|
667
|
+
if any(marker in type_lower for marker in FORBIDDEN_RELATIONSHIP_MARKERS):
|
|
668
|
+
findings.append(
|
|
669
|
+
_finding(
|
|
670
|
+
"FORBIDDEN_RELATIONSHIP_TYPE",
|
|
671
|
+
f"forbidden relationship type {relationship_type!r}",
|
|
672
|
+
location=rels_name,
|
|
673
|
+
)
|
|
674
|
+
)
|
|
675
|
+
try:
|
|
676
|
+
resolved = _resolve_internal_target(rels_name, target)
|
|
677
|
+
except CliError as exc:
|
|
678
|
+
findings.append(
|
|
679
|
+
_finding(
|
|
680
|
+
"RELATIONSHIP_TARGET_INVALID",
|
|
681
|
+
str(exc),
|
|
682
|
+
location=rels_name,
|
|
683
|
+
)
|
|
684
|
+
)
|
|
685
|
+
continue
|
|
686
|
+
if resolved not in names:
|
|
687
|
+
findings.append(
|
|
688
|
+
_finding(
|
|
689
|
+
"RELATIONSHIP_TARGET_MISSING",
|
|
690
|
+
f"internal target does not exist: {resolved!r}",
|
|
691
|
+
location=rels_name,
|
|
692
|
+
)
|
|
693
|
+
)
|
|
694
|
+
return findings, relationship_count
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
def _inspect_all_xml_parts(
|
|
698
|
+
archive: zipfile.ZipFile,
|
|
699
|
+
names: set[str],
|
|
700
|
+
) -> list[dict[str, Any]]:
|
|
701
|
+
"""Reject malformed or entity-bearing XML anywhere in the strict package."""
|
|
702
|
+
findings: list[dict[str, Any]] = []
|
|
703
|
+
for part_name in sorted(name for name in names if name.endswith(".xml")):
|
|
704
|
+
try:
|
|
705
|
+
_parse_xml(archive.read(part_name), location=part_name)
|
|
706
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError) as exc:
|
|
707
|
+
findings.append(
|
|
708
|
+
_finding("XML_PART_INVALID", str(exc), location=part_name)
|
|
709
|
+
)
|
|
710
|
+
return findings
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
def _inspect_one_slide_profile(
|
|
714
|
+
archive: zipfile.ZipFile,
|
|
715
|
+
names: set[str],
|
|
716
|
+
) -> list[dict[str, Any]]:
|
|
717
|
+
"""Require exactly one slide and one matching presentation relationship."""
|
|
718
|
+
findings: list[dict[str, Any]] = []
|
|
719
|
+
slide_names = sorted(
|
|
720
|
+
name
|
|
721
|
+
for name in names
|
|
722
|
+
if name.startswith("ppt/slides/slide")
|
|
723
|
+
and name.endswith(".xml")
|
|
724
|
+
and "/_rels/" not in name
|
|
725
|
+
)
|
|
726
|
+
if len(slide_names) != 1:
|
|
727
|
+
return [
|
|
728
|
+
_finding(
|
|
729
|
+
"SLIDE_COUNT",
|
|
730
|
+
f"strict poster profile requires exactly one slide; found {len(slide_names)}",
|
|
731
|
+
location="ppt/presentation.xml",
|
|
732
|
+
)
|
|
733
|
+
]
|
|
734
|
+
try:
|
|
735
|
+
presentation = _parse_xml(
|
|
736
|
+
archive.read("ppt/presentation.xml"),
|
|
737
|
+
location="ppt/presentation.xml",
|
|
738
|
+
)
|
|
739
|
+
presentation_rels = _parse_xml(
|
|
740
|
+
archive.read("ppt/_rels/presentation.xml.rels"),
|
|
741
|
+
location="ppt/_rels/presentation.xml.rels",
|
|
742
|
+
)
|
|
743
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError) as exc:
|
|
744
|
+
return [
|
|
745
|
+
_finding(
|
|
746
|
+
"PRESENTATION_PROFILE_INVALID",
|
|
747
|
+
str(exc),
|
|
748
|
+
location="ppt/presentation.xml",
|
|
749
|
+
)
|
|
750
|
+
]
|
|
751
|
+
slide_ids = presentation.findall(
|
|
752
|
+
f"./{{{P_NS}}}sldIdLst/{{{P_NS}}}sldId"
|
|
753
|
+
)
|
|
754
|
+
if len(slide_ids) != 1:
|
|
755
|
+
findings.append(
|
|
756
|
+
_finding(
|
|
757
|
+
"SLIDE_ID_COUNT",
|
|
758
|
+
f"presentation must declare exactly one slide Id; found {len(slide_ids)}",
|
|
759
|
+
location="ppt/presentation.xml",
|
|
760
|
+
)
|
|
761
|
+
)
|
|
762
|
+
return findings
|
|
763
|
+
relationship_id = slide_ids[0].attrib.get(f"{{{R_NS}}}id", "")
|
|
764
|
+
targets: dict[str, str] = {}
|
|
765
|
+
for relationship in presentation_rels:
|
|
766
|
+
if relationship.attrib.get("TargetMode", "") == "External":
|
|
767
|
+
continue
|
|
768
|
+
try:
|
|
769
|
+
target = _resolve_internal_target(
|
|
770
|
+
"ppt/_rels/presentation.xml.rels",
|
|
771
|
+
relationship.attrib.get("Target", ""),
|
|
772
|
+
)
|
|
773
|
+
except CliError:
|
|
774
|
+
continue
|
|
775
|
+
targets[relationship.attrib.get("Id", "")] = target
|
|
776
|
+
if targets.get(relationship_id) != slide_names[0]:
|
|
777
|
+
findings.append(
|
|
778
|
+
_finding(
|
|
779
|
+
"SLIDE_RELATIONSHIP",
|
|
780
|
+
"the declared slide Id does not resolve to the sole slide part",
|
|
781
|
+
location="ppt/presentation.xml",
|
|
782
|
+
)
|
|
783
|
+
)
|
|
784
|
+
return findings
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
def _inspect_image_payloads(
|
|
788
|
+
archive: zipfile.ZipFile,
|
|
789
|
+
names: set[str],
|
|
790
|
+
) -> list[dict[str, Any]]:
|
|
791
|
+
"""Check strict-profile image signatures and stream through CRC validation."""
|
|
792
|
+
findings: list[dict[str, Any]] = []
|
|
793
|
+
image_names = sorted(
|
|
794
|
+
name
|
|
795
|
+
for name in names
|
|
796
|
+
if name.startswith("ppt/media/") or name == "docProps/thumbnail.jpeg"
|
|
797
|
+
)
|
|
798
|
+
for part_name in image_names:
|
|
799
|
+
try:
|
|
800
|
+
with archive.open(part_name, "r") as handle:
|
|
801
|
+
prefix = handle.read(16)
|
|
802
|
+
while handle.read(1024 * 1024):
|
|
803
|
+
pass
|
|
804
|
+
except (OSError, RuntimeError, zipfile.BadZipFile) as exc:
|
|
805
|
+
findings.append(
|
|
806
|
+
_finding("IMAGE_PART_INVALID", str(exc), location=part_name)
|
|
807
|
+
)
|
|
808
|
+
continue
|
|
809
|
+
suffix = PurePosixPath(part_name).suffix.lower()
|
|
810
|
+
signature_ok = (
|
|
811
|
+
prefix.startswith(b"\x89PNG\r\n\x1a\n")
|
|
812
|
+
if suffix == ".png"
|
|
813
|
+
else prefix.startswith(b"\xff\xd8\xff")
|
|
814
|
+
)
|
|
815
|
+
if not signature_ok:
|
|
816
|
+
findings.append(
|
|
817
|
+
_finding(
|
|
818
|
+
"IMAGE_SIGNATURE",
|
|
819
|
+
"image bytes do not match the declared PNG/JPEG suffix",
|
|
820
|
+
location=part_name,
|
|
821
|
+
)
|
|
822
|
+
)
|
|
823
|
+
return findings
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
def _inspect_slide_accessibility(
|
|
827
|
+
archive: zipfile.ZipFile,
|
|
828
|
+
names: set[str],
|
|
829
|
+
) -> dict[str, Any]:
|
|
830
|
+
picture_count = 0
|
|
831
|
+
pictures_with_alt_text = 0
|
|
832
|
+
missing_alt: list[dict[str, str]] = []
|
|
833
|
+
slide_title_count = 0
|
|
834
|
+
text_run_count = 0
|
|
835
|
+
text_runs_with_language = 0
|
|
836
|
+
missing_language: list[dict[str, str]] = []
|
|
837
|
+
slide_names = sorted(
|
|
838
|
+
name
|
|
839
|
+
for name in names
|
|
840
|
+
if name.startswith("ppt/slides/slide")
|
|
841
|
+
and name.endswith(".xml")
|
|
842
|
+
and "/_rels/" not in name
|
|
843
|
+
)
|
|
844
|
+
for slide_name in slide_names:
|
|
845
|
+
try:
|
|
846
|
+
root = _parse_xml(archive.read(slide_name), location=slide_name)
|
|
847
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError):
|
|
848
|
+
continue
|
|
849
|
+
for shape in root.findall(f".//{{{P_NS}}}sp"):
|
|
850
|
+
placeholder = shape.find(
|
|
851
|
+
f"./{{{P_NS}}}nvSpPr/{{{P_NS}}}nvPr/{{{P_NS}}}ph"
|
|
852
|
+
)
|
|
853
|
+
if (
|
|
854
|
+
placeholder is not None
|
|
855
|
+
and placeholder.attrib.get("type") in {"title", "ctrTitle"}
|
|
856
|
+
and "".join(
|
|
857
|
+
node.text or ""
|
|
858
|
+
for node in shape.findall(f".//{{{A_NS}}}t")
|
|
859
|
+
).strip()
|
|
860
|
+
):
|
|
861
|
+
slide_title_count += 1
|
|
862
|
+
for run_index, run in enumerate(root.findall(f".//{{{A_NS}}}r"), 1):
|
|
863
|
+
text = run.find(f"./{{{A_NS}}}t")
|
|
864
|
+
if text is None or not (text.text or ""):
|
|
865
|
+
continue
|
|
866
|
+
text_run_count += 1
|
|
867
|
+
properties = run.find(f"./{{{A_NS}}}rPr")
|
|
868
|
+
language = "" if properties is None else properties.attrib.get("lang", "")
|
|
869
|
+
if language:
|
|
870
|
+
text_runs_with_language += 1
|
|
871
|
+
else:
|
|
872
|
+
missing_language.append(
|
|
873
|
+
{"slide": slide_name, "run": str(run_index)}
|
|
874
|
+
)
|
|
875
|
+
for picture in root.findall(f".//{{{P_NS}}}pic"):
|
|
876
|
+
picture_count += 1
|
|
877
|
+
properties = picture.find(f"./{{{P_NS}}}nvPicPr/{{{P_NS}}}cNvPr")
|
|
878
|
+
name = ""
|
|
879
|
+
description = ""
|
|
880
|
+
if properties is not None:
|
|
881
|
+
name = properties.attrib.get("name", "")
|
|
882
|
+
description = properties.attrib.get("descr", "").strip()
|
|
883
|
+
if description:
|
|
884
|
+
pictures_with_alt_text += 1
|
|
885
|
+
else:
|
|
886
|
+
missing_alt.append({"slide": slide_name, "name": name})
|
|
887
|
+
return {
|
|
888
|
+
"picture_count": picture_count,
|
|
889
|
+
"pictures_with_alt_text": pictures_with_alt_text,
|
|
890
|
+
"pictures_missing_alt_text": missing_alt,
|
|
891
|
+
"slide_title_count": slide_title_count,
|
|
892
|
+
"text_run_count": text_run_count,
|
|
893
|
+
"text_runs_with_language": text_runs_with_language,
|
|
894
|
+
"text_runs_missing_language": missing_language,
|
|
895
|
+
"manual_check_required": (
|
|
896
|
+
"PowerPoint Accessibility Checker, Reading Order pane, and a screen-reader "
|
|
897
|
+
"test remain required; package inspection cannot establish accessibility."
|
|
898
|
+
),
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
def _inspect_forbidden_markup(
|
|
903
|
+
archive: zipfile.ZipFile,
|
|
904
|
+
names: set[str],
|
|
905
|
+
) -> list[dict[str, Any]]:
|
|
906
|
+
findings: list[dict[str, Any]] = []
|
|
907
|
+
for part_name in sorted(
|
|
908
|
+
name
|
|
909
|
+
for name in names
|
|
910
|
+
if name.startswith("ppt/")
|
|
911
|
+
and name.endswith(".xml")
|
|
912
|
+
and "/_rels/" not in name
|
|
913
|
+
):
|
|
914
|
+
try:
|
|
915
|
+
root = _parse_xml(archive.read(part_name), location=part_name)
|
|
916
|
+
except (KeyError, OSError, RuntimeError, zipfile.BadZipFile, CliError) as exc:
|
|
917
|
+
findings.append(
|
|
918
|
+
_finding("PRESENTATION_XML_INVALID", str(exc), location=part_name)
|
|
919
|
+
)
|
|
920
|
+
continue
|
|
921
|
+
for node in root.iter():
|
|
922
|
+
local = _local_name(node.tag).lower()
|
|
923
|
+
namespace = node.tag.split("}", 1)[0].lower()
|
|
924
|
+
if local in {
|
|
925
|
+
"audio",
|
|
926
|
+
"cmd",
|
|
927
|
+
"control",
|
|
928
|
+
"hlinkclick",
|
|
929
|
+
"hlinkhover",
|
|
930
|
+
"oleobj",
|
|
931
|
+
"snd",
|
|
932
|
+
"timing",
|
|
933
|
+
"transition",
|
|
934
|
+
"video",
|
|
935
|
+
} or any(
|
|
936
|
+
marker in namespace
|
|
937
|
+
for marker in ("activex", "model3d", "webextension")
|
|
938
|
+
):
|
|
939
|
+
findings.append(
|
|
940
|
+
_finding(
|
|
941
|
+
"FORBIDDEN_PRESENTATION_MARKUP",
|
|
942
|
+
f"active or embedded markup element {local!r} is forbidden",
|
|
943
|
+
location=part_name,
|
|
944
|
+
)
|
|
945
|
+
)
|
|
946
|
+
break
|
|
947
|
+
return findings
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
def inspect_pptx(value: str | Path) -> dict[str, Any]:
|
|
951
|
+
"""Inspect a PPTX as ZIP/XML without opening it in PowerPoint or python-pptx."""
|
|
952
|
+
path = checked_input_file(value, max_bytes=MAX_INPUT_BYTES)
|
|
953
|
+
findings: list[dict[str, Any]] = []
|
|
954
|
+
if path.suffix.lower() != ".pptx":
|
|
955
|
+
findings.append(
|
|
956
|
+
_finding(
|
|
957
|
+
"FILE_EXTENSION",
|
|
958
|
+
"only the macro-free .pptx extension is accepted; .pptm is rejected",
|
|
959
|
+
location=str(path),
|
|
960
|
+
)
|
|
961
|
+
)
|
|
962
|
+
return {
|
|
963
|
+
"schema_version": REPORT_SCHEMA_VERSION,
|
|
964
|
+
"path": str(path),
|
|
965
|
+
"safe": False,
|
|
966
|
+
"findings": findings,
|
|
967
|
+
}
|
|
968
|
+
findings.extend(_preflight_zip_directory(path))
|
|
969
|
+
if findings:
|
|
970
|
+
return {
|
|
971
|
+
"schema_version": REPORT_SCHEMA_VERSION,
|
|
972
|
+
"path": str(path),
|
|
973
|
+
"safe": False,
|
|
974
|
+
"findings": findings,
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
member_count = 0
|
|
978
|
+
total_uncompressed = 0
|
|
979
|
+
relationship_count = 0
|
|
980
|
+
accessibility: dict[str, Any] = {
|
|
981
|
+
"picture_count": 0,
|
|
982
|
+
"pictures_with_alt_text": 0,
|
|
983
|
+
"pictures_missing_alt_text": [],
|
|
984
|
+
"slide_title_count": 0,
|
|
985
|
+
"text_run_count": 0,
|
|
986
|
+
"text_runs_with_language": 0,
|
|
987
|
+
"text_runs_missing_language": [],
|
|
988
|
+
"manual_check_required": True,
|
|
989
|
+
}
|
|
990
|
+
try:
|
|
991
|
+
with zipfile.ZipFile(path, "r") as archive:
|
|
992
|
+
members, member_findings, names, total_uncompressed = _preflight_members(
|
|
993
|
+
archive
|
|
994
|
+
)
|
|
995
|
+
member_count = len(members)
|
|
996
|
+
findings.extend(member_findings)
|
|
997
|
+
if not member_findings:
|
|
998
|
+
findings.extend(_inspect_content_types(archive, names))
|
|
999
|
+
findings.extend(_inspect_all_xml_parts(archive, names))
|
|
1000
|
+
rel_findings, relationship_count = _inspect_relationships(
|
|
1001
|
+
archive, names
|
|
1002
|
+
)
|
|
1003
|
+
findings.extend(rel_findings)
|
|
1004
|
+
findings.extend(_inspect_one_slide_profile(archive, names))
|
|
1005
|
+
findings.extend(_inspect_forbidden_markup(archive, names))
|
|
1006
|
+
findings.extend(_inspect_image_payloads(archive, names))
|
|
1007
|
+
accessibility = _inspect_slide_accessibility(archive, names)
|
|
1008
|
+
except (OSError, RuntimeError, zipfile.BadZipFile, zipfile.LargeZipFile) as exc:
|
|
1009
|
+
findings.append(_finding("ZIP_READ_ERROR", str(exc)))
|
|
1010
|
+
|
|
1011
|
+
return {
|
|
1012
|
+
"schema_version": REPORT_SCHEMA_VERSION,
|
|
1013
|
+
"path": str(path),
|
|
1014
|
+
"safe": not findings,
|
|
1015
|
+
"limits": {
|
|
1016
|
+
"max_archive_bytes": MAX_INPUT_BYTES,
|
|
1017
|
+
"max_members": MAX_MEMBERS,
|
|
1018
|
+
"max_central_directory_bytes": MAX_CENTRAL_DIRECTORY_BYTES,
|
|
1019
|
+
"max_member_uncompressed_bytes": MAX_MEMBER_UNCOMPRESSED,
|
|
1020
|
+
"max_total_uncompressed_bytes": MAX_TOTAL_UNCOMPRESSED,
|
|
1021
|
+
"max_compression_ratio": MAX_COMPRESSION_RATIO,
|
|
1022
|
+
},
|
|
1023
|
+
"package": {
|
|
1024
|
+
"member_count": member_count,
|
|
1025
|
+
"total_uncompressed_bytes": total_uncompressed,
|
|
1026
|
+
"relationship_count": relationship_count,
|
|
1027
|
+
},
|
|
1028
|
+
"accessibility": accessibility,
|
|
1029
|
+
"findings": findings,
|
|
1030
|
+
"inspection_method": (
|
|
1031
|
+
"Bounded ZIP central-directory and selected XML-part inspection only; "
|
|
1032
|
+
"members were not extracted and the presentation was not opened or executed."
|
|
1033
|
+
),
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
def require_safe_pptx(value: str | Path) -> dict[str, Any]:
|
|
1038
|
+
report = inspect_pptx(value)
|
|
1039
|
+
if not report["safe"]:
|
|
1040
|
+
codes = ", ".join(item["code"] for item in report["findings"])
|
|
1041
|
+
raise CliError(f"unsafe PPTX package ({codes})")
|
|
1042
|
+
return report
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
def _local_name(tag: str) -> str:
|
|
1046
|
+
return tag.rsplit("}", 1)[-1]
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
def _shape_transform(shape: ET.Element) -> tuple[int, int, int, int] | None:
|
|
1050
|
+
kind = _local_name(shape.tag)
|
|
1051
|
+
if kind == "graphicFrame":
|
|
1052
|
+
transform = shape.find(f"./{{{P_NS}}}xfrm")
|
|
1053
|
+
else:
|
|
1054
|
+
transform = shape.find(f"./{{{P_NS}}}spPr/{{{A_NS}}}xfrm")
|
|
1055
|
+
if transform is None:
|
|
1056
|
+
return None
|
|
1057
|
+
offset = transform.find(f"./{{{A_NS}}}off")
|
|
1058
|
+
extent = transform.find(f"./{{{A_NS}}}ext")
|
|
1059
|
+
if offset is None or extent is None:
|
|
1060
|
+
return None
|
|
1061
|
+
try:
|
|
1062
|
+
return (
|
|
1063
|
+
int(offset.attrib["x"]),
|
|
1064
|
+
int(offset.attrib["y"]),
|
|
1065
|
+
int(extent.attrib["cx"]),
|
|
1066
|
+
int(extent.attrib["cy"]),
|
|
1067
|
+
)
|
|
1068
|
+
except (KeyError, ValueError):
|
|
1069
|
+
return None
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
def _shape_name(shape: ET.Element) -> str:
|
|
1073
|
+
properties = shape.find(f".//{{{P_NS}}}cNvPr")
|
|
1074
|
+
return "" if properties is None else properties.attrib.get("name", "")
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
def _shape_text(shape: ET.Element) -> str:
|
|
1078
|
+
return "".join(
|
|
1079
|
+
node.text or "" for node in shape.findall(f".//{{{A_NS}}}t")
|
|
1080
|
+
).strip()
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
def _font_sizes_pt(shape: ET.Element) -> list[float]:
|
|
1084
|
+
sizes: list[float] = []
|
|
1085
|
+
for tag in ("rPr", "defRPr", "endParaRPr"):
|
|
1086
|
+
for node in shape.findall(f".//{{{A_NS}}}{tag}"):
|
|
1087
|
+
raw = node.attrib.get("sz")
|
|
1088
|
+
if raw is None:
|
|
1089
|
+
continue
|
|
1090
|
+
try:
|
|
1091
|
+
sizes.append(int(raw) / 100.0)
|
|
1092
|
+
except ValueError:
|
|
1093
|
+
continue
|
|
1094
|
+
return sizes
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
def _intersection(
|
|
1098
|
+
first: tuple[int, int, int, int],
|
|
1099
|
+
second: tuple[int, int, int, int],
|
|
1100
|
+
) -> tuple[int, int]:
|
|
1101
|
+
first_x, first_y, first_w, first_h = first
|
|
1102
|
+
second_x, second_y, second_w, second_h = second
|
|
1103
|
+
overlap_w = min(first_x + first_w, second_x + second_w) - max(
|
|
1104
|
+
first_x, second_x
|
|
1105
|
+
)
|
|
1106
|
+
overlap_h = min(first_y + first_h, second_y + second_h) - max(
|
|
1107
|
+
first_y, second_y
|
|
1108
|
+
)
|
|
1109
|
+
return max(0, overlap_w), max(0, overlap_h)
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
def analyze_layout(
|
|
1113
|
+
value: str | Path,
|
|
1114
|
+
*,
|
|
1115
|
+
print_scale: float = 1.0,
|
|
1116
|
+
minimum_font_pt_final: float = 18.0,
|
|
1117
|
+
) -> dict[str, Any]:
|
|
1118
|
+
"""Check direct slide shapes for bounds, overlap, and explicit font sizes."""
|
|
1119
|
+
if print_scale <= 0:
|
|
1120
|
+
raise CliError("print_scale must be greater than zero")
|
|
1121
|
+
if minimum_font_pt_final <= 0:
|
|
1122
|
+
raise CliError("minimum_font_pt_final must be greater than zero")
|
|
1123
|
+
package_report = require_safe_pptx(value)
|
|
1124
|
+
path = Path(package_report["path"])
|
|
1125
|
+
issues: list[dict[str, Any]] = []
|
|
1126
|
+
slides: list[dict[str, Any]] = []
|
|
1127
|
+
|
|
1128
|
+
with zipfile.ZipFile(path, "r") as archive:
|
|
1129
|
+
presentation = _parse_xml(
|
|
1130
|
+
archive.read("ppt/presentation.xml"),
|
|
1131
|
+
location="ppt/presentation.xml",
|
|
1132
|
+
)
|
|
1133
|
+
slide_size = presentation.find(f"./{{{P_NS}}}sldSz")
|
|
1134
|
+
if slide_size is None:
|
|
1135
|
+
raise CliError("ppt/presentation.xml does not declare slide dimensions")
|
|
1136
|
+
try:
|
|
1137
|
+
slide_width = int(slide_size.attrib["cx"])
|
|
1138
|
+
slide_height = int(slide_size.attrib["cy"])
|
|
1139
|
+
except (KeyError, ValueError) as exc:
|
|
1140
|
+
raise CliError("invalid slide dimensions in ppt/presentation.xml") from exc
|
|
1141
|
+
|
|
1142
|
+
slide_names = sorted(
|
|
1143
|
+
(
|
|
1144
|
+
name
|
|
1145
|
+
for name in archive.namelist()
|
|
1146
|
+
if name.startswith("ppt/slides/slide")
|
|
1147
|
+
and name.endswith(".xml")
|
|
1148
|
+
and "/_rels/" not in name
|
|
1149
|
+
),
|
|
1150
|
+
key=lambda name: (
|
|
1151
|
+
len(PurePosixPath(name).stem),
|
|
1152
|
+
PurePosixPath(name).stem,
|
|
1153
|
+
),
|
|
1154
|
+
)
|
|
1155
|
+
for slide_index, slide_name in enumerate(slide_names, 1):
|
|
1156
|
+
root = _parse_xml(archive.read(slide_name), location=slide_name)
|
|
1157
|
+
tree = root.find(f"./{{{P_NS}}}cSld/{{{P_NS}}}spTree")
|
|
1158
|
+
if tree is None:
|
|
1159
|
+
issues.append(
|
|
1160
|
+
{
|
|
1161
|
+
"code": "MISSING_SHAPE_TREE",
|
|
1162
|
+
"slide": slide_index,
|
|
1163
|
+
"message": "slide has no shape tree",
|
|
1164
|
+
}
|
|
1165
|
+
)
|
|
1166
|
+
continue
|
|
1167
|
+
shapes: list[dict[str, Any]] = []
|
|
1168
|
+
for child in list(tree):
|
|
1169
|
+
kind = _local_name(child.tag)
|
|
1170
|
+
if kind not in {"sp", "pic", "graphicFrame", "cxnSp", "grpSp"}:
|
|
1171
|
+
continue
|
|
1172
|
+
name = _shape_name(child)
|
|
1173
|
+
if kind == "grpSp":
|
|
1174
|
+
issues.append(
|
|
1175
|
+
{
|
|
1176
|
+
"code": "GROUP_REQUIRES_MANUAL_REVIEW",
|
|
1177
|
+
"slide": slide_index,
|
|
1178
|
+
"shape": name,
|
|
1179
|
+
"message": (
|
|
1180
|
+
"group transforms are not flattened by this checker"
|
|
1181
|
+
),
|
|
1182
|
+
}
|
|
1183
|
+
)
|
|
1184
|
+
continue
|
|
1185
|
+
box = _shape_transform(child)
|
|
1186
|
+
if box is None:
|
|
1187
|
+
issues.append(
|
|
1188
|
+
{
|
|
1189
|
+
"code": "MISSING_TRANSFORM",
|
|
1190
|
+
"slide": slide_index,
|
|
1191
|
+
"shape": name,
|
|
1192
|
+
"message": "shape position or size could not be read",
|
|
1193
|
+
}
|
|
1194
|
+
)
|
|
1195
|
+
continue
|
|
1196
|
+
x, y, width, height = box
|
|
1197
|
+
text = _shape_text(child)
|
|
1198
|
+
sizes = _font_sizes_pt(child)
|
|
1199
|
+
shape_record = {
|
|
1200
|
+
"reading_order": len(shapes) + 1,
|
|
1201
|
+
"name": name,
|
|
1202
|
+
"kind": kind,
|
|
1203
|
+
"x_in": x / EMU_PER_INCH,
|
|
1204
|
+
"y_in": y / EMU_PER_INCH,
|
|
1205
|
+
"width_in": width / EMU_PER_INCH,
|
|
1206
|
+
"height_in": height / EMU_PER_INCH,
|
|
1207
|
+
"has_text": bool(text),
|
|
1208
|
+
"_box": box,
|
|
1209
|
+
}
|
|
1210
|
+
shapes.append(shape_record)
|
|
1211
|
+
if x < 0 or y < 0 or x + width > slide_width or y + height > slide_height:
|
|
1212
|
+
issues.append(
|
|
1213
|
+
{
|
|
1214
|
+
"code": "OUT_OF_BOUNDS",
|
|
1215
|
+
"slide": slide_index,
|
|
1216
|
+
"shape": name,
|
|
1217
|
+
"message": "shape extends outside the slide canvas",
|
|
1218
|
+
}
|
|
1219
|
+
)
|
|
1220
|
+
if text:
|
|
1221
|
+
if not sizes:
|
|
1222
|
+
issues.append(
|
|
1223
|
+
{
|
|
1224
|
+
"code": "FONT_SIZE_UNSPECIFIED",
|
|
1225
|
+
"slide": slide_index,
|
|
1226
|
+
"shape": name,
|
|
1227
|
+
"message": (
|
|
1228
|
+
"text has no explicit run/default font size; "
|
|
1229
|
+
"theme inheritance requires manual review"
|
|
1230
|
+
),
|
|
1231
|
+
}
|
|
1232
|
+
)
|
|
1233
|
+
else:
|
|
1234
|
+
minimum_design = min(sizes)
|
|
1235
|
+
minimum_final = minimum_design * print_scale
|
|
1236
|
+
shape_record["minimum_font_pt_design"] = minimum_design
|
|
1237
|
+
shape_record["minimum_font_pt_final"] = minimum_final
|
|
1238
|
+
if minimum_final + 1e-6 < minimum_font_pt_final:
|
|
1239
|
+
issues.append(
|
|
1240
|
+
{
|
|
1241
|
+
"code": "FONT_TOO_SMALL",
|
|
1242
|
+
"slide": slide_index,
|
|
1243
|
+
"shape": name,
|
|
1244
|
+
"message": (
|
|
1245
|
+
f"minimum final font {minimum_final:.2f} pt "
|
|
1246
|
+
f"is below {minimum_font_pt_final:.2f} pt"
|
|
1247
|
+
),
|
|
1248
|
+
}
|
|
1249
|
+
)
|
|
1250
|
+
|
|
1251
|
+
for first_index, first in enumerate(shapes):
|
|
1252
|
+
first_box = first["_box"]
|
|
1253
|
+
if first_box[2] <= 0 or first_box[3] <= 0:
|
|
1254
|
+
continue
|
|
1255
|
+
for second in shapes[first_index + 1 :]:
|
|
1256
|
+
second_box = second["_box"]
|
|
1257
|
+
if second_box[2] <= 0 or second_box[3] <= 0:
|
|
1258
|
+
continue
|
|
1259
|
+
overlap_width, overlap_height = _intersection(
|
|
1260
|
+
first_box, second_box
|
|
1261
|
+
)
|
|
1262
|
+
if overlap_width > 0 and overlap_height > 0:
|
|
1263
|
+
overlap_area = overlap_width * overlap_height
|
|
1264
|
+
smaller_area = min(
|
|
1265
|
+
first_box[2] * first_box[3],
|
|
1266
|
+
second_box[2] * second_box[3],
|
|
1267
|
+
)
|
|
1268
|
+
issues.append(
|
|
1269
|
+
{
|
|
1270
|
+
"code": "SHAPE_OVERLAP",
|
|
1271
|
+
"slide": slide_index,
|
|
1272
|
+
"shapes": [first["name"], second["name"]],
|
|
1273
|
+
"overlap_fraction_of_smaller": (
|
|
1274
|
+
overlap_area / smaller_area
|
|
1275
|
+
),
|
|
1276
|
+
"message": (
|
|
1277
|
+
"direct shape bounding boxes overlap; determine "
|
|
1278
|
+
"whether this is intentional"
|
|
1279
|
+
),
|
|
1280
|
+
}
|
|
1281
|
+
)
|
|
1282
|
+
for shape in shapes:
|
|
1283
|
+
shape.pop("_box", None)
|
|
1284
|
+
slides.append(
|
|
1285
|
+
{
|
|
1286
|
+
"slide": slide_index,
|
|
1287
|
+
"part": slide_name,
|
|
1288
|
+
"shape_count": len(shapes),
|
|
1289
|
+
"reading_order": [
|
|
1290
|
+
{"order": shape["reading_order"], "name": shape["name"]}
|
|
1291
|
+
for shape in shapes
|
|
1292
|
+
],
|
|
1293
|
+
"shapes": shapes,
|
|
1294
|
+
}
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
return {
|
|
1298
|
+
"schema_version": REPORT_SCHEMA_VERSION,
|
|
1299
|
+
"path": str(path),
|
|
1300
|
+
"pass": not issues,
|
|
1301
|
+
"slide_size": {
|
|
1302
|
+
"width_in": slide_width / EMU_PER_INCH,
|
|
1303
|
+
"height_in": slide_height / EMU_PER_INCH,
|
|
1304
|
+
},
|
|
1305
|
+
"print_scale": print_scale,
|
|
1306
|
+
"minimum_font_pt_final": minimum_font_pt_final,
|
|
1307
|
+
"minimum_font_basis": (
|
|
1308
|
+
"Caller-supplied requirement or project heuristic; this value is not "
|
|
1309
|
+
"a universal poster standard."
|
|
1310
|
+
),
|
|
1311
|
+
"slides": slides,
|
|
1312
|
+
"issues": issues,
|
|
1313
|
+
"manual_checks": [
|
|
1314
|
+
"Review text overflow in PowerPoint; XML bounds do not reveal rendered overflow.",
|
|
1315
|
+
"Confirm Reading Order pane order and test with a screen reader.",
|
|
1316
|
+
"Inspect intentional overlays, rotated objects, groups, charts, and SmartArt manually.",
|
|
1317
|
+
],
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
def strip_generated_printer_settings(source: Path, destination: Path) -> None:
|
|
1322
|
+
"""Remove python-pptx's inert default printer-settings binary from new output."""
|
|
1323
|
+
with zipfile.ZipFile(source, "r") as input_archive:
|
|
1324
|
+
_, preflight_findings, _, _ = _preflight_members(input_archive)
|
|
1325
|
+
unexpected = [
|
|
1326
|
+
finding
|
|
1327
|
+
for finding in preflight_findings
|
|
1328
|
+
if not (
|
|
1329
|
+
finding["code"] == "FORBIDDEN_BINARY_PART"
|
|
1330
|
+
and str(finding.get("location", "")).startswith(
|
|
1331
|
+
"ppt/printerSettings/"
|
|
1332
|
+
)
|
|
1333
|
+
)
|
|
1334
|
+
]
|
|
1335
|
+
if unexpected:
|
|
1336
|
+
codes = ", ".join(finding["code"] for finding in unexpected)
|
|
1337
|
+
raise CliError(
|
|
1338
|
+
f"generated package has unexpected ZIP findings before cleanup: {codes}"
|
|
1339
|
+
)
|
|
1340
|
+
with zipfile.ZipFile(
|
|
1341
|
+
destination,
|
|
1342
|
+
"w",
|
|
1343
|
+
compression=zipfile.ZIP_DEFLATED,
|
|
1344
|
+
compresslevel=6,
|
|
1345
|
+
allowZip64=True,
|
|
1346
|
+
) as output_archive:
|
|
1347
|
+
for info in input_archive.infolist():
|
|
1348
|
+
if info.filename.startswith("ppt/printerSettings/"):
|
|
1349
|
+
continue
|
|
1350
|
+
info.date_time = DETERMINISTIC_ZIP_DATETIME
|
|
1351
|
+
if info.filename == "[Content_Types].xml":
|
|
1352
|
+
root = _parse_xml(
|
|
1353
|
+
input_archive.read(info.filename),
|
|
1354
|
+
location=info.filename,
|
|
1355
|
+
)
|
|
1356
|
+
for node in list(root):
|
|
1357
|
+
if (
|
|
1358
|
+
node.tag == f"{{{CT_NS}}}Default"
|
|
1359
|
+
and node.attrib.get("Extension", "").lower() == "bin"
|
|
1360
|
+
and node.attrib.get("ContentType", "").endswith(
|
|
1361
|
+
".printerSettings"
|
|
1362
|
+
)
|
|
1363
|
+
):
|
|
1364
|
+
root.remove(node)
|
|
1365
|
+
output_archive.writestr(
|
|
1366
|
+
info,
|
|
1367
|
+
ET.tostring(
|
|
1368
|
+
root,
|
|
1369
|
+
encoding="utf-8",
|
|
1370
|
+
xml_declaration=True,
|
|
1371
|
+
),
|
|
1372
|
+
)
|
|
1373
|
+
continue
|
|
1374
|
+
if info.filename.endswith(".rels"):
|
|
1375
|
+
root = _parse_xml(
|
|
1376
|
+
input_archive.read(info.filename),
|
|
1377
|
+
location=info.filename,
|
|
1378
|
+
)
|
|
1379
|
+
changed = False
|
|
1380
|
+
for relationship in list(root):
|
|
1381
|
+
if relationship.attrib.get("Type", "").endswith(
|
|
1382
|
+
"/printerSettings"
|
|
1383
|
+
):
|
|
1384
|
+
root.remove(relationship)
|
|
1385
|
+
changed = True
|
|
1386
|
+
if changed:
|
|
1387
|
+
output_archive.writestr(
|
|
1388
|
+
info,
|
|
1389
|
+
ET.tostring(
|
|
1390
|
+
root,
|
|
1391
|
+
encoding="utf-8",
|
|
1392
|
+
xml_declaration=True,
|
|
1393
|
+
),
|
|
1394
|
+
)
|
|
1395
|
+
continue
|
|
1396
|
+
with input_archive.open(info, "r") as source_handle:
|
|
1397
|
+
with output_archive.open(info, "w") as destination_handle:
|
|
1398
|
+
shutil.copyfileobj(
|
|
1399
|
+
source_handle,
|
|
1400
|
+
destination_handle,
|
|
1401
|
+
length=1024 * 1024,
|
|
1402
|
+
)
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
def patch_accessibility_metadata(
|
|
1406
|
+
source: Path,
|
|
1407
|
+
destination: Path,
|
|
1408
|
+
*,
|
|
1409
|
+
alt_text_by_shape_name: dict[str, str],
|
|
1410
|
+
language: str,
|
|
1411
|
+
) -> None:
|
|
1412
|
+
"""Add picture descriptions and explicit run language to a generated PPTX."""
|
|
1413
|
+
require_safe_pptx(source)
|
|
1414
|
+
found: dict[str, int] = {name: 0 for name in alt_text_by_shape_name}
|
|
1415
|
+
with zipfile.ZipFile(source, "r") as input_archive:
|
|
1416
|
+
with zipfile.ZipFile(
|
|
1417
|
+
destination,
|
|
1418
|
+
"w",
|
|
1419
|
+
compression=zipfile.ZIP_DEFLATED,
|
|
1420
|
+
compresslevel=6,
|
|
1421
|
+
allowZip64=True,
|
|
1422
|
+
) as output_archive:
|
|
1423
|
+
for info in input_archive.infolist():
|
|
1424
|
+
info.date_time = DETERMINISTIC_ZIP_DATETIME
|
|
1425
|
+
if (
|
|
1426
|
+
info.filename.startswith("ppt/slides/slide")
|
|
1427
|
+
and info.filename.endswith(".xml")
|
|
1428
|
+
and "/_rels/" not in info.filename
|
|
1429
|
+
):
|
|
1430
|
+
root = _parse_xml(
|
|
1431
|
+
input_archive.read(info.filename),
|
|
1432
|
+
location=info.filename,
|
|
1433
|
+
)
|
|
1434
|
+
changed = False
|
|
1435
|
+
for picture in root.findall(f".//{{{P_NS}}}pic"):
|
|
1436
|
+
properties = picture.find(
|
|
1437
|
+
f"./{{{P_NS}}}nvPicPr/{{{P_NS}}}cNvPr"
|
|
1438
|
+
)
|
|
1439
|
+
if properties is None:
|
|
1440
|
+
continue
|
|
1441
|
+
name = properties.attrib.get("name", "")
|
|
1442
|
+
if name not in alt_text_by_shape_name:
|
|
1443
|
+
continue
|
|
1444
|
+
properties.set("descr", alt_text_by_shape_name[name])
|
|
1445
|
+
properties.set("title", name)
|
|
1446
|
+
found[name] += 1
|
|
1447
|
+
changed = True
|
|
1448
|
+
for run in root.findall(f".//{{{A_NS}}}r"):
|
|
1449
|
+
properties = run.find(f"./{{{A_NS}}}rPr")
|
|
1450
|
+
if properties is None:
|
|
1451
|
+
properties = ET.Element(f"{{{A_NS}}}rPr")
|
|
1452
|
+
run.insert(0, properties)
|
|
1453
|
+
if properties.attrib.get("lang") != language:
|
|
1454
|
+
properties.set("lang", language)
|
|
1455
|
+
changed = True
|
|
1456
|
+
for tag in ("defRPr", "endParaRPr"):
|
|
1457
|
+
for properties in root.findall(f".//{{{A_NS}}}{tag}"):
|
|
1458
|
+
if properties.attrib.get("lang") != language:
|
|
1459
|
+
properties.set("lang", language)
|
|
1460
|
+
changed = True
|
|
1461
|
+
payload = (
|
|
1462
|
+
ET.tostring(
|
|
1463
|
+
root,
|
|
1464
|
+
encoding="utf-8",
|
|
1465
|
+
xml_declaration=True,
|
|
1466
|
+
)
|
|
1467
|
+
if changed
|
|
1468
|
+
else input_archive.read(info.filename)
|
|
1469
|
+
)
|
|
1470
|
+
output_archive.writestr(info, payload)
|
|
1471
|
+
continue
|
|
1472
|
+
with input_archive.open(info, "r") as source_handle:
|
|
1473
|
+
with output_archive.open(info, "w") as destination_handle:
|
|
1474
|
+
shutil.copyfileobj(
|
|
1475
|
+
source_handle,
|
|
1476
|
+
destination_handle,
|
|
1477
|
+
length=1024 * 1024,
|
|
1478
|
+
)
|
|
1479
|
+
missing = [name for name, count in found.items() if count != 1]
|
|
1480
|
+
if missing:
|
|
1481
|
+
raise CliError(
|
|
1482
|
+
"could not apply alt text exactly once for shape(s): "
|
|
1483
|
+
+ ", ".join(sorted(missing))
|
|
1484
|
+
)
|