devskill 2.0.7 → 2.0.8
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/meta.ts +4 -0
- package/package.json +1 -1
- package/skills/add-educational-comments/LICENSE.md +21 -0
- package/skills/add-educational-comments/SKILL.md +128 -0
- package/skills/add-educational-comments/SYNC.md +5 -0
- package/skills/agent-governance/LICENSE.md +21 -0
- package/skills/agent-governance/SKILL.md +569 -0
- package/skills/agent-governance/SYNC.md +5 -0
- package/skills/agentic-eval/LICENSE.md +21 -0
- package/skills/agentic-eval/SKILL.md +189 -0
- package/skills/agentic-eval/SYNC.md +5 -0
- package/skills/ai-prompt-engineering-safety-review/LICENSE.md +21 -0
- package/skills/ai-prompt-engineering-safety-review/SKILL.md +230 -0
- package/skills/ai-prompt-engineering-safety-review/SYNC.md +5 -0
- package/skills/appinsights-instrumentation/LICENSE.md +21 -0
- package/skills/appinsights-instrumentation/LICENSE.txt +21 -0
- package/skills/appinsights-instrumentation/SKILL.md +48 -0
- package/skills/appinsights-instrumentation/SYNC.md +5 -0
- package/skills/appinsights-instrumentation/examples/appinsights.bicep +30 -0
- package/skills/appinsights-instrumentation/references/ASPNETCORE.md +29 -0
- package/skills/appinsights-instrumentation/references/AUTO.md +13 -0
- package/skills/appinsights-instrumentation/references/NODEJS.md +28 -0
- package/skills/appinsights-instrumentation/references/PYTHON.md +48 -0
- package/skills/appinsights-instrumentation/scripts/appinsights.ps1 +20 -0
- package/skills/apple-appstore-reviewer/LICENSE.md +21 -0
- package/skills/apple-appstore-reviewer/SKILL.md +305 -0
- package/skills/apple-appstore-reviewer/SYNC.md +5 -0
- package/skills/arch-linux-triage/LICENSE.md +21 -0
- package/skills/arch-linux-triage/SKILL.md +31 -0
- package/skills/arch-linux-triage/SYNC.md +5 -0
- package/skills/architecture-blueprint-generator/LICENSE.md +21 -0
- package/skills/architecture-blueprint-generator/SKILL.md +322 -0
- package/skills/architecture-blueprint-generator/SYNC.md +5 -0
- package/skills/aspire/LICENSE.md +21 -0
- package/skills/aspire/SKILL.md +231 -0
- package/skills/aspire/SYNC.md +5 -0
- package/skills/aspire/references/architecture.md +341 -0
- package/skills/aspire/references/cli-reference.md +307 -0
- package/skills/aspire/references/dashboard.md +226 -0
- package/skills/aspire/references/deployment.md +237 -0
- package/skills/aspire/references/integrations-catalog.md +68 -0
- package/skills/aspire/references/mcp-server.md +195 -0
- package/skills/aspire/references/polyglot-apis.md +296 -0
- package/skills/aspire/references/testing.md +281 -0
- package/skills/aspire/references/troubleshooting.md +194 -0
- package/skills/aspnet-minimal-api-openapi/LICENSE.md +21 -0
- package/skills/aspnet-minimal-api-openapi/SKILL.md +41 -0
- package/skills/aspnet-minimal-api-openapi/SYNC.md +5 -0
- package/skills/automate-this/LICENSE.md +21 -0
- package/skills/automate-this/SKILL.md +244 -0
- package/skills/automate-this/SYNC.md +5 -0
- package/skills/autoresearch/LICENSE.md +21 -0
- package/skills/autoresearch/SKILL.md +275 -0
- package/skills/autoresearch/SYNC.md +5 -0
- package/skills/aws-cdk-python-setup/LICENSE.md +21 -0
- package/skills/aws-cdk-python-setup/SKILL.md +111 -0
- package/skills/aws-cdk-python-setup/SYNC.md +5 -0
- package/skills/az-cost-optimize/LICENSE.md +21 -0
- package/skills/az-cost-optimize/SKILL.md +305 -0
- package/skills/az-cost-optimize/SYNC.md +5 -0
- package/skills/azure-deployment-preflight/LICENSE.md +21 -0
- package/skills/azure-deployment-preflight/SKILL.md +216 -0
- package/skills/azure-deployment-preflight/SYNC.md +5 -0
- package/skills/azure-deployment-preflight/references/ERROR-HANDLING.md +392 -0
- package/skills/azure-deployment-preflight/references/REPORT-TEMPLATE.md +352 -0
- package/skills/azure-deployment-preflight/references/VALIDATION-COMMANDS.md +379 -0
- package/skills/azure-devops-cli/LICENSE.md +21 -0
- package/skills/azure-devops-cli/SKILL.md +94 -0
- package/skills/azure-devops-cli/SYNC.md +5 -0
- package/skills/azure-devops-cli/references/advanced-usage.md +197 -0
- package/skills/azure-devops-cli/references/boards-and-iterations.md +258 -0
- package/skills/azure-devops-cli/references/org-and-security.md +469 -0
- package/skills/azure-devops-cli/references/pipelines-and-builds.md +245 -0
- package/skills/azure-devops-cli/references/repos-and-prs.md +333 -0
- package/skills/azure-devops-cli/references/variables-and-agents.md +212 -0
- package/skills/azure-devops-cli/references/workflows-and-patterns.md +668 -0
- package/skills/azure-pricing/LICENSE.md +21 -0
- package/skills/azure-pricing/SKILL.md +189 -0
- package/skills/azure-pricing/SYNC.md +5 -0
- package/skills/azure-pricing/references/COPILOT-STUDIO-RATES.md +135 -0
- package/skills/azure-pricing/references/COST-ESTIMATOR.md +142 -0
- package/skills/azure-pricing/references/REGIONS.md +84 -0
- package/skills/azure-pricing/references/SERVICE-NAMES.md +106 -0
- package/skills/azure-resource-health-diagnose/LICENSE.md +21 -0
- package/skills/azure-resource-health-diagnose/SKILL.md +290 -0
- package/skills/azure-resource-health-diagnose/SYNC.md +5 -0
- package/skills/azure-resource-visualizer/LICENSE.md +21 -0
- package/skills/azure-resource-visualizer/LICENSE.txt +21 -0
- package/skills/azure-resource-visualizer/SKILL.md +233 -0
- package/skills/azure-resource-visualizer/SYNC.md +5 -0
- package/skills/azure-resource-visualizer/assets/template-architecture.md +41 -0
- package/skills/azure-role-selector/LICENSE.md +21 -0
- package/skills/azure-role-selector/LICENSE.txt +21 -0
- package/skills/azure-role-selector/SKILL.md +6 -0
- package/skills/azure-role-selector/SYNC.md +5 -0
- package/skills/azure-static-web-apps/LICENSE.md +21 -0
- package/skills/azure-static-web-apps/SKILL.md +315 -0
- package/skills/azure-static-web-apps/SYNC.md +5 -0
- package/skills/bigquery-pipeline-audit/LICENSE.md +21 -0
- package/skills/bigquery-pipeline-audit/SKILL.md +129 -0
- package/skills/bigquery-pipeline-audit/SYNC.md +5 -0
- package/skills/boost-prompt/LICENSE.md +21 -0
- package/skills/boost-prompt/SKILL.md +25 -0
- package/skills/boost-prompt/SYNC.md +5 -0
- package/skills/breakdown-epic-arch/LICENSE.md +21 -0
- package/skills/breakdown-epic-arch/SKILL.md +66 -0
- package/skills/breakdown-epic-arch/SYNC.md +5 -0
- package/skills/breakdown-epic-pm/LICENSE.md +21 -0
- package/skills/breakdown-epic-pm/SKILL.md +58 -0
- package/skills/breakdown-epic-pm/SYNC.md +5 -0
- package/skills/breakdown-feature-implementation/LICENSE.md +21 -0
- package/skills/breakdown-feature-implementation/SKILL.md +128 -0
- package/skills/breakdown-feature-implementation/SYNC.md +5 -0
- package/skills/breakdown-feature-prd/LICENSE.md +21 -0
- package/skills/breakdown-feature-prd/SKILL.md +61 -0
- package/skills/breakdown-feature-prd/SYNC.md +5 -0
- package/skills/breakdown-plan/LICENSE.md +21 -0
- package/skills/breakdown-plan/SKILL.md +509 -0
- package/skills/breakdown-plan/SYNC.md +5 -0
- package/skills/breakdown-test/LICENSE.md +21 -0
- package/skills/breakdown-test/SKILL.md +365 -0
- package/skills/breakdown-test/SYNC.md +5 -0
- package/skills/centos-linux-triage/LICENSE.md +21 -0
- package/skills/centos-linux-triage/SKILL.md +31 -0
- package/skills/centos-linux-triage/SYNC.md +5 -0
- package/skills/chrome-devtools/LICENSE.md +21 -0
- package/skills/chrome-devtools/SKILL.md +97 -0
- package/skills/chrome-devtools/SYNC.md +5 -0
- package/skills/cli-mastery/LICENSE.md +21 -0
- package/skills/cli-mastery/SKILL.md +43 -0
- package/skills/cli-mastery/SYNC.md +5 -0
- package/skills/cli-mastery/references/final-exam.md +24 -0
- package/skills/cli-mastery/references/module-1-slash-commands.md +88 -0
- package/skills/cli-mastery/references/module-2-keyboard-shortcuts.md +38 -0
- package/skills/cli-mastery/references/module-3-modes.md +33 -0
- package/skills/cli-mastery/references/module-4-agents.md +42 -0
- package/skills/cli-mastery/references/module-5-skills.md +33 -0
- package/skills/cli-mastery/references/module-6-mcp.md +50 -0
- package/skills/cli-mastery/references/module-7-advanced.md +38 -0
- package/skills/cli-mastery/references/module-8-configuration.md +34 -0
- package/skills/cli-mastery/references/scenarios.md +44 -0
- package/skills/cloud-design-patterns/LICENSE.md +21 -0
- package/skills/cloud-design-patterns/SKILL.md +62 -0
- package/skills/cloud-design-patterns/SYNC.md +5 -0
- package/skills/cloud-design-patterns/references/architecture-design.md +127 -0
- package/skills/cloud-design-patterns/references/azure-service-mappings.md +13 -0
- package/skills/cloud-design-patterns/references/best-practices.md +34 -0
- package/skills/cloud-design-patterns/references/deployment-operational.md +91 -0
- package/skills/cloud-design-patterns/references/event-driven.md +21 -0
- package/skills/cloud-design-patterns/references/messaging-integration.md +127 -0
- package/skills/cloud-design-patterns/references/performance.md +180 -0
- package/skills/cloud-design-patterns/references/reliability-resilience.md +156 -0
- package/skills/cloud-design-patterns/references/security.md +55 -0
- package/skills/code-exemplars-blueprint-generator/LICENSE.md +21 -0
- package/skills/code-exemplars-blueprint-generator/SKILL.md +126 -0
- package/skills/code-exemplars-blueprint-generator/SYNC.md +5 -0
- package/skills/codeql/LICENSE.md +21 -0
- package/skills/codeql/SKILL.md +405 -0
- package/skills/codeql/SYNC.md +5 -0
- package/skills/codeql/references/alert-management.md +170 -0
- package/skills/codeql/references/cli-commands.md +283 -0
- package/skills/codeql/references/compiled-languages.md +284 -0
- package/skills/codeql/references/sarif-output.md +265 -0
- package/skills/codeql/references/troubleshooting.md +259 -0
- package/skills/codeql/references/workflow-configuration.md +398 -0
- package/skills/comment-code-generate-a-tutorial/LICENSE.md +21 -0
- package/skills/comment-code-generate-a-tutorial/SKILL.md +26 -0
- package/skills/comment-code-generate-a-tutorial/SYNC.md +5 -0
- package/skills/containerize-aspnet-framework/LICENSE.md +21 -0
- package/skills/containerize-aspnet-framework/SKILL.md +454 -0
- package/skills/containerize-aspnet-framework/SYNC.md +5 -0
- package/skills/containerize-aspnetcore/LICENSE.md +21 -0
- package/skills/containerize-aspnetcore/SKILL.md +392 -0
- package/skills/containerize-aspnetcore/SYNC.md +5 -0
- package/skills/context-map/LICENSE.md +21 -0
- package/skills/context-map/SKILL.md +52 -0
- package/skills/context-map/SYNC.md +5 -0
- package/skills/conventional-commit/LICENSE.md +21 -0
- package/skills/conventional-commit/SKILL.md +72 -0
- package/skills/conventional-commit/SYNC.md +5 -0
- package/skills/convert-plaintext-to-md/LICENSE.md +21 -0
- package/skills/convert-plaintext-to-md/SKILL.md +362 -0
- package/skills/convert-plaintext-to-md/SYNC.md +5 -0
- package/skills/copilot-cli-quickstart/LICENSE.md +21 -0
- package/skills/copilot-cli-quickstart/SKILL.md +774 -0
- package/skills/copilot-cli-quickstart/SYNC.md +5 -0
- package/skills/copilot-instructions-blueprint-generator/LICENSE.md +21 -0
- package/skills/copilot-instructions-blueprint-generator/SKILL.md +294 -0
- package/skills/copilot-instructions-blueprint-generator/SYNC.md +5 -0
- package/skills/copilot-sdk/LICENSE.md +21 -0
- package/skills/copilot-sdk/SKILL.md +914 -0
- package/skills/copilot-sdk/SYNC.md +5 -0
- package/skills/copilot-spaces/LICENSE.md +21 -0
- package/skills/copilot-spaces/SKILL.md +205 -0
- package/skills/copilot-spaces/SYNC.md +5 -0
- package/skills/copilot-usage-metrics/LICENSE.md +21 -0
- package/skills/copilot-usage-metrics/SKILL.md +52 -0
- package/skills/copilot-usage-metrics/SYNC.md +5 -0
- package/skills/copilot-usage-metrics/get-enterprise-metrics.sh +22 -0
- package/skills/copilot-usage-metrics/get-enterprise-user-metrics.sh +22 -0
- package/skills/copilot-usage-metrics/get-org-metrics.sh +22 -0
- package/skills/copilot-usage-metrics/get-org-user-metrics.sh +22 -0
- package/skills/cosmosdb-datamodeling/LICENSE.md +21 -0
- package/skills/cosmosdb-datamodeling/SKILL.md +1045 -0
- package/skills/cosmosdb-datamodeling/SYNC.md +5 -0
- package/skills/create-agentsmd/LICENSE.md +21 -0
- package/skills/create-agentsmd/SKILL.md +249 -0
- package/skills/create-agentsmd/SYNC.md +5 -0
- package/skills/create-architectural-decision-record/LICENSE.md +21 -0
- package/skills/create-architectural-decision-record/SKILL.md +97 -0
- package/skills/create-architectural-decision-record/SYNC.md +5 -0
- package/skills/create-github-action-workflow-specification/LICENSE.md +21 -0
- package/skills/create-github-action-workflow-specification/SKILL.md +276 -0
- package/skills/create-github-action-workflow-specification/SYNC.md +5 -0
- package/skills/create-github-issue-feature-from-specification/LICENSE.md +21 -0
- package/skills/create-github-issue-feature-from-specification/SKILL.md +28 -0
- package/skills/create-github-issue-feature-from-specification/SYNC.md +5 -0
- package/skills/create-github-issues-feature-from-implementation-plan/LICENSE.md +21 -0
- package/skills/create-github-issues-feature-from-implementation-plan/SKILL.md +28 -0
- package/skills/create-github-issues-feature-from-implementation-plan/SYNC.md +5 -0
- package/skills/create-github-issues-for-unmet-specification-requirements/LICENSE.md +21 -0
- package/skills/create-github-issues-for-unmet-specification-requirements/SKILL.md +35 -0
- package/skills/create-github-issues-for-unmet-specification-requirements/SYNC.md +5 -0
- package/skills/create-github-pull-request-from-specification/LICENSE.md +21 -0
- package/skills/create-github-pull-request-from-specification/SKILL.md +24 -0
- package/skills/create-github-pull-request-from-specification/SYNC.md +5 -0
- package/skills/create-implementation-plan/LICENSE.md +21 -0
- package/skills/create-implementation-plan/SKILL.md +157 -0
- package/skills/create-implementation-plan/SYNC.md +5 -0
- package/skills/create-llms/LICENSE.md +21 -0
- package/skills/create-llms/SKILL.md +210 -0
- package/skills/create-llms/SYNC.md +5 -0
- package/skills/create-readme/LICENSE.md +21 -0
- package/skills/create-readme/SKILL.md +21 -0
- package/skills/create-readme/SYNC.md +5 -0
- package/skills/create-specification/LICENSE.md +21 -0
- package/skills/create-specification/SKILL.md +127 -0
- package/skills/create-specification/SYNC.md +5 -0
- package/skills/create-spring-boot-java-project/LICENSE.md +21 -0
- package/skills/create-spring-boot-java-project/SKILL.md +163 -0
- package/skills/create-spring-boot-java-project/SYNC.md +5 -0
- package/skills/create-spring-boot-kotlin-project/LICENSE.md +21 -0
- package/skills/create-spring-boot-kotlin-project/SKILL.md +147 -0
- package/skills/create-spring-boot-kotlin-project/SYNC.md +5 -0
- package/skills/create-technical-spike/LICENSE.md +21 -0
- package/skills/create-technical-spike/SKILL.md +230 -0
- package/skills/create-technical-spike/SYNC.md +5 -0
- package/skills/create-tldr-page/LICENSE.md +21 -0
- package/skills/create-tldr-page/SKILL.md +210 -0
- package/skills/create-tldr-page/SYNC.md +5 -0
- package/skills/creating-oracle-to-postgres-master-migration-plan/LICENSE.md +21 -0
- package/skills/creating-oracle-to-postgres-master-migration-plan/SKILL.md +83 -0
- package/skills/creating-oracle-to-postgres-master-migration-plan/SYNC.md +5 -0
- package/skills/creating-oracle-to-postgres-migration-bug-report/LICENSE.md +21 -0
- package/skills/creating-oracle-to-postgres-migration-bug-report/SKILL.md +43 -0
- package/skills/creating-oracle-to-postgres-migration-bug-report/SYNC.md +5 -0
- package/skills/creating-oracle-to-postgres-migration-bug-report/references/BUG-REPORT-TEMPLATE.md +79 -0
- package/skills/creating-oracle-to-postgres-migration-integration-tests/LICENSE.md +21 -0
- package/skills/creating-oracle-to-postgres-migration-integration-tests/SKILL.md +60 -0
- package/skills/creating-oracle-to-postgres-migration-integration-tests/SYNC.md +5 -0
- package/skills/csharp-async/LICENSE.md +21 -0
- package/skills/csharp-async/SKILL.md +49 -0
- package/skills/csharp-async/SYNC.md +5 -0
- package/skills/csharp-docs/LICENSE.md +21 -0
- package/skills/csharp-docs/SKILL.md +62 -0
- package/skills/csharp-docs/SYNC.md +5 -0
- package/skills/csharp-mcp-server-generator/LICENSE.md +21 -0
- package/skills/csharp-mcp-server-generator/SKILL.md +59 -0
- package/skills/csharp-mcp-server-generator/SYNC.md +5 -0
- package/skills/csharp-mstest/LICENSE.md +21 -0
- package/skills/csharp-mstest/SKILL.md +478 -0
- package/skills/csharp-mstest/SYNC.md +5 -0
- package/skills/csharp-nunit/LICENSE.md +21 -0
- package/skills/csharp-nunit/SKILL.md +71 -0
- package/skills/csharp-nunit/SYNC.md +5 -0
- package/skills/csharp-tunit/LICENSE.md +21 -0
- package/skills/csharp-tunit/SKILL.md +100 -0
- package/skills/csharp-tunit/SYNC.md +5 -0
- package/skills/csharp-xunit/LICENSE.md +21 -0
- package/skills/csharp-xunit/SKILL.md +68 -0
- package/skills/csharp-xunit/SYNC.md +5 -0
- package/skills/datanalysis-credit-risk/LICENSE.md +21 -0
- package/skills/datanalysis-credit-risk/SKILL.md +113 -0
- package/skills/datanalysis-credit-risk/SYNC.md +5 -0
- package/skills/datanalysis-credit-risk/references/analysis.py +1223 -0
- package/skills/datanalysis-credit-risk/references/func.py +228 -0
- package/skills/datanalysis-credit-risk/scripts/example.py +391 -0
- package/skills/dataverse-python-advanced-patterns/LICENSE.md +21 -0
- package/skills/dataverse-python-advanced-patterns/SKILL.md +17 -0
- package/skills/dataverse-python-advanced-patterns/SYNC.md +5 -0
- package/skills/dataverse-python-production-code/LICENSE.md +21 -0
- package/skills/dataverse-python-production-code/SKILL.md +116 -0
- package/skills/dataverse-python-production-code/SYNC.md +5 -0
- package/skills/dataverse-python-quickstart/LICENSE.md +21 -0
- package/skills/dataverse-python-quickstart/SKILL.md +14 -0
- package/skills/dataverse-python-quickstart/SYNC.md +5 -0
- package/skills/dataverse-python-usecase-builder/LICENSE.md +21 -0
- package/skills/dataverse-python-usecase-builder/SKILL.md +246 -0
- package/skills/dataverse-python-usecase-builder/SYNC.md +5 -0
- package/skills/debian-linux-triage/LICENSE.md +21 -0
- package/skills/debian-linux-triage/SKILL.md +31 -0
- package/skills/debian-linux-triage/SYNC.md +5 -0
- package/skills/declarative-agents/LICENSE.md +21 -0
- package/skills/declarative-agents/SKILL.md +94 -0
- package/skills/declarative-agents/SYNC.md +5 -0
- package/skills/dependabot/LICENSE.md +21 -0
- package/skills/dependabot/SKILL.md +422 -0
- package/skills/dependabot/SYNC.md +5 -0
- package/skills/dependabot/references/dependabot-yml-reference.md +374 -0
- package/skills/dependabot/references/example-configs.md +409 -0
- package/skills/dependabot/references/pr-commands.md +91 -0
- package/skills/devops-rollout-plan/LICENSE.md +21 -0
- package/skills/devops-rollout-plan/SKILL.md +117 -0
- package/skills/devops-rollout-plan/SYNC.md +5 -0
- package/skills/documentation-writer/LICENSE.md +21 -0
- package/skills/documentation-writer/SKILL.md +45 -0
- package/skills/documentation-writer/SYNC.md +5 -0
- package/skills/dotnet-best-practices/LICENSE.md +21 -0
- package/skills/dotnet-best-practices/SKILL.md +85 -0
- package/skills/dotnet-best-practices/SYNC.md +5 -0
- package/skills/dotnet-design-pattern-review/LICENSE.md +21 -0
- package/skills/dotnet-design-pattern-review/SKILL.md +42 -0
- package/skills/dotnet-design-pattern-review/SYNC.md +5 -0
- package/skills/dotnet-timezone/LICENSE.md +21 -0
- package/skills/dotnet-timezone/SKILL.md +109 -0
- package/skills/dotnet-timezone/SYNC.md +5 -0
- package/skills/dotnet-timezone/references/code-patterns.md +153 -0
- package/skills/dotnet-timezone/references/timezone-index.md +87 -0
- package/skills/dotnet-upgrade/LICENSE.md +21 -0
- package/skills/dotnet-upgrade/SKILL.md +116 -0
- package/skills/dotnet-upgrade/SYNC.md +5 -0
- package/skills/doublecheck/LICENSE.md +21 -0
- package/skills/doublecheck/SKILL.md +277 -0
- package/skills/doublecheck/SYNC.md +5 -0
- package/skills/doublecheck/assets/verification-report-template.md +92 -0
- package/skills/editorconfig/LICENSE.md +21 -0
- package/skills/editorconfig/SKILL.md +63 -0
- package/skills/editorconfig/SYNC.md +5 -0
- package/skills/ef-core/LICENSE.md +21 -0
- package/skills/ef-core/SKILL.md +75 -0
- package/skills/ef-core/SYNC.md +5 -0
- package/skills/entra-agent-user/LICENSE.md +21 -0
- package/skills/entra-agent-user/SKILL.md +270 -0
- package/skills/entra-agent-user/SYNC.md +5 -0
- package/skills/eval-driven-dev/LICENSE.md +21 -0
- package/skills/eval-driven-dev/SKILL.md +862 -0
- package/skills/eval-driven-dev/SYNC.md +5 -0
- package/skills/eval-driven-dev/references/pixie-api.md +195 -0
- package/skills/excalidraw-diagram-generator/LICENSE.md +21 -0
- package/skills/excalidraw-diagram-generator/SKILL.md +613 -0
- package/skills/excalidraw-diagram-generator/SYNC.md +5 -0
- package/skills/excalidraw-diagram-generator/references/element-types.md +497 -0
- package/skills/excalidraw-diagram-generator/references/excalidraw-schema.md +350 -0
- package/skills/excalidraw-diagram-generator/scripts/README.md +193 -0
- package/skills/excalidraw-diagram-generator/scripts/add-arrow.py +312 -0
- package/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +404 -0
- package/skills/excalidraw-diagram-generator/scripts/split-excalidraw-library.py +183 -0
- package/skills/excalidraw-diagram-generator/templates/business-flow-swimlane-template.excalidraw +334 -0
- package/skills/excalidraw-diagram-generator/templates/class-diagram-template.excalidraw +558 -0
- package/skills/excalidraw-diagram-generator/templates/data-flow-diagram-template.excalidraw +279 -0
- package/skills/excalidraw-diagram-generator/templates/er-diagram-template.excalidraw +662 -0
- package/skills/excalidraw-diagram-generator/templates/flowchart-template.excalidraw +179 -0
- package/skills/excalidraw-diagram-generator/templates/mindmap-template.excalidraw +244 -0
- package/skills/excalidraw-diagram-generator/templates/relationship-template.excalidraw +145 -0
- package/skills/excalidraw-diagram-generator/templates/sequence-diagram-template.excalidraw +509 -0
- package/skills/fabric-lakehouse/LICENSE.md +21 -0
- package/skills/fabric-lakehouse/SKILL.md +106 -0
- package/skills/fabric-lakehouse/SYNC.md +5 -0
- package/skills/fabric-lakehouse/references/getdata.md +36 -0
- package/skills/fabric-lakehouse/references/pyspark.md +189 -0
- package/skills/fedora-linux-triage/LICENSE.md +21 -0
- package/skills/fedora-linux-triage/SKILL.md +31 -0
- package/skills/fedora-linux-triage/SYNC.md +5 -0
- package/skills/finalize-agent-prompt/LICENSE.md +21 -0
- package/skills/finalize-agent-prompt/SKILL.md +26 -0
- package/skills/finalize-agent-prompt/SYNC.md +5 -0
- package/skills/finnish-humanizer/LICENSE.md +21 -0
- package/skills/finnish-humanizer/SKILL.md +145 -0
- package/skills/finnish-humanizer/SYNC.md +5 -0
- package/skills/finnish-humanizer/references/patterns.md +338 -0
- package/skills/first-ask/LICENSE.md +21 -0
- package/skills/first-ask/SKILL.md +30 -0
- package/skills/first-ask/SYNC.md +5 -0
- package/skills/flowstudio-power-automate-build/LICENSE.md +21 -0
- package/skills/flowstudio-power-automate-build/SKILL.md +460 -0
- package/skills/flowstudio-power-automate-build/SYNC.md +5 -0
- package/skills/flowstudio-power-automate-build/references/action-patterns-connectors.md +542 -0
- package/skills/flowstudio-power-automate-build/references/action-patterns-core.md +542 -0
- package/skills/flowstudio-power-automate-build/references/action-patterns-data.md +735 -0
- package/skills/flowstudio-power-automate-build/references/build-patterns.md +108 -0
- package/skills/flowstudio-power-automate-build/references/flow-schema.md +225 -0
- package/skills/flowstudio-power-automate-build/references/trigger-types.md +211 -0
- package/skills/flowstudio-power-automate-debug/LICENSE.md +21 -0
- package/skills/flowstudio-power-automate-debug/SKILL.md +322 -0
- package/skills/flowstudio-power-automate-debug/SYNC.md +5 -0
- package/skills/flowstudio-power-automate-debug/references/common-errors.md +188 -0
- package/skills/flowstudio-power-automate-debug/references/debug-workflow.md +157 -0
- package/skills/flowstudio-power-automate-mcp/LICENSE.md +21 -0
- package/skills/flowstudio-power-automate-mcp/SKILL.md +450 -0
- package/skills/flowstudio-power-automate-mcp/SYNC.md +5 -0
- package/skills/flowstudio-power-automate-mcp/references/MCP-BOOTSTRAP.md +53 -0
- package/skills/flowstudio-power-automate-mcp/references/action-types.md +79 -0
- package/skills/flowstudio-power-automate-mcp/references/connection-references.md +115 -0
- package/skills/flowstudio-power-automate-mcp/references/tool-reference.md +445 -0
- package/skills/fluentui-blazor/LICENSE.md +21 -0
- package/skills/fluentui-blazor/SKILL.md +231 -0
- package/skills/fluentui-blazor/SYNC.md +5 -0
- package/skills/fluentui-blazor/references/DATAGRID.md +162 -0
- package/skills/fluentui-blazor/references/LAYOUT-AND-NAVIGATION.md +173 -0
- package/skills/fluentui-blazor/references/SETUP.md +129 -0
- package/skills/fluentui-blazor/references/THEMING.md +103 -0
- package/skills/folder-structure-blueprint-generator/LICENSE.md +21 -0
- package/skills/folder-structure-blueprint-generator/SKILL.md +405 -0
- package/skills/folder-structure-blueprint-generator/SYNC.md +5 -0
- package/skills/game-engine/LICENSE.md +21 -0
- package/skills/game-engine/SKILL.md +139 -0
- package/skills/game-engine/SYNC.md +5 -0
- package/skills/game-engine/assets/2d-maze-game.md +528 -0
- package/skills/game-engine/assets/2d-platform-game.md +1855 -0
- package/skills/game-engine/assets/gameBase-template-repo.md +310 -0
- package/skills/game-engine/assets/paddle-game-template.md +1528 -0
- package/skills/game-engine/assets/simple-2d-engine.md +507 -0
- package/skills/game-engine/references/3d-web-games.md +754 -0
- package/skills/game-engine/references/algorithms.md +843 -0
- package/skills/game-engine/references/basics.md +343 -0
- package/skills/game-engine/references/game-control-mechanisms.md +617 -0
- package/skills/game-engine/references/game-engine-core-principles.md +695 -0
- package/skills/game-engine/references/game-publishing.md +352 -0
- package/skills/game-engine/references/techniques.md +894 -0
- package/skills/game-engine/references/terminology.md +354 -0
- package/skills/game-engine/references/web-apis.md +1394 -0
- package/skills/gen-specs-as-issues/LICENSE.md +21 -0
- package/skills/gen-specs-as-issues/SKILL.md +165 -0
- package/skills/gen-specs-as-issues/SYNC.md +5 -0
- package/skills/generate-custom-instructions-from-codebase/LICENSE.md +21 -0
- package/skills/generate-custom-instructions-from-codebase/SKILL.md +240 -0
- package/skills/generate-custom-instructions-from-codebase/SYNC.md +5 -0
- package/skills/geofeed-tuner/LICENSE.md +21 -0
- package/skills/geofeed-tuner/SKILL.md +864 -0
- package/skills/geofeed-tuner/SYNC.md +5 -0
- package/skills/geofeed-tuner/assets/example/01-user-input-rfc8805-feed.csv +5 -0
- package/skills/geofeed-tuner/assets/iso3166-1.json +1249 -0
- package/skills/geofeed-tuner/assets/iso3166-2.json +20188 -0
- package/skills/geofeed-tuner/assets/small-territories.json +106 -0
- package/skills/geofeed-tuner/references/rfc8805.txt +735 -0
- package/skills/geofeed-tuner/references/snippets-python3.md +85 -0
- package/skills/geofeed-tuner/scripts/templates/index.html +2305 -0
- package/skills/gh-cli/LICENSE.md +21 -0
- package/skills/gh-cli/SKILL.md +2187 -0
- package/skills/gh-cli/SYNC.md +5 -0
- package/skills/git-commit/LICENSE.md +21 -0
- package/skills/git-commit/SKILL.md +124 -0
- package/skills/git-commit/SYNC.md +5 -0
- package/skills/git-flow-branch-creator/LICENSE.md +21 -0
- package/skills/git-flow-branch-creator/SKILL.md +292 -0
- package/skills/git-flow-branch-creator/SYNC.md +5 -0
- package/skills/github-copilot-starter/LICENSE.md +21 -0
- package/skills/github-copilot-starter/SKILL.md +402 -0
- package/skills/github-copilot-starter/SYNC.md +5 -0
- package/skills/github-issues/LICENSE.md +21 -0
- package/skills/github-issues/SKILL.md +201 -0
- package/skills/github-issues/SYNC.md +5 -0
- package/skills/github-issues/references/dependencies.md +71 -0
- package/skills/github-issues/references/images.md +116 -0
- package/skills/github-issues/references/issue-fields.md +191 -0
- package/skills/github-issues/references/issue-types.md +72 -0
- package/skills/github-issues/references/projects.md +273 -0
- package/skills/github-issues/references/search.md +231 -0
- package/skills/github-issues/references/sub-issues.md +137 -0
- package/skills/github-issues/references/templates.md +90 -0
- package/skills/go-mcp-server-generator/LICENSE.md +21 -0
- package/skills/go-mcp-server-generator/SKILL.md +334 -0
- package/skills/go-mcp-server-generator/SYNC.md +5 -0
- package/skills/gtm-0-to-1-launch/LICENSE.md +21 -0
- package/skills/gtm-0-to-1-launch/SKILL.md +321 -0
- package/skills/gtm-0-to-1-launch/SYNC.md +5 -0
- package/skills/gtm-ai-gtm/LICENSE.md +21 -0
- package/skills/gtm-ai-gtm/SKILL.md +569 -0
- package/skills/gtm-ai-gtm/SYNC.md +5 -0
- package/skills/gtm-board-and-investor-communication/LICENSE.md +21 -0
- package/skills/gtm-board-and-investor-communication/SKILL.md +456 -0
- package/skills/gtm-board-and-investor-communication/SYNC.md +5 -0
- package/skills/gtm-developer-ecosystem/LICENSE.md +21 -0
- package/skills/gtm-developer-ecosystem/SKILL.md +310 -0
- package/skills/gtm-developer-ecosystem/SYNC.md +5 -0
- package/skills/gtm-enterprise-account-planning/LICENSE.md +21 -0
- package/skills/gtm-enterprise-account-planning/SKILL.md +429 -0
- package/skills/gtm-enterprise-account-planning/SYNC.md +5 -0
- package/skills/gtm-enterprise-onboarding/LICENSE.md +21 -0
- package/skills/gtm-enterprise-onboarding/SKILL.md +457 -0
- package/skills/gtm-enterprise-onboarding/SYNC.md +5 -0
- package/skills/gtm-operating-cadence/LICENSE.md +21 -0
- package/skills/gtm-operating-cadence/SKILL.md +420 -0
- package/skills/gtm-operating-cadence/SYNC.md +5 -0
- package/skills/gtm-partnership-architecture/LICENSE.md +21 -0
- package/skills/gtm-partnership-architecture/SKILL.md +470 -0
- package/skills/gtm-partnership-architecture/SYNC.md +5 -0
- package/skills/gtm-positioning-strategy/LICENSE.md +21 -0
- package/skills/gtm-positioning-strategy/SKILL.md +438 -0
- package/skills/gtm-positioning-strategy/SYNC.md +5 -0
- package/skills/gtm-product-led-growth/LICENSE.md +21 -0
- package/skills/gtm-product-led-growth/SKILL.md +339 -0
- package/skills/gtm-product-led-growth/SYNC.md +5 -0
- package/skills/gtm-technical-product-pricing/LICENSE.md +21 -0
- package/skills/gtm-technical-product-pricing/SKILL.md +353 -0
- package/skills/gtm-technical-product-pricing/SYNC.md +5 -0
- package/skills/image-manipulation-image-magick/LICENSE.md +21 -0
- package/skills/image-manipulation-image-magick/SKILL.md +252 -0
- package/skills/image-manipulation-image-magick/SYNC.md +5 -0
- package/skills/import-infrastructure-as-code/LICENSE.md +21 -0
- package/skills/import-infrastructure-as-code/SKILL.md +367 -0
- package/skills/import-infrastructure-as-code/SYNC.md +5 -0
- package/skills/issue-fields-migration/LICENSE.md +21 -0
- package/skills/issue-fields-migration/SKILL.md +533 -0
- package/skills/issue-fields-migration/SYNC.md +5 -0
- package/skills/issue-fields-migration/references/issue-fields-api.md +129 -0
- package/skills/issue-fields-migration/references/labels-api.md +74 -0
- package/skills/issue-fields-migration/references/projects-api.md +116 -0
- package/skills/java-add-graalvm-native-image-support/LICENSE.md +21 -0
- package/skills/java-add-graalvm-native-image-support/SKILL.md +449 -0
- package/skills/java-add-graalvm-native-image-support/SYNC.md +5 -0
- package/skills/java-docs/LICENSE.md +21 -0
- package/skills/java-docs/SKILL.md +23 -0
- package/skills/java-docs/SYNC.md +5 -0
- package/skills/java-junit/LICENSE.md +21 -0
- package/skills/java-junit/SKILL.md +63 -0
- package/skills/java-junit/SYNC.md +5 -0
- package/skills/java-mcp-server-generator/LICENSE.md +21 -0
- package/skills/java-mcp-server-generator/SKILL.md +756 -0
- package/skills/java-mcp-server-generator/SYNC.md +5 -0
- package/skills/java-refactoring-extract-method/LICENSE.md +21 -0
- package/skills/java-refactoring-extract-method/SKILL.md +104 -0
- package/skills/java-refactoring-extract-method/SYNC.md +5 -0
- package/skills/java-refactoring-remove-parameter/LICENSE.md +21 -0
- package/skills/java-refactoring-remove-parameter/SKILL.md +84 -0
- package/skills/java-refactoring-remove-parameter/SYNC.md +5 -0
- package/skills/java-springboot/LICENSE.md +21 -0
- package/skills/java-springboot/SKILL.md +65 -0
- package/skills/java-springboot/SYNC.md +5 -0
- package/skills/javascript-typescript-jest/LICENSE.md +21 -0
- package/skills/javascript-typescript-jest/SKILL.md +44 -0
- package/skills/javascript-typescript-jest/SYNC.md +5 -0
- package/skills/kotlin-mcp-server-generator/LICENSE.md +21 -0
- package/skills/kotlin-mcp-server-generator/SKILL.md +449 -0
- package/skills/kotlin-mcp-server-generator/SYNC.md +5 -0
- package/skills/kotlin-springboot/LICENSE.md +21 -0
- package/skills/kotlin-springboot/SKILL.md +70 -0
- package/skills/kotlin-springboot/SYNC.md +5 -0
- package/skills/legacy-circuit-mockups/LICENSE.md +21 -0
- package/skills/legacy-circuit-mockups/SKILL.md +276 -0
- package/skills/legacy-circuit-mockups/SYNC.md +5 -0
- package/skills/legacy-circuit-mockups/references/28256-eeprom.md +190 -0
- package/skills/legacy-circuit-mockups/references/555.md +861 -0
- package/skills/legacy-circuit-mockups/references/6502.md +221 -0
- package/skills/legacy-circuit-mockups/references/6522.md +211 -0
- package/skills/legacy-circuit-mockups/references/6C62256.md +177 -0
- package/skills/legacy-circuit-mockups/references/7400-series.md +177 -0
- package/skills/legacy-circuit-mockups/references/assembly-compiler.md +258 -0
- package/skills/legacy-circuit-mockups/references/assembly-language.md +226 -0
- package/skills/legacy-circuit-mockups/references/basic-electronic-components.md +86 -0
- package/skills/legacy-circuit-mockups/references/breadboard.md +214 -0
- package/skills/legacy-circuit-mockups/references/common-breadboard-components.md +281 -0
- package/skills/legacy-circuit-mockups/references/connecting-electronic-components.md +310 -0
- package/skills/legacy-circuit-mockups/references/emulator-28256-eeprom.md +245 -0
- package/skills/legacy-circuit-mockups/references/emulator-6502.md +251 -0
- package/skills/legacy-circuit-mockups/references/emulator-6522.md +288 -0
- package/skills/legacy-circuit-mockups/references/emulator-6C62256.md +233 -0
- package/skills/legacy-circuit-mockups/references/emulator-lcd.md +266 -0
- package/skills/legacy-circuit-mockups/references/lcd.md +208 -0
- package/skills/legacy-circuit-mockups/references/minipro.md +211 -0
- package/skills/legacy-circuit-mockups/references/t48eeprom-programmer.md +174 -0
- package/skills/make-repo-contribution/LICENSE.md +21 -0
- package/skills/make-repo-contribution/SKILL.md +90 -0
- package/skills/make-repo-contribution/SYNC.md +5 -0
- package/skills/make-repo-contribution/assets/issue-template.md +37 -0
- package/skills/make-repo-contribution/assets/pr-template.md +36 -0
- package/skills/make-skill-template/LICENSE.md +21 -0
- package/skills/make-skill-template/SKILL.md +147 -0
- package/skills/make-skill-template/SYNC.md +5 -0
- package/skills/markdown-to-html/LICENSE.md +21 -0
- package/skills/markdown-to-html/SKILL.md +916 -0
- package/skills/markdown-to-html/SYNC.md +5 -0
- package/skills/markdown-to-html/references/basic-markdown-to-html.md +420 -0
- package/skills/markdown-to-html/references/basic-markdown.md +496 -0
- package/skills/markdown-to-html/references/code-blocks-to-html.md +165 -0
- package/skills/markdown-to-html/references/code-blocks.md +70 -0
- package/skills/markdown-to-html/references/collapsed-sections-to-html.md +136 -0
- package/skills/markdown-to-html/references/collapsed-sections.md +48 -0
- package/skills/markdown-to-html/references/gomarkdown.md +253 -0
- package/skills/markdown-to-html/references/hugo.md +394 -0
- package/skills/markdown-to-html/references/jekyll.md +321 -0
- package/skills/markdown-to-html/references/marked.md +121 -0
- package/skills/markdown-to-html/references/pandoc.md +226 -0
- package/skills/markdown-to-html/references/tables-to-html.md +169 -0
- package/skills/markdown-to-html/references/tables.md +72 -0
- package/skills/markdown-to-html/references/writing-mathematical-expressions-to-html.md +350 -0
- package/skills/markdown-to-html/references/writing-mathematical-expressions.md +76 -0
- package/skills/mcp-cli/LICENSE.md +21 -0
- package/skills/mcp-cli/SKILL.md +78 -0
- package/skills/mcp-cli/SYNC.md +5 -0
- package/skills/mcp-copilot-studio-server-generator/LICENSE.md +21 -0
- package/skills/mcp-copilot-studio-server-generator/SKILL.md +118 -0
- package/skills/mcp-copilot-studio-server-generator/SYNC.md +5 -0
- package/skills/mcp-create-adaptive-cards/LICENSE.md +21 -0
- package/skills/mcp-create-adaptive-cards/SKILL.md +532 -0
- package/skills/mcp-create-adaptive-cards/SYNC.md +5 -0
- package/skills/mcp-create-declarative-agent/LICENSE.md +21 -0
- package/skills/mcp-create-declarative-agent/SKILL.md +315 -0
- package/skills/mcp-create-declarative-agent/SYNC.md +5 -0
- package/skills/mcp-deploy-manage-agents/LICENSE.md +21 -0
- package/skills/mcp-deploy-manage-agents/SKILL.md +341 -0
- package/skills/mcp-deploy-manage-agents/SYNC.md +5 -0
- package/skills/meeting-minutes/LICENSE.md +21 -0
- package/skills/meeting-minutes/SKILL.md +235 -0
- package/skills/meeting-minutes/SYNC.md +5 -0
- package/skills/memory-merger/LICENSE.md +21 -0
- package/skills/memory-merger/SKILL.md +108 -0
- package/skills/memory-merger/SYNC.md +5 -0
- package/skills/mentoring-juniors/LICENSE.md +21 -0
- package/skills/mentoring-juniors/SKILL.md +310 -0
- package/skills/mentoring-juniors/SYNC.md +5 -0
- package/skills/microsoft-agent-framework/LICENSE.md +21 -0
- package/skills/microsoft-agent-framework/SKILL.md +65 -0
- package/skills/microsoft-agent-framework/SYNC.md +5 -0
- package/skills/microsoft-agent-framework/references/dotnet.md +24 -0
- package/skills/microsoft-agent-framework/references/python.md +24 -0
- package/skills/microsoft-code-reference/LICENSE.md +21 -0
- package/skills/microsoft-code-reference/SKILL.md +99 -0
- package/skills/microsoft-code-reference/SYNC.md +5 -0
- package/skills/microsoft-docs/LICENSE.md +21 -0
- package/skills/microsoft-docs/SKILL.md +134 -0
- package/skills/microsoft-docs/SYNC.md +5 -0
- package/skills/microsoft-skill-creator/LICENSE.md +21 -0
- package/skills/microsoft-skill-creator/SKILL.md +250 -0
- package/skills/microsoft-skill-creator/SYNC.md +5 -0
- package/skills/microsoft-skill-creator/references/skill-templates.md +345 -0
- package/skills/migrating-oracle-to-postgres-stored-procedures/LICENSE.md +21 -0
- package/skills/migrating-oracle-to-postgres-stored-procedures/SKILL.md +42 -0
- package/skills/migrating-oracle-to-postgres-stored-procedures/SYNC.md +5 -0
- package/skills/mkdocs-translations/LICENSE.md +21 -0
- package/skills/mkdocs-translations/SKILL.md +108 -0
- package/skills/mkdocs-translations/SYNC.md +5 -0
- package/skills/model-recommendation/LICENSE.md +21 -0
- package/skills/model-recommendation/SKILL.md +672 -0
- package/skills/model-recommendation/SYNC.md +5 -0
- package/skills/msstore-cli/LICENSE.md +21 -0
- package/skills/msstore-cli/SKILL.md +600 -0
- package/skills/msstore-cli/SYNC.md +5 -0
- package/skills/multi-stage-dockerfile/LICENSE.md +21 -0
- package/skills/multi-stage-dockerfile/SKILL.md +46 -0
- package/skills/multi-stage-dockerfile/SYNC.md +5 -0
- package/skills/my-issues/LICENSE.md +21 -0
- package/skills/my-issues/SKILL.md +8 -0
- package/skills/my-issues/SYNC.md +5 -0
- package/skills/my-pull-requests/LICENSE.md +21 -0
- package/skills/my-pull-requests/SKILL.md +14 -0
- package/skills/my-pull-requests/SYNC.md +5 -0
- package/skills/nano-banana-pro-openrouter/LICENSE.md +21 -0
- package/skills/nano-banana-pro-openrouter/SKILL.md +74 -0
- package/skills/nano-banana-pro-openrouter/SYNC.md +5 -0
- package/skills/nano-banana-pro-openrouter/assets/SYSTEM_TEMPLATE +14 -0
- package/skills/nano-banana-pro-openrouter/scripts/generate_image.py +191 -0
- package/skills/napkin/LICENSE.md +21 -0
- package/skills/napkin/SKILL.md +154 -0
- package/skills/napkin/SYNC.md +5 -0
- package/skills/napkin/assets/napkin.html +2019 -0
- package/skills/napkin/assets/step1-activate.svg +107 -0
- package/skills/napkin/assets/step2-whiteboard.svg +157 -0
- package/skills/napkin/assets/step3-draw.svg +143 -0
- package/skills/napkin/assets/step4-share.svg +98 -0
- package/skills/napkin/assets/step5-response.svg +112 -0
- package/skills/next-intl-add-language/LICENSE.md +21 -0
- package/skills/next-intl-add-language/SKILL.md +19 -0
- package/skills/next-intl-add-language/SYNC.md +5 -0
- package/skills/noob-mode/LICENSE.md +21 -0
- package/skills/noob-mode/SKILL.md +263 -0
- package/skills/noob-mode/SYNC.md +5 -0
- package/skills/noob-mode/references/examples.md +418 -0
- package/skills/noob-mode/references/glossary.md +368 -0
- package/skills/nuget-manager/LICENSE.md +21 -0
- package/skills/nuget-manager/SKILL.md +68 -0
- package/skills/nuget-manager/SYNC.md +5 -0
- package/skills/oo-component-documentation/LICENSE.md +21 -0
- package/skills/oo-component-documentation/SKILL.md +74 -0
- package/skills/oo-component-documentation/SYNC.md +5 -0
- package/skills/oo-component-documentation/assets/documentation-template.md +97 -0
- package/skills/oo-component-documentation/references/create-mode.md +32 -0
- package/skills/oo-component-documentation/references/update-mode.md +32 -0
- package/skills/openapi-to-application-code/LICENSE.md +21 -0
- package/skills/openapi-to-application-code/SKILL.md +112 -0
- package/skills/openapi-to-application-code/SYNC.md +5 -0
- package/skills/pdftk-server/LICENSE.md +21 -0
- package/skills/pdftk-server/SKILL.md +162 -0
- package/skills/pdftk-server/SYNC.md +5 -0
- package/skills/pdftk-server/references/download.md +75 -0
- package/skills/pdftk-server/references/pdftk-cli-examples.md +193 -0
- package/skills/pdftk-server/references/pdftk-man-page.md +232 -0
- package/skills/pdftk-server/references/pdftk-server-license.md +25 -0
- package/skills/pdftk-server/references/third-party-materials.md +103 -0
- package/skills/penpot-uiux-design/LICENSE.md +21 -0
- package/skills/penpot-uiux-design/SKILL.md +342 -0
- package/skills/penpot-uiux-design/SYNC.md +5 -0
- package/skills/penpot-uiux-design/references/accessibility.md +329 -0
- package/skills/penpot-uiux-design/references/component-patterns.md +339 -0
- package/skills/penpot-uiux-design/references/platform-guidelines.md +367 -0
- package/skills/penpot-uiux-design/references/setup-troubleshooting.md +328 -0
- package/skills/php-mcp-server-generator/LICENSE.md +21 -0
- package/skills/php-mcp-server-generator/SKILL.md +522 -0
- package/skills/php-mcp-server-generator/SYNC.md +5 -0
- package/skills/planning-oracle-to-postgres-migration-integration-testing/LICENSE.md +21 -0
- package/skills/planning-oracle-to-postgres-migration-integration-testing/SKILL.md +44 -0
- package/skills/planning-oracle-to-postgres-migration-integration-testing/SYNC.md +5 -0
- package/skills/plantuml-ascii/LICENSE.md +21 -0
- package/skills/plantuml-ascii/SKILL.md +305 -0
- package/skills/plantuml-ascii/SYNC.md +5 -0
- package/skills/playwright-automation-fill-in-form/LICENSE.md +21 -0
- package/skills/playwright-automation-fill-in-form/SKILL.md +28 -0
- package/skills/playwright-automation-fill-in-form/SYNC.md +5 -0
- package/skills/playwright-explore-website/LICENSE.md +21 -0
- package/skills/playwright-explore-website/SKILL.md +17 -0
- package/skills/playwright-explore-website/SYNC.md +5 -0
- package/skills/playwright-generate-test/LICENSE.md +21 -0
- package/skills/playwright-generate-test/SKILL.md +17 -0
- package/skills/playwright-generate-test/SYNC.md +5 -0
- package/skills/polyglot-test-agent/LICENSE.md +21 -0
- package/skills/polyglot-test-agent/SKILL.md +161 -0
- package/skills/polyglot-test-agent/SYNC.md +5 -0
- package/skills/polyglot-test-agent/unit-test-generation.prompt.md +155 -0
- package/skills/postgresql-code-review/LICENSE.md +21 -0
- package/skills/postgresql-code-review/SKILL.md +212 -0
- package/skills/postgresql-code-review/SYNC.md +5 -0
- package/skills/postgresql-optimization/LICENSE.md +21 -0
- package/skills/postgresql-optimization/SKILL.md +404 -0
- package/skills/postgresql-optimization/SYNC.md +5 -0
- package/skills/power-apps-code-app-scaffold/LICENSE.md +21 -0
- package/skills/power-apps-code-app-scaffold/SKILL.md +146 -0
- package/skills/power-apps-code-app-scaffold/SYNC.md +5 -0
- package/skills/power-bi-dax-optimization/LICENSE.md +21 -0
- package/skills/power-bi-dax-optimization/SKILL.md +173 -0
- package/skills/power-bi-dax-optimization/SYNC.md +5 -0
- package/skills/power-bi-model-design-review/LICENSE.md +21 -0
- package/skills/power-bi-model-design-review/SKILL.md +403 -0
- package/skills/power-bi-model-design-review/SYNC.md +5 -0
- package/skills/power-bi-performance-troubleshooting/LICENSE.md +21 -0
- package/skills/power-bi-performance-troubleshooting/SKILL.md +382 -0
- package/skills/power-bi-performance-troubleshooting/SYNC.md +5 -0
- package/skills/power-bi-report-design-consultation/LICENSE.md +21 -0
- package/skills/power-bi-report-design-consultation/SKILL.md +351 -0
- package/skills/power-bi-report-design-consultation/SYNC.md +5 -0
- package/skills/power-platform-mcp-connector-suite/LICENSE.md +21 -0
- package/skills/power-platform-mcp-connector-suite/SKILL.md +156 -0
- package/skills/power-platform-mcp-connector-suite/SYNC.md +5 -0
- package/skills/powerbi-modeling/LICENSE.md +21 -0
- package/skills/powerbi-modeling/SKILL.md +153 -0
- package/skills/powerbi-modeling/SYNC.md +5 -0
- package/skills/powerbi-modeling/references/MEASURES-DAX.md +195 -0
- package/skills/powerbi-modeling/references/PERFORMANCE.md +215 -0
- package/skills/powerbi-modeling/references/RELATIONSHIPS.md +147 -0
- package/skills/powerbi-modeling/references/RLS.md +226 -0
- package/skills/powerbi-modeling/references/STAR-SCHEMA.md +103 -0
- package/skills/prd/LICENSE.md +21 -0
- package/skills/prd/SKILL.md +143 -0
- package/skills/prd/SYNC.md +5 -0
- package/skills/premium-frontend-ui/LICENSE.md +21 -0
- package/skills/premium-frontend-ui/SKILL.md +110 -0
- package/skills/premium-frontend-ui/SYNC.md +5 -0
- package/skills/project-workflow-analysis-blueprint-generator/LICENSE.md +21 -0
- package/skills/project-workflow-analysis-blueprint-generator/SKILL.md +293 -0
- package/skills/project-workflow-analysis-blueprint-generator/SYNC.md +5 -0
- package/skills/prompt-builder/LICENSE.md +21 -0
- package/skills/prompt-builder/SKILL.md +141 -0
- package/skills/prompt-builder/SYNC.md +5 -0
- package/skills/publish-to-pages/LICENSE.md +21 -0
- package/skills/publish-to-pages/SKILL.md +107 -0
- package/skills/publish-to-pages/SYNC.md +5 -0
- package/skills/publish-to-pages/scripts/convert-pdf.py +176 -0
- package/skills/publish-to-pages/scripts/convert-pptx.py +376 -0
- package/skills/publish-to-pages/scripts/publish.sh +51 -0
- package/skills/pytest-coverage/LICENSE.md +21 -0
- package/skills/pytest-coverage/SKILL.md +28 -0
- package/skills/pytest-coverage/SYNC.md +5 -0
- package/skills/python-mcp-server-generator/LICENSE.md +21 -0
- package/skills/python-mcp-server-generator/SKILL.md +105 -0
- package/skills/python-mcp-server-generator/SYNC.md +5 -0
- package/skills/quasi-coder/LICENSE.md +21 -0
- package/skills/quasi-coder/SKILL.md +369 -0
- package/skills/quasi-coder/SYNC.md +5 -0
- package/skills/readme-blueprint-generator/LICENSE.md +21 -0
- package/skills/readme-blueprint-generator/SKILL.md +78 -0
- package/skills/readme-blueprint-generator/SYNC.md +5 -0
- package/skills/refactor/LICENSE.md +21 -0
- package/skills/refactor/SKILL.md +645 -0
- package/skills/refactor/SYNC.md +5 -0
- package/skills/refactor-method-complexity-reduce/LICENSE.md +21 -0
- package/skills/refactor-method-complexity-reduce/SKILL.md +98 -0
- package/skills/refactor-method-complexity-reduce/SYNC.md +5 -0
- package/skills/refactor-plan/LICENSE.md +21 -0
- package/skills/refactor-plan/SKILL.md +65 -0
- package/skills/refactor-plan/SYNC.md +5 -0
- package/skills/remember/LICENSE.md +21 -0
- package/skills/remember/SKILL.md +126 -0
- package/skills/remember/SYNC.md +5 -0
- package/skills/remember-interactive-programming/LICENSE.md +21 -0
- package/skills/remember-interactive-programming/SKILL.md +13 -0
- package/skills/remember-interactive-programming/SYNC.md +5 -0
- package/skills/repo-story-time/LICENSE.md +21 -0
- package/skills/repo-story-time/SKILL.md +154 -0
- package/skills/repo-story-time/SYNC.md +5 -0
- package/skills/review-and-refactor/LICENSE.md +21 -0
- package/skills/review-and-refactor/SKILL.md +15 -0
- package/skills/review-and-refactor/SYNC.md +5 -0
- package/skills/reviewing-oracle-to-postgres-migration/LICENSE.md +21 -0
- package/skills/reviewing-oracle-to-postgres-migration/SKILL.md +67 -0
- package/skills/reviewing-oracle-to-postgres-migration/SYNC.md +5 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/REFERENCE.md +13 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/empty-strings-handling.md +69 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/no-data-found-exceptions.md +99 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/oracle-parentheses-from-clause.md +190 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/oracle-to-postgres-sorting.md +51 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/oracle-to-postgres-timestamp-timezone.md +187 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/oracle-to-postgres-to-char-numeric.md +145 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/oracle-to-postgres-type-coercion.md +182 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/postgres-concurrent-transactions.md +259 -0
- package/skills/reviewing-oracle-to-postgres-migration/references/postgres-refcursor-handling.md +148 -0
- package/skills/ruby-mcp-server-generator/LICENSE.md +21 -0
- package/skills/ruby-mcp-server-generator/SKILL.md +660 -0
- package/skills/ruby-mcp-server-generator/SYNC.md +5 -0
- package/skills/rust-mcp-server-generator/LICENSE.md +21 -0
- package/skills/rust-mcp-server-generator/SKILL.md +577 -0
- package/skills/rust-mcp-server-generator/SYNC.md +5 -0
- package/skills/sandbox-npm-install/LICENSE.md +21 -0
- package/skills/sandbox-npm-install/SKILL.md +80 -0
- package/skills/sandbox-npm-install/SYNC.md +5 -0
- package/skills/sandbox-npm-install/scripts/install.sh +193 -0
- package/skills/scaffolding-oracle-to-postgres-migration-test-project/LICENSE.md +21 -0
- package/skills/scaffolding-oracle-to-postgres-migration-test-project/SKILL.md +54 -0
- package/skills/scaffolding-oracle-to-postgres-migration-test-project/SYNC.md +5 -0
- package/skills/scoutqa-test/LICENSE.md +21 -0
- package/skills/scoutqa-test/SKILL.md +375 -0
- package/skills/scoutqa-test/SYNC.md +5 -0
- package/skills/secret-scanning/LICENSE.md +21 -0
- package/skills/secret-scanning/SKILL.md +224 -0
- package/skills/secret-scanning/SYNC.md +5 -0
- package/skills/secret-scanning/references/alerts-and-remediation.md +245 -0
- package/skills/secret-scanning/references/custom-patterns.md +158 -0
- package/skills/secret-scanning/references/push-protection.md +164 -0
- package/skills/semantic-kernel/LICENSE.md +21 -0
- package/skills/semantic-kernel/SKILL.md +56 -0
- package/skills/semantic-kernel/SYNC.md +5 -0
- package/skills/semantic-kernel/references/dotnet.md +15 -0
- package/skills/semantic-kernel/references/python.md +15 -0
- package/skills/shuffle-json-data/LICENSE.md +21 -0
- package/skills/shuffle-json-data/SKILL.md +150 -0
- package/skills/shuffle-json-data/SYNC.md +5 -0
- package/skills/snowflake-semanticview/LICENSE.md +21 -0
- package/skills/snowflake-semanticview/SKILL.md +83 -0
- package/skills/snowflake-semanticview/SYNC.md +5 -0
- package/skills/sponsor-finder/LICENSE.md +21 -0
- package/skills/sponsor-finder/SKILL.md +258 -0
- package/skills/sponsor-finder/SYNC.md +5 -0
- package/skills/spring-boot-testing/LICENSE.md +21 -0
- package/skills/spring-boot-testing/SKILL.md +189 -0
- package/skills/spring-boot-testing/SYNC.md +5 -0
- package/skills/spring-boot-testing/references/assertj-basics.md +207 -0
- package/skills/spring-boot-testing/references/assertj-collections.md +183 -0
- package/skills/spring-boot-testing/references/context-caching.md +115 -0
- package/skills/spring-boot-testing/references/datajpatest.md +197 -0
- package/skills/spring-boot-testing/references/instancio.md +230 -0
- package/skills/spring-boot-testing/references/mockitobean.md +232 -0
- package/skills/spring-boot-testing/references/mockmvc-classic.md +206 -0
- package/skills/spring-boot-testing/references/mockmvc-tester.md +311 -0
- package/skills/spring-boot-testing/references/restclienttest.md +227 -0
- package/skills/spring-boot-testing/references/resttestclient.md +278 -0
- package/skills/spring-boot-testing/references/sb4-migration.md +181 -0
- package/skills/spring-boot-testing/references/test-slices-overview.md +203 -0
- package/skills/spring-boot-testing/references/testcontainers-jdbc.md +234 -0
- package/skills/spring-boot-testing/references/webmvctest.md +177 -0
- package/skills/sql-code-review/LICENSE.md +21 -0
- package/skills/sql-code-review/SKILL.md +301 -0
- package/skills/sql-code-review/SYNC.md +5 -0
- package/skills/sql-optimization/LICENSE.md +21 -0
- package/skills/sql-optimization/SKILL.md +296 -0
- package/skills/sql-optimization/SYNC.md +5 -0
- package/skills/structured-autonomy-generate/LICENSE.md +21 -0
- package/skills/structured-autonomy-generate/SKILL.md +125 -0
- package/skills/structured-autonomy-generate/SYNC.md +5 -0
- package/skills/structured-autonomy-implement/LICENSE.md +21 -0
- package/skills/structured-autonomy-implement/SKILL.md +19 -0
- package/skills/structured-autonomy-implement/SYNC.md +5 -0
- package/skills/structured-autonomy-plan/LICENSE.md +21 -0
- package/skills/structured-autonomy-plan/SKILL.md +81 -0
- package/skills/structured-autonomy-plan/SYNC.md +5 -0
- package/skills/suggest-awesome-github-copilot-agents/LICENSE.md +21 -0
- package/skills/suggest-awesome-github-copilot-agents/SKILL.md +106 -0
- package/skills/suggest-awesome-github-copilot-agents/SYNC.md +5 -0
- package/skills/suggest-awesome-github-copilot-instructions/LICENSE.md +21 -0
- package/skills/suggest-awesome-github-copilot-instructions/SKILL.md +122 -0
- package/skills/suggest-awesome-github-copilot-instructions/SYNC.md +5 -0
- package/skills/suggest-awesome-github-copilot-skills/LICENSE.md +21 -0
- package/skills/suggest-awesome-github-copilot-skills/SKILL.md +130 -0
- package/skills/suggest-awesome-github-copilot-skills/SYNC.md +5 -0
- package/skills/swift-mcp-server-generator/LICENSE.md +21 -0
- package/skills/swift-mcp-server-generator/SKILL.md +669 -0
- package/skills/swift-mcp-server-generator/SYNC.md +5 -0
- package/skills/technology-stack-blueprint-generator/LICENSE.md +21 -0
- package/skills/technology-stack-blueprint-generator/SKILL.md +242 -0
- package/skills/technology-stack-blueprint-generator/SYNC.md +5 -0
- package/skills/terraform-azurerm-set-diff-analyzer/LICENSE.md +21 -0
- package/skills/terraform-azurerm-set-diff-analyzer/SKILL.md +48 -0
- package/skills/terraform-azurerm-set-diff-analyzer/SYNC.md +5 -0
- package/skills/terraform-azurerm-set-diff-analyzer/references/azurerm_set_attributes.json +154 -0
- package/skills/terraform-azurerm-set-diff-analyzer/references/azurerm_set_attributes.md +145 -0
- package/skills/terraform-azurerm-set-diff-analyzer/scripts/README.md +205 -0
- package/skills/terraform-azurerm-set-diff-analyzer/scripts/analyze_plan.py +940 -0
- package/skills/tldr-prompt/LICENSE.md +21 -0
- package/skills/tldr-prompt/SKILL.md +304 -0
- package/skills/tldr-prompt/SYNC.md +5 -0
- package/skills/transloadit-media-processing/LICENSE.md +21 -0
- package/skills/transloadit-media-processing/SKILL.md +194 -0
- package/skills/transloadit-media-processing/SYNC.md +5 -0
- package/skills/typescript-mcp-server-generator/LICENSE.md +21 -0
- package/skills/typescript-mcp-server-generator/SKILL.md +90 -0
- package/skills/typescript-mcp-server-generator/SYNC.md +5 -0
- package/skills/typespec-api-operations/LICENSE.md +21 -0
- package/skills/typespec-api-operations/SKILL.md +418 -0
- package/skills/typespec-api-operations/SYNC.md +5 -0
- package/skills/typespec-create-agent/LICENSE.md +21 -0
- package/skills/typespec-create-agent/SKILL.md +91 -0
- package/skills/typespec-create-agent/SYNC.md +5 -0
- package/skills/typespec-create-api-plugin/LICENSE.md +21 -0
- package/skills/typespec-create-api-plugin/SKILL.md +164 -0
- package/skills/typespec-create-api-plugin/SYNC.md +5 -0
- package/skills/unit-test-vue-pinia/LICENSE.md +21 -0
- package/skills/unit-test-vue-pinia/SKILL.md +198 -0
- package/skills/unit-test-vue-pinia/SYNC.md +5 -0
- package/skills/unit-test-vue-pinia/references/pinia-patterns.md +95 -0
- package/skills/update-avm-modules-in-bicep/LICENSE.md +21 -0
- package/skills/update-avm-modules-in-bicep/SKILL.md +60 -0
- package/skills/update-avm-modules-in-bicep/SYNC.md +5 -0
- package/skills/update-implementation-plan/LICENSE.md +21 -0
- package/skills/update-implementation-plan/SKILL.md +157 -0
- package/skills/update-implementation-plan/SYNC.md +5 -0
- package/skills/update-llms/LICENSE.md +21 -0
- package/skills/update-llms/SKILL.md +216 -0
- package/skills/update-llms/SYNC.md +5 -0
- package/skills/update-markdown-file-index/LICENSE.md +21 -0
- package/skills/update-markdown-file-index/SKILL.md +76 -0
- package/skills/update-markdown-file-index/SYNC.md +5 -0
- package/skills/update-specification/LICENSE.md +21 -0
- package/skills/update-specification/SKILL.md +127 -0
- package/skills/update-specification/SYNC.md +5 -0
- package/skills/vscode-ext-commands/LICENSE.md +21 -0
- package/skills/vscode-ext-commands/SKILL.md +21 -0
- package/skills/vscode-ext-commands/SYNC.md +5 -0
- package/skills/vscode-ext-localization/LICENSE.md +21 -0
- package/skills/vscode-ext-localization/SKILL.md +25 -0
- package/skills/vscode-ext-localization/SYNC.md +5 -0
- package/skills/web-coder/LICENSE.md +21 -0
- package/skills/web-coder/SKILL.md +563 -0
- package/skills/web-coder/SYNC.md +5 -0
- package/skills/web-coder/references/accessibility.md +346 -0
- package/skills/web-coder/references/architecture-patterns.md +625 -0
- package/skills/web-coder/references/browsers-engines.md +358 -0
- package/skills/web-coder/references/css-styling.md +696 -0
- package/skills/web-coder/references/data-formats-encoding.md +411 -0
- package/skills/web-coder/references/development-tools.md +502 -0
- package/skills/web-coder/references/glossary.md +649 -0
- package/skills/web-coder/references/html-markup.md +387 -0
- package/skills/web-coder/references/http-networking.md +538 -0
- package/skills/web-coder/references/javascript-programming.md +807 -0
- package/skills/web-coder/references/media-graphics.md +504 -0
- package/skills/web-coder/references/performance-optimization.md +546 -0
- package/skills/web-coder/references/security-authentication.md +603 -0
- package/skills/web-coder/references/servers-infrastructure.md +615 -0
- package/skills/web-coder/references/web-apis-dom.md +654 -0
- package/skills/web-coder/references/web-protocols-standards.md +265 -0
- package/skills/web-design-reviewer/LICENSE.md +21 -0
- package/skills/web-design-reviewer/SKILL.md +368 -0
- package/skills/web-design-reviewer/SYNC.md +5 -0
- package/skills/web-design-reviewer/references/framework-fixes.md +475 -0
- package/skills/web-design-reviewer/references/visual-checklist.md +236 -0
- package/skills/webapp-testing/LICENSE.md +21 -0
- package/skills/webapp-testing/SKILL.md +104 -67
- package/skills/webapp-testing/SYNC.md +2 -2
- package/skills/webapp-testing/assets/test-helper.js +56 -0
- package/skills/what-context-needed/LICENSE.md +21 -0
- package/skills/what-context-needed/SKILL.md +39 -0
- package/skills/what-context-needed/SYNC.md +5 -0
- package/skills/winapp-cli/LICENSE.md +21 -0
- package/skills/winapp-cli/SKILL.md +217 -0
- package/skills/winapp-cli/SYNC.md +5 -0
- package/skills/winmd-api-search/LICENSE.md +21 -0
- package/skills/winmd-api-search/LICENSE.txt +21 -0
- package/skills/winmd-api-search/SKILL.md +192 -0
- package/skills/winmd-api-search/SYNC.md +5 -0
- package/skills/winmd-api-search/scripts/Invoke-WinMdQuery.ps1 +505 -0
- package/skills/winmd-api-search/scripts/Update-WinMdCache.ps1 +208 -0
- package/skills/winmd-api-search/scripts/cache-generator/CacheGenerator.csproj +29 -0
- package/skills/winmd-api-search/scripts/cache-generator/Directory.Build.props +3 -0
- package/skills/winmd-api-search/scripts/cache-generator/Directory.Build.targets +3 -0
- package/skills/winmd-api-search/scripts/cache-generator/Directory.Packages.props +3 -0
- package/skills/winmd-api-search/scripts/cache-generator/Program.cs +1222 -0
- package/skills/winui3-migration-guide/LICENSE.md +21 -0
- package/skills/winui3-migration-guide/SKILL.md +277 -0
- package/skills/winui3-migration-guide/SYNC.md +5 -0
- package/skills/workiq-copilot/LICENSE.md +21 -0
- package/skills/workiq-copilot/SKILL.md +98 -0
- package/skills/workiq-copilot/SYNC.md +5 -0
- package/skills/write-coding-standards-from-file/LICENSE.md +21 -0
- package/skills/write-coding-standards-from-file/SKILL.md +316 -0
- package/skills/write-coding-standards-from-file/SYNC.md +5 -0
- package/skills/webapp-testing/LICENSE.txt +0 -202
- package/skills/webapp-testing/examples/console_logging.py +0 -35
- package/skills/webapp-testing/examples/element_discovery.py +0 -40
- package/skills/webapp-testing/examples/static_html_automation.py +0 -33
- package/skills/webapp-testing/scripts/with_server.py +0 -106
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"""Data processing functions module"""
|
|
2
|
+
import pandas as pd
|
|
3
|
+
import numpy as np
|
|
4
|
+
import toad
|
|
5
|
+
from typing import List, Dict, Tuple
|
|
6
|
+
import tqdm
|
|
7
|
+
from datetime import datetime
|
|
8
|
+
|
|
9
|
+
try:
|
|
10
|
+
from openpyxl import Workbook
|
|
11
|
+
from openpyxl.styles import Font, PatternFill, Alignment
|
|
12
|
+
HAS_OPENPYXL = True
|
|
13
|
+
except:
|
|
14
|
+
HAS_OPENPYXL = False
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def get_dataset(data_pth: str, date_colName: str, y_colName: str,
|
|
18
|
+
org_colName: str, data_encode: str, key_colNames: List[str],
|
|
19
|
+
drop_colNames: List[str] = None,
|
|
20
|
+
miss_vals: List[int] = None) -> pd.DataFrame:
|
|
21
|
+
"""Load and format data
|
|
22
|
+
|
|
23
|
+
Args:
|
|
24
|
+
data_pth: Data file path
|
|
25
|
+
date_colName: Date column name
|
|
26
|
+
y_colName: Label column name
|
|
27
|
+
org_colName: Organization column name
|
|
28
|
+
data_encode: Data encoding
|
|
29
|
+
key_colNames: Primary key columns (for deduplication)
|
|
30
|
+
drop_colNames: Columns to drop
|
|
31
|
+
miss_vals: List of abnormal values to replace with NaN, default [-1, -999, -1111]
|
|
32
|
+
"""
|
|
33
|
+
if drop_colNames is None:
|
|
34
|
+
drop_colNames = []
|
|
35
|
+
if miss_vals is None:
|
|
36
|
+
miss_vals = [-1, -999, -1111]
|
|
37
|
+
|
|
38
|
+
# Multi-format reading
|
|
39
|
+
for fmt, reader in [('parquet', pd.read_parquet), ('csv', pd.read_csv),
|
|
40
|
+
('xlsx', pd.read_excel), ('pkl', pd.read_pickle)]:
|
|
41
|
+
try:
|
|
42
|
+
data = reader(data_pth)
|
|
43
|
+
break
|
|
44
|
+
except:
|
|
45
|
+
continue
|
|
46
|
+
|
|
47
|
+
# Replace abnormal values with NaN
|
|
48
|
+
data.replace({v: np.nan for v in miss_vals}, inplace=True)
|
|
49
|
+
|
|
50
|
+
# Deduplication and filtering
|
|
51
|
+
data = data[data[y_colName].isin([0, 1])]
|
|
52
|
+
data = data.drop_duplicates(subset=key_colNames)
|
|
53
|
+
|
|
54
|
+
# Drop invalid columns
|
|
55
|
+
data.drop(columns=[c for c in drop_colNames if c in data.columns], errors='ignore')
|
|
56
|
+
data.drop(columns=[c for c in data.columns if data[c].nunique() <= 1], errors='ignore')
|
|
57
|
+
|
|
58
|
+
# Rename columns
|
|
59
|
+
data.rename(columns={date_colName: 'new_date', y_colName: 'new_target',
|
|
60
|
+
org_colName: 'new_org'}, inplace=True)
|
|
61
|
+
data['new_date'] = data['new_date'].astype(str).str.replace('-', '', regex=False).str[:8]
|
|
62
|
+
data['new_date_ym'] = data['new_date'].str[:6]
|
|
63
|
+
|
|
64
|
+
return data
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def org_analysis(data: pd.DataFrame, oos_orgs: List[str] = None) -> pd.DataFrame:
|
|
68
|
+
"""Organization sample statistics analysis
|
|
69
|
+
|
|
70
|
+
Args:
|
|
71
|
+
data: Data
|
|
72
|
+
oos_orgs: Out-of-sample organization list, used to identify OOS samples
|
|
73
|
+
"""
|
|
74
|
+
stat = data.groupby(['new_org', 'new_date_ym']).agg(
|
|
75
|
+
单月坏样本数=('new_target', 'sum'),
|
|
76
|
+
单月总样本数=('new_target', 'count'),
|
|
77
|
+
单月坏样率=('new_target', 'mean')
|
|
78
|
+
).reset_index()
|
|
79
|
+
|
|
80
|
+
# Cumulative statistics
|
|
81
|
+
stat['总坏样本数'] = stat.groupby('new_org')['单月坏样本数'].transform('sum')
|
|
82
|
+
stat['总样本数'] = stat.groupby('new_org')['单月总样本数'].transform('sum')
|
|
83
|
+
stat['总坏样率'] = stat['总坏样本数'] / stat['总样本数']
|
|
84
|
+
|
|
85
|
+
# Mark whether it is an OOS organization
|
|
86
|
+
if oos_orgs and len(oos_orgs) > 0:
|
|
87
|
+
stat['样本类型'] = stat['new_org'].apply(lambda x: '贷外' if x in oos_orgs else '建模')
|
|
88
|
+
else:
|
|
89
|
+
stat['样本类型'] = '建模'
|
|
90
|
+
|
|
91
|
+
stat = stat.rename(columns={'new_org': '机构', 'new_date_ym': '年月'})
|
|
92
|
+
|
|
93
|
+
# Sort by sample type (modeling first, OOS last)
|
|
94
|
+
stat = stat.sort_values(['样本类型', '机构', '年月'], ascending=[True, True, True])
|
|
95
|
+
stat = stat.reset_index(drop=True)
|
|
96
|
+
|
|
97
|
+
return stat[['机构', '年月', '单月坏样本数', '单月总样本数', '单月坏样率', '总坏样本数', '总样本数', '总坏样率', '样本类型']]
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
def missing_check(data: pd.DataFrame, channel: Dict[str, List[str]] = None) -> Tuple[pd.DataFrame, pd.DataFrame]:
|
|
101
|
+
"""Calculate missing rate - including overall and organization-level missing rates
|
|
102
|
+
|
|
103
|
+
Returns:
|
|
104
|
+
miss_detail: Missing rate details (format: variable, overall, org1, org2, ..., orgn)
|
|
105
|
+
miss_ch: Overall missing rate (overall missing rate for each variable)
|
|
106
|
+
"""
|
|
107
|
+
miss_vals = [-1, -999, -1111]
|
|
108
|
+
miss_ch = []
|
|
109
|
+
|
|
110
|
+
# Exclude non-variable columns: record_id, target, org_info, etc.
|
|
111
|
+
exclude_cols = ['new_date', 'new_date_ym', 'new_target', 'new_org', 'record_id', 'target', 'org_info']
|
|
112
|
+
cols = [c for c in data.columns if c not in exclude_cols]
|
|
113
|
+
|
|
114
|
+
# Calculate overall missing rate
|
|
115
|
+
for col in tqdm.tqdm(cols, desc="Missing rate"):
|
|
116
|
+
rate = ((data[col].isin(miss_vals)) | (data[col].isna())).mean()
|
|
117
|
+
miss_ch.append({'变量': col, '整体缺失率': round(rate, 4)})
|
|
118
|
+
|
|
119
|
+
miss_ch = pd.DataFrame(miss_ch)
|
|
120
|
+
|
|
121
|
+
# Calculate organization-level missing rates and convert to wide format
|
|
122
|
+
orgs = sorted(data['new_org'].unique())
|
|
123
|
+
miss_detail_dict = {'变量': []}
|
|
124
|
+
miss_detail_dict['整体'] = []
|
|
125
|
+
|
|
126
|
+
for org in orgs:
|
|
127
|
+
miss_detail_dict[org] = []
|
|
128
|
+
|
|
129
|
+
for col in cols:
|
|
130
|
+
miss_detail_dict['变量'].append(col)
|
|
131
|
+
# Overall missing rate
|
|
132
|
+
overall_rate = ((data[col].isin(miss_vals)) | (data[col].isna())).mean()
|
|
133
|
+
miss_detail_dict['整体'].append(round(overall_rate, 4))
|
|
134
|
+
|
|
135
|
+
# Missing rate for each organization
|
|
136
|
+
for org in orgs:
|
|
137
|
+
org_data = data[data['new_org'] == org]
|
|
138
|
+
rate = ((org_data[col].isin(miss_vals)) | (org_data[col].isna())).mean()
|
|
139
|
+
miss_detail_dict[org].append(round(rate, 4))
|
|
140
|
+
|
|
141
|
+
miss_detail = pd.DataFrame(miss_detail_dict)
|
|
142
|
+
# Sort by overall missing rate in descending order
|
|
143
|
+
miss_detail = miss_detail.sort_values('整体', ascending=False)
|
|
144
|
+
miss_detail = miss_detail.reset_index(drop=True)
|
|
145
|
+
|
|
146
|
+
return miss_detail, miss_ch
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def calculate_iv(data: pd.DataFrame, features: List[str], n_jobs: int = 4) -> pd.DataFrame:
|
|
150
|
+
"""Calculate IV value - use toad.transform.Combiner for binning, set number of bins to 5, keep NaN values"""
|
|
151
|
+
import tqdm
|
|
152
|
+
from joblib import Parallel, delayed
|
|
153
|
+
|
|
154
|
+
def _calc_iv(f):
|
|
155
|
+
try:
|
|
156
|
+
# Use toad.transform.Combiner for binning, set number of bins to 5
|
|
157
|
+
c = toad.transform.Combiner()
|
|
158
|
+
data_temp = data[[f, 'new_target']].copy()
|
|
159
|
+
data_temp.columns = ['x', 'y']
|
|
160
|
+
data_temp['x_bin'] = c.fit_transform(X=data_temp['x'], y=data_temp['y'], method='dt', n_bins=5, min_samples=0.05/5, empty_separate=True)
|
|
161
|
+
|
|
162
|
+
# Calculate IV value using binned data
|
|
163
|
+
iv_df = toad.quality(data_temp[['x_bin', 'y']], 'y', iv_only=True)
|
|
164
|
+
if 'iv' in iv_df.columns and len(iv_df) > 0:
|
|
165
|
+
iv_value = iv_df['iv'].iloc[0]
|
|
166
|
+
if not np.isnan(iv_value):
|
|
167
|
+
return {'变量': f, 'IV': round(iv_value, 4)}
|
|
168
|
+
return None
|
|
169
|
+
except Exception as e:
|
|
170
|
+
print(f" IV calculation error: variable={f}, error={e}")
|
|
171
|
+
return None
|
|
172
|
+
|
|
173
|
+
# Use tqdm to show progress
|
|
174
|
+
results = Parallel(n_jobs=n_jobs, verbose=0)(
|
|
175
|
+
delayed(_calc_iv)(f) for f in features
|
|
176
|
+
)
|
|
177
|
+
iv_list = [r for r in results if r is not None]
|
|
178
|
+
|
|
179
|
+
if len(iv_list) == 0:
|
|
180
|
+
print(f" IV calculation result is empty, number of features={len(features)}")
|
|
181
|
+
return pd.DataFrame(columns=['变量', 'IV'])
|
|
182
|
+
|
|
183
|
+
return pd.DataFrame(iv_list).sort_values('IV', ascending=False)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
def calculate_corr(data: pd.DataFrame, features: List[str]) -> pd.DataFrame:
|
|
187
|
+
"""Calculate correlation matrix"""
|
|
188
|
+
corr = data[features].corr().abs()
|
|
189
|
+
return corr
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def export_report_xlsx(filepath: str, data_name: str, data: pd.DataFrame,
|
|
193
|
+
sheet_name: str, description: str = ""):
|
|
194
|
+
"""Export xlsx report - supports appending"""
|
|
195
|
+
try:
|
|
196
|
+
from openpyxl import load_workbook
|
|
197
|
+
wb = load_workbook(filepath)
|
|
198
|
+
ws = wb.create_sheet(sheet_name)
|
|
199
|
+
except:
|
|
200
|
+
wb = Workbook()
|
|
201
|
+
ws = wb.active
|
|
202
|
+
ws.title = sheet_name
|
|
203
|
+
|
|
204
|
+
# Write description
|
|
205
|
+
ws['A1'] = f"Data: {data_name}"
|
|
206
|
+
ws['A2'] = f"Time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}"
|
|
207
|
+
if description:
|
|
208
|
+
ws['A3'] = f"Description: {description}"
|
|
209
|
+
|
|
210
|
+
# Write data
|
|
211
|
+
start_row = 5
|
|
212
|
+
for i, col in enumerate(data.columns):
|
|
213
|
+
ws.cell(start_row, i+1, col)
|
|
214
|
+
|
|
215
|
+
for i, row in enumerate(data.values):
|
|
216
|
+
for j, val in enumerate(row):
|
|
217
|
+
ws.cell(start_row+1+i, j+1, val)
|
|
218
|
+
|
|
219
|
+
# Styles
|
|
220
|
+
header_fill = PatternFill(start_color="366092", end_color="366092", fill_type="solid")
|
|
221
|
+
header_font = Font(color="FFFFFF", bold=True)
|
|
222
|
+
for cell in ws[start_row]:
|
|
223
|
+
cell.fill = header_fill
|
|
224
|
+
cell.font = header_font
|
|
225
|
+
cell.alignment = Alignment(horizontal='center')
|
|
226
|
+
|
|
227
|
+
wb.save(filepath)
|
|
228
|
+
print(f"[{sheet_name}] Saved to {filepath}")
|
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Execution script
|
|
4
|
+
Version: 1.0.0
|
|
5
|
+
Last modified: 02-03-2026
|
|
6
|
+
"""
|
|
7
|
+
import os, sys
|
|
8
|
+
import time
|
|
9
|
+
import pandas as pd
|
|
10
|
+
from typing import Dict, List, Optional, Any, Callable
|
|
11
|
+
import numpy as np
|
|
12
|
+
import multiprocessing
|
|
13
|
+
|
|
14
|
+
# =============================================================================
|
|
15
|
+
# System Configuration
|
|
16
|
+
# =============================================================================
|
|
17
|
+
CPU_COUNT = multiprocessing.cpu_count()
|
|
18
|
+
N_JOBS = max(1, CPU_COUNT - 1) # Multi-process parallel count, keep 1 core for system
|
|
19
|
+
|
|
20
|
+
def _ensure_references_on_path():
|
|
21
|
+
script_dir = os.path.dirname(__file__)
|
|
22
|
+
cur = script_dir
|
|
23
|
+
for _ in range(8):
|
|
24
|
+
candidate = os.path.join(cur, 'references')
|
|
25
|
+
if os.path.isdir(candidate):
|
|
26
|
+
# add parent folder (which contains `references`) to sys.path
|
|
27
|
+
sys.path.insert(0, cur)
|
|
28
|
+
return
|
|
29
|
+
parent = os.path.dirname(cur)
|
|
30
|
+
if parent == cur:
|
|
31
|
+
break
|
|
32
|
+
cur = parent
|
|
33
|
+
# fallback: add a reasonable repo-root guess
|
|
34
|
+
sys.path.insert(0, os.path.abspath(os.path.join(script_dir, '..', '..', '..')))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
_ensure_references_on_path()
|
|
38
|
+
|
|
39
|
+
from references.func import get_dataset, missing_check, org_analysis
|
|
40
|
+
from references.analysis import (drop_abnormal_ym, drop_highmiss_features,
|
|
41
|
+
drop_lowiv_features, drop_highcorr_features,
|
|
42
|
+
drop_highpsi_features,
|
|
43
|
+
drop_highnoise_features,
|
|
44
|
+
export_cleaning_report,
|
|
45
|
+
iv_distribution_by_org,
|
|
46
|
+
psi_distribution_by_org,
|
|
47
|
+
value_ratio_distribution_by_org)
|
|
48
|
+
|
|
49
|
+
# ==================== Path Configuration (Interactive Input) ====================
|
|
50
|
+
# Use 50-column test data as default, support interactive modification in command line
|
|
51
|
+
default_data_path = ''
|
|
52
|
+
default_output_dir = ''
|
|
53
|
+
|
|
54
|
+
def _get_path_input(prompt, default):
|
|
55
|
+
try:
|
|
56
|
+
user_val = input(f"{prompt} (default: {default}): ").strip()
|
|
57
|
+
except Exception:
|
|
58
|
+
user_val = ''
|
|
59
|
+
return user_val if user_val else default
|
|
60
|
+
|
|
61
|
+
DATA_PATH = _get_path_input('Please enter data file path DATA_PATH', default_data_path)
|
|
62
|
+
OUTPUT_DIR = _get_path_input('Please enter output directory OUTPUT_DIR', default_output_dir)
|
|
63
|
+
REPORT_PATH = os.path.join(OUTPUT_DIR, '数据清洗报告.xlsx')
|
|
64
|
+
|
|
65
|
+
# Data column name configuration (adjust according to actual data)
|
|
66
|
+
DATE_COL = _get_path_input('Please enter date column name in data', 'apply_date')
|
|
67
|
+
Y_COL = _get_path_input('Please enter label column name in data', 'target')
|
|
68
|
+
ORG_COL = _get_path_input('Please enter organization column name in data', 'org_info')
|
|
69
|
+
|
|
70
|
+
# Support multiple primary key column names input (comma or space separated)
|
|
71
|
+
def _get_list_input(prompt, default):
|
|
72
|
+
try:
|
|
73
|
+
user_val = input(f"{prompt} (default: {default}): ").strip()
|
|
74
|
+
except Exception:
|
|
75
|
+
user_val = ''
|
|
76
|
+
if not user_val:
|
|
77
|
+
user_val = default
|
|
78
|
+
# Support comma or space separation
|
|
79
|
+
parts = [p.strip() for p in user_val.replace(',', ' ').split() if p.strip()]
|
|
80
|
+
return parts
|
|
81
|
+
|
|
82
|
+
KEY_COLS = _get_list_input('Please enter primary key column names in data (multiple columns separated by comma or space)', 'record_id')
|
|
83
|
+
|
|
84
|
+
# ==================== Multi-process Configuration Information ====================
|
|
85
|
+
print("=" * 60)
|
|
86
|
+
print("Multi-process Configuration")
|
|
87
|
+
print("=" * 60)
|
|
88
|
+
print(f" Local CPU cores: {CPU_COUNT}")
|
|
89
|
+
print(f" Current process count: {N_JOBS}")
|
|
90
|
+
print("=" * 60)
|
|
91
|
+
|
|
92
|
+
# ==================== OOS Organization Configuration (Interactive Input) ====================
|
|
93
|
+
# Default out-of-sample organization list, users can input custom list in comma-separated format during interaction
|
|
94
|
+
default_oos = [
|
|
95
|
+
'orgA', 'orgB', 'orgC', 'orgD', 'orgE',
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
try:
|
|
99
|
+
oos_input = input('Please enter out-of-sample organization list, comma separated (press Enter to use default list):').strip()
|
|
100
|
+
except Exception:
|
|
101
|
+
oos_input = ''
|
|
102
|
+
if oos_input:
|
|
103
|
+
OOS_ORGS = [s.strip() for s in oos_input.split(',') if s.strip()]
|
|
104
|
+
else:
|
|
105
|
+
OOS_ORGS = default_oos
|
|
106
|
+
|
|
107
|
+
os.makedirs(OUTPUT_DIR, exist_ok=True)
|
|
108
|
+
|
|
109
|
+
# ==================== Interactive Hyperparameter Input ====================
|
|
110
|
+
def get_user_input(prompt, default, dtype=float):
|
|
111
|
+
"""Get user input, support default value and type conversion"""
|
|
112
|
+
while True:
|
|
113
|
+
try:
|
|
114
|
+
user_input = input(f"{prompt} (default: {default}): ").strip()
|
|
115
|
+
if not user_input:
|
|
116
|
+
return default
|
|
117
|
+
return dtype(user_input)
|
|
118
|
+
except ValueError:
|
|
119
|
+
print(f" Invalid input, please enter {dtype.__name__} type")
|
|
120
|
+
|
|
121
|
+
# Record cleaning steps
|
|
122
|
+
steps = []
|
|
123
|
+
|
|
124
|
+
# Store parameters for each step
|
|
125
|
+
params = {}
|
|
126
|
+
|
|
127
|
+
# Timer decorator
|
|
128
|
+
def timer(step_name):
|
|
129
|
+
"""Timer decorator"""
|
|
130
|
+
def decorator(func):
|
|
131
|
+
def wrapper(*args, **kwargs):
|
|
132
|
+
print(f"\nStarting {step_name}...")
|
|
133
|
+
start_time = time.time()
|
|
134
|
+
result = func(*args, **kwargs)
|
|
135
|
+
elapsed = time.time() - start_time
|
|
136
|
+
print(f" {step_name} elapsed: {elapsed:.2f} seconds")
|
|
137
|
+
return result
|
|
138
|
+
return wrapper
|
|
139
|
+
return decorator
|
|
140
|
+
|
|
141
|
+
# ==================== Step 1: Get Data ====================
|
|
142
|
+
print("\n" + "=" * 60)
|
|
143
|
+
print("Step 1: Get Data")
|
|
144
|
+
print("=" * 60)
|
|
145
|
+
step_start = time.time()
|
|
146
|
+
# Use configuration from global_parameters
|
|
147
|
+
data = get_dataset(
|
|
148
|
+
data_pth=DATA_PATH,
|
|
149
|
+
date_colName=DATE_COL,
|
|
150
|
+
y_colName=Y_COL,
|
|
151
|
+
org_colName=ORG_COL,
|
|
152
|
+
data_encode='utf-8',
|
|
153
|
+
key_colNames=KEY_COLS,
|
|
154
|
+
drop_colNames=[],
|
|
155
|
+
miss_vals=[-1, -999, -1111]
|
|
156
|
+
)
|
|
157
|
+
print(f" Original data: {data.shape}")
|
|
158
|
+
print(f" Abnormal values replaced with NaN: [-1, -999, -1111]")
|
|
159
|
+
print(f" Step 1 elapsed: {time.time() - step_start:.2f} seconds")
|
|
160
|
+
|
|
161
|
+
# ==================== Step 2: Organization Sample Analysis ====================
|
|
162
|
+
print("\n" + "=" * 60)
|
|
163
|
+
print("Step 2: Organization Sample Analysis")
|
|
164
|
+
print("=" * 60)
|
|
165
|
+
step_start = time.time()
|
|
166
|
+
org_stat = org_analysis(data, oos_orgs=OOS_ORGS)
|
|
167
|
+
steps.append(('机构样本统计', org_stat))
|
|
168
|
+
print(f" Organization count: {data['new_org'].nunique()}, Month count: {data['new_date_ym'].nunique()}")
|
|
169
|
+
print(f" Out-of-sample organizations: {len(OOS_ORGS)}")
|
|
170
|
+
print(f" Step 2 elapsed: {time.time() - step_start:.2f} seconds")
|
|
171
|
+
|
|
172
|
+
# ==================== Step 3: Separate OOS Data ====================
|
|
173
|
+
print("\n" + "=" * 60)
|
|
174
|
+
print("Step 3: Separate OOS Data")
|
|
175
|
+
print("=" * 60)
|
|
176
|
+
step_start = time.time()
|
|
177
|
+
oos_data = data[data['new_org'].isin(OOS_ORGS)]
|
|
178
|
+
data = data[~data['new_org'].isin(OOS_ORGS)]
|
|
179
|
+
print(f" OOS samples: {oos_data.shape[0]} rows")
|
|
180
|
+
print(f" Modeling samples: {data.shape[0]} rows")
|
|
181
|
+
print(f" OOS organizations: {OOS_ORGS}")
|
|
182
|
+
print(f" Step 3 elapsed: {time.time() - step_start:.2f} seconds")
|
|
183
|
+
# Create separation information DataFrame
|
|
184
|
+
oos_info = pd.DataFrame({'变量': ['OOS样本', '建模样本'], '数量': [oos_data.shape[0], data.shape[0]]})
|
|
185
|
+
steps.append(('分离OOS数据', oos_info))
|
|
186
|
+
|
|
187
|
+
# ==================== Step 4: Filter Abnormal Months (Modeling Data Only) ====================
|
|
188
|
+
print("\n" + "=" * 60)
|
|
189
|
+
print("Step 4: Filter Abnormal Months (Modeling Data Only)")
|
|
190
|
+
print("=" * 60)
|
|
191
|
+
print(" Press Enter to use default values")
|
|
192
|
+
print("=" * 60)
|
|
193
|
+
params['min_ym_bad_sample'] = int(get_user_input("Bad sample count threshold", 10, int))
|
|
194
|
+
params['min_ym_sample'] = int(get_user_input("Total sample count threshold", 500, int))
|
|
195
|
+
step_start = time.time()
|
|
196
|
+
data_filtered, abnormal_ym = drop_abnormal_ym(data.copy(), min_ym_bad_sample=params['min_ym_bad_sample'], min_ym_sample=params['min_ym_sample'])
|
|
197
|
+
steps.append(('Step4-异常月份处理', abnormal_ym))
|
|
198
|
+
print(f" After filtering: {data_filtered.shape}")
|
|
199
|
+
print(f" Parameters: min_ym_bad_sample={params['min_ym_bad_sample']}, min_ym_sample={params['min_ym_sample']}")
|
|
200
|
+
if len(abnormal_ym) > 0:
|
|
201
|
+
print(f" Dropped months: {abnormal_ym['年月'].tolist()}")
|
|
202
|
+
print(f" Removal conditions: {abnormal_ym['去除条件'].tolist()}")
|
|
203
|
+
print(f" Step 4 elapsed: {time.time() - step_start:.2f} seconds")
|
|
204
|
+
|
|
205
|
+
# ==================== Step 5: Calculate Missing Rate ====================
|
|
206
|
+
print("\n" + "=" * 60)
|
|
207
|
+
print("Step 5: Calculate Missing Rate")
|
|
208
|
+
print("=" * 60)
|
|
209
|
+
step_start = time.time()
|
|
210
|
+
orgs = data['new_org'].unique().tolist()
|
|
211
|
+
channel = {'整体': orgs}
|
|
212
|
+
miss_detail, miss_channel = missing_check(data, channel=channel)
|
|
213
|
+
# miss_detail: Missing rate details (format: feature, overall, org1, org2, ..., orgn)
|
|
214
|
+
# miss_channel: Overall missing rate
|
|
215
|
+
steps.append(('缺失率明细', miss_detail))
|
|
216
|
+
print(f" Feature count: {len(miss_detail['变量'].unique())}")
|
|
217
|
+
print(f" Organization count: {len(miss_detail.columns) - 2}") # Subtract '变量' and '整体' columns
|
|
218
|
+
print(f" Step 5 elapsed: {time.time() - step_start:.2f} seconds")
|
|
219
|
+
|
|
220
|
+
# ==================== Step 6: Drop High Missing Rate Features ====================
|
|
221
|
+
print("\n" + "=" * 60)
|
|
222
|
+
print("Step 6: Drop High Missing Rate Features")
|
|
223
|
+
print("=" * 60)
|
|
224
|
+
print(" Press Enter to use default values")
|
|
225
|
+
print("=" * 60)
|
|
226
|
+
params['missing_ratio'] = get_user_input("Missing rate threshold", 0.6)
|
|
227
|
+
step_start = time.time()
|
|
228
|
+
data_miss, dropped_miss = drop_highmiss_features(data.copy(), miss_channel, threshold=params['missing_ratio'])
|
|
229
|
+
steps.append(('Step6-高缺失率处理', dropped_miss))
|
|
230
|
+
print(f" Dropped: {len(dropped_miss)}")
|
|
231
|
+
print(f" Threshold: {params['missing_ratio']}")
|
|
232
|
+
if len(dropped_miss) > 0:
|
|
233
|
+
print(f" Dropped features: {dropped_miss['变量'].tolist()[:5]}...")
|
|
234
|
+
print(f" Removal conditions: {dropped_miss['去除条件'].tolist()[:5]}...")
|
|
235
|
+
print(f" Step 6 elapsed: {time.time() - step_start:.2f} seconds")
|
|
236
|
+
|
|
237
|
+
# ==================== Step 7: Drop Low IV Features ====================
|
|
238
|
+
print("\n" + "=" * 60)
|
|
239
|
+
print("Step 7: Drop Low IV Features")
|
|
240
|
+
print("=" * 60)
|
|
241
|
+
print(" Press Enter to use default values")
|
|
242
|
+
print("=" * 60)
|
|
243
|
+
params['overall_iv_threshold'] = get_user_input("Overall IV threshold", 0.1)
|
|
244
|
+
params['org_iv_threshold'] = get_user_input("Single organization IV threshold", 0.1)
|
|
245
|
+
params['max_org_threshold'] = int(get_user_input("Maximum tolerated low IV organization count", 2, int))
|
|
246
|
+
step_start = time.time()
|
|
247
|
+
# Get feature list (use all features)
|
|
248
|
+
features = [c for c in data.columns if c.startswith('i_')]
|
|
249
|
+
data_iv, iv_detail, iv_process = drop_lowiv_features(
|
|
250
|
+
data.copy(), features,
|
|
251
|
+
overall_iv_threshold=params['overall_iv_threshold'],
|
|
252
|
+
org_iv_threshold=params['org_iv_threshold'],
|
|
253
|
+
max_org_threshold=params['max_org_threshold'],
|
|
254
|
+
n_jobs=N_JOBS
|
|
255
|
+
)
|
|
256
|
+
# iv_detail: IV details (IV value of each feature in each organization and overall)
|
|
257
|
+
# iv_process: IV processing table (features that do not meet the conditions)
|
|
258
|
+
steps.append(('Step7-IV处理', iv_process))
|
|
259
|
+
print(f" Dropped: {len(iv_process)}")
|
|
260
|
+
print(f" Parameters: overall_iv_threshold={params['overall_iv_threshold']}, org_iv_threshold={params['org_iv_threshold']}, max_org_threshold={params['max_org_threshold']}")
|
|
261
|
+
if len(iv_process) > 0:
|
|
262
|
+
print(f" Dropped features: {iv_process['变量'].tolist()[:5]}...")
|
|
263
|
+
print(f" Processing reasons: {iv_process['处理原因'].tolist()[:5]}...")
|
|
264
|
+
print(f" Step 7 elapsed: {time.time() - step_start:.2f} seconds")
|
|
265
|
+
|
|
266
|
+
# ==================== Step 8: Drop High PSI Features ====================
|
|
267
|
+
print("\n" + "=" * 60)
|
|
268
|
+
print("Step 8: Drop High PSI Features (By Organization + Month-by-Month)")
|
|
269
|
+
print("=" * 60)
|
|
270
|
+
print(" Press Enter to use default values")
|
|
271
|
+
print("=" * 60)
|
|
272
|
+
params['psi_threshold'] = get_user_input("PSI threshold", 0.1)
|
|
273
|
+
params['max_months_ratio'] = get_user_input("Maximum unstable month ratio", 1/3)
|
|
274
|
+
params['max_orgs'] = int(get_user_input("Maximum unstable organization count", 6, int))
|
|
275
|
+
step_start = time.time()
|
|
276
|
+
# Get features before PSI calculation (use all features)
|
|
277
|
+
features_for_psi = [c for c in data.columns if c.startswith('i_')]
|
|
278
|
+
data_psi, psi_detail, psi_process = drop_highpsi_features(
|
|
279
|
+
data.copy(), features_for_psi,
|
|
280
|
+
psi_threshold=params['psi_threshold'],
|
|
281
|
+
max_months_ratio=params['max_months_ratio'],
|
|
282
|
+
max_orgs=params['max_orgs'],
|
|
283
|
+
min_sample_per_month=100,
|
|
284
|
+
n_jobs=N_JOBS
|
|
285
|
+
)
|
|
286
|
+
# psi_detail: PSI details (PSI value of each feature in each organization each month)
|
|
287
|
+
# psi_process: PSI processing table (features that do not meet the conditions)
|
|
288
|
+
steps.append(('Step8-PSI处理', psi_process))
|
|
289
|
+
print(f" Dropped: {len(psi_process)}")
|
|
290
|
+
print(f" Parameters: psi_threshold={params['psi_threshold']}, max_months_ratio={params['max_months_ratio']:.2f}, max_orgs={params['max_orgs']}")
|
|
291
|
+
if len(psi_process) > 0:
|
|
292
|
+
print(f" Dropped features: {psi_process['变量'].tolist()[:5]}...")
|
|
293
|
+
print(f" Processing reasons: {psi_process['处理原因'].tolist()[:5]}...")
|
|
294
|
+
print(f" PSI details: {len(psi_detail)} records")
|
|
295
|
+
print(f" Step 8 elapsed: {time.time() - step_start:.2f} seconds")
|
|
296
|
+
|
|
297
|
+
# ==================== Step 9: Null Importance Denoising ====================
|
|
298
|
+
print("\n" + "=" * 60)
|
|
299
|
+
print("Step 9: Null Importance Remove High Noise Features")
|
|
300
|
+
print("=" * 60)
|
|
301
|
+
print(" Press Enter to use default values")
|
|
302
|
+
print("=" * 60)
|
|
303
|
+
params['n_estimators'] = int(get_user_input("Number of trees", 100, int))
|
|
304
|
+
params['max_depth'] = int(get_user_input("Maximum tree depth", 5, int))
|
|
305
|
+
params['gain_threshold'] = get_user_input("Gain difference threshold", 50)
|
|
306
|
+
step_start = time.time()
|
|
307
|
+
# Get feature list (use all features)
|
|
308
|
+
features = [c for c in data.columns if c.startswith('i_')]
|
|
309
|
+
data_noise, dropped_noise = drop_highnoise_features(data.copy(), features, n_estimators=params['n_estimators'], max_depth=params['max_depth'], gain_threshold=params['gain_threshold'])
|
|
310
|
+
steps.append(('Step9-null importance处理', dropped_noise))
|
|
311
|
+
print(f" Dropped: {len(dropped_noise)}")
|
|
312
|
+
print(f" Parameters: n_estimators={params['n_estimators']}, max_depth={params['max_depth']}, gain_threshold={params['gain_threshold']}")
|
|
313
|
+
if len(dropped_noise) > 0:
|
|
314
|
+
print(f" Dropped features: {dropped_noise['变量'].tolist()}")
|
|
315
|
+
print(f" Step 9 elapsed: {time.time() - step_start:.2f} seconds")
|
|
316
|
+
|
|
317
|
+
# ==================== Step 10: Drop High Correlation Features (Based on Null Importance Original Gain) ====================
|
|
318
|
+
print("\n" + "=" * 60)
|
|
319
|
+
print("Step 10: Drop High Correlation Features (Based on Null Importance Original Gain)")
|
|
320
|
+
print("=" * 60)
|
|
321
|
+
print(" Press Enter to use default values")
|
|
322
|
+
print("=" * 60)
|
|
323
|
+
params['max_corr'] = get_user_input("Correlation threshold", 0.9)
|
|
324
|
+
params['top_n_keep'] = int(get_user_input("Keep top N features by original gain ranking", 20, int))
|
|
325
|
+
step_start = time.time()
|
|
326
|
+
# Get feature list (use all features)
|
|
327
|
+
features = [c for c in data.columns if c.startswith('i_')]
|
|
328
|
+
# Get original gain from null importance results
|
|
329
|
+
if len(dropped_noise) > 0 and '原始gain' in dropped_noise.columns:
|
|
330
|
+
gain_dict = dict(zip(dropped_noise['变量'], dropped_noise['原始gain']))
|
|
331
|
+
else:
|
|
332
|
+
gain_dict = {}
|
|
333
|
+
data_corr, dropped_corr = drop_highcorr_features(data.copy(), features, threshold=params['max_corr'], gain_dict=gain_dict, top_n_keep=params['top_n_keep'])
|
|
334
|
+
steps.append(('Step10-高相关性剔除', dropped_corr))
|
|
335
|
+
print(f" Dropped: {len(dropped_corr)}")
|
|
336
|
+
print(f" Threshold: {params['max_corr']}")
|
|
337
|
+
if len(dropped_corr) > 0:
|
|
338
|
+
print(f" Dropped features: {dropped_corr['变量'].tolist()}")
|
|
339
|
+
print(f" Removal conditions: {dropped_corr['去除条件'].tolist()[:5]}...")
|
|
340
|
+
print(f" Step 10 elapsed: {time.time() - step_start:.2f} seconds")
|
|
341
|
+
|
|
342
|
+
# ==================== Step 11: Export Report ====================
|
|
343
|
+
print("\n" + "=" * 60)
|
|
344
|
+
print("Step 11: Export Report")
|
|
345
|
+
print("=" * 60)
|
|
346
|
+
step_start = time.time()
|
|
347
|
+
|
|
348
|
+
# Calculate IV distribution statistics
|
|
349
|
+
print(" Calculating IV distribution statistics...")
|
|
350
|
+
iv_distribution = iv_distribution_by_org(iv_detail, oos_orgs=OOS_ORGS)
|
|
351
|
+
print(f" IV distribution statistics: {len(iv_distribution)} records")
|
|
352
|
+
|
|
353
|
+
# Calculate PSI distribution statistics
|
|
354
|
+
print(" Calculating PSI distribution statistics...")
|
|
355
|
+
psi_distribution = psi_distribution_by_org(psi_detail, oos_orgs=OOS_ORGS)
|
|
356
|
+
print(f" PSI distribution statistics: {len(psi_distribution)} records")
|
|
357
|
+
|
|
358
|
+
# Calculate value ratio distribution statistics (use all features)
|
|
359
|
+
print(" Calculating value ratio distribution statistics...")
|
|
360
|
+
features_for_value_ratio = [c for c in data.columns if c.startswith('i_')]
|
|
361
|
+
value_ratio_distribution = value_ratio_distribution_by_org(data, features_for_value_ratio, oos_orgs=OOS_ORGS)
|
|
362
|
+
print(f" Value ratio distribution statistics: {len(value_ratio_distribution)} records")
|
|
363
|
+
|
|
364
|
+
# Add details and distribution statistics to steps list
|
|
365
|
+
steps.append(('Step7-IV明细', iv_detail))
|
|
366
|
+
steps.append(('Step7-IV分布统计', iv_distribution))
|
|
367
|
+
steps.append(('Step8-PSI明细', psi_detail))
|
|
368
|
+
steps.append(('Step8-PSI分布统计', psi_distribution))
|
|
369
|
+
steps.append(('Step5-有值率分布统计', value_ratio_distribution))
|
|
370
|
+
|
|
371
|
+
export_cleaning_report(REPORT_PATH, steps,
|
|
372
|
+
iv_detail=iv_detail,
|
|
373
|
+
iv_process=iv_process,
|
|
374
|
+
psi_detail=psi_detail,
|
|
375
|
+
psi_process=psi_process,
|
|
376
|
+
params=params,
|
|
377
|
+
iv_distribution=iv_distribution,
|
|
378
|
+
psi_distribution=psi_distribution,
|
|
379
|
+
value_ratio_distribution=value_ratio_distribution)
|
|
380
|
+
print(f" Report: {REPORT_PATH}")
|
|
381
|
+
print(f" Step 11 elapsed: {time.time() - step_start:.2f} seconds")
|
|
382
|
+
|
|
383
|
+
# ==================== Summary ====================
|
|
384
|
+
print("\n" + "=" * 60)
|
|
385
|
+
print("Data Cleaning Completed!")
|
|
386
|
+
print("=" * 60)
|
|
387
|
+
print(f" Original data: {data.shape[0]} rows")
|
|
388
|
+
print(f" Original features: {len([c for c in data.columns if c.startswith('i_')])}")
|
|
389
|
+
print(f" Cleaning steps (each step executed independently, data not deleted):")
|
|
390
|
+
for name, df in steps:
|
|
391
|
+
print(f" - {name}: Dropped {df.shape[0] if hasattr(df, 'shape') else len(df)}")
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright GitHub, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dataverse-python-advanced-patterns
|
|
3
|
+
description: 'Generate production code for Dataverse SDK using advanced patterns, error handling, and optimization techniques.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are a Dataverse SDK for Python expert. Generate production-ready Python code that demonstrates:
|
|
7
|
+
|
|
8
|
+
1. **Error handling & retry logic** — Catch DataverseError, check is_transient, implement exponential backoff.
|
|
9
|
+
2. **Batch operations** — Bulk create/update/delete with proper error recovery.
|
|
10
|
+
3. **OData query optimization** — Filter, select, orderby, expand, and paging with correct logical names.
|
|
11
|
+
4. **Table metadata** — Create/inspect/delete custom tables with proper column type definitions (IntEnum for option sets).
|
|
12
|
+
5. **Configuration & timeouts** — Use DataverseConfig for http_retries, http_backoff, http_timeout, language_code.
|
|
13
|
+
6. **Cache management** — Flush picklist cache when metadata changes.
|
|
14
|
+
7. **File operations** — Upload large files in chunks; handle chunked vs. simple upload.
|
|
15
|
+
8. **Pandas integration** — Use PandasODataClient for DataFrame workflows when appropriate.
|
|
16
|
+
|
|
17
|
+
Include docstrings, type hints, and link to official API reference for each class/method used.
|