@ngxtm/devkit 3.0.3 → 3.2.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/package.json +2 -1
- package/skills/SPDD/1-research.md +22 -0
- package/skills/SPDD/2-spec.md +20 -0
- package/skills/SPDD/3-implementation.md +20 -0
- package/skills/accessibility-compliance-accessibility-audit/SKILL.md +42 -0
- package/skills/accessibility-compliance-accessibility-audit/resources/implementation-playbook.md +502 -0
- package/skills/active-directory-attacks/references/advanced-attacks.md +382 -382
- package/skills/agent-framework-azure-hosted-agents/SKILL.md +0 -3
- package/skills/agent-orchestration-improve-agent/SKILL.md +349 -0
- package/skills/agent-orchestration-multi-agent-optimize/SKILL.md +239 -0
- package/skills/ai-engineer/SKILL.md +171 -0
- package/skills/airflow-dag-patterns/SKILL.md +41 -0
- package/skills/airflow-dag-patterns/resources/implementation-playbook.md +509 -0
- package/skills/angular-migration/SKILL.md +428 -0
- package/skills/anti-reversing-techniques/SKILL.md +42 -0
- package/skills/anti-reversing-techniques/resources/implementation-playbook.md +539 -0
- package/skills/api-design-principles/SKILL.md +37 -0
- package/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/skills/api-design-principles/resources/implementation-playbook.md +513 -0
- package/skills/api-documenter/SKILL.md +184 -0
- package/skills/api-testing-observability-api-mock/SKILL.md +46 -0
- package/skills/api-testing-observability-api-mock/resources/implementation-playbook.md +1327 -0
- package/skills/application-performance-performance-optimization/SKILL.md +154 -0
- package/skills/architect-review/SKILL.md +174 -0
- package/skills/architecture-decision-records/SKILL.md +441 -0
- package/skills/architecture-patterns/SKILL.md +37 -0
- package/skills/architecture-patterns/resources/implementation-playbook.md +479 -0
- package/skills/arm-cortex-expert/SKILL.md +306 -0
- package/skills/artifacts-builder/scripts/bundle-artifact.sh +0 -0
- package/skills/artifacts-builder/scripts/init-artifact.sh +0 -0
- package/skills/async-python-patterns/SKILL.md +39 -0
- package/skills/async-python-patterns/resources/implementation-playbook.md +678 -0
- package/skills/attack-tree-construction/SKILL.md +38 -0
- package/skills/attack-tree-construction/resources/implementation-playbook.md +671 -0
- package/skills/auth-implementation-patterns/SKILL.md +39 -0
- package/skills/auth-implementation-patterns/resources/implementation-playbook.md +633 -0
- package/skills/automate-whatsapp/SKILL.md +257 -0
- package/skills/aws-agentic-ai/services/gateway/deploy-template.sh +0 -0
- package/skills/aws-agentic-ai/services/gateway/validate-deployment.sh +0 -0
- package/skills/aws-cdk-development/scripts/validate-stack.sh +0 -0
- package/skills/aws-penetration-testing/references/advanced-aws-pentesting.md +469 -469
- package/skills/aws-skills/SKILL.md +22 -0
- package/skills/azd-deployment/SKILL.md +0 -2
- package/skills/backend-architect/SKILL.md +333 -0
- package/skills/backend-development-feature-development/SKILL.md +180 -0
- package/skills/backend-security-coder/SKILL.md +156 -0
- package/skills/backtesting-frameworks/SKILL.md +39 -0
- package/skills/backtesting-frameworks/resources/implementation-playbook.md +647 -0
- package/skills/bash-defensive-patterns/SKILL.md +43 -0
- package/skills/bash-defensive-patterns/resources/implementation-playbook.md +517 -0
- package/skills/bash-pro/SKILL.md +310 -0
- package/skills/bats-testing-patterns/SKILL.md +34 -0
- package/skills/bats-testing-patterns/resources/implementation-playbook.md +614 -0
- package/skills/bazel-build-optimization/SKILL.md +397 -0
- package/skills/beautiful-prose/SKILL.md +22 -0
- package/skills/billing-automation/SKILL.md +42 -0
- package/skills/billing-automation/resources/implementation-playbook.md +544 -0
- package/skills/binary-analysis-patterns/SKILL.md +450 -0
- package/skills/blockchain-developer/SKILL.md +208 -0
- package/skills/business-analyst/SKILL.md +182 -0
- package/skills/c-pro/SKILL.md +56 -0
- package/skills/c4-architecture-c4-architecture/SKILL.md +389 -0
- package/skills/c4-code/SKILL.md +244 -0
- package/skills/c4-component/SKILL.md +153 -0
- package/skills/c4-container/SKILL.md +171 -0
- package/skills/c4-context/SKILL.md +150 -0
- package/skills/cc-skill-continuous-learning/evaluate-session.sh +0 -0
- package/skills/cc-skill-strategic-compact/suggest-compact.sh +0 -0
- package/skills/changelog-automation/SKILL.md +38 -0
- package/skills/changelog-automation/resources/implementation-playbook.md +538 -0
- package/skills/cicd-automation-workflow-automate/SKILL.md +51 -0
- package/skills/cicd-automation-workflow-automate/resources/implementation-playbook.md +1333 -0
- package/skills/clarity-gate/SKILL.md +22 -0
- package/skills/claude-ally-health/SKILL.md +22 -0
- package/skills/claude-scientific-skills/SKILL.md +22 -0
- package/skills/claude-speed-reader/SKILL.md +22 -0
- package/skills/claude-win11-speckit-update-skill/SKILL.md +22 -0
- package/skills/cloud-architect/SKILL.md +131 -102
- package/skills/cloud-penetration-testing/references/advanced-cloud-scripts.md +318 -318
- package/skills/code-documentation-code-explain/SKILL.md +46 -0
- package/skills/code-documentation-code-explain/resources/implementation-playbook.md +802 -0
- package/skills/code-documentation-doc-generate/SKILL.md +48 -0
- package/skills/code-documentation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/code-refactoring-context-restore/SKILL.md +179 -0
- package/skills/code-refactoring-refactor-clean/SKILL.md +51 -0
- package/skills/code-refactoring-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/code-refactoring-tech-debt/SKILL.md +386 -0
- package/skills/code-review-ai-ai-review/SKILL.md +450 -0
- package/skills/code-review-excellence/SKILL.md +40 -0
- package/skills/code-review-excellence/resources/implementation-playbook.md +515 -0
- package/skills/code-reviewer/SKILL.md +174 -205
- package/skills/codebase-cleanup-deps-audit/SKILL.md +51 -0
- package/skills/codebase-cleanup-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/codebase-cleanup-refactor-clean/SKILL.md +51 -0
- package/skills/codebase-cleanup-refactor-clean/resources/implementation-playbook.md +879 -0
- package/skills/codebase-cleanup-tech-debt/SKILL.md +386 -0
- package/skills/commit/SKILL.md +171 -0
- package/skills/competitive-landscape/SKILL.md +34 -0
- package/skills/competitive-landscape/resources/implementation-playbook.md +494 -0
- package/skills/comprehensive-review-full-review/SKILL.md +146 -0
- package/skills/comprehensive-review-pr-enhance/SKILL.md +46 -0
- package/skills/comprehensive-review-pr-enhance/resources/implementation-playbook.md +691 -0
- package/skills/conductor-implement/SKILL.md +388 -0
- package/skills/conductor-manage/SKILL.md +39 -0
- package/skills/conductor-manage/resources/implementation-playbook.md +1120 -0
- package/skills/conductor-new-track/SKILL.md +433 -0
- package/skills/conductor-revert/SKILL.md +372 -0
- package/skills/conductor-setup/SKILL.md +426 -0
- package/skills/conductor-status/SKILL.md +338 -0
- package/skills/conductor-validator/SKILL.md +62 -0
- package/skills/content-marketer/SKILL.md +170 -0
- package/skills/context-compression/SKILL.md +266 -0
- package/skills/context-degradation/SKILL.md +238 -0
- package/skills/context-driven-development/SKILL.md +400 -0
- package/skills/context-fundamentals/SKILL.md +192 -0
- package/skills/context-management-context-restore/SKILL.md +179 -0
- package/skills/context-management-context-save/SKILL.md +177 -0
- package/skills/context-manager/SKILL.md +185 -0
- package/skills/context-optimization/SKILL.md +186 -0
- package/skills/cost-optimization/SKILL.md +286 -0
- package/skills/cpp-pro/SKILL.md +42 -80
- package/skills/cqrs-implementation/SKILL.md +35 -0
- package/skills/cqrs-implementation/resources/implementation-playbook.md +540 -0
- package/skills/create-pr/SKILL.md +192 -0
- package/skills/csharp-pro/SKILL.md +59 -0
- package/skills/culture-index/SKILL.md +43 -0
- package/skills/customer-support/SKILL.md +170 -0
- package/skills/daily-news-report/SKILL.md +178 -179
- package/skills/data-engineer/SKILL.md +224 -0
- package/skills/data-engineering-data-driven-feature/SKILL.md +182 -0
- package/skills/data-engineering-data-pipeline/SKILL.md +201 -0
- package/skills/data-quality-frameworks/SKILL.md +40 -0
- package/skills/data-quality-frameworks/resources/implementation-playbook.md +573 -0
- package/skills/data-scientist/SKILL.md +199 -0
- package/skills/data-storytelling/SKILL.md +465 -0
- package/skills/database-admin/SKILL.md +165 -0
- package/skills/database-architect/SKILL.md +268 -0
- package/skills/database-cloud-optimization-cost-optimize/SKILL.md +44 -0
- package/skills/database-cloud-optimization-cost-optimize/resources/implementation-playbook.md +1441 -0
- package/skills/database-migration/SKILL.md +436 -0
- package/skills/database-migrations-migration-observability/SKILL.md +420 -0
- package/skills/database-migrations-sql-migrations/SKILL.md +53 -0
- package/skills/database-migrations-sql-migrations/resources/implementation-playbook.md +499 -0
- package/skills/database-optimizer/SKILL.md +163 -91
- package/skills/dbt-transformation-patterns/SKILL.md +34 -0
- package/skills/dbt-transformation-patterns/resources/implementation-playbook.md +547 -0
- package/skills/debugger/SKILL.md +49 -0
- package/skills/debugging-strategies/SKILL.md +34 -0
- package/skills/debugging-strategies/resources/implementation-playbook.md +511 -0
- package/skills/debugging-toolkit-smart-debug/SKILL.md +197 -0
- package/skills/deep-research/SKILL.md +114 -0
- package/skills/defi-protocol-templates/SKILL.md +466 -0
- package/skills/dependency-management-deps-audit/SKILL.md +44 -0
- package/skills/dependency-management-deps-audit/resources/implementation-playbook.md +766 -0
- package/skills/dependency-upgrade/SKILL.md +421 -0
- package/skills/deployment-engineer/SKILL.md +170 -0
- package/skills/deployment-pipeline-design/SKILL.md +371 -0
- package/skills/deployment-validation-config-validate/SKILL.md +496 -0
- package/skills/design-md/SKILL.md +178 -0
- package/skills/devops-troubleshooter/SKILL.md +161 -0
- package/skills/distributed-debugging-debug-trace/SKILL.md +44 -0
- package/skills/distributed-debugging-debug-trace/resources/implementation-playbook.md +1307 -0
- package/skills/distributed-tracing/SKILL.md +450 -0
- package/skills/django-pro/SKILL.md +180 -0
- package/skills/docs-architect/SKILL.md +98 -0
- package/skills/document-skills/docx/ooxml/scripts/pack.py +0 -0
- package/skills/document-skills/docx/ooxml/scripts/unpack.py +0 -0
- package/skills/document-skills/docx/ooxml/scripts/validate.py +0 -0
- package/skills/document-skills/docx/scripts/__init__.py +0 -0
- package/skills/document-skills/docx/scripts/document.py +0 -0
- package/skills/document-skills/docx/scripts/utilities.py +0 -0
- package/skills/document-skills/pptx/ooxml/scripts/pack.py +0 -0
- package/skills/document-skills/pptx/ooxml/scripts/unpack.py +0 -0
- package/skills/document-skills/pptx/ooxml/scripts/validate.py +0 -0
- package/skills/document-skills/pptx/scripts/html2pptx.js +0 -0
- package/skills/document-skills/pptx/scripts/inventory.py +0 -0
- package/skills/document-skills/pptx/scripts/rearrange.py +0 -0
- package/skills/document-skills/pptx/scripts/replace.py +0 -0
- package/skills/document-skills/pptx/scripts/thumbnail.py +0 -0
- package/skills/documentation-generation-doc-generate/SKILL.md +48 -0
- package/skills/documentation-generation-doc-generate/resources/implementation-playbook.md +640 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +172 -69
- package/skills/docx/docx-js.md +350 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/ooxml/scripts/pack.py +159 -0
- package/skills/docx/ooxml/scripts/unpack.py +29 -0
- package/skills/docx/ooxml/scripts/validate.py +69 -0
- package/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/docx/ooxml.md +610 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/document.py +1276 -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/docx/scripts/utilities.py +374 -0
- package/skills/docx-official/ooxml/scripts/pack.py +0 -0
- package/skills/docx-official/ooxml/scripts/unpack.py +0 -0
- package/skills/docx-official/ooxml/scripts/validate.py +0 -0
- package/skills/docx-official/scripts/__init__.py +0 -0
- package/skills/docx-official/scripts/document.py +0 -0
- package/skills/docx-official/scripts/utilities.py +0 -0
- package/skills/dotnet-architect/SKILL.md +197 -0
- package/skills/dotnet-backend-patterns/SKILL.md +37 -0
- package/skills/dotnet-backend-patterns/assets/repository-template.cs +523 -0
- package/skills/dotnet-backend-patterns/assets/service-template.cs +336 -0
- package/skills/dotnet-backend-patterns/references/dapper-patterns.md +544 -0
- package/skills/dotnet-backend-patterns/references/ef-core-best-practices.md +355 -0
- package/skills/dotnet-backend-patterns/resources/implementation-playbook.md +799 -0
- package/skills/dx-optimizer/SKILL.md +83 -0
- package/skills/e2e-testing-patterns/SKILL.md +41 -0
- package/skills/e2e-testing-patterns/resources/implementation-playbook.md +531 -0
- package/skills/elixir-pro/SKILL.md +59 -0
- package/skills/embedding-strategies/SKILL.md +491 -0
- package/skills/employment-contract-templates/SKILL.md +39 -0
- package/skills/employment-contract-templates/resources/implementation-playbook.md +493 -0
- package/skills/error-debugging-error-analysis/SKILL.md +47 -0
- package/skills/error-debugging-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-debugging-error-trace/SKILL.md +43 -0
- package/skills/error-debugging-error-trace/resources/implementation-playbook.md +1361 -0
- package/skills/error-debugging-multi-agent-review/SKILL.md +216 -0
- package/skills/error-detective/SKILL.md +53 -0
- package/skills/error-diagnostics-error-analysis/SKILL.md +47 -0
- package/skills/error-diagnostics-error-analysis/resources/implementation-playbook.md +1143 -0
- package/skills/error-diagnostics-error-trace/SKILL.md +48 -0
- package/skills/error-diagnostics-error-trace/resources/implementation-playbook.md +1371 -0
- package/skills/error-diagnostics-smart-debug/SKILL.md +197 -0
- package/skills/error-handling-patterns/SKILL.md +35 -0
- package/skills/error-handling-patterns/resources/implementation-playbook.md +635 -0
- package/skills/evaluation/SKILL.md +238 -0
- package/skills/event-sourcing-architect/SKILL.md +58 -0
- package/skills/event-store-design/SKILL.md +449 -0
- package/skills/expo-deployment/SKILL.md +62 -12
- package/skills/fal-audio/SKILL.md +22 -0
- package/skills/fal-generate/SKILL.md +22 -0
- package/skills/fal-image-edit/SKILL.md +22 -0
- package/skills/fal-platform/SKILL.md +22 -0
- package/skills/fal-upscale/SKILL.md +22 -0
- package/skills/fal-workflow/SKILL.md +22 -0
- package/skills/fastapi-pro/SKILL.md +192 -0
- package/skills/fastapi-templates/SKILL.md +32 -0
- package/skills/fastapi-templates/resources/implementation-playbook.md +566 -0
- package/skills/ffuf-claude-skill/SKILL.md +22 -0
- package/skills/find-bugs/SKILL.md +86 -0
- package/skills/firmware-analyst/SKILL.md +320 -0
- package/skills/fix-review/SKILL.md +53 -0
- package/skills/flutter-expert/SKILL.md +196 -84
- package/skills/foundry-iq-agent/SKILL.md +15 -0
- package/skills/foundry-iq-python/SKILL.md +0 -3
- package/skills/fp-ts-errors/SKILL.md +856 -0
- package/skills/fp-ts-pragmatic/SKILL.md +598 -0
- package/skills/fp-ts-react/SKILL.md +796 -0
- package/skills/framework-migration-code-migrate/SKILL.md +48 -0
- package/skills/framework-migration-code-migrate/resources/implementation-playbook.md +1052 -0
- package/skills/framework-migration-deps-upgrade/SKILL.md +48 -0
- package/skills/framework-migration-deps-upgrade/resources/implementation-playbook.md +755 -0
- package/skills/framework-migration-legacy-modernize/SKILL.md +132 -0
- package/skills/frontend-developer/SKILL.md +171 -0
- package/skills/frontend-mobile-development-component-scaffold/SKILL.md +403 -0
- package/skills/frontend-mobile-security-xss-scan/SKILL.md +322 -0
- package/skills/frontend-security-coder/SKILL.md +170 -0
- package/skills/frontend-slides/SKILL.md +770 -0
- package/skills/full-stack-orchestration-full-stack-feature/SKILL.md +135 -0
- package/skills/gdpr-data-handling/SKILL.md +33 -0
- package/skills/gdpr-data-handling/resources/implementation-playbook.md +615 -0
- package/skills/git-advanced-workflows/SKILL.md +412 -0
- package/skills/git-pr-workflows-git-workflow/SKILL.md +140 -0
- package/skills/git-pr-workflows-onboard/SKILL.md +416 -0
- package/skills/git-pr-workflows-pr-enhance/SKILL.md +48 -0
- package/skills/git-pr-workflows-pr-enhance/resources/implementation-playbook.md +701 -0
- package/skills/github-actions-templates/SKILL.md +345 -0
- package/skills/gitlab-ci-patterns/SKILL.md +283 -0
- package/skills/gitops-workflow/SKILL.md +303 -0
- package/skills/gitops-workflow/references/argocd-setup.md +134 -0
- package/skills/gitops-workflow/references/sync-policies.md +131 -0
- package/skills/go-concurrency-patterns/SKILL.md +33 -0
- package/skills/go-concurrency-patterns/resources/implementation-playbook.md +654 -0
- package/skills/godot-gdscript-patterns/SKILL.md +33 -0
- package/skills/godot-gdscript-patterns/resources/implementation-playbook.md +804 -0
- package/skills/golang-pro/SKILL.md +176 -91
- package/skills/grafana-dashboards/SKILL.md +381 -0
- package/skills/graphql-architect/SKILL.md +168 -83
- package/skills/haskell-pro/SKILL.md +56 -0
- package/skills/helm-chart-scaffolding/SKILL.md +34 -0
- package/skills/helm-chart-scaffolding/assets/Chart.yaml.template +42 -0
- package/skills/helm-chart-scaffolding/assets/values.yaml.template +185 -0
- package/skills/helm-chart-scaffolding/references/chart-structure.md +500 -0
- package/skills/helm-chart-scaffolding/resources/implementation-playbook.md +543 -0
- package/skills/helm-chart-scaffolding/scripts/validate-chart.sh +244 -0
- package/skills/hr-pro/SKILL.md +126 -0
- package/skills/hugging-face-cli/SKILL.md +198 -0
- package/skills/hugging-face-jobs/SKILL.md +1038 -0
- package/skills/hybrid-cloud-architect/SKILL.md +168 -0
- package/skills/hybrid-cloud-networking/SKILL.md +238 -0
- package/skills/hybrid-search-implementation/SKILL.md +32 -0
- package/skills/hybrid-search-implementation/resources/implementation-playbook.md +567 -0
- package/skills/imagen/SKILL.md +77 -0
- package/skills/incident-responder/SKILL.md +213 -0
- package/skills/incident-response-incident-response/SKILL.md +168 -0
- package/skills/incident-response-smart-fix/SKILL.md +29 -0
- package/skills/incident-response-smart-fix/resources/implementation-playbook.md +838 -0
- package/skills/incident-runbook-templates/SKILL.md +395 -0
- package/skills/infinite-gratitude/SKILL.md +26 -0
- package/skills/ios-developer/SKILL.md +219 -0
- package/skills/istio-traffic-management/SKILL.md +337 -0
- package/skills/iterate-pr/SKILL.md +150 -0
- package/skills/java-pro/SKILL.md +177 -0
- package/skills/javascript-pro/SKILL.md +41 -79
- package/skills/javascript-testing-patterns/SKILL.md +35 -0
- package/skills/javascript-testing-patterns/resources/implementation-playbook.md +1024 -0
- package/skills/javascript-typescript-typescript-scaffold/SKILL.md +361 -0
- package/skills/julia-pro/SKILL.md +209 -0
- package/skills/k8s-manifest-generator/SKILL.md +35 -0
- package/skills/k8s-manifest-generator/assets/configmap-template.yaml +296 -0
- package/skills/k8s-manifest-generator/assets/deployment-template.yaml +203 -0
- package/skills/k8s-manifest-generator/assets/service-template.yaml +171 -0
- package/skills/k8s-manifest-generator/references/deployment-spec.md +753 -0
- package/skills/k8s-manifest-generator/references/service-spec.md +724 -0
- package/skills/k8s-manifest-generator/resources/implementation-playbook.md +510 -0
- package/skills/k8s-security-policies/SKILL.md +346 -0
- package/skills/k8s-security-policies/assets/network-policy-template.yaml +177 -0
- package/skills/k8s-security-policies/references/rbac-patterns.md +187 -0
- package/skills/kpi-dashboard-design/SKILL.md +440 -0
- package/skills/kubernetes-architect/SKILL.md +170 -0
- package/skills/langchain-architecture/SKILL.md +350 -0
- package/skills/legacy-modernizer/SKILL.md +39 -79
- package/skills/legal-advisor/SKILL.md +70 -0
- package/skills/linear-claude-skill/SKILL.md +543 -0
- package/skills/linkerd-patterns/SKILL.md +321 -0
- package/skills/llm-application-dev-ai-assistant/SKILL.md +35 -0
- package/skills/llm-application-dev-ai-assistant/resources/implementation-playbook.md +1236 -0
- package/skills/llm-application-dev-langchain-agent/SKILL.md +246 -0
- package/skills/llm-application-dev-prompt-optimize/SKILL.md +37 -0
- package/skills/llm-application-dev-prompt-optimize/resources/implementation-playbook.md +591 -0
- package/skills/llm-evaluation/SKILL.md +483 -0
- package/skills/loki-mode/autonomy/run.sh +0 -0
- package/skills/loki-mode/benchmarks/prepare-submission.sh +0 -0
- package/skills/loki-mode/benchmarks/run-benchmarks.sh +0 -0
- package/skills/loki-mode/demo/record-demo.sh +0 -0
- package/skills/loki-mode/demo/record-full-demo.sh +0 -0
- package/skills/loki-mode/demo/run-demo-auto.sh +0 -0
- package/skills/loki-mode/demo/run-demo.sh +0 -0
- package/skills/loki-mode/scripts/export-to-vibe-kanban.sh +0 -0
- package/skills/loki-mode/scripts/loki-wrapper.sh +0 -0
- package/skills/loki-mode/tests/run-all-tests.sh +0 -0
- package/skills/loki-mode/tests/test-agent-timeout.sh +0 -0
- package/skills/loki-mode/tests/test-bootstrap.sh +0 -0
- package/skills/loki-mode/tests/test-circuit-breaker.sh +0 -0
- package/skills/loki-mode/tests/test-state-recovery.sh +0 -0
- package/skills/loki-mode/tests/test-task-queue.sh +0 -0
- package/skills/loki-mode/tests/test-wrapper.sh +0 -0
- package/skills/machine-learning-ops-ml-pipeline/SKILL.md +314 -0
- package/skills/makepad-skills/SKILL.md +22 -0
- package/skills/malware-analyst/SKILL.md +247 -0
- package/skills/market-sizing-analysis/SKILL.md +425 -0
- package/skills/market-sizing-analysis/examples/saas-market-sizing.md +349 -0
- package/skills/market-sizing-analysis/references/data-sources.md +360 -0
- package/skills/memory-forensics/SKILL.md +491 -0
- package/skills/memory-safety-patterns/SKILL.md +33 -0
- package/skills/memory-safety-patterns/resources/implementation-playbook.md +603 -0
- package/skills/memory-systems/SKILL.md +228 -0
- package/skills/mermaid-expert/SKILL.md +59 -0
- package/skills/microservices-patterns/SKILL.md +35 -0
- package/skills/microservices-patterns/resources/implementation-playbook.md +607 -0
- package/skills/minecraft-bukkit-pro/SKILL.md +126 -0
- package/skills/ml-engineer/SKILL.md +168 -0
- package/skills/ml-pipeline-workflow/SKILL.md +257 -0
- package/skills/mlops-engineer/SKILL.md +219 -0
- package/skills/mobile-developer/SKILL.md +205 -0
- package/skills/mobile-security-coder/SKILL.md +184 -0
- package/skills/modern-javascript-patterns/SKILL.md +35 -0
- package/skills/modern-javascript-patterns/resources/implementation-playbook.md +910 -0
- package/skills/monorepo-architect/SKILL.md +61 -0
- package/skills/monorepo-management/SKILL.md +35 -0
- package/skills/monorepo-management/resources/implementation-playbook.md +621 -0
- package/skills/mtls-configuration/SKILL.md +359 -0
- package/skills/multi-agent-patterns/SKILL.md +262 -0
- package/skills/multi-cloud-architecture/SKILL.md +189 -0
- package/skills/multi-platform-apps-multi-platform/SKILL.md +203 -0
- package/skills/n8n-code-python/SKILL.md +750 -0
- package/skills/n8n-mcp-tools-expert/SKILL.md +654 -0
- package/skills/n8n-node-configuration/SKILL.md +796 -0
- package/skills/nanobanana-ppt-skills/SKILL.md +22 -0
- package/skills/network-engineer/SKILL.md +169 -0
- package/skills/nextjs-app-router-patterns/SKILL.md +33 -0
- package/skills/nextjs-app-router-patterns/resources/implementation-playbook.md +543 -0
- package/skills/nft-standards/SKILL.md +395 -0
- package/skills/nodejs-backend-patterns/SKILL.md +35 -0
- package/skills/nodejs-backend-patterns/resources/implementation-playbook.md +1019 -0
- package/skills/notebooklm/AUTHENTICATION.md +0 -0
- package/skills/notebooklm/CHANGELOG.md +0 -0
- package/skills/notebooklm/LICENSE +0 -0
- package/skills/notebooklm/README.md +0 -0
- package/skills/notebooklm/SKILL.md +0 -0
- package/skills/notebooklm/images/example_notebookchat.png +0 -0
- package/skills/notebooklm/references/api_reference.md +0 -0
- package/skills/notebooklm/references/troubleshooting.md +0 -0
- package/skills/notebooklm/references/usage_patterns.md +0 -0
- package/skills/notebooklm/requirements.txt +0 -0
- package/skills/notebooklm/scripts/__init__.py +0 -0
- package/skills/notebooklm/scripts/ask_question.py +0 -0
- package/skills/notebooklm/scripts/auth_manager.py +0 -0
- package/skills/notebooklm/scripts/browser_session.py +0 -0
- package/skills/notebooklm/scripts/browser_utils.py +0 -0
- package/skills/notebooklm/scripts/cleanup_manager.py +0 -0
- package/skills/notebooklm/scripts/config.py +0 -0
- package/skills/notebooklm/scripts/notebook_manager.py +0 -0
- package/skills/notebooklm/scripts/run.py +0 -0
- package/skills/notebooklm/scripts/setup_environment.py +0 -0
- package/skills/notebooklm-skill/AUTHENTICATION.md +0 -0
- package/skills/notebooklm-skill/SKILL.md +0 -0
- package/skills/notebooklm-skill/references/api_reference.md +0 -0
- package/skills/notebooklm-skill/references/troubleshooting.md +0 -0
- package/skills/notebooklm-skill/references/usage_patterns.md +0 -0
- package/skills/notebooklm-skill/scripts/__init__.py +0 -0
- package/skills/notebooklm-skill/scripts/ask_question.py +0 -0
- package/skills/notebooklm-skill/scripts/auth_manager.py +0 -0
- package/skills/notebooklm-skill/scripts/browser_session.py +0 -0
- package/skills/notebooklm-skill/scripts/browser_utils.py +0 -0
- package/skills/notebooklm-skill/scripts/cleanup_manager.py +0 -0
- package/skills/notebooklm-skill/scripts/config.py +0 -0
- package/skills/notebooklm-skill/scripts/notebook_manager.py +0 -0
- package/skills/notebooklm-skill/scripts/run.py +0 -0
- package/skills/notebooklm-skill/scripts/setup_environment.py +0 -0
- package/skills/nx-workspace-patterns/SKILL.md +464 -0
- package/skills/observability-engineer/SKILL.md +237 -0
- package/skills/observability-monitoring-monitor-setup/SKILL.md +48 -0
- package/skills/observability-monitoring-monitor-setup/resources/implementation-playbook.md +505 -0
- package/skills/observability-monitoring-slo-implement/SKILL.md +43 -0
- package/skills/observability-monitoring-slo-implement/resources/implementation-playbook.md +1077 -0
- package/skills/observe-whatsapp/SKILL.md +109 -0
- package/skills/on-call-handoff-patterns/SKILL.md +453 -0
- package/skills/openapi-spec-generation/SKILL.md +33 -0
- package/skills/openapi-spec-generation/resources/implementation-playbook.md +1027 -0
- package/skills/payment-integration/SKILL.md +69 -110
- package/skills/paypal-integration/SKILL.md +479 -0
- package/skills/pci-compliance/SKILL.md +478 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +196 -6
- package/skills/pdf/forms.md +205 -0
- package/skills/pdf/reference.md +612 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/skills/pdf/scripts/create_validation_image.py +41 -0
- package/skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/skills/performance-engineer/SKILL.md +180 -0
- package/skills/performance-testing-review-ai-review/SKILL.md +450 -0
- package/skills/performance-testing-review-multi-agent-review/SKILL.md +216 -0
- package/skills/php-pro/SKILL.md +46 -78
- package/skills/playwright-skill/run.js +0 -0
- package/skills/podcast-generation/SKILL.md +0 -2
- package/skills/posix-shell-pro/SKILL.md +304 -0
- package/skills/postgresql/SKILL.md +230 -0
- package/skills/postmortem-writing/SKILL.md +386 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +456 -86
- package/skills/pptx/html2pptx.md +625 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/ooxml/scripts/pack.py +159 -0
- package/skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/skills/pptx/ooxml/scripts/validate.py +69 -0
- package/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/pptx/ooxml.md +427 -0
- package/skills/pptx/scripts/html2pptx.js +979 -0
- package/skills/pptx/scripts/inventory.py +1020 -0
- package/skills/pptx/scripts/rearrange.py +231 -0
- package/skills/pptx/scripts/replace.py +385 -0
- package/skills/pptx/scripts/thumbnail.py +450 -0
- package/skills/pptx-official/ooxml/scripts/pack.py +0 -0
- package/skills/pptx-official/ooxml/scripts/unpack.py +0 -0
- package/skills/pptx-official/ooxml/scripts/validate.py +0 -0
- package/skills/pptx-official/scripts/html2pptx.js +0 -0
- package/skills/pptx-official/scripts/inventory.py +0 -0
- package/skills/pptx-official/scripts/rearrange.py +0 -0
- package/skills/pptx-official/scripts/replace.py +0 -0
- package/skills/pptx-official/scripts/thumbnail.py +0 -0
- package/skills/projection-patterns/SKILL.md +33 -0
- package/skills/projection-patterns/resources/implementation-playbook.md +501 -0
- package/skills/prometheus-configuration/SKILL.md +404 -0
- package/skills/prompt-engineer/SKILL.md +243 -64
- package/skills/prompt-engineering-patterns/SKILL.md +213 -0
- package/skills/prompt-engineering-patterns/assets/few-shot-examples.json +106 -0
- package/skills/prompt-engineering-patterns/assets/prompt-template-library.md +246 -0
- package/skills/prompt-engineering-patterns/references/chain-of-thought.md +399 -0
- package/skills/prompt-engineering-patterns/references/few-shot-learning.md +369 -0
- package/skills/prompt-engineering-patterns/references/prompt-optimization.md +414 -0
- package/skills/prompt-engineering-patterns/references/prompt-templates.md +470 -0
- package/skills/prompt-engineering-patterns/references/system-prompts.md +189 -0
- package/skills/prompt-engineering-patterns/scripts/optimize-prompt.py +279 -0
- package/skills/protocol-reverse-engineering/SKILL.md +29 -0
- package/skills/protocol-reverse-engineering/resources/implementation-playbook.md +509 -0
- package/skills/pypict-skill/SKILL.md +22 -0
- package/skills/python-development-python-scaffold/SKILL.md +331 -0
- package/skills/python-packaging/SKILL.md +36 -0
- package/skills/python-packaging/resources/implementation-playbook.md +869 -0
- package/skills/python-performance-optimization/SKILL.md +36 -0
- package/skills/python-performance-optimization/resources/implementation-playbook.md +868 -0
- package/skills/python-pro/SKILL.md +155 -89
- package/skills/python-testing-patterns/SKILL.md +37 -0
- package/skills/python-testing-patterns/resources/implementation-playbook.md +906 -0
- package/skills/quant-analyst/SKILL.md +53 -0
- package/skills/radix-ui-design-system/SKILL.md +847 -0
- package/skills/radix-ui-design-system/examples/README.md +63 -0
- package/skills/radix-ui-design-system/examples/dialog-example.tsx +128 -0
- package/skills/radix-ui-design-system/examples/dropdown-example.tsx +162 -0
- package/skills/radix-ui-design-system/templates/component-template.tsx +148 -0
- package/skills/rag-implementation/SKILL.md +395 -37
- package/skills/react-modernization/SKILL.md +34 -0
- package/skills/react-modernization/resources/implementation-playbook.md +512 -0
- package/skills/react-native-architecture/SKILL.md +33 -0
- package/skills/react-native-architecture/resources/implementation-playbook.md +670 -0
- package/skills/react-state-management/SKILL.md +441 -0
- package/skills/readme/SKILL.md +775 -0
- package/skills/reference-builder/SKILL.md +188 -0
- package/skills/reverse-engineer/SKILL.md +173 -0
- package/skills/risk-manager/SKILL.md +61 -0
- package/skills/risk-metrics-calculation/SKILL.md +33 -0
- package/skills/risk-metrics-calculation/resources/implementation-playbook.md +554 -0
- package/skills/ruby-pro/SKILL.md +56 -0
- package/skills/rust-async-patterns/SKILL.md +33 -0
- package/skills/rust-async-patterns/resources/implementation-playbook.md +516 -0
- package/skills/rust-pro/SKILL.md +178 -0
- package/skills/saga-orchestration/SKILL.md +496 -0
- package/skills/sales-automator/SKILL.md +55 -0
- package/skills/sast-configuration/SKILL.md +212 -0
- package/skills/scala-pro/SKILL.md +82 -0
- package/skills/screen-reader-testing/SKILL.md +33 -0
- package/skills/screen-reader-testing/resources/implementation-playbook.md +544 -0
- package/skills/screenshots/SKILL.md +401 -0
- package/skills/search-specialist/SKILL.md +80 -0
- package/skills/secrets-management/SKILL.md +364 -0
- package/skills/security-auditor/SKILL.md +169 -0
- package/skills/security-bluebook-builder/SKILL.md +22 -0
- package/skills/security-compliance-compliance-check/SKILL.md +55 -0
- package/skills/security-compliance-compliance-check/resources/implementation-playbook.md +963 -0
- package/skills/security-requirement-extraction/SKILL.md +33 -0
- package/skills/security-requirement-extraction/resources/implementation-playbook.md +676 -0
- package/skills/security-scanning-security-dependencies/SKILL.md +43 -0
- package/skills/security-scanning-security-dependencies/resources/implementation-playbook.md +544 -0
- package/skills/security-scanning-security-hardening/SKILL.md +147 -0
- package/skills/security-scanning-security-sast/SKILL.md +495 -0
- package/skills/senior-architect/scripts/architecture_diagram_generator.py +0 -0
- package/skills/senior-architect/scripts/dependency_analyzer.py +0 -0
- package/skills/senior-architect/scripts/project_architect.py +0 -0
- package/skills/senior-backend/scripts/api_load_tester.py +0 -0
- package/skills/senior-backend/scripts/api_scaffolder.py +0 -0
- package/skills/senior-backend/scripts/database_migration_tool.py +0 -0
- package/skills/senior-computer-vision/scripts/dataset_pipeline_builder.py +0 -0
- package/skills/senior-computer-vision/scripts/inference_optimizer.py +0 -0
- package/skills/senior-computer-vision/scripts/vision_model_trainer.py +0 -0
- package/skills/senior-data-engineer/scripts/data_quality_validator.py +0 -0
- package/skills/senior-data-engineer/scripts/etl_performance_optimizer.py +0 -0
- package/skills/senior-data-engineer/scripts/pipeline_orchestrator.py +0 -0
- package/skills/senior-data-scientist/scripts/experiment_designer.py +0 -0
- package/skills/senior-data-scientist/scripts/feature_engineering_pipeline.py +0 -0
- package/skills/senior-data-scientist/scripts/model_evaluation_suite.py +0 -0
- package/skills/senior-devops/scripts/deployment_manager.py +0 -0
- package/skills/senior-devops/scripts/pipeline_generator.py +0 -0
- package/skills/senior-devops/scripts/terraform_scaffolder.py +0 -0
- package/skills/senior-frontend/scripts/bundle_analyzer.py +0 -0
- package/skills/senior-frontend/scripts/component_generator.py +0 -0
- package/skills/senior-frontend/scripts/frontend_scaffolder.py +0 -0
- package/skills/senior-fullstack/scripts/code_quality_analyzer.py +0 -0
- package/skills/senior-fullstack/scripts/fullstack_scaffolder.py +0 -0
- package/skills/senior-fullstack/scripts/project_scaffolder.py +0 -0
- package/skills/senior-ml-engineer/scripts/ml_monitoring_suite.py +0 -0
- package/skills/senior-ml-engineer/scripts/model_deployment_pipeline.py +0 -0
- package/skills/senior-ml-engineer/scripts/rag_system_builder.py +0 -0
- package/skills/senior-prompt-engineer/scripts/agent_orchestrator.py +0 -0
- package/skills/senior-prompt-engineer/scripts/prompt_optimizer.py +0 -0
- package/skills/senior-prompt-engineer/scripts/rag_evaluator.py +0 -0
- package/skills/senior-qa/scripts/coverage_analyzer.py +0 -0
- package/skills/senior-qa/scripts/e2e_test_scaffolder.py +0 -0
- package/skills/senior-qa/scripts/test_suite_generator.py +0 -0
- package/skills/senior-secops/scripts/compliance_checker.py +0 -0
- package/skills/senior-secops/scripts/security_scanner.py +0 -0
- package/skills/senior-secops/scripts/vulnerability_assessor.py +0 -0
- package/skills/senior-security/scripts/pentest_automator.py +0 -0
- package/skills/senior-security/scripts/security_auditor.py +0 -0
- package/skills/senior-security/scripts/threat_modeler.py +0 -0
- package/skills/seo-authority-builder/SKILL.md +136 -0
- package/skills/seo-cannibalization-detector/SKILL.md +123 -0
- package/skills/seo-content-auditor/SKILL.md +83 -0
- package/skills/seo-content-planner/SKILL.md +108 -0
- package/skills/seo-content-refresher/SKILL.md +118 -0
- package/skills/seo-content-writer/SKILL.md +96 -0
- package/skills/seo-keyword-strategist/SKILL.md +95 -0
- package/skills/seo-meta-optimizer/SKILL.md +92 -0
- package/skills/seo-snippet-hunter/SKILL.md +114 -0
- package/skills/seo-structure-architect/SKILL.md +108 -0
- package/skills/service-mesh-expert/SKILL.md +58 -0
- package/skills/service-mesh-observability/SKILL.md +395 -0
- package/skills/sharp-edges/SKILL.md +70 -0
- package/skills/shellcheck-configuration/SKILL.md +466 -0
- package/skills/similarity-search-patterns/SKILL.md +33 -0
- package/skills/similarity-search-patterns/resources/implementation-playbook.md +557 -0
- package/skills/skill-creator/scripts/init_skill.py +0 -0
- package/skills/skill-creator/scripts/package_skill.py +0 -0
- package/skills/skill-creator/scripts/quick_validate.py +0 -0
- package/skills/skill-rails-upgrade/SKILL.md +408 -0
- package/skills/skill-seekers/SKILL.md +22 -0
- package/skills/slack-gif-creator/core/easing.py +0 -0
- package/skills/slack-gif-creator/core/frame_composer.py +0 -0
- package/skills/slack-gif-creator/core/gif_builder.py +0 -0
- package/skills/slack-gif-creator/core/validators.py +0 -0
- package/skills/slo-implementation/SKILL.md +341 -0
- package/skills/solidity-security/SKILL.md +34 -0
- package/skills/solidity-security/resources/implementation-playbook.md +524 -0
- package/skills/spark-optimization/SKILL.md +427 -0
- package/skills/sql-optimization-patterns/SKILL.md +35 -0
- package/skills/sql-optimization-patterns/resources/implementation-playbook.md +504 -0
- package/skills/sql-pro/SKILL.md +170 -94
- package/skills/startup-analyst/SKILL.md +328 -0
- package/skills/startup-business-analyst-business-case/SKILL.md +487 -0
- package/skills/startup-business-analyst-financial-projections/SKILL.md +353 -0
- package/skills/startup-business-analyst-market-opportunity/SKILL.md +240 -0
- package/skills/startup-financial-modeling/SKILL.md +467 -0
- package/skills/startup-metrics-framework/SKILL.md +34 -0
- package/skills/startup-metrics-framework/resources/implementation-playbook.md +500 -0
- package/skills/stitch-ui-design/README.md +165 -0
- package/skills/stitch-ui-design/SKILL.md +378 -0
- package/skills/stitch-ui-design/references/advanced-techniques.md +541 -0
- package/skills/stitch-ui-design/references/prompt-examples.md +601 -0
- package/skills/stride-analysis-patterns/SKILL.md +33 -0
- package/skills/stride-analysis-patterns/resources/implementation-playbook.md +655 -0
- package/skills/stripe-integration/SKILL.md +429 -44
- package/skills/superpowers-lab/SKILL.md +22 -0
- package/skills/swiftui-expert-skill/SKILL.md +275 -0
- package/skills/systematic-debugging/find-polluter.sh +0 -0
- package/skills/systems-programming-rust-project/SKILL.md +440 -0
- package/skills/tailwind-design-system/SKILL.md +33 -0
- package/skills/tailwind-design-system/resources/implementation-playbook.md +665 -0
- package/skills/tdd-orchestrator/SKILL.md +205 -0
- package/skills/tdd-workflows-tdd-cycle/SKILL.md +221 -0
- package/skills/tdd-workflows-tdd-green/SKILL.md +73 -0
- package/skills/tdd-workflows-tdd-green/resources/implementation-playbook.md +870 -0
- package/skills/tdd-workflows-tdd-red/SKILL.md +164 -0
- package/skills/tdd-workflows-tdd-refactor/SKILL.md +187 -0
- package/skills/team-collaboration-issue/SKILL.md +37 -0
- package/skills/team-collaboration-issue/resources/implementation-playbook.md +640 -0
- package/skills/team-collaboration-standup-notes/SKILL.md +44 -0
- package/skills/team-collaboration-standup-notes/resources/implementation-playbook.md +768 -0
- package/skills/team-composition-analysis/SKILL.md +413 -0
- package/skills/temporal-python-pro/SKILL.md +370 -0
- package/skills/temporal-python-testing/SKILL.md +170 -0
- package/skills/temporal-python-testing/resources/integration-testing.md +455 -0
- package/skills/temporal-python-testing/resources/local-setup.md +553 -0
- package/skills/temporal-python-testing/resources/replay-testing.md +462 -0
- package/skills/temporal-python-testing/resources/unit-testing.md +328 -0
- package/skills/terraform-module-library/SKILL.md +261 -0
- package/skills/terraform-module-library/references/aws-modules.md +63 -0
- package/skills/terraform-skill/SKILL.md +517 -0
- package/skills/terraform-specialist/SKILL.md +166 -0
- package/skills/test-automator/SKILL.md +224 -0
- package/skills/threat-mitigation-mapping/SKILL.md +33 -0
- package/skills/threat-mitigation-mapping/resources/implementation-playbook.md +744 -0
- package/skills/threat-modeling-expert/SKILL.md +60 -0
- package/skills/threejs-skills/SKILL.md +22 -0
- package/skills/tool-design/SKILL.md +318 -0
- package/skills/track-management/SKILL.md +38 -0
- package/skills/track-management/resources/implementation-playbook.md +591 -0
- package/skills/turborepo-caching/SKILL.md +419 -0
- package/skills/tutorial-engineer/SKILL.md +139 -0
- package/skills/typescript-advanced-types/SKILL.md +35 -0
- package/skills/typescript-advanced-types/resources/implementation-playbook.md +716 -0
- package/skills/typescript-pro/SKILL.md +52 -91
- package/skills/ui-skills/SKILL.md +22 -0
- package/skills/ui-ux-designer/SKILL.md +209 -0
- package/skills/ui-ux-pro-max/SKILL.md +351 -351
- package/skills/ui-ux-pro-max/data/charts.csv +25 -25
- package/skills/ui-ux-pro-max/data/colors.csv +96 -96
- package/skills/ui-ux-pro-max/data/landing.csv +30 -30
- package/skills/ui-ux-pro-max/data/products.csv +96 -96
- package/skills/ui-ux-pro-max/data/prompts.csv +20 -20
- package/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -53
- package/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -56
- package/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -53
- package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -52
- package/skills/ui-ux-pro-max/data/stacks/react.csv +54 -54
- package/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -54
- package/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -51
- package/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -50
- package/skills/ui-ux-pro-max/data/styles.csv +58 -58
- package/skills/ui-ux-pro-max/data/ux-guidelines.csv +99 -99
- package/skills/ui-ux-pro-max/scripts/search.py +76 -76
- package/skills/ui-visual-validator/SKILL.md +214 -0
- package/skills/unit-testing-test-generate/SKILL.md +319 -0
- package/skills/unity-developer/SKILL.md +230 -0
- package/skills/unity-ecs-patterns/SKILL.md +33 -0
- package/skills/unity-ecs-patterns/resources/implementation-playbook.md +625 -0
- package/skills/unreal-engine-cpp-pro/SKILL.md +114 -0
- package/skills/unreal-engine-cpp-pro/examples/ExampleActor.cpp +43 -0
- package/skills/unreal-engine-cpp-pro/examples/ExampleActor.h +57 -0
- package/skills/upgrading-expo/SKILL.md +108 -12
- package/skills/using-neon/SKILL.md +84 -0
- package/skills/uv-package-manager/SKILL.md +37 -0
- package/skills/uv-package-manager/resources/implementation-playbook.md +830 -0
- package/skills/varlock-claude-skill/SKILL.md +22 -0
- package/skills/vector-database-engineer/SKILL.md +60 -0
- package/skills/vector-index-tuning/SKILL.md +42 -0
- package/skills/vector-index-tuning/resources/implementation-playbook.md +507 -0
- package/skills/vercel-deploy-claimable/SKILL.md +120 -0
- package/skills/vercel-deployment/SKILL.md +10 -0
- package/skills/vexor/SKILL.md +22 -0
- package/skills/wcag-audit-patterns/SKILL.md +41 -0
- package/skills/wcag-audit-patterns/resources/implementation-playbook.md +541 -0
- package/skills/web-artifacts-builder/scripts/bundle-artifact.sh +0 -0
- package/skills/web-artifacts-builder/scripts/init-artifact.sh +0 -0
- package/skills/web3-testing/SKILL.md +427 -0
- package/skills/webapp-testing/scripts/with_server.py +0 -0
- package/skills/workflow-orchestration-patterns/SKILL.md +333 -0
- package/skills/workflow-patterns/SKILL.md +38 -0
- package/skills/workflow-patterns/resources/implementation-playbook.md +621 -0
- package/skills/writing-skills/SKILL.md +84 -696
- package/skills/writing-skills/examples.md +282 -0
- package/skills/writing-skills/gotchas.md +197 -0
- package/skills/writing-skills/references/anti-rationalization/README.md +255 -0
- package/skills/writing-skills/references/cso/README.md +268 -0
- package/skills/writing-skills/references/standards/README.md +152 -0
- package/skills/writing-skills/references/standards/metadata-standard.md +65 -0
- package/skills/writing-skills/references/templates/discipline.md +54 -0
- package/skills/writing-skills/references/templates/pattern.md +48 -0
- package/skills/writing-skills/references/templates/reference.md +35 -0
- package/skills/writing-skills/references/templates/technique.md +59 -0
- package/skills/writing-skills/references/templates/tier-3-platform.md +19 -0
- package/skills/writing-skills/references/testing/README.md +204 -0
- package/skills/writing-skills/references/tier-1-simple/README.md +75 -0
- package/skills/writing-skills/references/tier-2-expanded/README.md +69 -0
- package/skills/writing-skills/references/tier-3-platform/README.md +98 -0
- package/skills/writing-skills/render-graphs.js +0 -0
- package/skills/x-article-publisher-skill/SKILL.md +22 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +217 -28
- package/skills/xlsx/recalc.py +178 -0
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
# Office Open XML Technical Reference
|
|
2
|
+
|
|
3
|
+
**Important: Read this entire document before starting.** This document covers:
|
|
4
|
+
- [Technical Guidelines](#technical-guidelines) - Schema compliance rules and validation requirements
|
|
5
|
+
- [Document Content Patterns](#document-content-patterns) - XML patterns for headings, lists, tables, formatting, etc.
|
|
6
|
+
- [Document Library (Python)](#document-library-python) - Recommended approach for OOXML manipulation with automatic infrastructure setup
|
|
7
|
+
- [Tracked Changes (Redlining)](#tracked-changes-redlining) - XML patterns for implementing tracked changes
|
|
8
|
+
|
|
9
|
+
## Technical Guidelines
|
|
10
|
+
|
|
11
|
+
### Schema Compliance
|
|
12
|
+
- **Element ordering in `<w:pPr>`**: `<w:pStyle>`, `<w:numPr>`, `<w:spacing>`, `<w:ind>`, `<w:jc>`
|
|
13
|
+
- **Whitespace**: Add `xml:space='preserve'` to `<w:t>` elements with leading/trailing spaces
|
|
14
|
+
- **Unicode**: Escape characters in ASCII content: `"` becomes `“`
|
|
15
|
+
- **Character encoding reference**: Curly quotes `""` become `“”`, apostrophe `'` becomes `’`, em-dash `—` becomes `—`
|
|
16
|
+
- **Tracked changes**: Use `<w:del>` and `<w:ins>` tags with `w:author="Claude"` outside `<w:r>` elements
|
|
17
|
+
- **Critical**: `<w:ins>` closes with `</w:ins>`, `<w:del>` closes with `</w:del>` - never mix
|
|
18
|
+
- **RSIDs must be 8-digit hex**: Use values like `00AB1234` (only 0-9, A-F characters)
|
|
19
|
+
- **trackRevisions placement**: Add `<w:trackRevisions/>` after `<w:proofState>` in settings.xml
|
|
20
|
+
- **Images**: Add to `word/media/`, reference in `document.xml`, set dimensions to prevent overflow
|
|
21
|
+
|
|
22
|
+
## Document Content Patterns
|
|
23
|
+
|
|
24
|
+
### Basic Structure
|
|
25
|
+
```xml
|
|
26
|
+
<w:p>
|
|
27
|
+
<w:r><w:t>Text content</w:t></w:r>
|
|
28
|
+
</w:p>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Headings and Styles
|
|
32
|
+
```xml
|
|
33
|
+
<w:p>
|
|
34
|
+
<w:pPr>
|
|
35
|
+
<w:pStyle w:val="Title"/>
|
|
36
|
+
<w:jc w:val="center"/>
|
|
37
|
+
</w:pPr>
|
|
38
|
+
<w:r><w:t>Document Title</w:t></w:r>
|
|
39
|
+
</w:p>
|
|
40
|
+
|
|
41
|
+
<w:p>
|
|
42
|
+
<w:pPr><w:pStyle w:val="Heading2"/></w:pPr>
|
|
43
|
+
<w:r><w:t>Section Heading</w:t></w:r>
|
|
44
|
+
</w:p>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Text Formatting
|
|
48
|
+
```xml
|
|
49
|
+
<!-- Bold -->
|
|
50
|
+
<w:r><w:rPr><w:b/><w:bCs/></w:rPr><w:t>Bold</w:t></w:r>
|
|
51
|
+
<!-- Italic -->
|
|
52
|
+
<w:r><w:rPr><w:i/><w:iCs/></w:rPr><w:t>Italic</w:t></w:r>
|
|
53
|
+
<!-- Underline -->
|
|
54
|
+
<w:r><w:rPr><w:u w:val="single"/></w:rPr><w:t>Underlined</w:t></w:r>
|
|
55
|
+
<!-- Highlight -->
|
|
56
|
+
<w:r><w:rPr><w:highlight w:val="yellow"/></w:rPr><w:t>Highlighted</w:t></w:r>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Lists
|
|
60
|
+
```xml
|
|
61
|
+
<!-- Numbered list -->
|
|
62
|
+
<w:p>
|
|
63
|
+
<w:pPr>
|
|
64
|
+
<w:pStyle w:val="ListParagraph"/>
|
|
65
|
+
<w:numPr><w:ilvl w:val="0"/><w:numId w:val="1"/></w:numPr>
|
|
66
|
+
<w:spacing w:before="240"/>
|
|
67
|
+
</w:pPr>
|
|
68
|
+
<w:r><w:t>First item</w:t></w:r>
|
|
69
|
+
</w:p>
|
|
70
|
+
|
|
71
|
+
<!-- Restart numbered list at 1 - use different numId -->
|
|
72
|
+
<w:p>
|
|
73
|
+
<w:pPr>
|
|
74
|
+
<w:pStyle w:val="ListParagraph"/>
|
|
75
|
+
<w:numPr><w:ilvl w:val="0"/><w:numId w:val="2"/></w:numPr>
|
|
76
|
+
<w:spacing w:before="240"/>
|
|
77
|
+
</w:pPr>
|
|
78
|
+
<w:r><w:t>New list item 1</w:t></w:r>
|
|
79
|
+
</w:p>
|
|
80
|
+
|
|
81
|
+
<!-- Bullet list (level 2) -->
|
|
82
|
+
<w:p>
|
|
83
|
+
<w:pPr>
|
|
84
|
+
<w:pStyle w:val="ListParagraph"/>
|
|
85
|
+
<w:numPr><w:ilvl w:val="1"/><w:numId w:val="1"/></w:numPr>
|
|
86
|
+
<w:spacing w:before="240"/>
|
|
87
|
+
<w:ind w:left="900"/>
|
|
88
|
+
</w:pPr>
|
|
89
|
+
<w:r><w:t>Bullet item</w:t></w:r>
|
|
90
|
+
</w:p>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Tables
|
|
94
|
+
```xml
|
|
95
|
+
<w:tbl>
|
|
96
|
+
<w:tblPr>
|
|
97
|
+
<w:tblStyle w:val="TableGrid"/>
|
|
98
|
+
<w:tblW w:w="0" w:type="auto"/>
|
|
99
|
+
</w:tblPr>
|
|
100
|
+
<w:tblGrid>
|
|
101
|
+
<w:gridCol w:w="4675"/><w:gridCol w:w="4675"/>
|
|
102
|
+
</w:tblGrid>
|
|
103
|
+
<w:tr>
|
|
104
|
+
<w:tc>
|
|
105
|
+
<w:tcPr><w:tcW w:w="4675" w:type="dxa"/></w:tcPr>
|
|
106
|
+
<w:p><w:r><w:t>Cell 1</w:t></w:r></w:p>
|
|
107
|
+
</w:tc>
|
|
108
|
+
<w:tc>
|
|
109
|
+
<w:tcPr><w:tcW w:w="4675" w:type="dxa"/></w:tcPr>
|
|
110
|
+
<w:p><w:r><w:t>Cell 2</w:t></w:r></w:p>
|
|
111
|
+
</w:tc>
|
|
112
|
+
</w:tr>
|
|
113
|
+
</w:tbl>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Layout
|
|
117
|
+
```xml
|
|
118
|
+
<!-- Page break before new section (common pattern) -->
|
|
119
|
+
<w:p>
|
|
120
|
+
<w:r>
|
|
121
|
+
<w:br w:type="page"/>
|
|
122
|
+
</w:r>
|
|
123
|
+
</w:p>
|
|
124
|
+
<w:p>
|
|
125
|
+
<w:pPr>
|
|
126
|
+
<w:pStyle w:val="Heading1"/>
|
|
127
|
+
</w:pPr>
|
|
128
|
+
<w:r>
|
|
129
|
+
<w:t>New Section Title</w:t>
|
|
130
|
+
</w:r>
|
|
131
|
+
</w:p>
|
|
132
|
+
|
|
133
|
+
<!-- Centered paragraph -->
|
|
134
|
+
<w:p>
|
|
135
|
+
<w:pPr>
|
|
136
|
+
<w:spacing w:before="240" w:after="0"/>
|
|
137
|
+
<w:jc w:val="center"/>
|
|
138
|
+
</w:pPr>
|
|
139
|
+
<w:r><w:t>Centered text</w:t></w:r>
|
|
140
|
+
</w:p>
|
|
141
|
+
|
|
142
|
+
<!-- Font change - paragraph level (applies to all runs) -->
|
|
143
|
+
<w:p>
|
|
144
|
+
<w:pPr>
|
|
145
|
+
<w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/></w:rPr>
|
|
146
|
+
</w:pPr>
|
|
147
|
+
<w:r><w:t>Monospace text</w:t></w:r>
|
|
148
|
+
</w:p>
|
|
149
|
+
|
|
150
|
+
<!-- Font change - run level (specific to this text) -->
|
|
151
|
+
<w:p>
|
|
152
|
+
<w:r>
|
|
153
|
+
<w:rPr><w:rFonts w:ascii="Courier New" w:hAnsi="Courier New"/></w:rPr>
|
|
154
|
+
<w:t>This text is Courier New</w:t>
|
|
155
|
+
</w:r>
|
|
156
|
+
<w:r><w:t> and this text uses default font</w:t></w:r>
|
|
157
|
+
</w:p>
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## File Updates
|
|
161
|
+
|
|
162
|
+
When adding content, update these files:
|
|
163
|
+
|
|
164
|
+
**`word/_rels/document.xml.rels`:**
|
|
165
|
+
```xml
|
|
166
|
+
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering" Target="numbering.xml"/>
|
|
167
|
+
<Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image1.png"/>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
**`[Content_Types].xml`:**
|
|
171
|
+
```xml
|
|
172
|
+
<Default Extension="png" ContentType="image/png"/>
|
|
173
|
+
<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Images
|
|
177
|
+
**CRITICAL**: Calculate dimensions to prevent page overflow and maintain aspect ratio.
|
|
178
|
+
|
|
179
|
+
```xml
|
|
180
|
+
<!-- Minimal required structure -->
|
|
181
|
+
<w:p>
|
|
182
|
+
<w:r>
|
|
183
|
+
<w:drawing>
|
|
184
|
+
<wp:inline>
|
|
185
|
+
<wp:extent cx="2743200" cy="1828800"/>
|
|
186
|
+
<wp:docPr id="1" name="Picture 1"/>
|
|
187
|
+
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
|
|
188
|
+
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
|
|
189
|
+
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
|
|
190
|
+
<pic:nvPicPr>
|
|
191
|
+
<pic:cNvPr id="0" name="image1.png"/>
|
|
192
|
+
<pic:cNvPicPr/>
|
|
193
|
+
</pic:nvPicPr>
|
|
194
|
+
<pic:blipFill>
|
|
195
|
+
<a:blip r:embed="rId5"/>
|
|
196
|
+
<!-- Add for stretch fill with aspect ratio preservation -->
|
|
197
|
+
<a:stretch>
|
|
198
|
+
<a:fillRect/>
|
|
199
|
+
</a:stretch>
|
|
200
|
+
</pic:blipFill>
|
|
201
|
+
<pic:spPr>
|
|
202
|
+
<a:xfrm>
|
|
203
|
+
<a:ext cx="2743200" cy="1828800"/>
|
|
204
|
+
</a:xfrm>
|
|
205
|
+
<a:prstGeom prst="rect"/>
|
|
206
|
+
</pic:spPr>
|
|
207
|
+
</pic:pic>
|
|
208
|
+
</a:graphicData>
|
|
209
|
+
</a:graphic>
|
|
210
|
+
</wp:inline>
|
|
211
|
+
</w:drawing>
|
|
212
|
+
</w:r>
|
|
213
|
+
</w:p>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Links (Hyperlinks)
|
|
217
|
+
|
|
218
|
+
**IMPORTANT**: All hyperlinks (both internal and external) require the Hyperlink style to be defined in styles.xml. Without this style, links will look like regular text instead of blue underlined clickable links.
|
|
219
|
+
|
|
220
|
+
**External Links:**
|
|
221
|
+
```xml
|
|
222
|
+
<!-- In document.xml -->
|
|
223
|
+
<w:hyperlink r:id="rId5">
|
|
224
|
+
<w:r>
|
|
225
|
+
<w:rPr><w:rStyle w:val="Hyperlink"/></w:rPr>
|
|
226
|
+
<w:t>Link Text</w:t>
|
|
227
|
+
</w:r>
|
|
228
|
+
</w:hyperlink>
|
|
229
|
+
|
|
230
|
+
<!-- In word/_rels/document.xml.rels -->
|
|
231
|
+
<Relationship Id="rId5" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"
|
|
232
|
+
Target="https://www.example.com/" TargetMode="External"/>
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
**Internal Links:**
|
|
236
|
+
|
|
237
|
+
```xml
|
|
238
|
+
<!-- Link to bookmark -->
|
|
239
|
+
<w:hyperlink w:anchor="myBookmark">
|
|
240
|
+
<w:r>
|
|
241
|
+
<w:rPr><w:rStyle w:val="Hyperlink"/></w:rPr>
|
|
242
|
+
<w:t>Link Text</w:t>
|
|
243
|
+
</w:r>
|
|
244
|
+
</w:hyperlink>
|
|
245
|
+
|
|
246
|
+
<!-- Bookmark target -->
|
|
247
|
+
<w:bookmarkStart w:id="0" w:name="myBookmark"/>
|
|
248
|
+
<w:r><w:t>Target content</w:t></w:r>
|
|
249
|
+
<w:bookmarkEnd w:id="0"/>
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Hyperlink Style (required in styles.xml):**
|
|
253
|
+
```xml
|
|
254
|
+
<w:style w:type="character" w:styleId="Hyperlink">
|
|
255
|
+
<w:name w:val="Hyperlink"/>
|
|
256
|
+
<w:basedOn w:val="DefaultParagraphFont"/>
|
|
257
|
+
<w:uiPriority w:val="99"/>
|
|
258
|
+
<w:unhideWhenUsed/>
|
|
259
|
+
<w:rPr>
|
|
260
|
+
<w:color w:val="467886" w:themeColor="hyperlink"/>
|
|
261
|
+
<w:u w:val="single"/>
|
|
262
|
+
</w:rPr>
|
|
263
|
+
</w:style>
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
## Document Library (Python)
|
|
267
|
+
|
|
268
|
+
Use the Document class from `scripts/document.py` for all tracked changes and comments. It automatically handles infrastructure setup (people.xml, RSIDs, settings.xml, comment files, relationships, content types). Only use direct XML manipulation for complex scenarios not supported by the library.
|
|
269
|
+
|
|
270
|
+
**Working with Unicode and Entities:**
|
|
271
|
+
- **Searching**: Both entity notation and Unicode characters work - `contains="“Company"` and `contains="\u201cCompany"` find the same text
|
|
272
|
+
- **Replacing**: Use either entities (`“`) or Unicode (`\u201c`) - both work and will be converted appropriately based on the file's encoding (ascii → entities, utf-8 → Unicode)
|
|
273
|
+
|
|
274
|
+
### Initialization
|
|
275
|
+
|
|
276
|
+
**Find the docx skill root** (directory containing `scripts/` and `ooxml/`):
|
|
277
|
+
```bash
|
|
278
|
+
# Search for document.py to locate the skill root
|
|
279
|
+
# Note: /mnt/skills is used here as an example; check your context for the actual location
|
|
280
|
+
find /mnt/skills -name "document.py" -path "*/docx/scripts/*" 2>/dev/null | head -1
|
|
281
|
+
# Example output: /mnt/skills/docx/scripts/document.py
|
|
282
|
+
# Skill root is: /mnt/skills/docx
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Run your script with PYTHONPATH** set to the docx skill root:
|
|
286
|
+
```bash
|
|
287
|
+
PYTHONPATH=/mnt/skills/docx python your_script.py
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
**In your script**, import from the skill root:
|
|
291
|
+
```python
|
|
292
|
+
from scripts.document import Document, DocxXMLEditor
|
|
293
|
+
|
|
294
|
+
# Basic initialization (automatically creates temp copy and sets up infrastructure)
|
|
295
|
+
doc = Document('unpacked')
|
|
296
|
+
|
|
297
|
+
# Customize author and initials
|
|
298
|
+
doc = Document('unpacked', author="John Doe", initials="JD")
|
|
299
|
+
|
|
300
|
+
# Enable track revisions mode
|
|
301
|
+
doc = Document('unpacked', track_revisions=True)
|
|
302
|
+
|
|
303
|
+
# Specify custom RSID (auto-generated if not provided)
|
|
304
|
+
doc = Document('unpacked', rsid="07DC5ECB")
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Creating Tracked Changes
|
|
308
|
+
|
|
309
|
+
**CRITICAL**: Only mark text that actually changes. Keep ALL unchanged text outside `<w:del>`/`<w:ins>` tags. Marking unchanged text makes edits unprofessional and harder to review.
|
|
310
|
+
|
|
311
|
+
**Attribute Handling**: The Document class auto-injects attributes (w:id, w:date, w:rsidR, w:rsidDel, w16du:dateUtc, xml:space) into new elements. When preserving unchanged text from the original document, copy the original `<w:r>` element with its existing attributes to maintain document integrity.
|
|
312
|
+
|
|
313
|
+
**Method Selection Guide**:
|
|
314
|
+
- **Adding your own changes to regular text**: Use `replace_node()` with `<w:del>`/`<w:ins>` tags, or `suggest_deletion()` for removing entire `<w:r>` or `<w:p>` elements
|
|
315
|
+
- **Partially modifying another author's tracked change**: Use `replace_node()` to nest your changes inside their `<w:ins>`/`<w:del>`
|
|
316
|
+
- **Completely rejecting another author's insertion**: Use `revert_insertion()` on the `<w:ins>` element (NOT `suggest_deletion()`)
|
|
317
|
+
- **Completely rejecting another author's deletion**: Use `revert_deletion()` on the `<w:del>` element to restore deleted content using tracked changes
|
|
318
|
+
|
|
319
|
+
```python
|
|
320
|
+
# Minimal edit - change one word: "The report is monthly" → "The report is quarterly"
|
|
321
|
+
# Original: <w:r w:rsidR="00AB12CD"><w:rPr><w:rFonts w:ascii="Calibri"/></w:rPr><w:t>The report is monthly</w:t></w:r>
|
|
322
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="The report is monthly")
|
|
323
|
+
rpr = tags[0].toxml() if (tags := node.getElementsByTagName("w:rPr")) else ""
|
|
324
|
+
replacement = f'<w:r w:rsidR="00AB12CD">{rpr}<w:t>The report is </w:t></w:r><w:del><w:r>{rpr}<w:delText>monthly</w:delText></w:r></w:del><w:ins><w:r>{rpr}<w:t>quarterly</w:t></w:r></w:ins>'
|
|
325
|
+
doc["word/document.xml"].replace_node(node, replacement)
|
|
326
|
+
|
|
327
|
+
# Minimal edit - change number: "within 30 days" → "within 45 days"
|
|
328
|
+
# Original: <w:r w:rsidR="00XYZ789"><w:rPr><w:rFonts w:ascii="Calibri"/></w:rPr><w:t>within 30 days</w:t></w:r>
|
|
329
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="within 30 days")
|
|
330
|
+
rpr = tags[0].toxml() if (tags := node.getElementsByTagName("w:rPr")) else ""
|
|
331
|
+
replacement = f'<w:r w:rsidR="00XYZ789">{rpr}<w:t>within </w:t></w:r><w:del><w:r>{rpr}<w:delText>30</w:delText></w:r></w:del><w:ins><w:r>{rpr}<w:t>45</w:t></w:r></w:ins><w:r w:rsidR="00XYZ789">{rpr}<w:t> days</w:t></w:r>'
|
|
332
|
+
doc["word/document.xml"].replace_node(node, replacement)
|
|
333
|
+
|
|
334
|
+
# Complete replacement - preserve formatting even when replacing all text
|
|
335
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="apple")
|
|
336
|
+
rpr = tags[0].toxml() if (tags := node.getElementsByTagName("w:rPr")) else ""
|
|
337
|
+
replacement = f'<w:del><w:r>{rpr}<w:delText>apple</w:delText></w:r></w:del><w:ins><w:r>{rpr}<w:t>banana orange</w:t></w:r></w:ins>'
|
|
338
|
+
doc["word/document.xml"].replace_node(node, replacement)
|
|
339
|
+
|
|
340
|
+
# Insert new content (no attributes needed - auto-injected)
|
|
341
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="existing text")
|
|
342
|
+
doc["word/document.xml"].insert_after(node, '<w:ins><w:r><w:t>new text</w:t></w:r></w:ins>')
|
|
343
|
+
|
|
344
|
+
# Partially delete another author's insertion
|
|
345
|
+
# Original: <w:ins w:author="Jane Smith" w:date="..."><w:r><w:t>quarterly financial report</w:t></w:r></w:ins>
|
|
346
|
+
# Goal: Delete only "financial" to make it "quarterly report"
|
|
347
|
+
node = doc["word/document.xml"].get_node(tag="w:ins", attrs={"w:id": "5"})
|
|
348
|
+
# IMPORTANT: Preserve w:author="Jane Smith" on the outer <w:ins> to maintain authorship
|
|
349
|
+
replacement = '''<w:ins w:author="Jane Smith" w:date="2025-01-15T10:00:00Z">
|
|
350
|
+
<w:r><w:t>quarterly </w:t></w:r>
|
|
351
|
+
<w:del><w:r><w:delText>financial </w:delText></w:r></w:del>
|
|
352
|
+
<w:r><w:t>report</w:t></w:r>
|
|
353
|
+
</w:ins>'''
|
|
354
|
+
doc["word/document.xml"].replace_node(node, replacement)
|
|
355
|
+
|
|
356
|
+
# Change part of another author's insertion
|
|
357
|
+
# Original: <w:ins w:author="Jane Smith"><w:r><w:t>in silence, safe and sound</w:t></w:r></w:ins>
|
|
358
|
+
# Goal: Change "safe and sound" to "soft and unbound"
|
|
359
|
+
node = doc["word/document.xml"].get_node(tag="w:ins", attrs={"w:id": "8"})
|
|
360
|
+
replacement = f'''<w:ins w:author="Jane Smith" w:date="2025-01-15T10:00:00Z">
|
|
361
|
+
<w:r><w:t>in silence, </w:t></w:r>
|
|
362
|
+
</w:ins>
|
|
363
|
+
<w:ins>
|
|
364
|
+
<w:r><w:t>soft and unbound</w:t></w:r>
|
|
365
|
+
</w:ins>
|
|
366
|
+
<w:ins w:author="Jane Smith" w:date="2025-01-15T10:00:00Z">
|
|
367
|
+
<w:del><w:r><w:delText>safe and sound</w:delText></w:r></w:del>
|
|
368
|
+
</w:ins>'''
|
|
369
|
+
doc["word/document.xml"].replace_node(node, replacement)
|
|
370
|
+
|
|
371
|
+
# Delete entire run (use only when deleting all content; use replace_node for partial deletions)
|
|
372
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="text to delete")
|
|
373
|
+
doc["word/document.xml"].suggest_deletion(node)
|
|
374
|
+
|
|
375
|
+
# Delete entire paragraph (in-place, handles both regular and numbered list paragraphs)
|
|
376
|
+
para = doc["word/document.xml"].get_node(tag="w:p", contains="paragraph to delete")
|
|
377
|
+
doc["word/document.xml"].suggest_deletion(para)
|
|
378
|
+
|
|
379
|
+
# Add new numbered list item
|
|
380
|
+
target_para = doc["word/document.xml"].get_node(tag="w:p", contains="existing list item")
|
|
381
|
+
pPr = tags[0].toxml() if (tags := target_para.getElementsByTagName("w:pPr")) else ""
|
|
382
|
+
new_item = f'<w:p>{pPr}<w:r><w:t>New item</w:t></w:r></w:p>'
|
|
383
|
+
tracked_para = DocxXMLEditor.suggest_paragraph(new_item)
|
|
384
|
+
doc["word/document.xml"].insert_after(target_para, tracked_para)
|
|
385
|
+
# Optional: add spacing paragraph before content for better visual separation
|
|
386
|
+
# spacing = DocxXMLEditor.suggest_paragraph('<w:p><w:pPr><w:pStyle w:val="ListParagraph"/></w:pPr></w:p>')
|
|
387
|
+
# doc["word/document.xml"].insert_after(target_para, spacing + tracked_para)
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
### Adding Comments
|
|
391
|
+
|
|
392
|
+
```python
|
|
393
|
+
# Add comment spanning two existing tracked changes
|
|
394
|
+
# Note: w:id is auto-generated. Only search by w:id if you know it from XML inspection
|
|
395
|
+
start_node = doc["word/document.xml"].get_node(tag="w:del", attrs={"w:id": "1"})
|
|
396
|
+
end_node = doc["word/document.xml"].get_node(tag="w:ins", attrs={"w:id": "2"})
|
|
397
|
+
doc.add_comment(start=start_node, end=end_node, text="Explanation of this change")
|
|
398
|
+
|
|
399
|
+
# Add comment on a paragraph
|
|
400
|
+
para = doc["word/document.xml"].get_node(tag="w:p", contains="paragraph text")
|
|
401
|
+
doc.add_comment(start=para, end=para, text="Comment on this paragraph")
|
|
402
|
+
|
|
403
|
+
# Add comment on newly created tracked change
|
|
404
|
+
# First create the tracked change
|
|
405
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="old")
|
|
406
|
+
new_nodes = doc["word/document.xml"].replace_node(
|
|
407
|
+
node,
|
|
408
|
+
'<w:del><w:r><w:delText>old</w:delText></w:r></w:del><w:ins><w:r><w:t>new</w:t></w:r></w:ins>'
|
|
409
|
+
)
|
|
410
|
+
# Then add comment on the newly created elements
|
|
411
|
+
# new_nodes[0] is the <w:del>, new_nodes[1] is the <w:ins>
|
|
412
|
+
doc.add_comment(start=new_nodes[0], end=new_nodes[1], text="Changed old to new per requirements")
|
|
413
|
+
|
|
414
|
+
# Reply to existing comment
|
|
415
|
+
doc.reply_to_comment(parent_comment_id=0, text="I agree with this change")
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
### Rejecting Tracked Changes
|
|
419
|
+
|
|
420
|
+
**IMPORTANT**: Use `revert_insertion()` to reject insertions and `revert_deletion()` to restore deletions using tracked changes. Use `suggest_deletion()` only for regular unmarked content.
|
|
421
|
+
|
|
422
|
+
```python
|
|
423
|
+
# Reject insertion (wraps it in deletion)
|
|
424
|
+
# Use this when another author inserted text that you want to delete
|
|
425
|
+
ins = doc["word/document.xml"].get_node(tag="w:ins", attrs={"w:id": "5"})
|
|
426
|
+
nodes = doc["word/document.xml"].revert_insertion(ins) # Returns [ins]
|
|
427
|
+
|
|
428
|
+
# Reject deletion (creates insertion to restore deleted content)
|
|
429
|
+
# Use this when another author deleted text that you want to restore
|
|
430
|
+
del_elem = doc["word/document.xml"].get_node(tag="w:del", attrs={"w:id": "3"})
|
|
431
|
+
nodes = doc["word/document.xml"].revert_deletion(del_elem) # Returns [del_elem, new_ins]
|
|
432
|
+
|
|
433
|
+
# Reject all insertions in a paragraph
|
|
434
|
+
para = doc["word/document.xml"].get_node(tag="w:p", contains="paragraph text")
|
|
435
|
+
nodes = doc["word/document.xml"].revert_insertion(para) # Returns [para]
|
|
436
|
+
|
|
437
|
+
# Reject all deletions in a paragraph
|
|
438
|
+
para = doc["word/document.xml"].get_node(tag="w:p", contains="paragraph text")
|
|
439
|
+
nodes = doc["word/document.xml"].revert_deletion(para) # Returns [para]
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
### Inserting Images
|
|
443
|
+
|
|
444
|
+
**CRITICAL**: The Document class works with a temporary copy at `doc.unpacked_path`. Always copy images to this temp directory, not the original unpacked folder.
|
|
445
|
+
|
|
446
|
+
```python
|
|
447
|
+
from PIL import Image
|
|
448
|
+
import shutil, os
|
|
449
|
+
|
|
450
|
+
# Initialize document first
|
|
451
|
+
doc = Document('unpacked')
|
|
452
|
+
|
|
453
|
+
# Copy image and calculate full-width dimensions with aspect ratio
|
|
454
|
+
media_dir = os.path.join(doc.unpacked_path, 'word/media')
|
|
455
|
+
os.makedirs(media_dir, exist_ok=True)
|
|
456
|
+
shutil.copy('image.png', os.path.join(media_dir, 'image1.png'))
|
|
457
|
+
img = Image.open(os.path.join(media_dir, 'image1.png'))
|
|
458
|
+
width_emus = int(6.5 * 914400) # 6.5" usable width, 914400 EMUs/inch
|
|
459
|
+
height_emus = int(width_emus * img.size[1] / img.size[0])
|
|
460
|
+
|
|
461
|
+
# Add relationship and content type
|
|
462
|
+
rels_editor = doc['word/_rels/document.xml.rels']
|
|
463
|
+
next_rid = rels_editor.get_next_rid()
|
|
464
|
+
rels_editor.append_to(rels_editor.dom.documentElement,
|
|
465
|
+
f'<Relationship Id="{next_rid}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="media/image1.png"/>')
|
|
466
|
+
doc['[Content_Types].xml'].append_to(doc['[Content_Types].xml'].dom.documentElement,
|
|
467
|
+
'<Default Extension="png" ContentType="image/png"/>')
|
|
468
|
+
|
|
469
|
+
# Insert image
|
|
470
|
+
node = doc["word/document.xml"].get_node(tag="w:p", line_number=100)
|
|
471
|
+
doc["word/document.xml"].insert_after(node, f'''<w:p>
|
|
472
|
+
<w:r>
|
|
473
|
+
<w:drawing>
|
|
474
|
+
<wp:inline distT="0" distB="0" distL="0" distR="0">
|
|
475
|
+
<wp:extent cx="{width_emus}" cy="{height_emus}"/>
|
|
476
|
+
<wp:docPr id="1" name="Picture 1"/>
|
|
477
|
+
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
|
|
478
|
+
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
|
|
479
|
+
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
|
|
480
|
+
<pic:nvPicPr><pic:cNvPr id="1" name="image1.png"/><pic:cNvPicPr/></pic:nvPicPr>
|
|
481
|
+
<pic:blipFill><a:blip r:embed="{next_rid}"/><a:stretch><a:fillRect/></a:stretch></pic:blipFill>
|
|
482
|
+
<pic:spPr><a:xfrm><a:ext cx="{width_emus}" cy="{height_emus}"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></pic:spPr>
|
|
483
|
+
</pic:pic>
|
|
484
|
+
</a:graphicData>
|
|
485
|
+
</a:graphic>
|
|
486
|
+
</wp:inline>
|
|
487
|
+
</w:drawing>
|
|
488
|
+
</w:r>
|
|
489
|
+
</w:p>''')
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Getting Nodes
|
|
493
|
+
|
|
494
|
+
```python
|
|
495
|
+
# By text content
|
|
496
|
+
node = doc["word/document.xml"].get_node(tag="w:p", contains="specific text")
|
|
497
|
+
|
|
498
|
+
# By line range
|
|
499
|
+
para = doc["word/document.xml"].get_node(tag="w:p", line_number=range(100, 150))
|
|
500
|
+
|
|
501
|
+
# By attributes
|
|
502
|
+
node = doc["word/document.xml"].get_node(tag="w:del", attrs={"w:id": "1"})
|
|
503
|
+
|
|
504
|
+
# By exact line number (must be line number where tag opens)
|
|
505
|
+
para = doc["word/document.xml"].get_node(tag="w:p", line_number=42)
|
|
506
|
+
|
|
507
|
+
# Combine filters
|
|
508
|
+
node = doc["word/document.xml"].get_node(tag="w:r", line_number=range(40, 60), contains="text")
|
|
509
|
+
|
|
510
|
+
# Disambiguate when text appears multiple times - add line_number range
|
|
511
|
+
node = doc["word/document.xml"].get_node(tag="w:r", contains="Section", line_number=range(2400, 2500))
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
### Saving
|
|
515
|
+
|
|
516
|
+
```python
|
|
517
|
+
# Save with automatic validation (copies back to original directory)
|
|
518
|
+
doc.save() # Validates by default, raises error if validation fails
|
|
519
|
+
|
|
520
|
+
# Save to different location
|
|
521
|
+
doc.save('modified-unpacked')
|
|
522
|
+
|
|
523
|
+
# Skip validation (debugging only - needing this in production indicates XML issues)
|
|
524
|
+
doc.save(validate=False)
|
|
525
|
+
```
|
|
526
|
+
|
|
527
|
+
### Direct DOM Manipulation
|
|
528
|
+
|
|
529
|
+
For complex scenarios not covered by the library:
|
|
530
|
+
|
|
531
|
+
```python
|
|
532
|
+
# Access any XML file
|
|
533
|
+
editor = doc["word/document.xml"]
|
|
534
|
+
editor = doc["word/comments.xml"]
|
|
535
|
+
|
|
536
|
+
# Direct DOM access (defusedxml.minidom.Document)
|
|
537
|
+
node = doc["word/document.xml"].get_node(tag="w:p", line_number=5)
|
|
538
|
+
parent = node.parentNode
|
|
539
|
+
parent.removeChild(node)
|
|
540
|
+
parent.appendChild(node) # Move to end
|
|
541
|
+
|
|
542
|
+
# General document manipulation (without tracked changes)
|
|
543
|
+
old_node = doc["word/document.xml"].get_node(tag="w:p", contains="original text")
|
|
544
|
+
doc["word/document.xml"].replace_node(old_node, "<w:p><w:r><w:t>replacement text</w:t></w:r></w:p>")
|
|
545
|
+
|
|
546
|
+
# Multiple insertions - use return value to maintain order
|
|
547
|
+
node = doc["word/document.xml"].get_node(tag="w:r", line_number=100)
|
|
548
|
+
nodes = doc["word/document.xml"].insert_after(node, "<w:r><w:t>A</w:t></w:r>")
|
|
549
|
+
nodes = doc["word/document.xml"].insert_after(nodes[-1], "<w:r><w:t>B</w:t></w:r>")
|
|
550
|
+
nodes = doc["word/document.xml"].insert_after(nodes[-1], "<w:r><w:t>C</w:t></w:r>")
|
|
551
|
+
# Results in: original_node, A, B, C
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
## Tracked Changes (Redlining)
|
|
555
|
+
|
|
556
|
+
**Use the Document class above for all tracked changes.** The patterns below are for reference when constructing replacement XML strings.
|
|
557
|
+
|
|
558
|
+
### Validation Rules
|
|
559
|
+
The validator checks that the document text matches the original after reverting Claude's changes. This means:
|
|
560
|
+
- **NEVER modify text inside another author's `<w:ins>` or `<w:del>` tags**
|
|
561
|
+
- **ALWAYS use nested deletions** to remove another author's insertions
|
|
562
|
+
- **Every edit must be properly tracked** with `<w:ins>` or `<w:del>` tags
|
|
563
|
+
|
|
564
|
+
### Tracked Change Patterns
|
|
565
|
+
|
|
566
|
+
**CRITICAL RULES**:
|
|
567
|
+
1. Never modify the content inside another author's tracked changes. Always use nested deletions.
|
|
568
|
+
2. **XML Structure**: Always place `<w:del>` and `<w:ins>` at paragraph level containing complete `<w:r>` elements. Never nest inside `<w:r>` elements - this creates invalid XML that breaks document processing.
|
|
569
|
+
|
|
570
|
+
**Text Insertion:**
|
|
571
|
+
```xml
|
|
572
|
+
<w:ins w:id="1" w:author="Claude" w:date="2025-07-30T23:05:00Z" w16du:dateUtc="2025-07-31T06:05:00Z">
|
|
573
|
+
<w:r w:rsidR="00792858">
|
|
574
|
+
<w:t>inserted text</w:t>
|
|
575
|
+
</w:r>
|
|
576
|
+
</w:ins>
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**Text Deletion:**
|
|
580
|
+
```xml
|
|
581
|
+
<w:del w:id="2" w:author="Claude" w:date="2025-07-30T23:05:00Z" w16du:dateUtc="2025-07-31T06:05:00Z">
|
|
582
|
+
<w:r w:rsidDel="00792858">
|
|
583
|
+
<w:delText>deleted text</w:delText>
|
|
584
|
+
</w:r>
|
|
585
|
+
</w:del>
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
**Deleting Another Author's Insertion (MUST use nested structure):**
|
|
589
|
+
```xml
|
|
590
|
+
<!-- Nest deletion inside the original insertion -->
|
|
591
|
+
<w:ins w:author="Jane Smith" w:id="16">
|
|
592
|
+
<w:del w:author="Claude" w:id="40">
|
|
593
|
+
<w:r><w:delText>monthly</w:delText></w:r>
|
|
594
|
+
</w:del>
|
|
595
|
+
</w:ins>
|
|
596
|
+
<w:ins w:author="Claude" w:id="41">
|
|
597
|
+
<w:r><w:t>weekly</w:t></w:r>
|
|
598
|
+
</w:ins>
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
**Restoring Another Author's Deletion:**
|
|
602
|
+
```xml
|
|
603
|
+
<!-- Leave their deletion unchanged, add new insertion after it -->
|
|
604
|
+
<w:del w:author="Jane Smith" w:id="50">
|
|
605
|
+
<w:r><w:delText>within 30 days</w:delText></w:r>
|
|
606
|
+
</w:del>
|
|
607
|
+
<w:ins w:author="Claude" w:id="51">
|
|
608
|
+
<w:r><w:t>within 30 days</w:t></w:r>
|
|
609
|
+
</w:ins>
|
|
610
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Make scripts directory a package for relative imports in tests
|