novahiz 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/NOTICE.md +46 -0
- package/README.md +123 -0
- package/adapters/README.md +13 -0
- package/adapters/opencode/agent/novahiz-agent.md +31 -0
- package/adapters/opencode/commands/novahiz-clean.md +15 -0
- package/adapters/opencode/commands/novahiz-doctor.md +9 -0
- package/adapters/opencode/commands/novahiz-plan.md +24 -0
- package/adapters/opencode/commands/novahiz-status.md +11 -0
- package/adapters/opencode/instructions.md +69 -0
- package/adapters/opencode/novahiz.ts +266 -0
- package/bin/novahiz.cmd +2 -0
- package/bin/novahiz.mjs +7 -0
- package/bundled-skills/AGENTS.md +50 -0
- package/bundled-skills/LICENSE +21 -0
- package/bundled-skills/README.md +202 -0
- package/bundled-skills/SKILL.md +313 -0
- package/bundled-skills/a11y-audit/SKILL.md +211 -0
- package/bundled-skills/a11y-audit/assets/sample-component.tsx +51 -0
- package/bundled-skills/a11y-audit/expected_outputs/sample-contrast-output.txt +39 -0
- package/bundled-skills/a11y-audit/expected_outputs/sample-scan-output.json +34 -0
- package/bundled-skills/a11y-audit/expected_outputs/sample-scan-report.md +63 -0
- package/bundled-skills/a11y-audit/references/aria-patterns.md +223 -0
- package/bundled-skills/a11y-audit/references/audit-report-template.md +46 -0
- package/bundled-skills/a11y-audit/references/ci-cd-integration.md +127 -0
- package/bundled-skills/a11y-audit/references/color-contrast-guide.md +83 -0
- package/bundled-skills/a11y-audit/references/examples-by-framework.md +312 -0
- package/bundled-skills/a11y-audit/references/framework-a11y-patterns.md +661 -0
- package/bundled-skills/a11y-audit/references/testing-checklist.md +41 -0
- package/bundled-skills/a11y-audit/references/wcag-22-new-criteria.md +79 -0
- package/bundled-skills/a11y-audit/references/wcag-quick-ref.md +113 -0
- package/bundled-skills/a11y-audit/scripts/a11y_scanner.py +684 -0
- package/bundled-skills/a11y-audit/scripts/contrast_checker.py +504 -0
- package/bundled-skills/ab-testing/SKILL.md +353 -0
- package/bundled-skills/ab-testing/evals/evals.json +105 -0
- package/bundled-skills/ab-testing/references/sample-size-guide.md +263 -0
- package/bundled-skills/ab-testing/references/test-templates.md +277 -0
- package/bundled-skills/ad-creative/SKILL.md +425 -0
- package/bundled-skills/ad-creative/assets/creative-review-template.html +400 -0
- package/bundled-skills/ad-creative/evals/evals.json +217 -0
- package/bundled-skills/ad-creative/references/creative-review-page.md +106 -0
- package/bundled-skills/ad-creative/references/creative-roadmap.md +118 -0
- package/bundled-skills/ad-creative/references/generative-tools.md +637 -0
- package/bundled-skills/ad-creative/references/hook-system.md +115 -0
- package/bundled-skills/ad-creative/references/imessage-video-ads.md +201 -0
- package/bundled-skills/ad-creative/references/meta-creative-formats.md +114 -0
- package/bundled-skills/ad-creative/references/motion-video-ads.md +126 -0
- package/bundled-skills/ad-creative/references/platform-specs.md +213 -0
- package/bundled-skills/ad-creative/references/short-form-video-specs.md +213 -0
- package/bundled-skills/ad-creative/references/static-ad-templates.md +308 -0
- package/bundled-skills/ads/SKILL.md +499 -0
- package/bundled-skills/ads/evals/evals.json +157 -0
- package/bundled-skills/ads/references/abm-playbook.md +93 -0
- package/bundled-skills/ads/references/ad-copy-templates.md +207 -0
- package/bundled-skills/ads/references/audience-targeting.md +243 -0
- package/bundled-skills/ads/references/audit-guardrails.md +83 -0
- package/bundled-skills/ads/references/b2b-paid-playbook.md +115 -0
- package/bundled-skills/ads/references/conversion-tracking.md +361 -0
- package/bundled-skills/ads/references/creative-research-automation.md +103 -0
- package/bundled-skills/ads/references/google-ads-audit-checklist.md +84 -0
- package/bundled-skills/ads/references/google-search-playbook.md +120 -0
- package/bundled-skills/ads/references/linkedin-b2b-playbook.md +107 -0
- package/bundled-skills/ads/references/meta-decision-system.md +176 -0
- package/bundled-skills/ads/references/payback-period.md +69 -0
- package/bundled-skills/ads/references/platform-setup-checklists.md +277 -0
- package/bundled-skills/ads/references/rsa-output-spec.md +88 -0
- package/bundled-skills/adversarial-reviewer/SKILL.md +247 -0
- package/bundled-skills/agent-device/SKILL.md +20 -0
- package/bundled-skills/ai-seo/SKILL.md +488 -0
- package/bundled-skills/ai-seo/evals/evals.json +135 -0
- package/bundled-skills/ai-seo/references/agent-readiness.md +57 -0
- package/bundled-skills/ai-seo/references/citations-vs-recommendations.md +85 -0
- package/bundled-skills/ai-seo/references/content-patterns.md +287 -0
- package/bundled-skills/ai-seo/references/content-types.md +71 -0
- package/bundled-skills/ai-seo/references/format-volatility.md +98 -0
- package/bundled-skills/ai-seo/references/okf.md +104 -0
- package/bundled-skills/ai-seo/references/platform-ranking-factors.md +154 -0
- package/bundled-skills/ai-seo/references/youtube-ai-citations.md +60 -0
- package/bundled-skills/analytics/SKILL.md +310 -0
- package/bundled-skills/analytics/evals/evals.json +90 -0
- package/bundled-skills/analytics/references/event-library.md +260 -0
- package/bundled-skills/analytics/references/ga4-implementation.md +300 -0
- package/bundled-skills/analytics/references/gtm-implementation.md +390 -0
- package/bundled-skills/android-emulator/SKILL.md +32 -0
- package/bundled-skills/anti-AI-design/SKILL.md +189 -0
- package/bundled-skills/anti-pattern-detector/SKILL.md +185 -0
- package/bundled-skills/anti-pattern-detector/references/async-network-patterns.md +581 -0
- package/bundled-skills/anti-pattern-detector/references/build-deploy-patterns.md +554 -0
- package/bundled-skills/anti-pattern-detector/references/cache-patterns.md +446 -0
- package/bundled-skills/anti-pattern-detector/references/cloud-infra-patterns.md +538 -0
- package/bundled-skills/anti-pattern-detector/references/concurrency-patterns.md +558 -0
- package/bundled-skills/anti-pattern-detector/references/language-specific-patterns.md +740 -0
- package/bundled-skills/anti-pattern-detector/references/monitoring-patterns.md +456 -0
- package/bundled-skills/api-design-reviewer/SKILL.md +433 -0
- package/bundled-skills/api-design-reviewer/references/api_antipatterns.md +680 -0
- package/bundled-skills/api-design-reviewer/references/rest_design_rules.md +487 -0
- package/bundled-skills/api-design-reviewer/scripts/api_linter.py +956 -0
- package/bundled-skills/api-design-reviewer/scripts/api_scorecard.py +1661 -0
- package/bundled-skills/api-design-reviewer/scripts/breaking_change_detector.py +1102 -0
- package/bundled-skills/apple-hig-expert/SKILL.md +108 -0
- package/bundled-skills/apple-hig-expert/references/accessibility.md +55 -0
- package/bundled-skills/apple-hig-expert/references/platform-specifics.md +48 -0
- package/bundled-skills/apple-hig-expert/references/visual-design.md +69 -0
- package/bundled-skills/apple-hig-expert/scripts/hig_checker.py +97 -0
- package/bundled-skills/apple-hig-expert/templates/hig-audit-template.md +83 -0
- package/bundled-skills/build-graph/SKILL.md +38 -0
- package/bundled-skills/claude-history-ingest/SKILL.md +463 -0
- package/bundled-skills/claude-history-ingest/references/claude-data-format.md +118 -0
- package/bundled-skills/clean-code/SKILL.md +99 -0
- package/bundled-skills/code-reviewer/README.md +92 -0
- package/bundled-skills/code-reviewer/SKILL.md +183 -0
- package/bundled-skills/code-reviewer/assets/sample_c_clean.c +71 -0
- package/bundled-skills/code-reviewer/assets/sample_c_smells.c +66 -0
- package/bundled-skills/code-reviewer/assets/sample_csharp_clean.cs +100 -0
- package/bundled-skills/code-reviewer/assets/sample_csharp_smells.cs +78 -0
- package/bundled-skills/code-reviewer/assets/sample_java_clean.java +55 -0
- package/bundled-skills/code-reviewer/assets/sample_java_smells.java +56 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_c_clean_quality.json +65 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_c_smells_quality.json +155 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_csharp_clean_quality.json +135 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_csharp_smells_quality.json +143 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_java_clean_quality.json +53 -0
- package/bundled-skills/code-reviewer/expected_outputs/sample_java_smells_quality.json +83 -0
- package/bundled-skills/code-reviewer/languages/c.md +103 -0
- package/bundled-skills/code-reviewer/languages/cpp.md +103 -0
- package/bundled-skills/code-reviewer/languages/csharp.md +97 -0
- package/bundled-skills/code-reviewer/languages/dart.md +108 -0
- package/bundled-skills/code-reviewer/languages/go.md +92 -0
- package/bundled-skills/code-reviewer/languages/java.md +103 -0
- package/bundled-skills/code-reviewer/languages/kotlin.md +88 -0
- package/bundled-skills/code-reviewer/languages/php.md +109 -0
- package/bundled-skills/code-reviewer/languages/python.md +94 -0
- package/bundled-skills/code-reviewer/languages/ruby.md +105 -0
- package/bundled-skills/code-reviewer/languages/rust.md +99 -0
- package/bundled-skills/code-reviewer/languages/swift.md +88 -0
- package/bundled-skills/code-reviewer/languages/typescript.md +97 -0
- package/bundled-skills/code-reviewer/rules/universal.md +49 -0
- package/bundled-skills/code-reviewer/scripts/code_quality_checker.py +1020 -0
- package/bundled-skills/code-reviewer/scripts/pr_analyzer.py +535 -0
- package/bundled-skills/code-reviewer/scripts/review_report_generator.py +505 -0
- package/bundled-skills/code-understand/SKILL.md +90 -0
- package/bundled-skills/codex-history-ingest/SKILL.md +248 -0
- package/bundled-skills/codex-history-ingest/references/codex-data-format.md +82 -0
- package/bundled-skills/cold-email/SKILL.md +159 -0
- package/bundled-skills/cold-email/evals/evals.json +94 -0
- package/bundled-skills/cold-email/references/benchmarks.md +83 -0
- package/bundled-skills/cold-email/references/follow-up-sequences.md +81 -0
- package/bundled-skills/cold-email/references/frameworks.md +90 -0
- package/bundled-skills/cold-email/references/personalization.md +79 -0
- package/bundled-skills/cold-email/references/subject-lines.md +53 -0
- package/bundled-skills/competitor-profiling/SKILL.md +415 -0
- package/bundled-skills/competitor-profiling/evals/evals.json +85 -0
- package/bundled-skills/competitor-profiling/references/templates.md +167 -0
- package/bundled-skills/competitor-profiling/references/tool-reference.md +179 -0
- package/bundled-skills/computer-use/SKILL.md +41 -0
- package/bundled-skills/content-strategy/SKILL.md +439 -0
- package/bundled-skills/content-strategy/evals/evals.json +116 -0
- package/bundled-skills/content-strategy/references/content-distribution.md +83 -0
- package/bundled-skills/content-strategy/references/headless-cms.md +194 -0
- package/bundled-skills/copilot-history-ingest/SKILL.md +376 -0
- package/bundled-skills/copilot-history-ingest/references/copilot-data-format.md +321 -0
- package/bundled-skills/copy-editing/SKILL.md +457 -0
- package/bundled-skills/copy-editing/evals/evals.json +89 -0
- package/bundled-skills/copy-editing/references/checklist.md +66 -0
- package/bundled-skills/copy-editing/references/content-refresh.md +38 -0
- package/bundled-skills/copy-editing/references/plain-english-alternatives.md +394 -0
- package/bundled-skills/copywriting/SKILL.md +256 -0
- package/bundled-skills/copywriting/evals/evals.json +126 -0
- package/bundled-skills/copywriting/references/copy-frameworks.md +433 -0
- package/bundled-skills/copywriting/references/natural-transitions.md +272 -0
- package/bundled-skills/cro/SKILL.md +187 -0
- package/bundled-skills/cro/evals/evals.json +111 -0
- package/bundled-skills/cro/references/experiments.md +248 -0
- package/bundled-skills/cro/references/form.md +422 -0
- package/bundled-skills/cross-linker/SKILL.md +309 -0
- package/bundled-skills/customer-research/SKILL.md +305 -0
- package/bundled-skills/customer-research/evals/evals.json +176 -0
- package/bundled-skills/customer-research/references/interviews-and-surveys.md +155 -0
- package/bundled-skills/customer-research/references/source-guides.md +401 -0
- package/bundled-skills/daily-update/SKILL.md +223 -0
- package/bundled-skills/dart-add-unit-test/SKILL.md +122 -0
- package/bundled-skills/dart-build-cli-app/SKILL.md +185 -0
- package/bundled-skills/dart-collect-coverage/SKILL.md +141 -0
- package/bundled-skills/dart-fix-runtime-errors/SKILL.md +166 -0
- package/bundled-skills/dart-generate-test-mocks/SKILL.md +155 -0
- package/bundled-skills/dart-migrate-to-checks-package/SKILL.md +528 -0
- package/bundled-skills/dart-resolve-package-conflicts/SKILL.md +116 -0
- package/bundled-skills/dart-run-static-analysis/SKILL.md +104 -0
- package/bundled-skills/dart-setup-ffi-assets/SKILL.md +419 -0
- package/bundled-skills/dart-use-doc-examples/SKILL.md +96 -0
- package/bundled-skills/dart-use-ffigen/SKILL.md +218 -0
- package/bundled-skills/dart-use-pattern-matching/SKILL.md +146 -0
- package/bundled-skills/dart-use-primary-constructors/SKILL.md +262 -0
- package/bundled-skills/dart-write-documentation/SKILL.md +136 -0
- package/bundled-skills/database-designer/README.md +388 -0
- package/bundled-skills/database-designer/SKILL.md +314 -0
- package/bundled-skills/database-designer/assets/sample_query_patterns.json +375 -0
- package/bundled-skills/database-designer/assets/sample_schema.json +372 -0
- package/bundled-skills/database-designer/assets/sample_schema.sql +207 -0
- package/bundled-skills/database-designer/expected_outputs/index_optimization_sample.txt +60 -0
- package/bundled-skills/database-designer/expected_outputs/migration_sample.txt +124 -0
- package/bundled-skills/database-designer/expected_outputs/schema_analysis_sample.txt +222 -0
- package/bundled-skills/database-designer/index_optimizer.py +926 -0
- package/bundled-skills/database-designer/migration_generator.py +1199 -0
- package/bundled-skills/database-designer/references/database-design-reference.md +476 -0
- package/bundled-skills/database-designer/references/database_selection_decision_tree.md +373 -0
- package/bundled-skills/database-designer/references/index_strategy_patterns.md +424 -0
- package/bundled-skills/database-designer/references/normalization_guide.md +354 -0
- package/bundled-skills/database-designer/schema_analyzer.py +982 -0
- package/bundled-skills/debug-issue/SKILL.md +28 -0
- package/bundled-skills/defuddle/SKILL.md +41 -0
- package/bundled-skills/dependency-auditor/README.md +524 -0
- package/bundled-skills/dependency-auditor/SKILL.md +85 -0
- package/bundled-skills/dependency-auditor/assets/sample_go.mod +53 -0
- package/bundled-skills/dependency-auditor/assets/sample_package.json +72 -0
- package/bundled-skills/dependency-auditor/assets/sample_requirements.txt +71 -0
- package/bundled-skills/dependency-auditor/expected_outputs/sample_license_report.txt +37 -0
- package/bundled-skills/dependency-auditor/expected_outputs/sample_upgrade_plan.txt +59 -0
- package/bundled-skills/dependency-auditor/expected_outputs/sample_vulnerability_report.json +71 -0
- package/bundled-skills/dependency-auditor/references/dependency_management_best_practices.md +643 -0
- package/bundled-skills/dependency-auditor/references/license_compatibility_matrix.md +238 -0
- package/bundled-skills/dependency-auditor/references/vulnerability_assessment_guide.md +461 -0
- package/bundled-skills/dependency-auditor/scripts/dep_scanner.py +794 -0
- package/bundled-skills/dependency-auditor/scripts/license_checker.py +996 -0
- package/bundled-skills/dependency-auditor/scripts/upgrade_planner.py +1029 -0
- package/bundled-skills/dependency-auditor/test-inventory.json +421 -0
- package/bundled-skills/dependency-auditor/test-project/package.json +72 -0
- package/bundled-skills/design-taste-frontend/SKILL.md +247 -0
- package/bundled-skills/dogfood/SKILL.md +27 -0
- package/bundled-skills/eas-app-stores/SKILL.md +176 -0
- package/bundled-skills/eas-app-stores/agents/openai.yaml +4 -0
- package/bundled-skills/eas-app-stores/references/app-store-metadata.md +497 -0
- package/bundled-skills/eas-app-stores/references/ios-app-store.md +376 -0
- package/bundled-skills/eas-app-stores/references/native-ios.md +167 -0
- package/bundled-skills/eas-app-stores/references/play-store.md +244 -0
- package/bundled-skills/eas-app-stores/references/testflight.md +62 -0
- package/bundled-skills/eas-app-stores/references/workflows.md +120 -0
- package/bundled-skills/eas-hosting/SKILL.md +431 -0
- package/bundled-skills/eas-hosting/agents/openai.yaml +4 -0
- package/bundled-skills/eas-observe/SKILL.md +54 -0
- package/bundled-skills/eas-observe/agents/openai.yaml +4 -0
- package/bundled-skills/eas-observe/references/metrics.md +98 -0
- package/bundled-skills/eas-observe/references/queries.md +403 -0
- package/bundled-skills/eas-observe/references/setup.md +476 -0
- package/bundled-skills/eas-observe/references/third-party.md +136 -0
- package/bundled-skills/eas-simulator/SKILL.md +208 -0
- package/bundled-skills/eas-simulator/agents/openai.yaml +4 -0
- package/bundled-skills/eas-simulator/references/controllers.md +106 -0
- package/bundled-skills/eas-simulator/references/run-your-app.md +224 -0
- package/bundled-skills/eas-simulator/references/troubleshooting.md +44 -0
- package/bundled-skills/eas-update/SKILL.md +146 -0
- package/bundled-skills/eas-update/agents/openai.yaml +4 -0
- package/bundled-skills/eas-update-insights/SKILL.md +238 -0
- package/bundled-skills/eas-update-insights/agents/openai.yaml +4 -0
- package/bundled-skills/eas-update-insights/references/channel-insights-schema.md +47 -0
- package/bundled-skills/eas-update-insights/references/update-insights-schema.md +69 -0
- package/bundled-skills/eas-workflows/SKILL.md +99 -0
- package/bundled-skills/eas-workflows/agents/openai.yaml +4 -0
- package/bundled-skills/eas-workflows/scripts/fetch.js +109 -0
- package/bundled-skills/eas-workflows/scripts/package.json +6 -0
- package/bundled-skills/emails/SKILL.md +311 -0
- package/bundled-skills/emails/evals/evals.json +93 -0
- package/bundled-skills/emails/references/copy-guidelines.md +113 -0
- package/bundled-skills/emails/references/email-types.md +515 -0
- package/bundled-skills/emails/references/sequence-templates.md +168 -0
- package/bundled-skills/engineering-standards/SKILL.md +736 -0
- package/bundled-skills/env-secrets-manager/SKILL.md +260 -0
- package/bundled-skills/env-secrets-manager/references/secret-patterns.md +41 -0
- package/bundled-skills/env-secrets-manager/references/validation-detection-rotation.md +358 -0
- package/bundled-skills/env-secrets-manager/scripts/env_auditor.py +145 -0
- package/bundled-skills/explore-codebase/SKILL.md +29 -0
- package/bundled-skills/expo-animation/LICENSE +21 -0
- package/bundled-skills/expo-animation/RECIPES.md +385 -0
- package/bundled-skills/expo-animation/SKILL.md +267 -0
- package/bundled-skills/expo-animation/agents/openai.yaml +4 -0
- package/bundled-skills/expo-app-clip/SKILL.md +290 -0
- package/bundled-skills/expo-app-clip/agents/openai.yaml +4 -0
- package/bundled-skills/expo-app-clip/references/native-module.md +96 -0
- package/bundled-skills/expo-brownfield/SKILL.md +62 -0
- package/bundled-skills/expo-brownfield/agents/openai.yaml +4 -0
- package/bundled-skills/expo-brownfield/references/brownfield-integrated.md +526 -0
- package/bundled-skills/expo-brownfield/references/brownfield-isolated.md +451 -0
- package/bundled-skills/expo-brownfield/references/comparison.md +63 -0
- package/bundled-skills/expo-brownfield/references/troubleshooting.md +88 -0
- package/bundled-skills/expo-data-fetching/SKILL.md +478 -0
- package/bundled-skills/expo-data-fetching/agents/openai.yaml +4 -0
- package/bundled-skills/expo-data-fetching/references/expo-router-loaders.md +341 -0
- package/bundled-skills/expo-data-fetching/references/offline-and-cancellation.md +68 -0
- package/bundled-skills/expo-design-system/SKILL.md +376 -0
- package/bundled-skills/expo-design-system/agents/openai.yaml +4 -0
- package/bundled-skills/expo-design-system/references/audit.md +190 -0
- package/bundled-skills/expo-design-system/references/native-slop.md +74 -0
- package/bundled-skills/expo-dev-client/SKILL.md +182 -0
- package/bundled-skills/expo-dev-client/agents/openai.yaml +4 -0
- package/bundled-skills/expo-dom/SKILL.md +425 -0
- package/bundled-skills/expo-dom/agents/openai.yaml +4 -0
- package/bundled-skills/expo-examples/SKILL.md +106 -0
- package/bundled-skills/expo-examples/agents/openai.yaml +4 -0
- package/bundled-skills/expo-examples/references/catalog.md +105 -0
- package/bundled-skills/expo-migrate-module/SKILL.md +113 -0
- package/bundled-skills/expo-migrate-module/agents/openai.yaml +4 -0
- package/bundled-skills/expo-migrate-module/references/compatibility.md +73 -0
- package/bundled-skills/expo-migrate-module/references/example.md +212 -0
- package/bundled-skills/expo-migrate-module/references/migration-map.md +306 -0
- package/bundled-skills/expo-module/SKILL.md +151 -0
- package/bundled-skills/expo-module/agents/openai.yaml +4 -0
- package/bundled-skills/expo-module/references/config-plugin.md +90 -0
- package/bundled-skills/expo-module/references/create-expo-module.md +206 -0
- package/bundled-skills/expo-module/references/lifecycle.md +127 -0
- package/bundled-skills/expo-module/references/module-config.md +48 -0
- package/bundled-skills/expo-module/references/native-module.md +286 -0
- package/bundled-skills/expo-module/references/native-view.md +171 -0
- package/bundled-skills/expo-native-ui/SKILL.md +201 -0
- package/bundled-skills/expo-native-ui/agents/openai.yaml +4 -0
- package/bundled-skills/expo-native-ui/references/controls.md +231 -0
- package/bundled-skills/expo-native-ui/references/gradients.md +106 -0
- package/bundled-skills/expo-native-ui/references/icons.md +232 -0
- package/bundled-skills/expo-native-ui/references/media.md +193 -0
- package/bundled-skills/expo-native-ui/references/storage.md +121 -0
- package/bundled-skills/expo-native-ui/references/visual-effects.md +198 -0
- package/bundled-skills/expo-native-ui/references/webgpu-three.md +605 -0
- package/bundled-skills/expo-overview/SKILL.md +115 -0
- package/bundled-skills/expo-overview/agents/openai.yaml +4 -0
- package/bundled-skills/expo-project-structure/SKILL.md +114 -0
- package/bundled-skills/expo-project-structure/agents/openai.yaml +4 -0
- package/bundled-skills/expo-router/SKILL.md +240 -0
- package/bundled-skills/expo-router/agents/openai.yaml +4 -0
- package/bundled-skills/expo-router/references/form-sheet.md +253 -0
- package/bundled-skills/expo-router/references/route-structure.md +229 -0
- package/bundled-skills/expo-router/references/search.md +248 -0
- package/bundled-skills/expo-router/references/tabs.md +433 -0
- package/bundled-skills/expo-router/references/toolbar-and-headers.md +284 -0
- package/bundled-skills/expo-router/references/zoom-transitions.md +158 -0
- package/bundled-skills/expo-skill-eval/SKILL.md +314 -0
- package/bundled-skills/expo-skill-eval/agents/visual-grader.md +52 -0
- package/bundled-skills/expo-skill-eval/references/design-rubric.md +45 -0
- package/bundled-skills/expo-skill-eval/references/runtime-matrix.md +34 -0
- package/bundled-skills/expo-skill-eval/scripts/check-static.sh +64 -0
- package/bundled-skills/expo-skill-eval/scripts/clean-fixture.sh +56 -0
- package/bundled-skills/expo-skill-eval/scripts/generate_viewer.py +450 -0
- package/bundled-skills/expo-skill-eval/scripts/latest-sdk.sh +46 -0
- package/bundled-skills/expo-skill-eval/scripts/make-fixture.sh +95 -0
- package/bundled-skills/expo-skill-eval/scripts/make-workspace.sh +31 -0
- package/bundled-skills/expo-skill-eval/scripts/snapshot-android.sh +284 -0
- package/bundled-skills/expo-skill-eval/scripts/snapshot-ios.sh +132 -0
- package/bundled-skills/expo-skill-eval/scripts/snapshot-web.sh +61 -0
- package/bundled-skills/expo-skill-feedback/SKILL.md +87 -0
- package/bundled-skills/expo-skill-feedback/agents/openai.yaml +4 -0
- package/bundled-skills/expo-skill-feedback/scripts/skill-event.cjs +180 -0
- package/bundled-skills/expo-skill-feedback/scripts/telemetry.cjs +65 -0
- package/bundled-skills/expo-skill-feedback/scripts/telemetry_common.cjs +171 -0
- package/bundled-skills/expo-ui/SKILL.md +101 -0
- package/bundled-skills/expo-ui/agents/openai.yaml +4 -0
- package/bundled-skills/expo-ui/references/drop-in-replacements.md +27 -0
- package/bundled-skills/expo-ui/references/jetpack-compose.md +73 -0
- package/bundled-skills/expo-ui/references/swift-ui.md +73 -0
- package/bundled-skills/expo-ui/references/universal.md +104 -0
- package/bundled-skills/expo-ui/scripts/list-components.js +193 -0
- package/bundled-skills/expo-upgrade/SKILL.md +150 -0
- package/bundled-skills/expo-upgrade/agents/openai.yaml +4 -0
- package/bundled-skills/expo-upgrade/references/expo-av-to-audio.md +132 -0
- package/bundled-skills/expo-upgrade/references/expo-av-to-video.md +160 -0
- package/bundled-skills/expo-upgrade/references/native-tabs.md +124 -0
- package/bundled-skills/expo-upgrade/references/new-architecture.md +79 -0
- package/bundled-skills/expo-upgrade/references/react-19.md +79 -0
- package/bundled-skills/expo-upgrade/references/react-compiler.md +59 -0
- package/bundled-skills/expo-upgrade/references/react-navigation-to-expo-router.md +61 -0
- package/bundled-skills/expo-web-to-native/SKILL.md +91 -0
- package/bundled-skills/expo-web-to-native/agents/openai.yaml +4 -0
- package/bundled-skills/expo-web-to-native/references/false-friends.md +119 -0
- package/bundled-skills/expo-web-to-native/references/native-patterns.md +39 -0
- package/bundled-skills/expo-web-to-native/references/run-as-goal.md +48 -0
- package/bundled-skills/expo-web-to-native/references/verify-on-device.md +45 -0
- package/bundled-skills/find-skills/SKILL.md +141 -0
- package/bundled-skills/fix/SKILL.md +113 -0
- package/bundled-skills/fix/flaky-taxonomy.md +134 -0
- package/bundled-skills/flutter-add-integration-test/SKILL.md +163 -0
- package/bundled-skills/flutter-add-widget-preview/SKILL.md +145 -0
- package/bundled-skills/flutter-add-widget-test/SKILL.md +154 -0
- package/bundled-skills/flutter-apply-architecture-best-practices/SKILL.md +162 -0
- package/bundled-skills/flutter-build-responsive-layout/SKILL.md +139 -0
- package/bundled-skills/flutter-fix-layout-issues/SKILL.md +130 -0
- package/bundled-skills/flutter-implement-json-serialization/SKILL.md +153 -0
- package/bundled-skills/flutter-setup-declarative-routing/SKILL.md +255 -0
- package/bundled-skills/flutter-setup-localization/SKILL.md +210 -0
- package/bundled-skills/flutter-use-http-package/SKILL.md +174 -0
- package/bundled-skills/gate/SKILL.md +13 -0
- package/bundled-skills/graph-colorize/SKILL.md +180 -0
- package/bundled-skills/hermes-history-ingest/SKILL.md +239 -0
- package/bundled-skills/hermes-history-ingest/references/hermes-data-format.md +131 -0
- package/bundled-skills/humanizer/SKILL.md +374 -0
- package/bundled-skills/impeccable/SKILL.md +89 -0
- package/bundled-skills/impeccable/reference/adapt.md +312 -0
- package/bundled-skills/impeccable/reference/adapt.native.md +58 -0
- package/bundled-skills/impeccable/reference/android.md +46 -0
- package/bundled-skills/impeccable/reference/animate.md +89 -0
- package/bundled-skills/impeccable/reference/audit.md +136 -0
- package/bundled-skills/impeccable/reference/audit.native.md +139 -0
- package/bundled-skills/impeccable/reference/bolder.md +33 -0
- package/bundled-skills/impeccable/reference/clarify.md +94 -0
- package/bundled-skills/impeccable/reference/colorize.md +86 -0
- package/bundled-skills/impeccable/reference/craft-floor.md +44 -0
- package/bundled-skills/impeccable/reference/craft.md +5 -0
- package/bundled-skills/impeccable/reference/critique.md +806 -0
- package/bundled-skills/impeccable/reference/degraded/asset-producer.md +37 -0
- package/bundled-skills/impeccable/reference/degraded/documenter.md +24 -0
- package/bundled-skills/impeccable/reference/degraded/finish-reviewer.md +38 -0
- package/bundled-skills/impeccable/reference/degraded/manual-edit-applier.md +92 -0
- package/bundled-skills/impeccable/reference/delight.md +70 -0
- package/bundled-skills/impeccable/reference/distill.md +111 -0
- package/bundled-skills/impeccable/reference/doctor.md +54 -0
- package/bundled-skills/impeccable/reference/document.md +416 -0
- package/bundled-skills/impeccable/reference/extract.md +69 -0
- package/bundled-skills/impeccable/reference/harden.md +336 -0
- package/bundled-skills/impeccable/reference/hooks.md +111 -0
- package/bundled-skills/impeccable/reference/init.md +131 -0
- package/bundled-skills/impeccable/reference/ios.md +51 -0
- package/bundled-skills/impeccable/reference/layout.md +84 -0
- package/bundled-skills/impeccable/reference/live-setup.md +104 -0
- package/bundled-skills/impeccable/reference/live.md +325 -0
- package/bundled-skills/impeccable/reference/new-work.md +145 -0
- package/bundled-skills/impeccable/reference/onboard.md +234 -0
- package/bundled-skills/impeccable/reference/operate.md +61 -0
- package/bundled-skills/impeccable/reference/optimize.md +258 -0
- package/bundled-skills/impeccable/reference/overdrive.md +127 -0
- package/bundled-skills/impeccable/reference/polish.md +105 -0
- package/bundled-skills/impeccable/reference/quieter.md +99 -0
- package/bundled-skills/impeccable/reference/routing.md +24 -0
- package/bundled-skills/impeccable/reference/shape.md +59 -0
- package/bundled-skills/impeccable/reference/typeset.md +80 -0
- package/bundled-skills/impeccable/reference/visualize.md +46 -0
- package/bundled-skills/impeccable/scripts/VERSION +1 -0
- package/bundled-skills/impeccable/scripts/bin/windows-x64/impeccable.exe +0 -0
- package/bundled-skills/impeccable/scripts/command-metadata.json +94 -0
- package/bundled-skills/impeccable/scripts/data/font-index-failures.json +121 -0
- package/bundled-skills/impeccable/scripts/data/font-index.json +1 -0
- package/bundled-skills/impeccable/scripts/impeccable +206 -0
- package/bundled-skills/impeccable/scripts/impeccable.cmd +214 -0
- package/bundled-skills/impeccable/scripts/live-browser-dom.js +167 -0
- package/bundled-skills/impeccable/scripts/live-browser-ignores.js +242 -0
- package/bundled-skills/impeccable/scripts/live-browser-session.js +144 -0
- package/bundled-skills/impeccable/scripts/live-browser.js +12990 -0
- package/bundled-skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/bundled-skills/impl-validator/SKILL.md +118 -0
- package/bundled-skills/ios-simulator/SKILL.md +32 -0
- package/bundled-skills/json-canvas/SKILL.md +244 -0
- package/bundled-skills/json-canvas/references/EXAMPLES.md +329 -0
- package/bundled-skills/launch/SKILL.md +381 -0
- package/bundled-skills/launch/evals/evals.json +106 -0
- package/bundled-skills/llm-wiki/SKILL.md +661 -0
- package/bundled-skills/llm-wiki/references/WRITING.md +28 -0
- package/bundled-skills/llm-wiki/references/karpathy-pattern.md +45 -0
- package/bundled-skills/marketing-plan/SKILL.md +300 -0
- package/bundled-skills/marketing-plan/evals/evals.json +112 -0
- package/bundled-skills/marketing-plan/references/aarrr-framework.md +180 -0
- package/bundled-skills/marketing-plan/references/budget-planning.md +168 -0
- package/bundled-skills/marketing-plan/references/client-types.md +373 -0
- package/bundled-skills/marketing-plan/references/current-state-rubric.md +255 -0
- package/bundled-skills/marketing-plan/references/example-quietude.md +972 -0
- package/bundled-skills/marketing-plan/references/funding-stage-unlocks.md +230 -0
- package/bundled-skills/marketing-plan/references/growth-patterns.md +190 -0
- package/bundled-skills/marketing-plan/references/idea-cross-reference.md +265 -0
- package/bundled-skills/marketing-plan/references/measurement-framework.md +213 -0
- package/bundled-skills/marketing-plan/references/methodology.md +363 -0
- package/bundled-skills/marketing-plan/references/ops-stack-mapping.md +197 -0
- package/bundled-skills/marketing-plan/references/plan-template.md +494 -0
- package/bundled-skills/marketing-plan/references/team-and-agency-model.md +278 -0
- package/bundled-skills/marketing-psychology/SKILL.md +455 -0
- package/bundled-skills/marketing-psychology/evals/evals.json +88 -0
- package/bundled-skills/mcp-server-builder/README.md +50 -0
- package/bundled-skills/mcp-server-builder/SKILL.md +100 -0
- package/bundled-skills/mcp-server-builder/references/openapi-extraction-guide.md +34 -0
- package/bundled-skills/mcp-server-builder/references/production-hardening-guide.md +78 -0
- package/bundled-skills/mcp-server-builder/references/python-server-template.md +22 -0
- package/bundled-skills/mcp-server-builder/references/typescript-server-template.md +19 -0
- package/bundled-skills/mcp-server-builder/references/validation-checklist.md +30 -0
- package/bundled-skills/mcp-server-builder/scripts/mcp_validator.py +186 -0
- package/bundled-skills/mcp-server-builder/scripts/openapi_to_mcp.py +284 -0
- package/bundled-skills/memory/SKILL.md +10 -0
- package/bundled-skills/memory-bridge/SKILL.md +163 -0
- package/bundled-skills/memory-save/SKILL.md +88 -0
- package/bundled-skills/migrate/SKILL.md +135 -0
- package/bundled-skills/migrate/cypress-mapping.md +79 -0
- package/bundled-skills/migrate/selenium-mapping.md +94 -0
- package/bundled-skills/novahiz-analyse/SKILL.md +74 -0
- package/bundled-skills/novahiz-audit/SKILL.md +75 -0
- package/bundled-skills/novahiz-clarify/SKILL.md +94 -0
- package/bundled-skills/novahiz-converge/SKILL.md +76 -0
- package/bundled-skills/novahiz-gate/SKILL.md +82 -0
- package/bundled-skills/novahiz-implement/SKILL.md +80 -0
- package/bundled-skills/novahiz-memory/SKILL.md +58 -0
- package/bundled-skills/novahiz-plan/SKILL.md +100 -0
- package/bundled-skills/novahiz-planner/SKILL.md +104 -0
- package/bundled-skills/novahiz-task/SKILL.md +105 -0
- package/bundled-skills/obsidian-bases/SKILL.md +499 -0
- package/bundled-skills/obsidian-bases/references/FUNCTIONS_REFERENCE.md +173 -0
- package/bundled-skills/obsidian-cli/SKILL.md +106 -0
- package/bundled-skills/obsidian-layout-adjustment/SKILL.md +226 -0
- package/bundled-skills/obsidian-layout-adjustment/evals/evals.json +53 -0
- package/bundled-skills/obsidian-layout-adjustment/references/workflow-reference.md +212 -0
- package/bundled-skills/obsidian-markdown/SKILL.md +196 -0
- package/bundled-skills/obsidian-markdown/references/CALLOUTS.md +58 -0
- package/bundled-skills/obsidian-markdown/references/EMBEDS.md +70 -0
- package/bundled-skills/obsidian-markdown/references/PROPERTIES.md +61 -0
- package/bundled-skills/offers/SKILL.md +155 -0
- package/bundled-skills/offers/evals/evals.json +21 -0
- package/bundled-skills/offers/references/bonus-stacking.md +150 -0
- package/bundled-skills/offers/references/examples.md +215 -0
- package/bundled-skills/offers/references/guarantee-design.md +172 -0
- package/bundled-skills/offers/references/offer-anatomy.md +203 -0
- package/bundled-skills/offers/references/offer-formats.md +240 -0
- package/bundled-skills/offers/references/saas-offers.md +116 -0
- package/bundled-skills/offers/references/scarcity-urgency.md +175 -0
- package/bundled-skills/offers/references/value-equation.md +134 -0
- package/bundled-skills/onboarding/SKILL.md +261 -0
- package/bundled-skills/onboarding/evals/evals.json +108 -0
- package/bundled-skills/onboarding/references/activation-models.md +57 -0
- package/bundled-skills/onboarding/references/experiments.md +258 -0
- package/bundled-skills/onboarding/references/minimum-path-to-value.md +49 -0
- package/bundled-skills/openclaw-history-ingest/SKILL.md +257 -0
- package/bundled-skills/openclaw-history-ingest/references/openclaw-data-format.md +154 -0
- package/bundled-skills/orchestration/SKILL.md +69 -0
- package/bundled-skills/pi-history-ingest/SKILL.md +312 -0
- package/bundled-skills/playwright-agent/SKILL.md +142 -0
- package/bundled-skills/postgresql-optimization/SKILL.md +179 -0
- package/bundled-skills/pricing/SKILL.md +295 -0
- package/bundled-skills/pricing/evals/evals.json +119 -0
- package/bundled-skills/pricing/references/pricing-models.md +66 -0
- package/bundled-skills/pricing/references/pricing-page-teardown.md +85 -0
- package/bundled-skills/pricing/references/research-methods.md +152 -0
- package/bundled-skills/pricing/references/tier-structure.md +232 -0
- package/bundled-skills/product-marketing/SKILL.md +255 -0
- package/bundled-skills/product-marketing/evals/evals.json +98 -0
- package/bundled-skills/prospecting/SKILL.md +262 -0
- package/bundled-skills/prospecting/evals/evals.json +122 -0
- package/bundled-skills/prospecting/references/b2b-prospecting.md +106 -0
- package/bundled-skills/prospecting/references/compliance.md +123 -0
- package/bundled-skills/prospecting/references/data-sources.md +287 -0
- package/bundled-skills/prospecting/references/demand-signals.md +129 -0
- package/bundled-skills/prospecting/references/local-prospecting.md +165 -0
- package/bundled-skills/prospecting/references/saas-prospecting.md +123 -0
- package/bundled-skills/refactor-safely/SKILL.md +29 -0
- package/bundled-skills/review-changes/SKILL.md +30 -0
- package/bundled-skills/review-delta/SKILL.md +46 -0
- package/bundled-skills/review-pr/SKILL.md +66 -0
- package/bundled-skills/sales-enablement/SKILL.md +359 -0
- package/bundled-skills/sales-enablement/evals/evals.json +91 -0
- package/bundled-skills/sales-enablement/references/deck-frameworks.md +263 -0
- package/bundled-skills/sales-enablement/references/demo-scripts.md +355 -0
- package/bundled-skills/sales-enablement/references/objection-library.md +270 -0
- package/bundled-skills/sales-enablement/references/one-pager-templates.md +208 -0
- package/bundled-skills/security-guidance/SKILL.md +161 -0
- package/bundled-skills/security-guidance/references/pretooluse_hook_canon.md +141 -0
- package/bundled-skills/senior-architect/SKILL.md +343 -0
- package/bundled-skills/senior-architect/references/architecture_patterns.md +470 -0
- package/bundled-skills/senior-architect/references/system_design_workflows.md +536 -0
- package/bundled-skills/senior-architect/references/tech_decision_guide.md +412 -0
- package/bundled-skills/senior-architect/scripts/architecture_diagram_generator.py +660 -0
- package/bundled-skills/senior-architect/scripts/dependency_analyzer.py +615 -0
- package/bundled-skills/senior-architect/scripts/project_architect.py +749 -0
- package/bundled-skills/senior-backend/SKILL.md +467 -0
- package/bundled-skills/senior-backend/profiles/django-monolith.json +57 -0
- package/bundled-skills/senior-backend/profiles/fastapi-python.json +58 -0
- package/bundled-skills/senior-backend/profiles/go-or-rust-microservice.json +62 -0
- package/bundled-skills/senior-backend/profiles/node-express.json +57 -0
- package/bundled-skills/senior-backend/references/api_design_patterns.md +530 -0
- package/bundled-skills/senior-backend/references/backend_security_practices.md +1075 -0
- package/bundled-skills/senior-backend/references/composition_map.md +58 -0
- package/bundled-skills/senior-backend/references/database_optimization_guide.md +593 -0
- package/bundled-skills/senior-backend/references/forcing_questions.md +100 -0
- package/bundled-skills/senior-backend/scripts/api_load_tester.py +607 -0
- package/bundled-skills/senior-backend/scripts/api_scaffolder.py +645 -0
- package/bundled-skills/senior-backend/scripts/backend_decision_engine.py +397 -0
- package/bundled-skills/senior-backend/scripts/database_migration_tool.py +858 -0
- package/bundled-skills/seo-audit/SKILL.md +499 -0
- package/bundled-skills/seo-audit/evals/evals.json +136 -0
- package/bundled-skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/bundled-skills/seo-audit/references/international-seo.md +230 -0
- package/bundled-skills/session-brain/SKILL.md +101 -0
- package/bundled-skills/session-search/SKILL.md +97 -0
- package/bundled-skills/skill-creator/LICENSE.txt +202 -0
- package/bundled-skills/skill-creator/SKILL.md +485 -0
- package/bundled-skills/skill-creator/agents/analyzer.md +274 -0
- package/bundled-skills/skill-creator/agents/comparator.md +202 -0
- package/bundled-skills/skill-creator/agents/grader.md +223 -0
- package/bundled-skills/skill-creator/assets/eval_review.html +146 -0
- package/bundled-skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/bundled-skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/bundled-skills/skill-creator/references/schemas.md +430 -0
- package/bundled-skills/skill-creator/scripts/__init__.py +0 -0
- package/bundled-skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/bundled-skills/skill-creator/scripts/generate_report.py +326 -0
- package/bundled-skills/skill-creator/scripts/improve_description.py +247 -0
- package/bundled-skills/skill-creator/scripts/package_skill.py +136 -0
- package/bundled-skills/skill-creator/scripts/quick_validate.py +103 -0
- package/bundled-skills/skill-creator/scripts/run_eval.py +310 -0
- package/bundled-skills/skill-creator/scripts/run_loop.py +328 -0
- package/bundled-skills/skill-creator/scripts/utils.py +47 -0
- package/bundled-skills/social/SKILL.md +413 -0
- package/bundled-skills/social/evals/evals.json +107 -0
- package/bundled-skills/social/references/carousel-frameworks.md +141 -0
- package/bundled-skills/social/references/listening-sources-template.md +123 -0
- package/bundled-skills/social/references/listening.md +283 -0
- package/bundled-skills/social/references/platform-limits.md +110 -0
- package/bundled-skills/social/references/platforms.md +170 -0
- package/bundled-skills/social/references/post-templates.md +179 -0
- package/bundled-skills/social/references/reverse-engineering.md +195 -0
- package/bundled-skills/social/references/short-form-video.md +237 -0
- package/bundled-skills/spec-driven-workflow/SKILL.md +333 -0
- package/bundled-skills/spec-driven-workflow/references/acceptance_criteria_patterns.md +497 -0
- package/bundled-skills/spec-driven-workflow/references/bounded_autonomy_rules.md +273 -0
- package/bundled-skills/spec-driven-workflow/references/spec_format_guide.md +531 -0
- package/bundled-skills/spec-driven-workflow/scripts/spec_generator.py +338 -0
- package/bundled-skills/spec-driven-workflow/scripts/spec_validator.py +461 -0
- package/bundled-skills/spec-driven-workflow/scripts/test_extractor.py +431 -0
- package/bundled-skills/supabase/CHANGELOG.md +78 -0
- package/bundled-skills/supabase/SKILL.md +149 -0
- package/bundled-skills/supabase/assets/feedback-issue-template.md +17 -0
- package/bundled-skills/supabase/references/skill-feedback.md +17 -0
- package/bundled-skills/supabase-postgres-best-practices/CHANGELOG.md +73 -0
- package/bundled-skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/bundled-skills/supabase-postgres-best-practices/references/_contributing.md +170 -0
- package/bundled-skills/supabase-postgres-best-practices/references/_sections.md +39 -0
- package/bundled-skills/supabase-postgres-best-practices/references/_template.md +34 -0
- package/bundled-skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/bundled-skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/bundled-skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/bundled-skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
- package/bundled-skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
- package/bundled-skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/bundled-skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/bundled-skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/bundled-skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
- package/bundled-skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
- package/bundled-skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
- package/bundled-skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/bundled-skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/bundled-skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/bundled-skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/bundled-skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/bundled-skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/bundled-skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/bundled-skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/bundled-skills/supabase-postgres-best-practices/references/query-index-types.md +48 -0
- package/bundled-skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/bundled-skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
- package/bundled-skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/bundled-skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
- package/bundled-skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
- package/bundled-skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -0
- package/bundled-skills/tag-taxonomy/SKILL.md +218 -0
- package/bundled-skills/typescript-expert/SKILL.md +431 -0
- package/bundled-skills/typescript-expert/references/tsconfig-strict.json +45 -0
- package/bundled-skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/bundled-skills/typescript-expert/references/utility-types.ts +335 -0
- package/bundled-skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/bundled-skills/ui-design-system/SKILL.md +379 -0
- package/bundled-skills/ui-design-system/assets/design_system_doc_template.md +180 -0
- package/bundled-skills/ui-design-system/references/component-architecture.md +396 -0
- package/bundled-skills/ui-design-system/references/developer-handoff.md +509 -0
- package/bundled-skills/ui-design-system/references/responsive-calculations.md +390 -0
- package/bundled-skills/ui-design-system/references/token-generation.md +324 -0
- package/bundled-skills/ui-design-system/scripts/design_token_generator.py +590 -0
- package/bundled-skills/vault-skill-factory/SKILL.md +143 -0
- package/bundled-skills/video/SKILL.md +346 -0
- package/bundled-skills/video/evals/evals.json +103 -0
- package/bundled-skills/video/references/ai-video-prompting.md +175 -0
- package/bundled-skills/video/references/edit-anatomy.md +84 -0
- package/bundled-skills/wiki-agent/SKILL.md +322 -0
- package/bundled-skills/wiki-capture/SKILL.md +337 -0
- package/bundled-skills/wiki-capture/references/RAW-FORMAT.md +115 -0
- package/bundled-skills/wiki-context-pack/SKILL.md +89 -0
- package/bundled-skills/wiki-dashboard/SKILL.md +472 -0
- package/bundled-skills/wiki-dedup/SKILL.md +320 -0
- package/bundled-skills/wiki-digest/SKILL.md +243 -0
- package/bundled-skills/wiki-export/SKILL.md +445 -0
- package/bundled-skills/wiki-history-ingest/SKILL.md +61 -0
- package/bundled-skills/wiki-import/SKILL.md +276 -0
- package/bundled-skills/wiki-ingest/SKILL.md +563 -0
- package/bundled-skills/wiki-ingest/references/ingest-prompts.md +54 -0
- package/bundled-skills/wiki-ingest/references/pageindex.md +72 -0
- package/bundled-skills/wiki-ingest/references/url-sources.md +295 -0
- package/bundled-skills/wiki-lint/SKILL.md +643 -0
- package/bundled-skills/wiki-narrate/SKILL.md +120 -0
- package/bundled-skills/wiki-narrate/references/voices.md +29 -0
- package/bundled-skills/wiki-query/SKILL.md +307 -0
- package/bundled-skills/wiki-rebuild/SKILL.md +212 -0
- package/bundled-skills/wiki-research/SKILL.md +319 -0
- package/bundled-skills/wiki-setup/SKILL.md +359 -0
- package/bundled-skills/wiki-stage-commit/SKILL.md +164 -0
- package/bundled-skills/wiki-status/SKILL.md +556 -0
- package/bundled-skills/wiki-switch/SKILL.md +115 -0
- package/bundled-skills/wiki-synthesize/SKILL.md +212 -0
- package/bundled-skills/wiki-update/SKILL.md +271 -0
- package/bundled-skills/write-a-skill/SKILL.md +141 -0
- package/bundled-skills/write-a-skill/references/companion_tooling.md +67 -0
- package/bundled-skills/write-a-skill/references/description_design_patterns.md +139 -0
- package/bundled-skills/write-a-skill/references/progressive_disclosure_principles.md +89 -0
- package/bundled-skills/write-a-skill/references/quality_gates_for_skills.md +158 -0
- package/bundled-skills/write-a-skill/scripts/skill_description_validator.py +255 -0
- package/bundled-skills/write-a-skill/scripts/skill_review_checklist_runner.py +268 -0
- package/bundled-skills/write-a-skill/scripts/skill_structure_validator.py +277 -0
- package/bundled-skills/zero-hallucination-coder/SKILL.md +271 -0
- package/catalog/categories.json +1030 -0
- package/catalog/overrides.json +525 -0
- package/catalog/providers.json +145 -0
- package/catalog/rules.json +112 -0
- package/docs/ARCHITECTURE.md +82 -0
- package/docs/CONSTITUTION.md +60 -0
- package/docs/EXECUTION.md +79 -0
- package/docs/HARNESSES.md +38 -0
- package/docs/INSTALL.md +123 -0
- package/docs/PROVIDERS.md +128 -0
- package/docs/ROADMAPS.md +74 -0
- package/docs/RULES.md +85 -0
- package/docs/TOKENS.md +48 -0
- package/install/bootstrap.mjs +273 -0
- package/install/install.mjs +466 -0
- package/install/install.ps1 +3 -0
- package/install/install.sh +4 -0
- package/install/lib.mjs +198 -0
- package/install/prompt.mjs +16 -0
- package/install/uninstall.mjs +109 -0
- package/mcp/novahiz-tools/README.md +26 -0
- package/mcp/novahiz-tools/index.mjs +452 -0
- package/novahiz.config.example.json +39 -0
- package/package.json +76 -0
- package/skills/a11y-audit/SKILL.md +211 -0
- package/skills/a11y-audit/assets/sample-component.tsx +51 -0
- package/skills/a11y-audit/expected_outputs/sample-contrast-output.txt +39 -0
- package/skills/a11y-audit/expected_outputs/sample-scan-output.json +34 -0
- package/skills/a11y-audit/expected_outputs/sample-scan-report.md +63 -0
- package/skills/a11y-audit/references/aria-patterns.md +223 -0
- package/skills/a11y-audit/references/audit-report-template.md +46 -0
- package/skills/a11y-audit/references/ci-cd-integration.md +127 -0
- package/skills/a11y-audit/references/color-contrast-guide.md +83 -0
- package/skills/a11y-audit/references/examples-by-framework.md +312 -0
- package/skills/a11y-audit/references/framework-a11y-patterns.md +661 -0
- package/skills/a11y-audit/references/testing-checklist.md +41 -0
- package/skills/a11y-audit/references/wcag-22-new-criteria.md +79 -0
- package/skills/a11y-audit/references/wcag-quick-ref.md +113 -0
- package/skills/a11y-audit/scripts/a11y_scanner.py +684 -0
- package/skills/a11y-audit/scripts/contrast_checker.py +504 -0
- package/skills/adversarial-reviewer/SKILL.md +247 -0
- package/skills/ai-security/SKILL.md +364 -0
- package/skills/ai-security/references/atlas-coverage.md +150 -0
- package/skills/ai-security/scripts/ai_threat_scanner.py +564 -0
- package/skills/anti-AI-design/SKILL.md +189 -0
- package/skills/anti-pattern-detector/SKILL.md +185 -0
- package/skills/anti-pattern-detector/references/async-network-patterns.md +581 -0
- package/skills/anti-pattern-detector/references/build-deploy-patterns.md +554 -0
- package/skills/anti-pattern-detector/references/cache-patterns.md +446 -0
- package/skills/anti-pattern-detector/references/cloud-infra-patterns.md +538 -0
- package/skills/anti-pattern-detector/references/concurrency-patterns.md +558 -0
- package/skills/anti-pattern-detector/references/language-specific-patterns.md +740 -0
- package/skills/anti-pattern-detector/references/monitoring-patterns.md +456 -0
- package/skills/api-design-reviewer/SKILL.md +433 -0
- package/skills/api-design-reviewer/references/api_antipatterns.md +680 -0
- package/skills/api-design-reviewer/references/rest_design_rules.md +487 -0
- package/skills/api-design-reviewer/scripts/api_linter.py +956 -0
- package/skills/api-design-reviewer/scripts/api_scorecard.py +1661 -0
- package/skills/api-design-reviewer/scripts/breaking_change_detector.py +1102 -0
- package/skills/apple-hig-expert/SKILL.md +108 -0
- package/skills/apple-hig-expert/references/accessibility.md +55 -0
- package/skills/apple-hig-expert/references/platform-specifics.md +48 -0
- package/skills/apple-hig-expert/references/visual-design.md +69 -0
- package/skills/apple-hig-expert/scripts/hig_checker.py +97 -0
- package/skills/apple-hig-expert/templates/hig-audit-template.md +83 -0
- package/skills/clean-code/SKILL.md +99 -0
- package/skills/code-reviewer/README.md +92 -0
- package/skills/code-reviewer/SKILL.md +183 -0
- package/skills/code-reviewer/assets/sample_c_clean.c +71 -0
- package/skills/code-reviewer/assets/sample_c_smells.c +66 -0
- package/skills/code-reviewer/assets/sample_csharp_clean.cs +100 -0
- package/skills/code-reviewer/assets/sample_csharp_smells.cs +78 -0
- package/skills/code-reviewer/assets/sample_java_clean.java +55 -0
- package/skills/code-reviewer/assets/sample_java_smells.java +56 -0
- package/skills/code-reviewer/expected_outputs/sample_c_clean_quality.json +65 -0
- package/skills/code-reviewer/expected_outputs/sample_c_smells_quality.json +155 -0
- package/skills/code-reviewer/expected_outputs/sample_csharp_clean_quality.json +135 -0
- package/skills/code-reviewer/expected_outputs/sample_csharp_smells_quality.json +143 -0
- package/skills/code-reviewer/expected_outputs/sample_java_clean_quality.json +53 -0
- package/skills/code-reviewer/expected_outputs/sample_java_smells_quality.json +83 -0
- package/skills/code-reviewer/languages/c.md +103 -0
- package/skills/code-reviewer/languages/cpp.md +103 -0
- package/skills/code-reviewer/languages/csharp.md +97 -0
- package/skills/code-reviewer/languages/dart.md +108 -0
- package/skills/code-reviewer/languages/go.md +92 -0
- package/skills/code-reviewer/languages/java.md +103 -0
- package/skills/code-reviewer/languages/kotlin.md +88 -0
- package/skills/code-reviewer/languages/php.md +109 -0
- package/skills/code-reviewer/languages/python.md +94 -0
- package/skills/code-reviewer/languages/ruby.md +105 -0
- package/skills/code-reviewer/languages/rust.md +99 -0
- package/skills/code-reviewer/languages/swift.md +88 -0
- package/skills/code-reviewer/languages/typescript.md +97 -0
- package/skills/code-reviewer/rules/universal.md +49 -0
- package/skills/code-reviewer/scripts/code_quality_checker.py +1020 -0
- package/skills/code-reviewer/scripts/pr_analyzer.py +535 -0
- package/skills/code-reviewer/scripts/review_report_generator.py +505 -0
- package/skills/code-understand/SKILL.md +90 -0
- package/skills/database-designer/README.md +388 -0
- package/skills/database-designer/SKILL.md +314 -0
- package/skills/database-designer/assets/sample_query_patterns.json +375 -0
- package/skills/database-designer/assets/sample_schema.json +372 -0
- package/skills/database-designer/assets/sample_schema.sql +207 -0
- package/skills/database-designer/expected_outputs/index_optimization_sample.txt +60 -0
- package/skills/database-designer/expected_outputs/migration_sample.txt +124 -0
- package/skills/database-designer/expected_outputs/schema_analysis_sample.txt +222 -0
- package/skills/database-designer/index_optimizer.py +926 -0
- package/skills/database-designer/migration_generator.py +1199 -0
- package/skills/database-designer/references/database-design-reference.md +476 -0
- package/skills/database-designer/references/database_selection_decision_tree.md +373 -0
- package/skills/database-designer/references/index_strategy_patterns.md +424 -0
- package/skills/database-designer/references/normalization_guide.md +354 -0
- package/skills/database-designer/schema_analyzer.py +982 -0
- package/skills/defuddle/SKILL.md +41 -0
- package/skills/dependency-auditor/README.md +524 -0
- package/skills/dependency-auditor/SKILL.md +85 -0
- package/skills/dependency-auditor/assets/sample_go.mod +53 -0
- package/skills/dependency-auditor/assets/sample_package.json +72 -0
- package/skills/dependency-auditor/assets/sample_requirements.txt +71 -0
- package/skills/dependency-auditor/expected_outputs/sample_license_report.txt +37 -0
- package/skills/dependency-auditor/expected_outputs/sample_upgrade_plan.txt +59 -0
- package/skills/dependency-auditor/expected_outputs/sample_vulnerability_report.json +71 -0
- package/skills/dependency-auditor/references/dependency_management_best_practices.md +643 -0
- package/skills/dependency-auditor/references/license_compatibility_matrix.md +238 -0
- package/skills/dependency-auditor/references/vulnerability_assessment_guide.md +461 -0
- package/skills/dependency-auditor/scripts/dep_scanner.py +794 -0
- package/skills/dependency-auditor/scripts/license_checker.py +996 -0
- package/skills/dependency-auditor/scripts/upgrade_planner.py +1029 -0
- package/skills/dependency-auditor/test-inventory.json +421 -0
- package/skills/dependency-auditor/test-project/package.json +72 -0
- package/skills/design-taste-frontend/SKILL.md +247 -0
- package/skills/engineering-standards/SKILL.md +736 -0
- package/skills/env-secrets-manager/SKILL.md +260 -0
- package/skills/env-secrets-manager/references/secret-patterns.md +41 -0
- package/skills/env-secrets-manager/references/validation-detection-rotation.md +358 -0
- package/skills/env-secrets-manager/scripts/env_auditor.py +145 -0
- package/skills/fix/SKILL.md +113 -0
- package/skills/fix/flaky-taxonomy.md +134 -0
- package/skills/gate/SKILL.md +13 -0
- package/skills/humanizer/SKILL.md +374 -0
- package/skills/mcp-server-builder/README.md +50 -0
- package/skills/mcp-server-builder/SKILL.md +100 -0
- package/skills/mcp-server-builder/references/openapi-extraction-guide.md +34 -0
- package/skills/mcp-server-builder/references/production-hardening-guide.md +78 -0
- package/skills/mcp-server-builder/references/python-server-template.md +22 -0
- package/skills/mcp-server-builder/references/typescript-server-template.md +19 -0
- package/skills/mcp-server-builder/references/validation-checklist.md +30 -0
- package/skills/mcp-server-builder/scripts/mcp_validator.py +186 -0
- package/skills/mcp-server-builder/scripts/openapi_to_mcp.py +284 -0
- package/skills/memory/SKILL.md +10 -0
- package/skills/migrate/SKILL.md +135 -0
- package/skills/migrate/cypress-mapping.md +79 -0
- package/skills/migrate/selenium-mapping.md +94 -0
- package/skills/novahiz-analyse/SKILL.md +74 -0
- package/skills/novahiz-audit/SKILL.md +75 -0
- package/skills/novahiz-clarify/SKILL.md +94 -0
- package/skills/novahiz-converge/SKILL.md +76 -0
- package/skills/novahiz-gate/SKILL.md +82 -0
- package/skills/novahiz-implement/SKILL.md +80 -0
- package/skills/novahiz-memory/SKILL.md +58 -0
- package/skills/novahiz-plan/SKILL.md +99 -0
- package/skills/novahiz-planner/SKILL.md +104 -0
- package/skills/novahiz-task/SKILL.md +105 -0
- package/skills/playwright-agent/SKILL.md +142 -0
- package/skills/postgresql-optimization/SKILL.md +179 -0
- package/skills/review-changes/SKILL.md +30 -0
- package/skills/security-guidance/SKILL.md +160 -0
- package/skills/security-guidance/references/pretooluse_hook_canon.md +141 -0
- package/skills/senior-architect/SKILL.md +343 -0
- package/skills/senior-architect/references/architecture_patterns.md +470 -0
- package/skills/senior-architect/references/system_design_workflows.md +536 -0
- package/skills/senior-architect/references/tech_decision_guide.md +412 -0
- package/skills/senior-architect/scripts/architecture_diagram_generator.py +660 -0
- package/skills/senior-architect/scripts/dependency_analyzer.py +615 -0
- package/skills/senior-architect/scripts/project_architect.py +749 -0
- package/skills/senior-backend/SKILL.md +467 -0
- package/skills/senior-backend/profiles/django-monolith.json +57 -0
- package/skills/senior-backend/profiles/fastapi-python.json +58 -0
- package/skills/senior-backend/profiles/go-or-rust-microservice.json +62 -0
- package/skills/senior-backend/profiles/node-express.json +57 -0
- package/skills/senior-backend/references/api_design_patterns.md +530 -0
- package/skills/senior-backend/references/backend_security_practices.md +1075 -0
- package/skills/senior-backend/references/composition_map.md +58 -0
- package/skills/senior-backend/references/database_optimization_guide.md +593 -0
- package/skills/senior-backend/references/forcing_questions.md +100 -0
- package/skills/senior-backend/scripts/api_load_tester.py +607 -0
- package/skills/senior-backend/scripts/api_scaffolder.py +645 -0
- package/skills/senior-backend/scripts/backend_decision_engine.py +397 -0
- package/skills/senior-backend/scripts/database_migration_tool.py +858 -0
- package/skills/senior-secops/SKILL.md +505 -0
- package/skills/senior-secops/references/compliance_requirements.md +792 -0
- package/skills/senior-secops/references/security_standards.md +718 -0
- package/skills/senior-secops/references/vulnerability_management_guide.md +487 -0
- package/skills/senior-secops/scripts/compliance_checker.py +1107 -0
- package/skills/senior-secops/scripts/security_scanner.py +471 -0
- package/skills/senior-secops/scripts/vulnerability_assessor.py +563 -0
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-creator/agents/analyzer.md +274 -0
- package/skills/skill-creator/agents/comparator.md +202 -0
- package/skills/skill-creator/agents/grader.md +223 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/skill-creator/references/schemas.md +430 -0
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/skill-creator/scripts/generate_report.py +326 -0
- package/skills/skill-creator/scripts/improve_description.py +247 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/skill-creator/scripts/run_eval.py +310 -0
- package/skills/skill-creator/scripts/run_loop.py +328 -0
- package/skills/skill-creator/scripts/utils.py +47 -0
- package/skills/spec-driven-workflow/SKILL.md +333 -0
- package/skills/spec-driven-workflow/references/acceptance_criteria_patterns.md +497 -0
- package/skills/spec-driven-workflow/references/bounded_autonomy_rules.md +273 -0
- package/skills/spec-driven-workflow/references/spec_format_guide.md +531 -0
- package/skills/spec-driven-workflow/scripts/spec_generator.py +338 -0
- package/skills/spec-driven-workflow/scripts/spec_validator.py +461 -0
- package/skills/spec-driven-workflow/scripts/test_extractor.py +431 -0
- package/skills/supabase/CHANGELOG.md +78 -0
- package/skills/supabase/SKILL.md +149 -0
- package/skills/supabase/assets/feedback-issue-template.md +17 -0
- package/skills/supabase/references/skill-feedback.md +17 -0
- package/skills/supabase-postgres-best-practices/CHANGELOG.md +73 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +64 -0
- package/skills/supabase-postgres-best-practices/references/_contributing.md +170 -0
- package/skills/supabase-postgres-best-practices/references/_sections.md +39 -0
- package/skills/supabase-postgres-best-practices/references/_template.md +34 -0
- package/skills/supabase-postgres-best-practices/references/advanced-full-text-search.md +55 -0
- package/skills/supabase-postgres-best-practices/references/advanced-jsonb-indexing.md +49 -0
- package/skills/supabase-postgres-best-practices/references/conn-idle-timeout.md +46 -0
- package/skills/supabase-postgres-best-practices/references/conn-limits.md +44 -0
- package/skills/supabase-postgres-best-practices/references/conn-pooling.md +41 -0
- package/skills/supabase-postgres-best-practices/references/conn-prepared-statements.md +46 -0
- package/skills/supabase-postgres-best-practices/references/data-batch-inserts.md +54 -0
- package/skills/supabase-postgres-best-practices/references/data-n-plus-one.md +53 -0
- package/skills/supabase-postgres-best-practices/references/data-pagination.md +50 -0
- package/skills/supabase-postgres-best-practices/references/data-upsert.md +50 -0
- package/skills/supabase-postgres-best-practices/references/lock-advisory.md +56 -0
- package/skills/supabase-postgres-best-practices/references/lock-deadlock-prevention.md +68 -0
- package/skills/supabase-postgres-best-practices/references/lock-short-transactions.md +50 -0
- package/skills/supabase-postgres-best-practices/references/lock-skip-locked.md +54 -0
- package/skills/supabase-postgres-best-practices/references/monitor-explain-analyze.md +45 -0
- package/skills/supabase-postgres-best-practices/references/monitor-pg-stat-statements.md +55 -0
- package/skills/supabase-postgres-best-practices/references/monitor-vacuum-analyze.md +55 -0
- package/skills/supabase-postgres-best-practices/references/query-composite-indexes.md +44 -0
- package/skills/supabase-postgres-best-practices/references/query-covering-indexes.md +40 -0
- package/skills/supabase-postgres-best-practices/references/query-index-types.md +48 -0
- package/skills/supabase-postgres-best-practices/references/query-missing-indexes.md +43 -0
- package/skills/supabase-postgres-best-practices/references/query-partial-indexes.md +45 -0
- package/skills/supabase-postgres-best-practices/references/schema-constraints.md +80 -0
- package/skills/supabase-postgres-best-practices/references/schema-data-types.md +46 -0
- package/skills/supabase-postgres-best-practices/references/schema-foreign-key-indexes.md +59 -0
- package/skills/supabase-postgres-best-practices/references/schema-lowercase-identifiers.md +55 -0
- package/skills/supabase-postgres-best-practices/references/schema-partitioning.md +55 -0
- package/skills/supabase-postgres-best-practices/references/schema-primary-keys.md +61 -0
- package/skills/supabase-postgres-best-practices/references/security-privileges.md +54 -0
- package/skills/supabase-postgres-best-practices/references/security-rls-basics.md +50 -0
- package/skills/supabase-postgres-best-practices/references/security-rls-performance.md +63 -0
- package/skills/typescript-expert/SKILL.md +431 -0
- package/skills/typescript-expert/references/tsconfig-strict.json +45 -0
- package/skills/typescript-expert/references/typescript-cheatsheet.md +383 -0
- package/skills/typescript-expert/references/utility-types.ts +335 -0
- package/skills/typescript-expert/scripts/ts_diagnostic.py +203 -0
- package/skills/ui-design-system/SKILL.md +379 -0
- package/skills/ui-design-system/assets/design_system_doc_template.md +180 -0
- package/skills/ui-design-system/references/component-architecture.md +396 -0
- package/skills/ui-design-system/references/developer-handoff.md +509 -0
- package/skills/ui-design-system/references/responsive-calculations.md +390 -0
- package/skills/ui-design-system/references/token-generation.md +324 -0
- package/skills/ui-design-system/scripts/design_token_generator.py +590 -0
- package/skills/write-a-skill/SKILL.md +141 -0
- package/skills/write-a-skill/references/companion_tooling.md +67 -0
- package/skills/write-a-skill/references/description_design_patterns.md +139 -0
- package/skills/write-a-skill/references/progressive_disclosure_principles.md +89 -0
- package/skills/write-a-skill/references/quality_gates_for_skills.md +158 -0
- package/skills/write-a-skill/scripts/skill_description_validator.py +255 -0
- package/skills/write-a-skill/scripts/skill_review_checklist_runner.py +268 -0
- package/skills/write-a-skill/scripts/skill_structure_validator.py +277 -0
- package/skills/zero-hallucination-coder/SKILL.md +271 -0
- package/src/catalog.ts +266 -0
- package/src/classify.ts +201 -0
- package/src/cli.ts +115 -0
- package/src/commands/clean.ts +114 -0
- package/src/commands/context.ts +130 -0
- package/src/commands/doctor.ts +191 -0
- package/src/commands/gate.ts +192 -0
- package/src/commands/inspect.ts +296 -0
- package/src/commands/report.ts +85 -0
- package/src/commands/task.ts +310 -0
- package/src/commands/tokens.ts +85 -0
- package/src/content.ts +70 -0
- package/src/db.ts +143 -0
- package/src/deps.ts +36 -0
- package/src/exec.ts +85 -0
- package/src/gate.ts +261 -0
- package/src/ledger.ts +468 -0
- package/src/providers.ts +52 -0
- package/src/relevance.ts +73 -0
- package/src/render.ts +107 -0
- package/src/spec.ts +306 -0
- package/src/targets.ts +296 -0
- package/tsconfig.json +15 -0
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""WCAG 2.2 Accessibility Scanner for Frontend Codebases.
|
|
3
|
+
|
|
4
|
+
Scans HTML, JSX, TSX, Vue, Svelte, and CSS files for accessibility
|
|
5
|
+
violations across 10 categories: images, forms, headings, landmarks,
|
|
6
|
+
keyboard, ARIA, color/contrast, links, tables, and media.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
python a11y_scanner.py /path/to/project
|
|
10
|
+
python a11y_scanner.py /path/to/project --json
|
|
11
|
+
python a11y_scanner.py /path/to/project --severity critical,serious
|
|
12
|
+
python a11y_scanner.py /path/to/project --format json
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
import argparse
|
|
16
|
+
import json
|
|
17
|
+
import os
|
|
18
|
+
import re
|
|
19
|
+
import sys
|
|
20
|
+
from dataclasses import dataclass, asdict
|
|
21
|
+
from typing import List, Optional
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@dataclass
|
|
25
|
+
class Finding:
|
|
26
|
+
"""A single accessibility finding."""
|
|
27
|
+
rule_id: str
|
|
28
|
+
category: str
|
|
29
|
+
severity: str
|
|
30
|
+
message: str
|
|
31
|
+
file: str
|
|
32
|
+
line: int
|
|
33
|
+
snippet: str
|
|
34
|
+
wcag_criterion: str
|
|
35
|
+
fix: str
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# ---------------------------------------------------------------------------
|
|
39
|
+
# Rule definitions: each returns a list of Finding from a single file
|
|
40
|
+
# ---------------------------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
VALID_ARIA_ATTRS = {
|
|
43
|
+
"aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy",
|
|
44
|
+
"aria-checked", "aria-colcount", "aria-colindex", "aria-colspan",
|
|
45
|
+
"aria-controls", "aria-current", "aria-describedby", "aria-details",
|
|
46
|
+
"aria-disabled", "aria-dropeffect", "aria-errormessage", "aria-expanded",
|
|
47
|
+
"aria-flowto", "aria-grabbed", "aria-haspopup", "aria-hidden",
|
|
48
|
+
"aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby",
|
|
49
|
+
"aria-level", "aria-live", "aria-modal", "aria-multiline",
|
|
50
|
+
"aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder",
|
|
51
|
+
"aria-posinset", "aria-pressed", "aria-readonly", "aria-relevant",
|
|
52
|
+
"aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex",
|
|
53
|
+
"aria-rowspan", "aria-selected", "aria-setsize", "aria-sort",
|
|
54
|
+
"aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext",
|
|
55
|
+
"aria-braillelabel", "aria-brailleroledescription", "aria-description",
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
BAD_LINK_TEXT = re.compile(
|
|
59
|
+
r">\s*(click here|here|read more|more|link|this)\s*<", re.IGNORECASE
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
TAG_RE = re.compile(r"<(\w[\w-]*)\b([^>]*)(/?)>", re.DOTALL)
|
|
63
|
+
ATTR_RE = re.compile(r"""([\w:.-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+))""")
|
|
64
|
+
ATTR_BOOL_RE = re.compile(r"\b([\w:.-]+)(?=\s|/?>|$)")
|
|
65
|
+
INLINE_COLOR_RE = re.compile(
|
|
66
|
+
r'style\s*=\s*["\'][^"\']*\bcolor\s*:', re.IGNORECASE
|
|
67
|
+
)
|
|
68
|
+
ARIA_ATTR_RE = re.compile(r"\baria-[\w-]+")
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def _attrs(attr_str: str) -> dict:
|
|
72
|
+
"""Parse HTML/JSX attribute string into a dict."""
|
|
73
|
+
result = {}
|
|
74
|
+
for m in ATTR_RE.finditer(attr_str):
|
|
75
|
+
result[m.group(1)] = m.group(2) or m.group(3) or m.group(4) or ""
|
|
76
|
+
# boolean attrs
|
|
77
|
+
cleaned = ATTR_RE.sub("", attr_str)
|
|
78
|
+
for m in ATTR_BOOL_RE.finditer(cleaned):
|
|
79
|
+
name = m.group(1)
|
|
80
|
+
if name not in result and not name.startswith("/"):
|
|
81
|
+
result[name] = True
|
|
82
|
+
return result
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def _snippet(line_text: str) -> str:
|
|
86
|
+
"""Trim a line for display as a code snippet."""
|
|
87
|
+
s = line_text.rstrip("\n\r")
|
|
88
|
+
return s[:120] + "..." if len(s) > 120 else s
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def _find(rule_id, cat, sev, msg, fp, ln, snip, wcag, fix):
|
|
92
|
+
return Finding(rule_id, cat, sev, msg, fp, ln, snip, wcag, fix)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
# ---------- Images ----------------------------------------------------------
|
|
96
|
+
|
|
97
|
+
def check_img_missing_alt(tag, attrs, fp, ln, snip):
|
|
98
|
+
if tag == "img" and "alt" not in attrs:
|
|
99
|
+
return _find("img-alt-missing", "images", "critical",
|
|
100
|
+
"<img> missing alt attribute",
|
|
101
|
+
fp, ln, snip, "1.1.1 Non-text Content",
|
|
102
|
+
"Add alt=\"description\" or alt=\"\" for decorative images.")
|
|
103
|
+
|
|
104
|
+
def check_img_empty_alt_informative(tag, attrs, fp, ln, snip):
|
|
105
|
+
if tag == "img" and attrs.get("alt") == "" and attrs.get("src", ""):
|
|
106
|
+
src = attrs.get("src", "")
|
|
107
|
+
if not any(kw in src.lower() for kw in ("spacer", "border", "decorat", "bg")):
|
|
108
|
+
return _find("img-alt-empty-informative", "images", "serious",
|
|
109
|
+
"<img> has empty alt but may be informative",
|
|
110
|
+
fp, ln, snip, "1.1.1 Non-text Content",
|
|
111
|
+
"If image conveys information, add descriptive alt text.")
|
|
112
|
+
|
|
113
|
+
def check_img_decorative_has_alt(tag, attrs, fp, ln, snip):
|
|
114
|
+
if tag == "img" and attrs.get("role") == "presentation" and attrs.get("alt", "") != "":
|
|
115
|
+
return _find("img-decorative-alt", "images", "moderate",
|
|
116
|
+
"Decorative image (role=presentation) should have alt=\"\"",
|
|
117
|
+
fp, ln, snip, "1.1.1 Non-text Content",
|
|
118
|
+
"Set alt=\"\" on decorative images with role=presentation.")
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# ---------- Forms -----------------------------------------------------------
|
|
122
|
+
|
|
123
|
+
def check_input_missing_label(tag, attrs, fp, ln, snip):
|
|
124
|
+
input_types = {"text", "email", "password", "search", "tel", "url", "number", "date"}
|
|
125
|
+
if tag == "input" and attrs.get("type", "text") in input_types:
|
|
126
|
+
if "aria-label" not in attrs and "aria-labelledby" not in attrs and "id" not in attrs:
|
|
127
|
+
return _find("form-input-no-label", "forms", "critical",
|
|
128
|
+
"<input> has no id, aria-label, or aria-labelledby",
|
|
129
|
+
fp, ln, snip, "1.3.1 Info and Relationships",
|
|
130
|
+
"Add id + <label for>, or aria-label attribute.")
|
|
131
|
+
|
|
132
|
+
def check_input_no_aria_label(tag, attrs, fp, ln, snip):
|
|
133
|
+
if tag in ("select", "textarea"):
|
|
134
|
+
if "aria-label" not in attrs and "aria-labelledby" not in attrs and "id" not in attrs:
|
|
135
|
+
return _find("form-select-no-label", "forms", "critical",
|
|
136
|
+
f"<{tag}> has no accessible name",
|
|
137
|
+
fp, ln, snip, "4.1.2 Name, Role, Value",
|
|
138
|
+
f"Add aria-label or id + <label for> to <{tag}>.")
|
|
139
|
+
|
|
140
|
+
def check_orphan_label(lines, fp):
|
|
141
|
+
"""Labels whose 'for' points to a non-existent id."""
|
|
142
|
+
findings = []
|
|
143
|
+
ids = set()
|
|
144
|
+
label_fors = []
|
|
145
|
+
for ln, line in enumerate(lines, 1):
|
|
146
|
+
for m in re.finditer(r'\bid\s*=\s*["\']([^"\']+)["\']', line):
|
|
147
|
+
ids.add(m.group(1))
|
|
148
|
+
for m in re.finditer(r'<label[^>]*\bfor\s*=\s*["\']([^"\']+)["\']', line):
|
|
149
|
+
label_fors.append((ln, m.group(1), line))
|
|
150
|
+
for ln, for_val, line in label_fors:
|
|
151
|
+
if for_val not in ids:
|
|
152
|
+
findings.append(_find("form-orphan-label", "forms", "serious",
|
|
153
|
+
f"<label for=\"{for_val}\"> references non-existent id",
|
|
154
|
+
fp, ln, _snippet(line), "1.3.1 Info and Relationships",
|
|
155
|
+
f"Ensure an element with id=\"{for_val}\" exists."))
|
|
156
|
+
return findings
|
|
157
|
+
|
|
158
|
+
def check_fieldset_legend(lines, fp):
|
|
159
|
+
"""Radio/checkbox groups without fieldset."""
|
|
160
|
+
findings = []
|
|
161
|
+
radio_lines = []
|
|
162
|
+
has_fieldset = any("fieldset" in l.lower() for l in lines)
|
|
163
|
+
for ln, line in enumerate(lines, 1):
|
|
164
|
+
if re.search(r'type\s*=\s*["\'](?:radio|checkbox)["\']', line, re.I):
|
|
165
|
+
radio_lines.append((ln, line))
|
|
166
|
+
if radio_lines and not has_fieldset:
|
|
167
|
+
ln, line = radio_lines[0]
|
|
168
|
+
findings.append(_find("form-missing-fieldset", "forms", "serious",
|
|
169
|
+
"Radio/checkbox group without <fieldset>/<legend>",
|
|
170
|
+
fp, ln, _snippet(line), "1.3.1 Info and Relationships",
|
|
171
|
+
"Wrap related radio/checkbox inputs in <fieldset> with <legend>."))
|
|
172
|
+
return findings
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
# ---------- Headings --------------------------------------------------------
|
|
176
|
+
|
|
177
|
+
def check_headings(lines, fp):
|
|
178
|
+
findings = []
|
|
179
|
+
heading_levels = []
|
|
180
|
+
for ln, line in enumerate(lines, 1):
|
|
181
|
+
for m in re.finditer(r"<[hH]([1-6])\b", line):
|
|
182
|
+
heading_levels.append((int(m.group(1)), ln, line))
|
|
183
|
+
if not heading_levels:
|
|
184
|
+
return findings
|
|
185
|
+
# Missing h1
|
|
186
|
+
levels_seen = {h[0] for h in heading_levels}
|
|
187
|
+
if 1 not in levels_seen and any(l <= 3 for l in levels_seen):
|
|
188
|
+
findings.append(_find("heading-missing-h1", "headings", "serious",
|
|
189
|
+
"Page has headings but no <h1>",
|
|
190
|
+
fp, heading_levels[0][1], _snippet(heading_levels[0][2]),
|
|
191
|
+
"1.3.1 Info and Relationships",
|
|
192
|
+
"Add a single <h1> as the main page heading."))
|
|
193
|
+
# Multiple h1s
|
|
194
|
+
h1_lines = [(ln, line) for lvl, ln, line in heading_levels if lvl == 1]
|
|
195
|
+
if len(h1_lines) > 1:
|
|
196
|
+
findings.append(_find("heading-multiple-h1", "headings", "moderate",
|
|
197
|
+
f"Page has {len(h1_lines)} <h1> elements",
|
|
198
|
+
fp, h1_lines[1][0], _snippet(h1_lines[1][1]),
|
|
199
|
+
"1.3.1 Info and Relationships",
|
|
200
|
+
"Use a single <h1> per page. Demote others to <h2>+."))
|
|
201
|
+
# Skipped levels
|
|
202
|
+
prev_level = 0
|
|
203
|
+
for lvl, ln, line in heading_levels:
|
|
204
|
+
if prev_level > 0 and lvl > prev_level + 1:
|
|
205
|
+
findings.append(_find("heading-skipped", "headings", "moderate",
|
|
206
|
+
f"Heading level skips from h{prev_level} to h{lvl}",
|
|
207
|
+
fp, ln, _snippet(line),
|
|
208
|
+
"1.3.1 Info and Relationships",
|
|
209
|
+
f"Use <h{prev_level + 1}> instead of <h{lvl}>."))
|
|
210
|
+
prev_level = lvl
|
|
211
|
+
return findings
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
# ---------- Landmarks -------------------------------------------------------
|
|
215
|
+
|
|
216
|
+
def check_landmarks(lines, fp):
|
|
217
|
+
findings = []
|
|
218
|
+
content = "\n".join(lines)
|
|
219
|
+
# Missing main landmark
|
|
220
|
+
if not re.search(r'<main\b|role\s*=\s*["\']main["\']', content, re.I):
|
|
221
|
+
findings.append(_find("landmark-no-main", "landmarks", "serious",
|
|
222
|
+
"Page missing <main> landmark",
|
|
223
|
+
fp, 1, "", "1.3.1 Info and Relationships",
|
|
224
|
+
"Add a <main> element to wrap primary content."))
|
|
225
|
+
# Missing nav
|
|
226
|
+
if not re.search(r'<nav\b|role\s*=\s*["\']navigation["\']', content, re.I):
|
|
227
|
+
findings.append(_find("landmark-no-nav", "landmarks", "moderate",
|
|
228
|
+
"Page missing <nav> landmark",
|
|
229
|
+
fp, 1, "", "1.3.1 Info and Relationships",
|
|
230
|
+
"Add <nav> for primary navigation blocks."))
|
|
231
|
+
# Missing skip link
|
|
232
|
+
if not re.search(r'skip.{0,10}(nav|main|content)', content, re.I):
|
|
233
|
+
findings.append(_find("landmark-no-skip-link", "landmarks", "serious",
|
|
234
|
+
"Page missing skip navigation link",
|
|
235
|
+
fp, 1, "", "2.4.1 Bypass Blocks",
|
|
236
|
+
"Add <a href=\"#main\">Skip to main content</a> as first focusable element."))
|
|
237
|
+
return findings
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
# ---------- Keyboard --------------------------------------------------------
|
|
241
|
+
|
|
242
|
+
def check_tabindex_positive(tag, attrs, fp, ln, snip):
|
|
243
|
+
ti = attrs.get("tabindex", "")
|
|
244
|
+
if isinstance(ti, str) and ti.lstrip("-").isdigit() and int(ti) > 0:
|
|
245
|
+
return _find("keyboard-tabindex-positive", "keyboard", "serious",
|
|
246
|
+
f"tabindex={ti} creates unexpected tab order",
|
|
247
|
+
fp, ln, snip, "2.4.3 Focus Order",
|
|
248
|
+
"Use tabindex=\"0\" or tabindex=\"-1\" instead of positive values.")
|
|
249
|
+
|
|
250
|
+
def check_click_no_keyboard(tag, attrs, fp, ln, snip):
|
|
251
|
+
has_click = "onClick" in attrs or "onclick" in attrs or "@click" in attrs or "on:click" in attrs
|
|
252
|
+
has_key = any(k for k in attrs if "keydown" in k.lower() or "keyup" in k.lower() or "keypress" in k.lower())
|
|
253
|
+
if tag in ("div", "span", "td", "li", "p", "section") and has_click and not has_key:
|
|
254
|
+
if attrs.get("role") not in ("button", "link", "tab", "menuitem"):
|
|
255
|
+
return _find("keyboard-click-no-key", "keyboard", "critical",
|
|
256
|
+
f"<{tag}> has click handler but no keyboard handler",
|
|
257
|
+
fp, ln, snip, "2.1.1 Keyboard",
|
|
258
|
+
f"Add onKeyDown handler or use <button> instead of <{tag}>.")
|
|
259
|
+
|
|
260
|
+
def check_autofocus_misuse(tag, attrs, fp, ln, snip):
|
|
261
|
+
if "autofocus" in attrs or "autoFocus" in attrs:
|
|
262
|
+
if tag not in ("input", "textarea", "select"):
|
|
263
|
+
return _find("keyboard-autofocus", "keyboard", "moderate",
|
|
264
|
+
f"autofocus on <{tag}> can disorient screen reader users",
|
|
265
|
+
fp, ln, snip, "3.2.1 On Focus",
|
|
266
|
+
"Avoid autofocus on non-input elements. Use focus management instead.")
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
# ---------- ARIA ------------------------------------------------------------
|
|
270
|
+
|
|
271
|
+
def check_invalid_aria(tag, attrs, fp, ln, snip):
|
|
272
|
+
findings = []
|
|
273
|
+
for key in attrs:
|
|
274
|
+
if key.startswith("aria-") and key.lower() not in VALID_ARIA_ATTRS:
|
|
275
|
+
findings.append(_find("aria-invalid-attr", "aria", "serious",
|
|
276
|
+
f"Invalid ARIA attribute: {key}",
|
|
277
|
+
fp, ln, snip, "4.1.2 Name, Role, Value",
|
|
278
|
+
f"Remove or replace \"{key}\" with a valid ARIA attribute."))
|
|
279
|
+
return findings
|
|
280
|
+
|
|
281
|
+
def check_aria_hidden_focusable(tag, attrs, fp, ln, snip):
|
|
282
|
+
if attrs.get("aria-hidden") in ("true", True):
|
|
283
|
+
focusable_tags = {"a", "button", "input", "select", "textarea"}
|
|
284
|
+
if tag in focusable_tags or (isinstance(attrs.get("tabindex", ""), str) and
|
|
285
|
+
attrs.get("tabindex", "-1") != "-1"):
|
|
286
|
+
return _find("aria-hidden-focusable", "aria", "critical",
|
|
287
|
+
f"aria-hidden=\"true\" on focusable <{tag}>",
|
|
288
|
+
fp, ln, snip, "4.1.2 Name, Role, Value",
|
|
289
|
+
"Remove aria-hidden or make element non-focusable (tabindex=\"-1\").")
|
|
290
|
+
|
|
291
|
+
def check_aria_live_missing(lines, fp):
|
|
292
|
+
"""Alert/status roles or live regions without aria-live."""
|
|
293
|
+
findings = []
|
|
294
|
+
for ln, line in enumerate(lines, 1):
|
|
295
|
+
if re.search(r'role\s*=\s*["\'](?:alert|status)["\']', line, re.I):
|
|
296
|
+
if "aria-live" not in line:
|
|
297
|
+
findings.append(_find("aria-live-missing", "aria", "serious",
|
|
298
|
+
"role=alert/status without explicit aria-live",
|
|
299
|
+
fp, ln, _snippet(line),
|
|
300
|
+
"4.1.3 Status Messages",
|
|
301
|
+
"Add aria-live=\"assertive\" (alert) or aria-live=\"polite\" (status)."))
|
|
302
|
+
return findings
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
# ---------- Color/Contrast --------------------------------------------------
|
|
306
|
+
|
|
307
|
+
def check_inline_color(tag, attrs, fp, ln, snip):
|
|
308
|
+
style = attrs.get("style", "")
|
|
309
|
+
if isinstance(style, str) and re.search(r"\bcolor\s*:", style, re.I):
|
|
310
|
+
if not re.search(r"background", style, re.I):
|
|
311
|
+
return _find("color-inline-no-bg", "color", "moderate",
|
|
312
|
+
"Inline color set without background — contrast may be insufficient",
|
|
313
|
+
fp, ln, snip, "1.4.3 Contrast (Minimum)",
|
|
314
|
+
"Ensure foreground and background colors meet 4.5:1 contrast ratio.")
|
|
315
|
+
|
|
316
|
+
def check_text_over_image(lines, fp):
|
|
317
|
+
"""Detects patterns where text is positioned over background images without overlay."""
|
|
318
|
+
findings = []
|
|
319
|
+
for ln, line in enumerate(lines, 1):
|
|
320
|
+
if re.search(r"background-image\s*:", line, re.I):
|
|
321
|
+
if not re.search(r"(overlay|rgba|linear-gradient)", line, re.I):
|
|
322
|
+
findings.append(_find("color-text-over-image", "color", "serious",
|
|
323
|
+
"Background image without contrast overlay for text",
|
|
324
|
+
fp, ln, _snippet(line),
|
|
325
|
+
"1.4.3 Contrast (Minimum)",
|
|
326
|
+
"Add a semi-transparent overlay or ensure text contrast."))
|
|
327
|
+
return findings
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
# ---------- Links -----------------------------------------------------------
|
|
331
|
+
|
|
332
|
+
def check_empty_link(tag, attrs, fp, ln, snip):
|
|
333
|
+
if tag == "a" and not attrs.get("aria-label") and not attrs.get("aria-labelledby"):
|
|
334
|
+
return None # handled by line-level check below
|
|
335
|
+
|
|
336
|
+
def check_empty_links_line(lines, fp):
|
|
337
|
+
findings = []
|
|
338
|
+
for ln, line in enumerate(lines, 1):
|
|
339
|
+
# <a ...></a> or <a ...> </a>
|
|
340
|
+
if re.search(r"<a\b[^>]*>\s*</a>", line, re.I):
|
|
341
|
+
if "aria-label" not in line and "aria-labelledby" not in line:
|
|
342
|
+
findings.append(_find("link-empty", "links", "critical",
|
|
343
|
+
"Empty link — no text or accessible name",
|
|
344
|
+
fp, ln, _snippet(line), "2.4.4 Link Purpose",
|
|
345
|
+
"Add link text or aria-label."))
|
|
346
|
+
# Bad link text
|
|
347
|
+
if BAD_LINK_TEXT.search(line):
|
|
348
|
+
findings.append(_find("link-bad-text", "links", "serious",
|
|
349
|
+
"Link uses vague text like 'click here'",
|
|
350
|
+
fp, ln, _snippet(line), "2.4.4 Link Purpose",
|
|
351
|
+
"Use descriptive link text that makes sense out of context."))
|
|
352
|
+
return findings
|
|
353
|
+
|
|
354
|
+
def check_same_page_link(tag, attrs, fp, ln, snip):
|
|
355
|
+
href = attrs.get("href", "")
|
|
356
|
+
if tag == "a" and isinstance(href, str) and href == "#":
|
|
357
|
+
return _find("link-empty-fragment", "links", "moderate",
|
|
358
|
+
"Link with href=\"#\" — use a button or valid fragment",
|
|
359
|
+
fp, ln, snip, "2.4.4 Link Purpose",
|
|
360
|
+
"Use <button> for actions or href=\"#section-id\" for anchors.")
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# ---------- Tables ----------------------------------------------------------
|
|
364
|
+
|
|
365
|
+
def check_table_headers(lines, fp):
|
|
366
|
+
findings = []
|
|
367
|
+
in_table = False
|
|
368
|
+
table_start = 0
|
|
369
|
+
has_th = False
|
|
370
|
+
has_caption = False
|
|
371
|
+
has_aria_label = False
|
|
372
|
+
for ln, line in enumerate(lines, 1):
|
|
373
|
+
if re.search(r"<table\b", line, re.I):
|
|
374
|
+
in_table = True
|
|
375
|
+
table_start = ln
|
|
376
|
+
has_th = False
|
|
377
|
+
has_caption = False
|
|
378
|
+
has_aria_label = "aria-label" in line
|
|
379
|
+
if in_table:
|
|
380
|
+
if "<th" in line.lower():
|
|
381
|
+
has_th = True
|
|
382
|
+
if "<caption" in line.lower():
|
|
383
|
+
has_caption = True
|
|
384
|
+
if re.search(r"</table>", line, re.I):
|
|
385
|
+
if not has_th:
|
|
386
|
+
findings.append(_find("table-no-headers", "tables", "serious",
|
|
387
|
+
"<table> has no <th> header cells",
|
|
388
|
+
fp, table_start, _snippet(lines[table_start - 1]),
|
|
389
|
+
"1.3.1 Info and Relationships",
|
|
390
|
+
"Add <th> elements to identify column/row headers."))
|
|
391
|
+
if not has_caption and not has_aria_label:
|
|
392
|
+
findings.append(_find("table-no-caption", "tables", "moderate",
|
|
393
|
+
"<table> missing <caption> or aria-label",
|
|
394
|
+
fp, table_start, _snippet(lines[table_start - 1]),
|
|
395
|
+
"1.3.1 Info and Relationships",
|
|
396
|
+
"Add <caption> or aria-label to describe the table."))
|
|
397
|
+
in_table = False
|
|
398
|
+
return findings
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
# ---------- Media -----------------------------------------------------------
|
|
402
|
+
|
|
403
|
+
def check_media_captions(tag, attrs, fp, ln, snip):
|
|
404
|
+
if tag == "video":
|
|
405
|
+
return None # handled at block level
|
|
406
|
+
|
|
407
|
+
def check_media_captions_block(lines, fp):
|
|
408
|
+
findings = []
|
|
409
|
+
in_video = False
|
|
410
|
+
video_start = 0
|
|
411
|
+
has_track = False
|
|
412
|
+
has_controls = False
|
|
413
|
+
has_autoplay = False
|
|
414
|
+
for ln, line in enumerate(lines, 1):
|
|
415
|
+
if re.search(r"<video\b", line, re.I):
|
|
416
|
+
in_video = True
|
|
417
|
+
video_start = ln
|
|
418
|
+
has_track = False
|
|
419
|
+
has_controls = "controls" in line.lower()
|
|
420
|
+
has_autoplay = "autoplay" in line.lower()
|
|
421
|
+
if in_video:
|
|
422
|
+
if re.search(r'<track\b[^>]*kind\s*=\s*["\']captions["\']', line, re.I):
|
|
423
|
+
has_track = True
|
|
424
|
+
if "controls" in line.lower():
|
|
425
|
+
has_controls = True
|
|
426
|
+
if re.search(r"</video>", line, re.I) or (re.search(r"<video\b", line, re.I) and "/>" in line):
|
|
427
|
+
if not has_track:
|
|
428
|
+
findings.append(_find("media-no-captions", "media", "critical",
|
|
429
|
+
"<video> missing captions track",
|
|
430
|
+
fp, video_start, _snippet(lines[video_start - 1]),
|
|
431
|
+
"1.2.2 Captions (Prerecorded)",
|
|
432
|
+
"Add <track kind=\"captions\" src=\"...\" srclang=\"en\">."))
|
|
433
|
+
if has_autoplay and not has_controls:
|
|
434
|
+
findings.append(_find("media-autoplay-no-controls", "media", "serious",
|
|
435
|
+
"<video> has autoplay without controls",
|
|
436
|
+
fp, video_start, _snippet(lines[video_start - 1]),
|
|
437
|
+
"1.4.2 Audio Control",
|
|
438
|
+
"Add the controls attribute so users can pause/stop."))
|
|
439
|
+
in_video = False
|
|
440
|
+
# Single-line video tags
|
|
441
|
+
for ln, line in enumerate(lines, 1):
|
|
442
|
+
if re.search(r"<audio\b", line, re.I):
|
|
443
|
+
if "autoplay" in line.lower() and "controls" not in line.lower():
|
|
444
|
+
findings.append(_find("media-audio-autoplay", "media", "serious",
|
|
445
|
+
"<audio> has autoplay without controls",
|
|
446
|
+
fp, ln, _snippet(line), "1.4.2 Audio Control",
|
|
447
|
+
"Add the controls attribute to <audio>."))
|
|
448
|
+
return findings
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
# ---------------------------------------------------------------------------
|
|
452
|
+
# Scanner engine
|
|
453
|
+
# ---------------------------------------------------------------------------
|
|
454
|
+
|
|
455
|
+
SUPPORTED_EXTENSIONS = {".html", ".htm", ".jsx", ".tsx", ".vue", ".svelte", ".css"}
|
|
456
|
+
|
|
457
|
+
TAG_LEVEL_CHECKS = [
|
|
458
|
+
check_img_missing_alt,
|
|
459
|
+
check_img_empty_alt_informative,
|
|
460
|
+
check_img_decorative_has_alt,
|
|
461
|
+
check_input_missing_label,
|
|
462
|
+
check_input_no_aria_label,
|
|
463
|
+
check_tabindex_positive,
|
|
464
|
+
check_click_no_keyboard,
|
|
465
|
+
check_autofocus_misuse,
|
|
466
|
+
check_aria_hidden_focusable,
|
|
467
|
+
check_inline_color,
|
|
468
|
+
check_same_page_link,
|
|
469
|
+
]
|
|
470
|
+
|
|
471
|
+
TAG_LEVEL_MULTI_CHECKS = [
|
|
472
|
+
check_invalid_aria,
|
|
473
|
+
]
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
def scan_file(filepath: str) -> List[Finding]:
|
|
477
|
+
"""Scan a single file and return all findings."""
|
|
478
|
+
findings: List[Finding] = []
|
|
479
|
+
try:
|
|
480
|
+
with open(filepath, "r", encoding="utf-8", errors="replace") as f:
|
|
481
|
+
lines = f.readlines()
|
|
482
|
+
except (OSError, IOError):
|
|
483
|
+
return findings
|
|
484
|
+
|
|
485
|
+
# Tag-level checks
|
|
486
|
+
for ln, line in enumerate(lines, 1):
|
|
487
|
+
for m in TAG_RE.finditer(line):
|
|
488
|
+
tag = m.group(1).lower()
|
|
489
|
+
attr_str = m.group(2)
|
|
490
|
+
attrs = _attrs(attr_str)
|
|
491
|
+
snip = _snippet(line)
|
|
492
|
+
for check in TAG_LEVEL_CHECKS:
|
|
493
|
+
result = check(tag, attrs, filepath, ln, snip)
|
|
494
|
+
if result:
|
|
495
|
+
findings.append(result)
|
|
496
|
+
for check in TAG_LEVEL_MULTI_CHECKS:
|
|
497
|
+
results = check(tag, attrs, filepath, ln, snip)
|
|
498
|
+
if results:
|
|
499
|
+
findings.extend(results)
|
|
500
|
+
|
|
501
|
+
# File-level / multi-line checks
|
|
502
|
+
findings.extend(check_orphan_label(lines, filepath))
|
|
503
|
+
findings.extend(check_fieldset_legend(lines, filepath))
|
|
504
|
+
findings.extend(check_headings(lines, filepath))
|
|
505
|
+
findings.extend(check_landmarks(lines, filepath))
|
|
506
|
+
findings.extend(check_aria_live_missing(lines, filepath))
|
|
507
|
+
findings.extend(check_text_over_image(lines, filepath))
|
|
508
|
+
findings.extend(check_empty_links_line(lines, filepath))
|
|
509
|
+
findings.extend(check_table_headers(lines, filepath))
|
|
510
|
+
findings.extend(check_media_captions_block(lines, filepath))
|
|
511
|
+
|
|
512
|
+
return findings
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
def collect_files(path: str) -> List[str]:
|
|
516
|
+
"""Recursively collect scannable files under path."""
|
|
517
|
+
files = []
|
|
518
|
+
if os.path.isfile(path):
|
|
519
|
+
_, ext = os.path.splitext(path)
|
|
520
|
+
if ext.lower() in SUPPORTED_EXTENSIONS:
|
|
521
|
+
files.append(path)
|
|
522
|
+
return files
|
|
523
|
+
for root, dirs, filenames in os.walk(path):
|
|
524
|
+
# Skip common non-source directories
|
|
525
|
+
dirs[:] = [d for d in dirs if d not in (
|
|
526
|
+
"node_modules", ".git", "dist", "build", "__pycache__",
|
|
527
|
+
".next", ".nuxt", "vendor", "coverage"
|
|
528
|
+
)]
|
|
529
|
+
for fname in filenames:
|
|
530
|
+
_, ext = os.path.splitext(fname)
|
|
531
|
+
if ext.lower() in SUPPORTED_EXTENSIONS:
|
|
532
|
+
files.append(os.path.join(root, fname))
|
|
533
|
+
files.sort()
|
|
534
|
+
return files
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
# ---------------------------------------------------------------------------
|
|
538
|
+
# Output formatting
|
|
539
|
+
# ---------------------------------------------------------------------------
|
|
540
|
+
|
|
541
|
+
SEVERITY_ORDER = {"critical": 0, "serious": 1, "moderate": 2, "minor": 3}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
def format_human(findings: List[Finding], files_scanned: int) -> str:
|
|
545
|
+
"""Format findings as human-readable text report."""
|
|
546
|
+
if not findings:
|
|
547
|
+
return (f"Scanned {files_scanned} file(s) -- no accessibility issues found.\n"
|
|
548
|
+
"All checks passed.")
|
|
549
|
+
|
|
550
|
+
lines = []
|
|
551
|
+
lines.append(f"WCAG 2.2 Accessibility Scan Results")
|
|
552
|
+
lines.append(f"{'=' * 50}")
|
|
553
|
+
lines.append(f"Files scanned: {files_scanned}")
|
|
554
|
+
lines.append(f"Issues found: {len(findings)}")
|
|
555
|
+
|
|
556
|
+
# Summary by severity
|
|
557
|
+
severity_counts = {}
|
|
558
|
+
for f in findings:
|
|
559
|
+
severity_counts[f.severity] = severity_counts.get(f.severity, 0) + 1
|
|
560
|
+
for sev in ("critical", "serious", "moderate", "minor"):
|
|
561
|
+
if sev in severity_counts:
|
|
562
|
+
lines.append(f" {sev.upper():10s}: {severity_counts[sev]}")
|
|
563
|
+
lines.append("")
|
|
564
|
+
|
|
565
|
+
# Summary by category
|
|
566
|
+
cat_counts = {}
|
|
567
|
+
for f in findings:
|
|
568
|
+
cat_counts[f.category] = cat_counts.get(f.category, 0) + 1
|
|
569
|
+
lines.append("By category:")
|
|
570
|
+
for cat in sorted(cat_counts, key=lambda c: -cat_counts[c]):
|
|
571
|
+
lines.append(f" {cat:20s}: {cat_counts[cat]}")
|
|
572
|
+
lines.append("")
|
|
573
|
+
|
|
574
|
+
# Detailed findings sorted by severity then file
|
|
575
|
+
sorted_findings = sorted(findings, key=lambda f: (SEVERITY_ORDER.get(f.severity, 9), f.file, f.line))
|
|
576
|
+
for i, f in enumerate(sorted_findings, 1):
|
|
577
|
+
lines.append(f"[{f.severity.upper()}] {f.rule_id}")
|
|
578
|
+
lines.append(f" File: {f.file}:{f.line}")
|
|
579
|
+
lines.append(f" WCAG: {f.wcag_criterion}")
|
|
580
|
+
lines.append(f" Issue: {f.message}")
|
|
581
|
+
if f.snippet:
|
|
582
|
+
lines.append(f" Code: {f.snippet}")
|
|
583
|
+
lines.append(f" Fix: {f.fix}")
|
|
584
|
+
lines.append("")
|
|
585
|
+
|
|
586
|
+
return "\n".join(lines)
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
def format_json(findings: List[Finding], files_scanned: int) -> str:
|
|
590
|
+
"""Format findings as JSON."""
|
|
591
|
+
severity_counts = {}
|
|
592
|
+
for f in findings:
|
|
593
|
+
severity_counts[f.severity] = severity_counts.get(f.severity, 0) + 1
|
|
594
|
+
|
|
595
|
+
report = {
|
|
596
|
+
"summary": {
|
|
597
|
+
"files_scanned": files_scanned,
|
|
598
|
+
"total_issues": len(findings),
|
|
599
|
+
"by_severity": severity_counts,
|
|
600
|
+
},
|
|
601
|
+
"findings": [asdict(f) for f in findings],
|
|
602
|
+
}
|
|
603
|
+
return json.dumps(report, indent=2)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
# ---------------------------------------------------------------------------
|
|
607
|
+
# CLI
|
|
608
|
+
# ---------------------------------------------------------------------------
|
|
609
|
+
|
|
610
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
611
|
+
parser = argparse.ArgumentParser(
|
|
612
|
+
prog="a11y_scanner",
|
|
613
|
+
description="Scan frontend codebases for WCAG 2.2 accessibility violations.",
|
|
614
|
+
epilog=(
|
|
615
|
+
"Supported file types: .html, .htm, .jsx, .tsx, .vue, .svelte, .css\n"
|
|
616
|
+
"Exit codes: 0 = pass, 1 = critical/serious found, 2 = moderate/minor only"
|
|
617
|
+
),
|
|
618
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
619
|
+
)
|
|
620
|
+
parser.add_argument(
|
|
621
|
+
"path",
|
|
622
|
+
help="File or directory to scan",
|
|
623
|
+
)
|
|
624
|
+
parser.add_argument(
|
|
625
|
+
"--json", dest="json_flag", action="store_true",
|
|
626
|
+
help="Output results as JSON (shorthand for --format json)",
|
|
627
|
+
)
|
|
628
|
+
parser.add_argument(
|
|
629
|
+
"--format", dest="output_format", choices=["text", "json"],
|
|
630
|
+
default="text",
|
|
631
|
+
help="Output format: text (default) or json",
|
|
632
|
+
)
|
|
633
|
+
parser.add_argument(
|
|
634
|
+
"--severity", dest="severity",
|
|
635
|
+
default=None,
|
|
636
|
+
help="Comma-separated severity filter (e.g. critical,serious)",
|
|
637
|
+
)
|
|
638
|
+
return parser
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
def main():
|
|
642
|
+
parser = build_parser()
|
|
643
|
+
args = parser.parse_args()
|
|
644
|
+
|
|
645
|
+
path = os.path.abspath(args.path)
|
|
646
|
+
if not os.path.exists(path):
|
|
647
|
+
print(f"Error: path does not exist: {path}", file=sys.stderr)
|
|
648
|
+
sys.exit(1)
|
|
649
|
+
|
|
650
|
+
use_json = args.json_flag or args.output_format == "json"
|
|
651
|
+
|
|
652
|
+
# Collect and scan files
|
|
653
|
+
files = collect_files(path)
|
|
654
|
+
if not files:
|
|
655
|
+
print(f"No scannable files found in: {path}", file=sys.stderr)
|
|
656
|
+
sys.exit(0)
|
|
657
|
+
|
|
658
|
+
all_findings: List[Finding] = []
|
|
659
|
+
for fpath in files:
|
|
660
|
+
all_findings.extend(scan_file(fpath))
|
|
661
|
+
|
|
662
|
+
# Filter by severity if requested
|
|
663
|
+
if args.severity:
|
|
664
|
+
allowed = {s.strip().lower() for s in args.severity.split(",")}
|
|
665
|
+
all_findings = [f for f in all_findings if f.severity in allowed]
|
|
666
|
+
|
|
667
|
+
# Output
|
|
668
|
+
if use_json:
|
|
669
|
+
print(format_json(all_findings, len(files)))
|
|
670
|
+
else:
|
|
671
|
+
print(format_human(all_findings, len(files)))
|
|
672
|
+
|
|
673
|
+
# Exit code
|
|
674
|
+
severities = {f.severity for f in all_findings}
|
|
675
|
+
if severities & {"critical", "serious"}:
|
|
676
|
+
sys.exit(1)
|
|
677
|
+
elif severities & {"moderate", "minor"}:
|
|
678
|
+
sys.exit(2)
|
|
679
|
+
else:
|
|
680
|
+
sys.exit(0)
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
if __name__ == "__main__":
|
|
684
|
+
main()
|