claudecode-omc 5.9.1 → 5.12.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/.local/settings/settings.json +8 -0
- package/.omc-curation/governance.json +3 -0
- package/.omc-curation/sources.lock.json +5 -0
- package/README.md +10 -1
- package/bundled/manifest.json +4 -3
- package/bundled/upstream/anthropic-skills/.omc-source/bundle.json +2 -2
- package/bundled/upstream/anthropic-skills/.omc-source/provenance.json +394 -390
- package/bundled/upstream/anthropic-skills/skills/claude-api/SKILL.md +60 -29
- package/bundled/upstream/anthropic-skills/skills/claude-api/csharp/claude-api.md +46 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/curl/examples.md +2 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/curl/managed-agents.md +3 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/go/claude-api.md +23 -4
- package/bundled/upstream/anthropic-skills/skills/claude-api/java/claude-api.md +32 -3
- package/bundled/upstream/anthropic-skills/skills/claude-api/php/claude-api.md +27 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/README.md +123 -7
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/batches.md +13 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/files-api.md +7 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/claude-api/streaming.md +18 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/python/managed-agents/README.md +9 -7
- package/bundled/upstream/anthropic-skills/skills/claude-api/ruby/claude-api.md +27 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/agent-design.md +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/anthropic-cli.md +246 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/claude-platform-on-aws.md +59 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/error-codes.md +24 -4
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/live-sources.md +8 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-api-reference.md +48 -4
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-client-patterns.md +3 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-core.md +15 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-environments.md +10 -6
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-events.md +25 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-onboarding.md +48 -18
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-overview.md +8 -5
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-scheduled-deployments.md +144 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-self-hosted-sandboxes.md +2 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/managed-agents-tools.md +46 -9
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/model-migration.md +259 -3
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/models.md +17 -9
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/prompt-caching.md +55 -3
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/token-counting.md +56 -0
- package/bundled/upstream/anthropic-skills/skills/claude-api/shared/tool-use-concepts.md +22 -2
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/README.md +45 -6
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/claude-api/streaming.md +1 -1
- package/bundled/upstream/anthropic-skills/skills/claude-api/typescript/managed-agents/README.md +10 -12
- package/bundled/upstream/anthropic-skills/skills/frontend-design/SKILL.md +39 -26
- package/bundled/upstream/ecc/.omc-source/bundle.json +2 -2
- package/bundled/upstream/ecc/.omc-source/manifests/.claude-plugin/marketplace.json +2 -2
- package/bundled/upstream/ecc/.omc-source/provenance.json +602 -550
- package/bundled/upstream/ecc/agents/agent-evaluator.md +206 -0
- package/bundled/upstream/ecc/agents/performance-optimizer.md +9 -9
- package/bundled/upstream/ecc/agents/php-reviewer.md +109 -0
- package/bundled/upstream/ecc/agents/spec-miner.md +217 -0
- package/bundled/upstream/ecc/agents/vue-reviewer.md +206 -0
- package/bundled/upstream/ecc/commands/cost-report.md +58 -84
- package/bundled/upstream/ecc/commands/epic-claim.md +26 -0
- package/bundled/upstream/ecc/commands/epic-decompose.md +23 -0
- package/bundled/upstream/ecc/commands/epic-publish.md +23 -0
- package/bundled/upstream/ecc/commands/epic-review.md +23 -0
- package/bundled/upstream/ecc/commands/epic-sync.md +23 -0
- package/bundled/upstream/ecc/commands/epic-unblock.md +22 -0
- package/bundled/upstream/ecc/commands/epic-validate.md +22 -0
- package/bundled/upstream/ecc/commands/instinct-status.md +8 -8
- package/bundled/upstream/ecc/commands/multi-backend.md +2 -0
- package/bundled/upstream/ecc/commands/multi-execute.md +2 -0
- package/bundled/upstream/ecc/commands/multi-frontend.md +2 -0
- package/bundled/upstream/ecc/commands/multi-plan.md +2 -0
- package/bundled/upstream/ecc/commands/multi-workflow.md +2 -0
- package/bundled/upstream/ecc/commands/orch-add-feature.md +36 -0
- package/bundled/upstream/ecc/commands/orch-build-mvp.md +36 -0
- package/bundled/upstream/ecc/commands/orch-change-feature.md +38 -0
- package/bundled/upstream/ecc/commands/orch-fix-defect.md +38 -0
- package/bundled/upstream/ecc/commands/orch-refine-code.md +39 -0
- package/bundled/upstream/ecc/commands/quality-gate.md +34 -16
- package/bundled/upstream/ecc/commands/vue-review.md +174 -0
- package/bundled/upstream/ecc/skills/accessibility/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-architecture-audit/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-eval/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-harness-construction/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-introspection-debugging/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-payment-x402/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agent-self-evaluation/SKILL.md +182 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/examples/high-score-example.md +87 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/examples/low-score-example.md +86 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/references/evaluation-criteria.md +71 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/references/hook-integration.md +64 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/scripts/evaluate.py +408 -0
- package/bundled/upstream/ecc/skills/agent-self-evaluation/templates/evaluation-report.md +86 -0
- package/bundled/upstream/ecc/skills/agent-sort/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agentic-engineering/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/agentic-os/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ai-first-engineering/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ai-regression-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/android-clean-architecture/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/angular-developer/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/api-connector-builder/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/api-design/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/architecture-decision-records/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/article-writing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/automation-audit-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/autonomous-agent-harness/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/autonomous-loops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/backend-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/benchmark/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/benchmark-methodology/SKILL.md +190 -0
- package/bundled/upstream/ecc/skills/benchmark-optimization-loop/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/blender-motion-state-inspection/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/blueprint/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/brand-discovery/SKILL.md +145 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/10_purpose-why.md +40 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/20_positioning.md +44 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/30_audience-niche.md +52 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/40_personality-archetype.md +57 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/50_voice-tone.md +59 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/60_narrative-story.md +50 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/70_founder-tension.md +49 -0
- package/bundled/upstream/ecc/skills/brand-discovery/references/90_SYNTHESIS.md +133 -0
- package/bundled/upstream/ecc/skills/brand-voice/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/browser-qa/SKILL.md +22 -4
- package/bundled/upstream/ecc/skills/bun-runtime/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/canary-watch/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/carrier-relationship-management/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/cisco-ios-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ck/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/claude-devfleet/SKILL.md +11 -2
- package/bundled/upstream/ecc/skills/click-path-audit/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/clickhouse-io/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/code-tour/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/codebase-onboarding/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/codehealth-mcp/SKILL.md +167 -0
- package/bundled/upstream/ecc/skills/coding-standards/SKILL.md +4 -2
- package/bundled/upstream/ecc/skills/competitive-platform-analysis/SKILL.md +214 -0
- package/bundled/upstream/ecc/skills/competitive-report-structure/SKILL.md +162 -0
- package/bundled/upstream/ecc/skills/compose-multiplatform-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/config-gc/SKILL.md +120 -0
- package/bundled/upstream/ecc/skills/configure-ecc/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/connections-optimizer/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/content-engine/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/content-hash-cache-pattern/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/context-budget/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/continuous-agent-loop/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/continuous-learning/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/continuous-learning-v2/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/continuous-learning-v2/agents/observer-loop.sh +14 -1
- package/bundled/upstream/ecc/skills/continuous-learning-v2/hooks/observe.sh +31 -7
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/instinct-cli.py +90 -2
- package/bundled/upstream/ecc/skills/continuous-learning-v2/scripts/test_parse_instinct.py +27 -0
- package/bundled/upstream/ecc/skills/cost-aware-llm-pipeline/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/cost-tracking/SKILL.md +58 -108
- package/bundled/upstream/ecc/skills/council/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/cpp-coding-standards/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/cpp-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/crosspost/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/csharp-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/customer-billing-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/customs-trade-compliance/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/dart-flutter-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/dashboard-builder/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/data-scraper-agent/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/data-throughput-accelerator/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/database-migrations/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/deep-research/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/defi-amm-security/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/deployment-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/design-system/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/django-celery/SKILL.md +3 -2
- package/bundled/upstream/ecc/skills/django-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/django-security/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/django-tdd/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/django-verification/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/dmux-workflows/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/docker-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/documentation-lookup/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/dotnet-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/dynamic-workflow-mode/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/e2e-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ecc-guide/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ecc-tools-cost-audit/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/email-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/energy-procurement/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/enterprise-agent-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/error-handling/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/eval-harness/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/evm-token-decimals/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/exa-search/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/fal-ai-media/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/fastapi-patterns/SKILL.md +375 -188
- package/bundled/upstream/ecc/skills/finance-billing-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/flox-environments/SKILL.md +3 -2
- package/bundled/upstream/ecc/skills/flutter-dart-code-review/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/frontend-a11y/SKILL.md +3 -3
- package/bundled/upstream/ecc/skills/frontend-design-direction/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/frontend-patterns/SKILL.md +23 -8
- package/bundled/upstream/ecc/skills/frontend-slides/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/frontend-slides/scripts/export-pdf.sh +1 -1
- package/bundled/upstream/ecc/skills/fsharp-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/gan-style-harness/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/gateguard/SKILL.md +9 -1
- package/bundled/upstream/ecc/skills/generating-python-installer/SKILL.md +820 -0
- package/bundled/upstream/ecc/skills/git-workflow/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/github-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/golang-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/golang-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/google-workspace-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/healthcare-cdss-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/healthcare-emr-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/healthcare-eval-harness/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/healthcare-phi-compliance/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/hermes-imports/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/hexagonal-architecture/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/hipaa-compliance/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/homelab-network-readiness/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/homelab-network-setup/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/homelab-pihole-dns/SKILL.md +10 -9
- package/bundled/upstream/ecc/skills/homelab-vlan-segmentation/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/homelab-wireguard-vpn/SKILL.md +4 -3
- package/bundled/upstream/ecc/skills/inherit-legacy-style/SKILL.md +157 -0
- package/bundled/upstream/ecc/skills/intent-driven-development/SKILL.md +360 -0
- package/bundled/upstream/ecc/skills/inventory-demand-planning/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/investor-materials/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/investor-outreach/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ios-icon-gen/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/iterative-retrieval/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ito-basket-compare/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ito-data-atlas-agent/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ito-market-intelligence/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ito-trade-planner/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/java-coding-standards/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/jira-integration/SKILL.md +17 -7
- package/bundled/upstream/ecc/skills/jpa-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/knowledge-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kotlin-coroutines-flows/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kotlin-exposed-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kotlin-ktor-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kotlin-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kotlin-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/kubernetes-patterns/SKILL.md +756 -0
- package/bundled/upstream/ecc/skills/laravel-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/laravel-plugin-discovery/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/laravel-security/SKILL.md +826 -163
- package/bundled/upstream/ecc/skills/laravel-tdd/SKILL.md +541 -149
- package/bundled/upstream/ecc/skills/laravel-verification/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/latency-critical-systems/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/lead-intelligence/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/llm-trading-agent-security/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/logistics-exception-management/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/make-interfaces-feel-better/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/manim-video/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/market-research/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/marketing-campaign/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/mcp-server-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/messages-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ml-adoption-playbook/SKILL.md +57 -0
- package/bundled/upstream/ecc/skills/mle-workflow/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/motion-patterns/SKILL.md +1 -2
- package/bundled/upstream/ecc/skills/motion-ui/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/mysql-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nanoclaw-repl/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nestjs-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/netmiko-ssh-automation/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/network-bgp-diagnostics/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/network-config-validation/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/network-interface-health/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nextjs-turbopack/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nodejs-keccak256/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nutrient-document-processing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/nuxt4-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/openclaw-persona-forge/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/opensource-pipeline/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/orch-add-feature/SKILL.md +45 -0
- package/bundled/upstream/ecc/skills/orch-build-mvp/SKILL.md +49 -0
- package/bundled/upstream/ecc/skills/orch-change-feature/SKILL.md +43 -0
- package/bundled/upstream/ecc/skills/orch-fix-defect/SKILL.md +43 -0
- package/bundled/upstream/ecc/skills/orch-pipeline/SKILL.md +121 -0
- package/bundled/upstream/ecc/skills/orch-refine-code/SKILL.md +44 -0
- package/bundled/upstream/ecc/skills/parallel-execution-optimizer/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/perl-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/perl-security/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/perl-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/plan-orchestrate/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/plankton-code-quality/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/postgres-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/prediction-market-oracle-research/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/prediction-market-risk-review/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/prisma-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/product-capability/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/product-lens/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/production-audit/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/production-scheduling/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/project-flow-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/prompt-optimizer/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/python-patterns/SKILL.md +4 -3
- package/bundled/upstream/ecc/skills/python-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/pytorch-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/quality-nonconformance/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/quarkus-patterns/SKILL.md +51 -50
- package/bundled/upstream/ecc/skills/quarkus-security/SKILL.md +25 -24
- package/bundled/upstream/ecc/skills/quarkus-tdd/SKILL.md +73 -72
- package/bundled/upstream/ecc/skills/quarkus-verification/SKILL.md +8 -7
- package/bundled/upstream/ecc/skills/ralphinho-rfc-pipeline/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/react-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/react-performance/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/react-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/recsys-pipeline-architect/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/recursive-decision-ledger/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/redis-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/regex-vs-llm-structured-text/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/repo-scan/SKILL.md +64 -63
- package/bundled/upstream/ecc/skills/research-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/returns-reverse-logistics/SKILL.md +1 -1
- package/bundled/upstream/ecc/skills/rules-distill/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/rust-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/rust-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/safety-guard/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/santa-method/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/scientific-db-pubmed-database/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/scientific-db-uspto-database/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/scientific-pkg-gget/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/scientific-thinking-literature-review/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/scientific-thinking-scholar-evaluation/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/search-first/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/security-bounty-hunter/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/security-review/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/security-scan/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/seo/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/skill-comply/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/skill-comply/scripts/runner.py +8 -0
- package/bundled/upstream/ecc/skills/skill-scout/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/skill-stocktake/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/social-graph-ranker/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/social-publisher/SKILL.md +17 -2
- package/bundled/upstream/ecc/skills/springboot-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/springboot-security/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/springboot-tdd/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/springboot-verification/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/strategic-compact/SKILL.md +10 -5
- package/bundled/upstream/ecc/skills/swift-actor-persistence/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/swift-protocol-di-testing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/taste/SKILL.md +264 -0
- package/bundled/upstream/ecc/skills/taste/references/genre-taxonomy.md +87 -0
- package/bundled/upstream/ecc/skills/tdd-workflow/SKILL.md +64 -1
- package/bundled/upstream/ecc/skills/team-agent-orchestration/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/team-builder/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/terminal-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/tinystruct-patterns/SKILL.md +77 -1
- package/bundled/upstream/ecc/skills/token-budget-advisor/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ui-demo/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/ui-to-vue/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/uncloud/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/unified-notifications-ops/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/verification-loop/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/video-editing/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/videodb/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/vite-patterns/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/vue-patterns/SKILL.md +471 -0
- package/bundled/upstream/ecc/skills/windows-desktop-e2e/SKILL.md +9 -8
- package/bundled/upstream/ecc/skills/workspace-surface-audit/SKILL.md +2 -1
- package/bundled/upstream/ecc/skills/x-api/SKILL.md +2 -1
- package/bundled/upstream/impeccable/.omc-source/bundle.json +20 -0
- package/bundled/upstream/impeccable/.omc-source/provenance.json +110 -0
- package/bundled/upstream/impeccable/agents/impeccable-manual-edit-applier.md +97 -0
- package/bundled/upstream/impeccable/skills/impeccable/SKILL.md +168 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/adapt.md +311 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/animate.md +201 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/audit.md +133 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/bolder.md +113 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/brand.md +108 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/clarify.md +288 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/codex.md +105 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/colorize.md +257 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/craft.md +123 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/critique.md +767 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/delight.md +302 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/distill.md +111 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/document.md +429 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/extract.md +69 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/harden.md +347 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/hooks.md +90 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/init.md +172 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/interaction-design.md +189 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/layout.md +161 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/live.md +718 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/onboard.md +234 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/optimize.md +258 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/overdrive.md +130 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/polish.md +241 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/product.md +60 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/quieter.md +99 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/shape.md +165 -0
- package/bundled/upstream/impeccable/skills/impeccable/reference/typeset.md +279 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/command-metadata.json +94 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/context-signals.mjs +225 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/context.mjs +961 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/critique-storage.mjs +242 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detect-csp.mjs +198 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detect.mjs +21 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/browser/injected/index.mjs +1937 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/cli/main.mjs +290 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/design-system.mjs +750 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/detect-antipatterns-browser.js +5138 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/detect-antipatterns.mjs +50 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/browser/detect-url.mjs +277 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs +568 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/static-html/css-cascade.mjs +1015 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/static-html/detect-html.mjs +234 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/visual/screenshot-contrast.mjs +189 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/findings.mjs +12 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/node/file-system.mjs +198 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/profile/profiler.mjs +166 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/registry/antipatterns.mjs +448 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/rules/checks.mjs +2671 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/shared/color.mjs +124 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/shared/constants.mjs +101 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/shared/inline-ignores.mjs +148 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/shared/page.mjs +7 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/hook-admin.mjs +661 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/hook-before-edit.mjs +476 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/hook-lib.mjs +1632 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/hook.mjs +61 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/lib/design-parser.mjs +842 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/lib/impeccable-config.mjs +638 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/lib/impeccable-paths.mjs +128 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/lib/is-generated.mjs +69 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/lib/target-args.mjs +42 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/browser-script-parts.mjs +49 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/completion.mjs +19 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/event-validation.mjs +137 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/insert-ui.mjs +458 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/manual-apply.mjs +939 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/manual-edit-routes.mjs +357 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/manual-edits-buffer.mjs +152 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/session-store.mjs +289 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/svelte-component.mjs +826 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/sveltekit-adapter.mjs +274 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/ui-core.mjs +180 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live/vocabulary.mjs +36 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-accept.mjs +812 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-browser-dom.js +146 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-browser-session.js +123 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-browser.js +11173 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-commit-manual-edits.mjs +1241 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-complete.mjs +75 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-copy-edit-agent.mjs +683 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-discard-manual-edits.mjs +51 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-inject.mjs +583 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-insert.mjs +272 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-manual-edit-evidence.mjs +363 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-poll.mjs +384 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-resume.mjs +94 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-server.mjs +1135 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-status.mjs +61 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-target.mjs +30 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live-wrap.mjs +894 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/live.mjs +297 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/modern-screenshot.umd.js +14 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/palette.mjs +633 -0
- package/bundled/upstream/impeccable/skills/impeccable/scripts/pin.mjs +214 -0
- package/bundled/upstream/oh-my-claudecode/.omc-source/bundle.json +2 -2
- package/bundled/upstream/oh-my-claudecode/.omc-source/provenance.json +103 -103
- package/bundled/upstream/oh-my-claudecode/agents/analyst.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/architect.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/code-reviewer.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/critic.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/debugger.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/security-reviewer.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/tracer.md +6 -0
- package/bundled/upstream/oh-my-claudecode/agents/verifier.md +7 -0
- package/bundled/upstream/oh-my-claudecode/hooks/hooks.json +9 -2
- package/bundled/upstream/oh-my-claudecode/skills/ask/SKILL.md +15 -4
- package/bundled/upstream/oh-my-claudecode/skills/autopilot/SKILL.md +30 -1
- package/bundled/upstream/oh-my-claudecode/skills/cancel/SKILL.md +29 -35
- package/bundled/upstream/oh-my-claudecode/skills/ccg/SKILL.md +20 -9
- package/bundled/upstream/oh-my-claudecode/skills/configure-notifications/SKILL.md +2 -2
- package/bundled/upstream/oh-my-claudecode/skills/omc-reference/SKILL.md +6 -4
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/02-configure.md +1 -1
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/03-integrations.md +2 -1
- package/bundled/upstream/oh-my-claudecode/skills/omc-setup/phases/04-welcome.md +2 -2
- package/bundled/upstream/oh-my-claudecode/skills/omc-teams/SKILL.md +29 -18
- package/bundled/upstream/oh-my-claudecode/skills/team/SKILL.md +127 -165
- package/bundled/upstream/superpowers/.omc-source/bundle.json +2 -2
- package/bundled/upstream/superpowers/.omc-source/provenance.json +59 -52
- package/bundled/upstream/superpowers/hooks/hooks-codex.json +16 -0
- package/bundled/upstream/superpowers/hooks/session-start +4 -12
- package/bundled/upstream/superpowers/hooks/session-start-codex +26 -0
- package/bundled/upstream/superpowers/skills/brainstorming/SKILL.md +5 -10
- package/bundled/upstream/superpowers/skills/brainstorming/scripts/frame-template.html +25 -26
- package/bundled/upstream/superpowers/skills/brainstorming/scripts/helper.js +101 -22
- package/bundled/upstream/superpowers/skills/brainstorming/scripts/server.cjs +399 -30
- package/bundled/upstream/superpowers/skills/brainstorming/scripts/start-server.sh +70 -9
- package/bundled/upstream/superpowers/skills/brainstorming/scripts/stop-server.sh +66 -2
- package/bundled/upstream/superpowers/skills/brainstorming/spec-document-reviewer-prompt.md +1 -1
- package/bundled/upstream/superpowers/skills/brainstorming/visual-companion.md +33 -22
- package/bundled/upstream/superpowers/skills/dispatching-parallel-agents/SKILL.md +9 -6
- package/bundled/upstream/superpowers/skills/executing-plans/SKILL.md +2 -2
- package/bundled/upstream/superpowers/skills/finishing-a-development-branch/SKILL.md +2 -12
- package/bundled/upstream/superpowers/skills/receiving-code-review/SKILL.md +2 -2
- package/bundled/upstream/superpowers/skills/requesting-code-review/SKILL.md +2 -2
- package/bundled/upstream/superpowers/skills/requesting-code-review/code-reviewer.md +15 -11
- package/bundled/upstream/superpowers/skills/subagent-driven-development/SKILL.md +206 -67
- package/bundled/upstream/superpowers/skills/subagent-driven-development/implementer-prompt.md +30 -4
- package/bundled/upstream/superpowers/skills/subagent-driven-development/scripts/review-package +44 -0
- package/bundled/upstream/superpowers/skills/subagent-driven-development/scripts/sdd-workspace +22 -0
- package/bundled/upstream/superpowers/skills/subagent-driven-development/scripts/task-brief +40 -0
- package/bundled/upstream/superpowers/skills/subagent-driven-development/task-reviewer-prompt.md +188 -0
- package/bundled/upstream/superpowers/skills/systematic-debugging/SKILL.md +1 -1
- package/bundled/upstream/superpowers/skills/test-driven-development/SKILL.md +1 -1
- package/bundled/upstream/superpowers/skills/using-git-worktrees/SKILL.md +9 -22
- package/bundled/upstream/superpowers/skills/using-superpowers/SKILL.md +19 -15
- package/bundled/upstream/superpowers/skills/using-superpowers/references/antigravity-tools.md +96 -0
- package/bundled/upstream/superpowers/skills/using-superpowers/references/claude-code-tools.md +50 -0
- package/bundled/upstream/superpowers/skills/using-superpowers/references/codex-tools.md +25 -12
- package/bundled/upstream/superpowers/skills/using-superpowers/references/copilot-tools.md +27 -20
- package/bundled/upstream/superpowers/skills/using-superpowers/references/gemini-tools.md +44 -32
- package/bundled/upstream/superpowers/skills/using-superpowers/references/pi-tools.md +28 -0
- package/bundled/upstream/superpowers/skills/writing-plans/SKILL.md +22 -0
- package/bundled/upstream/superpowers/skills/writing-plans/plan-document-reviewer-prompt.md +1 -1
- package/bundled/upstream/superpowers/skills/writing-skills/SKILL.md +52 -18
- package/bundled/upstream/superpowers/skills/writing-skills/anthropic-best-practices.md +88 -88
- package/bundled/upstream/superpowers/skills/writing-skills/persuasion-principles.md +3 -3
- package/package.json +1 -1
- package/src/cli/source.js +6 -0
- package/src/config/sources.js +15 -0
- package/src/merge/content-patch.js +4 -0
- package/bundled/upstream/superpowers/skills/subagent-driven-development/code-quality-reviewer-prompt.md +0 -25
- package/bundled/upstream/superpowers/skills/subagent-driven-development/spec-reviewer-prompt.md +0 -61
package/bundled/upstream/impeccable/skills/impeccable/scripts/detector/engines/regex/detect-text.mjs
ADDED
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
import { GENERIC_FONTS } from '../../shared/constants.mjs';
|
|
2
|
+
import { isNeutralColor } from '../../shared/color.mjs';
|
|
3
|
+
import { checkSourceDesignSystem } from '../../design-system.mjs';
|
|
4
|
+
import { isFullPage } from '../../shared/page.mjs';
|
|
5
|
+
import { applyInlineIgnores } from '../../shared/inline-ignores.mjs';
|
|
6
|
+
import { finding } from '../../findings.mjs';
|
|
7
|
+
import { filterByProviders } from '../../registry/antipatterns.mjs';
|
|
8
|
+
import { profileFindings, profileStep } from '../../profile/profiler.mjs';
|
|
9
|
+
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
// Regex fallback (non-HTML files: CSS, JSX, TSX, etc.)
|
|
12
|
+
// ---------------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
const hasRounded = (line) => /\brounded(?:-\w+)?\b/.test(line);
|
|
15
|
+
const hasBorderRadius = (line) => /border-radius/i.test(line);
|
|
16
|
+
const isSafeElement = (line) => /<(?:blockquote|nav[\s>]|pre[\s>]|code[\s>]|a\s|input[\s>]|span[\s>])/i.test(line);
|
|
17
|
+
|
|
18
|
+
/** Strip HTML to plain text — drops script/style/comments/tags so
|
|
19
|
+
* content-text analyzers don't false-positive on code or CSS. */
|
|
20
|
+
function stripHtmlToText(html) {
|
|
21
|
+
return html
|
|
22
|
+
.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, ' ')
|
|
23
|
+
.replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi, ' ')
|
|
24
|
+
.replace(/<!--[\s\S]*?-->/g, ' ')
|
|
25
|
+
.replace(/<[^>]+>/g, ' ')
|
|
26
|
+
.replace(/\s+/g, ' ');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const PAGE_ANALYZER_EXTS = new Set(['.html', '.htm', '.astro', '.vue', '.svelte']);
|
|
30
|
+
|
|
31
|
+
function extFromFilePath(filePath) {
|
|
32
|
+
return filePath ? (filePath.match(/\.\w+$/)?.[0] || '').toLowerCase() : '';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function shouldRunPageAnalyzers(content, filePath) {
|
|
36
|
+
if (!isFullPage(content)) return false;
|
|
37
|
+
const ext = extFromFilePath(filePath);
|
|
38
|
+
return !ext || PAGE_ANALYZER_EXTS.has(ext);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function isNeutralBorderColor(str) {
|
|
42
|
+
const m = str.match(/solid\s+((?:rgba?|hsla?|oklch|oklab|lab|lch|hwb|color)\([^)]*\)|#[0-9a-f]{3,8}\b|[a-z]+)/i);
|
|
43
|
+
if (!m) return false;
|
|
44
|
+
const c = m[1].toLowerCase();
|
|
45
|
+
if (['gray', 'grey', 'silver', 'white', 'black', 'transparent', 'currentcolor'].includes(c)) return true;
|
|
46
|
+
if (/^(?:rgba?|hsla?|oklch|oklab|lab|lch|hwb)\(/i.test(c)) return isNeutralColor(c);
|
|
47
|
+
const hex = c.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/);
|
|
48
|
+
if (hex) {
|
|
49
|
+
const [r, g, b] = [parseInt(hex[1], 16), parseInt(hex[2], 16), parseInt(hex[3], 16)];
|
|
50
|
+
return (Math.max(r, g, b) - Math.min(r, g, b)) < 30;
|
|
51
|
+
}
|
|
52
|
+
const shex = c.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/);
|
|
53
|
+
if (shex) {
|
|
54
|
+
const [r, g, b] = [parseInt(shex[1] + shex[1], 16), parseInt(shex[2] + shex[2], 16), parseInt(shex[3] + shex[3], 16)];
|
|
55
|
+
return (Math.max(r, g, b) - Math.min(r, g, b)) < 30;
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const REGEX_MATCHERS = [
|
|
61
|
+
// --- Side-tab ---
|
|
62
|
+
{ id: 'side-tab', regex: /\bborder-[lrse]-(\d+)\b/g,
|
|
63
|
+
test: (m, line) => { const n = +m[1]; return hasRounded(line) ? n >= 2 : n >= 4; },
|
|
64
|
+
fmt: (m) => m[0] },
|
|
65
|
+
{ id: 'side-tab', regex: /border-(?:left|right)\s*:\s*(\d+)px\s+solid[^;]*/gi,
|
|
66
|
+
test: (m, line) => { if (isSafeElement(line)) return false; if (isNeutralBorderColor(m[0])) return false; const n = +m[1]; return hasBorderRadius(line) ? n >= 2 : n >= 3; },
|
|
67
|
+
fmt: (m) => m[0].replace(/\s*;?\s*$/, '') },
|
|
68
|
+
{ id: 'side-tab', regex: /border-(?:left|right)-width\s*:\s*(\d+)px/gi,
|
|
69
|
+
test: (m, line) => !isSafeElement(line) && +m[1] >= 3,
|
|
70
|
+
fmt: (m) => m[0] },
|
|
71
|
+
{ id: 'side-tab', regex: /border-inline-(?:start|end)\s*:\s*(\d+)px\s+solid/gi,
|
|
72
|
+
test: (m, line) => !isSafeElement(line) && +m[1] >= 3,
|
|
73
|
+
fmt: (m) => m[0] },
|
|
74
|
+
{ id: 'side-tab', regex: /border-inline-(?:start|end)-width\s*:\s*(\d+)px/gi,
|
|
75
|
+
test: (m, line) => !isSafeElement(line) && +m[1] >= 3,
|
|
76
|
+
fmt: (m) => m[0] },
|
|
77
|
+
{ id: 'side-tab', regex: /border(?:Left|Right)\s*[:=]\s*["'`](\d+)px\s+solid/g,
|
|
78
|
+
test: (m) => +m[1] >= 3,
|
|
79
|
+
fmt: (m) => m[0] },
|
|
80
|
+
// --- Border accent on rounded ---
|
|
81
|
+
{ id: 'border-accent-on-rounded', regex: /\bborder-[tb]-(\d+)\b/g,
|
|
82
|
+
test: (m, line) => hasRounded(line) && +m[1] >= 1,
|
|
83
|
+
fmt: (m) => m[0] },
|
|
84
|
+
{ id: 'border-accent-on-rounded', regex: /border-(?:top|bottom)\s*:\s*(\d+)px\s+solid/gi,
|
|
85
|
+
test: (m, line) => +m[1] >= 3 && hasBorderRadius(line),
|
|
86
|
+
fmt: (m) => m[0] },
|
|
87
|
+
// --- Overused font ---
|
|
88
|
+
{ id: 'overused-font', regex: /font-family\s*:\s*['"]?(Inter|Roboto|Open Sans|Lato|Montserrat|Arial|Helvetica|Fraunces|Geist Sans|Geist Mono|Geist|Mona Sans|Plus Jakarta Sans|Space Grotesk|Recoleta|Instrument Sans|Instrument Serif)\b/gi,
|
|
89
|
+
test: () => true,
|
|
90
|
+
fmt: (m) => m[0] },
|
|
91
|
+
{ id: 'overused-font', regex: /fonts\.googleapis\.com\/css2?\?family=(Inter|Roboto|Open\+Sans|Lato|Montserrat|Fraunces|Plus\+Jakarta\+Sans|Space\+Grotesk|Instrument\+Sans|Instrument\+Serif|Mona\+Sans|Geist)\b/gi,
|
|
92
|
+
test: () => true,
|
|
93
|
+
fmt: (m) => `Google Fonts: ${m[1].replace(/\+/g, ' ')}` },
|
|
94
|
+
// --- Gradient text ---
|
|
95
|
+
{ id: 'gradient-text', regex: /background-clip\s*:\s*text|-webkit-background-clip\s*:\s*text/gi,
|
|
96
|
+
test: (m, line) => /gradient/i.test(line),
|
|
97
|
+
fmt: () => 'background-clip: text + gradient' },
|
|
98
|
+
// --- Gradient text (Tailwind) ---
|
|
99
|
+
{ id: 'gradient-text', regex: /\bbg-clip-text\b/g,
|
|
100
|
+
test: (m, line) => /\bbg-gradient-to-/i.test(line),
|
|
101
|
+
fmt: () => 'bg-clip-text + bg-gradient' },
|
|
102
|
+
// --- Tailwind gray on colored bg ---
|
|
103
|
+
{ id: 'gray-on-color', regex: /\btext-(?:gray|slate|zinc|neutral|stone)-(\d+)\b/g,
|
|
104
|
+
test: (m, line) => /\bbg-(?:red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-\d+\b/.test(line),
|
|
105
|
+
fmt: (m, line) => { const bg = line.match(/\bbg-(?:red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-\d+\b/); return `${m[0]} on ${bg?.[0] || '?'}`; } },
|
|
106
|
+
// --- Tailwind AI palette ---
|
|
107
|
+
{ id: 'ai-color-palette', regex: /\btext-(?:purple|violet|indigo)-(\d+)\b/g,
|
|
108
|
+
test: (m, line) => /\btext-(?:[2-9]xl|[3-9]xl)\b|<h[1-3]/i.test(line),
|
|
109
|
+
fmt: (m) => `${m[0]} on heading` },
|
|
110
|
+
{ id: 'ai-color-palette', regex: /\bfrom-(?:purple|violet|indigo)-(\d+)\b/g,
|
|
111
|
+
test: (m, line) => /\bto-(?:purple|violet|indigo|blue|cyan|pink|fuchsia)-\d+\b/.test(line),
|
|
112
|
+
fmt: (m) => `${m[0]} gradient` },
|
|
113
|
+
// --- Bounce/elastic easing ---
|
|
114
|
+
{ id: 'bounce-easing', regex: /\banimate-bounce\b/g,
|
|
115
|
+
test: () => true,
|
|
116
|
+
fmt: () => 'animate-bounce (Tailwind)' },
|
|
117
|
+
{ id: 'bounce-easing', regex: /animation(?:-name)?\s*:\s*([^;{}]*(?:bounce|elastic|wobble|jiggle|spring)[^;{}]*)/gi,
|
|
118
|
+
test: () => true,
|
|
119
|
+
fmt: (m) => {
|
|
120
|
+
const token = m[1]
|
|
121
|
+
.split(/[,\s]+/)
|
|
122
|
+
.find((part) => /bounce|elastic|wobble|jiggle|spring/i.test(part));
|
|
123
|
+
return `animation: ${token || m[1].trim()}`;
|
|
124
|
+
} },
|
|
125
|
+
{ id: 'bounce-easing', regex: /cubic-bezier\(\s*([\d.-]+)\s*,\s*([\d.-]+)\s*,\s*([\d.-]+)\s*,\s*([\d.-]+)\s*\)/g,
|
|
126
|
+
test: (m) => {
|
|
127
|
+
const y1 = parseFloat(m[2]), y2 = parseFloat(m[4]);
|
|
128
|
+
return y1 < -0.1 || y1 > 1.1 || y2 < -0.1 || y2 > 1.1;
|
|
129
|
+
},
|
|
130
|
+
fmt: (m) => `cubic-bezier(${m[1]}, ${m[2]}, ${m[3]}, ${m[4]})` },
|
|
131
|
+
// --- Layout property transition ---
|
|
132
|
+
{ id: 'layout-transition', regex: /transition\s*:\s*([^;{}]+)/gi,
|
|
133
|
+
test: (m) => {
|
|
134
|
+
const val = m[1].toLowerCase();
|
|
135
|
+
if (/\ball\b/.test(val)) return false;
|
|
136
|
+
return /\b(?:(?:max|min)-)?(?:width|height)\b|\bpadding\b|\bmargin\b/.test(val);
|
|
137
|
+
},
|
|
138
|
+
fmt: (m) => {
|
|
139
|
+
const found = m[1].match(/\b(?:(?:max|min)-)?(?:width|height)\b|\bpadding(?:-(?:top|right|bottom|left))?\b|\bmargin(?:-(?:top|right|bottom|left))?\b/gi);
|
|
140
|
+
return `transition: ${found ? found.join(', ') : m[1].trim()}`;
|
|
141
|
+
} },
|
|
142
|
+
{ id: 'layout-transition', regex: /transition-property\s*:\s*([^;{}]+)/gi,
|
|
143
|
+
test: (m) => {
|
|
144
|
+
const val = m[1].toLowerCase();
|
|
145
|
+
if (/\ball\b/.test(val)) return false;
|
|
146
|
+
return /\b(?:(?:max|min)-)?(?:width|height)\b|\bpadding\b|\bmargin\b/.test(val);
|
|
147
|
+
},
|
|
148
|
+
fmt: (m) => {
|
|
149
|
+
const found = m[1].match(/\b(?:(?:max|min)-)?(?:width|height)\b|\bpadding(?:-(?:top|right|bottom|left))?\b|\bmargin(?:-(?:top|right|bottom|left))?\b/gi);
|
|
150
|
+
return `transition-property: ${found ? found.join(', ') : m[1].trim()}`;
|
|
151
|
+
} },
|
|
152
|
+
// --- Broken image: src="" or src="#" or src=" " ---
|
|
153
|
+
{ id: 'broken-image', regex: /<img\b[^>]*?\bsrc\s*=\s*(?:""|''|"\s+"|'\s+'|"#"|'#')/gi,
|
|
154
|
+
test: () => true,
|
|
155
|
+
fmt: (m) => m[0].slice(0, 100) },
|
|
156
|
+
// --- Broken image: <img> with no src attribute at all ---
|
|
157
|
+
{ id: 'broken-image', regex: /<img\b(?:(?!\bsrc\s*=)[^>])*>/gi,
|
|
158
|
+
test: (m) => !/\bsrc\s*=/i.test(m[0]),
|
|
159
|
+
fmt: (m) => m[0].slice(0, 100) },
|
|
160
|
+
];
|
|
161
|
+
|
|
162
|
+
const REGEX_ANALYZERS = [
|
|
163
|
+
// Single font
|
|
164
|
+
(content, filePath) => {
|
|
165
|
+
const fontFamilyRe = /font-family\s*:\s*([^;}]+)/gi;
|
|
166
|
+
const fonts = new Set();
|
|
167
|
+
let m;
|
|
168
|
+
while ((m = fontFamilyRe.exec(content)) !== null) {
|
|
169
|
+
for (const f of m[1].split(',').map(f => f.trim().replace(/^['"]|['"]$/g, '').toLowerCase())) {
|
|
170
|
+
if (f && !GENERIC_FONTS.has(f)) fonts.add(f);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const gfRe = /fonts\.googleapis\.com\/css2?\?family=([^&"'\s]+)/gi;
|
|
174
|
+
while ((m = gfRe.exec(content)) !== null) {
|
|
175
|
+
for (const f of m[1].split('|').map(f => f.split(':')[0].replace(/\+/g, ' ').toLowerCase())) fonts.add(f);
|
|
176
|
+
}
|
|
177
|
+
if (fonts.size !== 1 || content.split('\n').length < 20) return [];
|
|
178
|
+
const name = [...fonts][0];
|
|
179
|
+
const lines = content.split('\n');
|
|
180
|
+
let line = 1;
|
|
181
|
+
for (let i = 0; i < lines.length; i++) { if (lines[i].toLowerCase().includes(name)) { line = i + 1; break; } }
|
|
182
|
+
return [finding('single-font', filePath, `only font used is ${name}`, line)];
|
|
183
|
+
},
|
|
184
|
+
// Flat type hierarchy
|
|
185
|
+
(content, filePath) => {
|
|
186
|
+
const sizes = new Set();
|
|
187
|
+
const REM = 16;
|
|
188
|
+
let m;
|
|
189
|
+
const sizeRe = /font-size\s*:\s*([\d.]+)(px|rem|em)\b/gi;
|
|
190
|
+
while ((m = sizeRe.exec(content)) !== null) {
|
|
191
|
+
const px = m[2] === 'px' ? +m[1] : +m[1] * REM;
|
|
192
|
+
if (px > 0 && px < 200) sizes.add(Math.round(px * 10) / 10);
|
|
193
|
+
}
|
|
194
|
+
const clampRe = /font-size\s*:\s*clamp\(\s*([\d.]+)(px|rem|em)\s*,\s*[^,]+,\s*([\d.]+)(px|rem|em)\s*\)/gi;
|
|
195
|
+
while ((m = clampRe.exec(content)) !== null) {
|
|
196
|
+
sizes.add(Math.round((m[2] === 'px' ? +m[1] : +m[1] * REM) * 10) / 10);
|
|
197
|
+
sizes.add(Math.round((m[4] === 'px' ? +m[3] : +m[3] * REM) * 10) / 10);
|
|
198
|
+
}
|
|
199
|
+
const TW = { 'text-xs': 12, 'text-sm': 14, 'text-base': 16, 'text-lg': 18, 'text-xl': 20, 'text-2xl': 24, 'text-3xl': 30, 'text-4xl': 36, 'text-5xl': 48, 'text-6xl': 60, 'text-7xl': 72, 'text-8xl': 96, 'text-9xl': 128 };
|
|
200
|
+
for (const [cls, px] of Object.entries(TW)) { if (new RegExp(`\\b${cls}\\b`).test(content)) sizes.add(px); }
|
|
201
|
+
if (sizes.size < 3) return [];
|
|
202
|
+
const sorted = [...sizes].sort((a, b) => a - b);
|
|
203
|
+
const ratio = sorted[sorted.length - 1] / sorted[0];
|
|
204
|
+
if (ratio >= 2.0) return [];
|
|
205
|
+
const lines = content.split('\n');
|
|
206
|
+
let line = 1;
|
|
207
|
+
for (let i = 0; i < lines.length; i++) { if (/font-size/i.test(lines[i]) || /\btext-(?:xs|sm|base|lg|xl|\d)/i.test(lines[i])) { line = i + 1; break; } }
|
|
208
|
+
return [finding('flat-type-hierarchy', filePath, `Sizes: ${sorted.map(s => s + 'px').join(', ')} (ratio ${ratio.toFixed(1)}:1)`, line)];
|
|
209
|
+
},
|
|
210
|
+
// Monotonous spacing (regex)
|
|
211
|
+
(content, filePath) => {
|
|
212
|
+
const vals = [];
|
|
213
|
+
let m;
|
|
214
|
+
const pxRe = /(?:padding|margin)(?:-(?:top|right|bottom|left))?\s*:\s*(\d+)px/gi;
|
|
215
|
+
while ((m = pxRe.exec(content)) !== null) { const v = +m[1]; if (v > 0 && v < 200) vals.push(v); }
|
|
216
|
+
const remRe = /(?:padding|margin)(?:-(?:top|right|bottom|left))?\s*:\s*([\d.]+)rem/gi;
|
|
217
|
+
while ((m = remRe.exec(content)) !== null) { const v = Math.round(parseFloat(m[1]) * 16); if (v > 0 && v < 200) vals.push(v); }
|
|
218
|
+
const gapRe = /gap\s*:\s*(\d+)px/gi;
|
|
219
|
+
while ((m = gapRe.exec(content)) !== null) vals.push(+m[1]);
|
|
220
|
+
const twRe = /\b(?:p|px|py|pt|pb|pl|pr|m|mx|my|mt|mb|ml|mr|gap)-(\d+)\b/g;
|
|
221
|
+
while ((m = twRe.exec(content)) !== null) vals.push(+m[1] * 4);
|
|
222
|
+
const rounded = vals.map(v => Math.round(v / 4) * 4);
|
|
223
|
+
if (rounded.length < 10) return [];
|
|
224
|
+
const counts = {};
|
|
225
|
+
for (const v of rounded) counts[v] = (counts[v] || 0) + 1;
|
|
226
|
+
const maxCount = Math.max(...Object.values(counts));
|
|
227
|
+
const pct = maxCount / rounded.length;
|
|
228
|
+
const unique = [...new Set(rounded)].filter(v => v > 0);
|
|
229
|
+
if (pct <= 0.6 || unique.length > 3) return [];
|
|
230
|
+
const dominant = Object.entries(counts).sort((a, b) => b[1] - a[1])[0][0];
|
|
231
|
+
return [finding('monotonous-spacing', filePath, `~${dominant}px used ${maxCount}/${rounded.length} times (${Math.round(pct * 100)}%)`)];
|
|
232
|
+
},
|
|
233
|
+
// Em-dash overuse: 5+ em-dashes or "--" in body text content
|
|
234
|
+
// (occasional em-dash use in prose is fine; the pattern fires only
|
|
235
|
+
// when count crosses into AI-cadence territory).
|
|
236
|
+
(content, filePath) => {
|
|
237
|
+
const text = stripHtmlToText(content);
|
|
238
|
+
let count = 0;
|
|
239
|
+
const re = /[—]|--(?=\S)/g;
|
|
240
|
+
while (re.exec(text) !== null) count++;
|
|
241
|
+
if (count < 5) return [];
|
|
242
|
+
return [finding('em-dash-overuse', filePath, `${count} em-dashes in body text`)];
|
|
243
|
+
},
|
|
244
|
+
// Marketing buzzwords: SaaS phrase list
|
|
245
|
+
(content, filePath) => {
|
|
246
|
+
const text = stripHtmlToText(content);
|
|
247
|
+
const lower = text.toLowerCase();
|
|
248
|
+
const BUZZWORDS = [
|
|
249
|
+
'streamline your', 'empower your', 'supercharge your',
|
|
250
|
+
'unleash your', 'unleash the power', 'leverage the power',
|
|
251
|
+
'built for the modern', 'trusted by leading', 'trusted by the world',
|
|
252
|
+
'best-in-class', 'industry-leading', 'world-class', 'enterprise-grade',
|
|
253
|
+
'next-generation', 'cutting-edge', 'transform your business',
|
|
254
|
+
'revolutionize', 'game-changer', 'game changing',
|
|
255
|
+
'mission-critical', 'best of breed', 'future-proof', 'future proof',
|
|
256
|
+
'seamless experience', 'seamlessly integrate',
|
|
257
|
+
'drive engagement', 'drive growth', 'drive results',
|
|
258
|
+
'harness the power',
|
|
259
|
+
];
|
|
260
|
+
let count = 0;
|
|
261
|
+
let firstSample = '';
|
|
262
|
+
for (const phrase of BUZZWORDS) {
|
|
263
|
+
let from = 0;
|
|
264
|
+
while (true) {
|
|
265
|
+
const idx = lower.indexOf(phrase, from);
|
|
266
|
+
if (idx === -1) break;
|
|
267
|
+
count++;
|
|
268
|
+
if (!firstSample) {
|
|
269
|
+
firstSample = text.slice(Math.max(0, idx - 12), Math.min(text.length, idx + phrase.length + 12)).trim();
|
|
270
|
+
}
|
|
271
|
+
from = idx + phrase.length;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
if (count === 0) return [];
|
|
275
|
+
return [finding('marketing-buzzword', filePath, `${count} buzzword phrase${count === 1 ? '' : 's'}: "${firstSample}"`)];
|
|
276
|
+
},
|
|
277
|
+
// Numbered section markers (01 / 02 / 03 ...)
|
|
278
|
+
(content, filePath) => {
|
|
279
|
+
const text = stripHtmlToText(content);
|
|
280
|
+
const re = /\b(0[1-9]|1[0-2])\b/g;
|
|
281
|
+
const seen = new Set();
|
|
282
|
+
let m;
|
|
283
|
+
while ((m = re.exec(text)) !== null) seen.add(m[1]);
|
|
284
|
+
if (seen.size < 3) return [];
|
|
285
|
+
const sorted = [...seen].sort();
|
|
286
|
+
let sequential = 0;
|
|
287
|
+
for (let i = 1; i < sorted.length; i++) {
|
|
288
|
+
if (parseInt(sorted[i], 10) === parseInt(sorted[i - 1], 10) + 1) sequential++;
|
|
289
|
+
}
|
|
290
|
+
if (sequential < 2) return [];
|
|
291
|
+
return [finding('numbered-section-markers', filePath, `Sequence: ${sorted.slice(0, 6).join(', ')}`)];
|
|
292
|
+
},
|
|
293
|
+
// Aphoristic cadence: manufactured-contrast + short-rebuttal
|
|
294
|
+
(content, filePath) => {
|
|
295
|
+
const text = stripHtmlToText(content);
|
|
296
|
+
const NOT_A_RE = /\bNot an? [a-z][^.!?]{1,40}[.!]\s+[A-Z][^.!?]{1,60}[.!]/g;
|
|
297
|
+
const SHORT_REBUTTAL_RE = /\b[A-Z][^.!?]{4,80}[.!]\s+(No|Just)\s+[a-z][^.!?]{2,60}[.!]/g;
|
|
298
|
+
let count = 0;
|
|
299
|
+
let firstSample = '';
|
|
300
|
+
let m;
|
|
301
|
+
NOT_A_RE.lastIndex = 0;
|
|
302
|
+
while ((m = NOT_A_RE.exec(text)) !== null) {
|
|
303
|
+
count++;
|
|
304
|
+
if (!firstSample) firstSample = m[0].trim().slice(0, 80);
|
|
305
|
+
}
|
|
306
|
+
SHORT_REBUTTAL_RE.lastIndex = 0;
|
|
307
|
+
while ((m = SHORT_REBUTTAL_RE.exec(text)) !== null) {
|
|
308
|
+
count++;
|
|
309
|
+
if (!firstSample) firstSample = m[0].trim().slice(0, 80);
|
|
310
|
+
}
|
|
311
|
+
if (count < 3) return [];
|
|
312
|
+
return [finding('aphoristic-cadence', filePath, `${count} aphoristic constructions: "${firstSample}"`)];
|
|
313
|
+
},
|
|
314
|
+
// Dark glow (page-level: dark bg + colored box-shadow with blur)
|
|
315
|
+
(content, filePath) => {
|
|
316
|
+
// Check if page has a dark background
|
|
317
|
+
const darkBgRe = /background(?:-color)?\s*:\s*(?:#(?:0[0-9a-f]|1[0-9a-f]|2[0-3])[0-9a-f]{4}\b|#(?:0|1)[0-9a-f]{2}\b|rgb\(\s*(\d{1,2})\s*,\s*(\d{1,2})\s*,\s*(\d{1,2})\s*\))/gi;
|
|
318
|
+
const twDarkBg = /\bbg-(?:gray|slate|zinc|neutral|stone)-(?:9\d{2}|800)\b/;
|
|
319
|
+
const hasDarkBg = darkBgRe.test(content) || twDarkBg.test(content);
|
|
320
|
+
if (!hasDarkBg) return [];
|
|
321
|
+
|
|
322
|
+
// Check for colored box-shadow with blur > 4px
|
|
323
|
+
const shadowRe = /box-shadow\s*:\s*([^;{}]+)/gi;
|
|
324
|
+
let m;
|
|
325
|
+
while ((m = shadowRe.exec(content)) !== null) {
|
|
326
|
+
const val = m[1];
|
|
327
|
+
const colorMatch = val.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
328
|
+
if (!colorMatch) continue;
|
|
329
|
+
const [r, g, b] = [+colorMatch[1], +colorMatch[2], +colorMatch[3]];
|
|
330
|
+
if ((Math.max(r, g, b) - Math.min(r, g, b)) < 30) continue; // skip gray
|
|
331
|
+
// Check blur: look for pattern like "0 0 20px" (third number > 4)
|
|
332
|
+
const pxVals = [...val.matchAll(/(\d+)px|(?<![.\d])\b(0)\b(?![.\d])/g)].map(p => +(p[1] || p[2]));
|
|
333
|
+
if (pxVals.length >= 3 && pxVals[2] > 4) {
|
|
334
|
+
const lines = content.substring(0, m.index).split('\n');
|
|
335
|
+
return [finding('dark-glow', filePath, `Colored glow (rgb(${r},${g},${b})) on dark page`, lines.length)];
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return [];
|
|
339
|
+
},
|
|
340
|
+
];
|
|
341
|
+
|
|
342
|
+
// ---------------------------------------------------------------------------
|
|
343
|
+
// Style block extraction (Vue/Svelte <style> blocks)
|
|
344
|
+
// ---------------------------------------------------------------------------
|
|
345
|
+
|
|
346
|
+
function extractStyleBlocks(content, ext) {
|
|
347
|
+
ext = ext.toLowerCase();
|
|
348
|
+
if (ext !== '.vue' && ext !== '.svelte') return [];
|
|
349
|
+
const blocks = [];
|
|
350
|
+
const re = /<style[^>]*>([\s\S]*?)<\/style>/gi;
|
|
351
|
+
let m;
|
|
352
|
+
while ((m = re.exec(content)) !== null) {
|
|
353
|
+
const before = content.substring(0, m.index);
|
|
354
|
+
const startLine = before.split('\n').length + 1;
|
|
355
|
+
blocks.push({ content: m[1], startLine });
|
|
356
|
+
}
|
|
357
|
+
return blocks;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
// ---------------------------------------------------------------------------
|
|
361
|
+
// CSS-in-JS extraction (styled-components, emotion)
|
|
362
|
+
// ---------------------------------------------------------------------------
|
|
363
|
+
|
|
364
|
+
const CSS_IN_JS_EXTENSIONS = new Set(['.js', '.ts', '.jsx', '.tsx']);
|
|
365
|
+
|
|
366
|
+
function extractCSSinJS(content, ext) {
|
|
367
|
+
ext = ext.toLowerCase();
|
|
368
|
+
if (!CSS_IN_JS_EXTENSIONS.has(ext)) return [];
|
|
369
|
+
const blocks = [];
|
|
370
|
+
const re = /(?:styled(?:\.\w+|\([^)]+\))|css)\s*`([\s\S]*?)`/g;
|
|
371
|
+
let m;
|
|
372
|
+
while ((m = re.exec(content)) !== null) {
|
|
373
|
+
const before = content.substring(0, m.index);
|
|
374
|
+
const startLine = before.split('\n').length;
|
|
375
|
+
blocks.push({ content: m[1], startLine });
|
|
376
|
+
}
|
|
377
|
+
return blocks;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
function runRegexMatchers(lines, filePath, lineOffset = 0, blockContext = null, options = {}) {
|
|
381
|
+
const { profile, phase = 'regex-matchers' } = options || {};
|
|
382
|
+
const findings = [];
|
|
383
|
+
if (!profile) {
|
|
384
|
+
for (const matcher of REGEX_MATCHERS) {
|
|
385
|
+
for (let i = 0; i < lines.length; i++) {
|
|
386
|
+
const line = lines[i];
|
|
387
|
+
matcher.regex.lastIndex = 0;
|
|
388
|
+
let m;
|
|
389
|
+
while ((m = matcher.regex.exec(line)) !== null) {
|
|
390
|
+
// For extracted blocks, use nearby lines as context for multi-line CSS patterns
|
|
391
|
+
const context = blockContext
|
|
392
|
+
? lines.slice(Math.max(0, i - 3), Math.min(lines.length, i + 4)).join(' ')
|
|
393
|
+
: line;
|
|
394
|
+
if (matcher.test(m, context)) {
|
|
395
|
+
findings.push(finding(matcher.id, filePath, matcher.fmt(m, context), i + 1 + lineOffset));
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return findings;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
for (const matcher of REGEX_MATCHERS) {
|
|
404
|
+
const matcherFindings = profileFindings(profile, {
|
|
405
|
+
engine: 'regex',
|
|
406
|
+
phase,
|
|
407
|
+
ruleId: matcher.id,
|
|
408
|
+
target: filePath,
|
|
409
|
+
}, () => {
|
|
410
|
+
const matches = [];
|
|
411
|
+
for (let i = 0; i < lines.length; i++) {
|
|
412
|
+
const line = lines[i];
|
|
413
|
+
matcher.regex.lastIndex = 0;
|
|
414
|
+
let m;
|
|
415
|
+
while ((m = matcher.regex.exec(line)) !== null) {
|
|
416
|
+
// For extracted blocks, use nearby lines as context for multi-line CSS patterns
|
|
417
|
+
const context = blockContext
|
|
418
|
+
? lines.slice(Math.max(0, i - 3), Math.min(lines.length, i + 4)).join(' ')
|
|
419
|
+
: line;
|
|
420
|
+
if (matcher.test(m, context)) {
|
|
421
|
+
matches.push(finding(matcher.id, filePath, matcher.fmt(m, context), i + 1 + lineOffset));
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return matches;
|
|
426
|
+
});
|
|
427
|
+
findings.push(...matcherFindings);
|
|
428
|
+
}
|
|
429
|
+
return findings;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/** Page-level analyzers that scan rendered text content (em-dash use,
|
|
433
|
+
* buzzword phrases, numbered section markers, aphoristic cadence).
|
|
434
|
+
* These are detector-agnostic — they work on any HTML/text source
|
|
435
|
+
* and don't need a parsed DOM. Exported so detectHtml can call them
|
|
436
|
+
* for `.html` files (which otherwise skip the regex engine). */
|
|
437
|
+
const TEXT_CONTENT_ANALYZER_IDS = [
|
|
438
|
+
'em-dash-overuse',
|
|
439
|
+
'marketing-buzzword',
|
|
440
|
+
'numbered-section-markers',
|
|
441
|
+
'aphoristic-cadence',
|
|
442
|
+
];
|
|
443
|
+
|
|
444
|
+
function runTextContentAnalyzers(content, filePath, options = {}) {
|
|
445
|
+
const profile = options?.profile;
|
|
446
|
+
if (!shouldRunPageAnalyzers(content, filePath)) return [];
|
|
447
|
+
// The 4 text-content analyzers are at indices 3-6 in REGEX_ANALYZERS.
|
|
448
|
+
const findings = [];
|
|
449
|
+
for (let i = 0; i < TEXT_CONTENT_ANALYZER_IDS.length; i++) {
|
|
450
|
+
const analyzer = REGEX_ANALYZERS[3 + i];
|
|
451
|
+
const ruleId = TEXT_CONTENT_ANALYZER_IDS[i];
|
|
452
|
+
findings.push(...profileFindings(profile, {
|
|
453
|
+
engine: 'regex',
|
|
454
|
+
phase: 'text-content',
|
|
455
|
+
ruleId,
|
|
456
|
+
target: filePath,
|
|
457
|
+
}, () => analyzer(content, filePath)));
|
|
458
|
+
}
|
|
459
|
+
return findings;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
function detectText(content, filePath, options = {}) {
|
|
463
|
+
const profile = options?.profile;
|
|
464
|
+
const findings = [];
|
|
465
|
+
const lines = content.split('\n');
|
|
466
|
+
const ext = extFromFilePath(filePath);
|
|
467
|
+
|
|
468
|
+
// Run regex matchers on the full file content (catches Tailwind classes, inline styles)
|
|
469
|
+
// Enable block context for CSS files where related properties span multiple lines
|
|
470
|
+
const cssLike = new Set(['.css', '.scss', '.sass', '.less']);
|
|
471
|
+
findings.push(...runRegexMatchers(lines, filePath, 0, cssLike.has(ext) || null, {
|
|
472
|
+
profile,
|
|
473
|
+
phase: 'source',
|
|
474
|
+
}));
|
|
475
|
+
|
|
476
|
+
// Extract and scan <style> blocks from Vue/Svelte SFCs
|
|
477
|
+
const styleBlocks = profile
|
|
478
|
+
? profileStep(profile, {
|
|
479
|
+
engine: 'regex',
|
|
480
|
+
phase: 'extract',
|
|
481
|
+
ruleId: 'style-blocks',
|
|
482
|
+
target: filePath,
|
|
483
|
+
}, () => extractStyleBlocks(content, ext))
|
|
484
|
+
: extractStyleBlocks(content, ext);
|
|
485
|
+
for (const block of styleBlocks) {
|
|
486
|
+
const blockLines = block.content.split('\n');
|
|
487
|
+
findings.push(...runRegexMatchers(blockLines, filePath, block.startLine - 1, true, {
|
|
488
|
+
profile,
|
|
489
|
+
phase: 'style-block',
|
|
490
|
+
}));
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Extract and scan CSS-in-JS template literals
|
|
494
|
+
const cssJsBlocks = profile
|
|
495
|
+
? profileStep(profile, {
|
|
496
|
+
engine: 'regex',
|
|
497
|
+
phase: 'extract',
|
|
498
|
+
ruleId: 'css-in-js',
|
|
499
|
+
target: filePath,
|
|
500
|
+
}, () => extractCSSinJS(content, ext))
|
|
501
|
+
: extractCSSinJS(content, ext);
|
|
502
|
+
for (const block of cssJsBlocks) {
|
|
503
|
+
const blockLines = block.content.split('\n');
|
|
504
|
+
findings.push(...runRegexMatchers(blockLines, filePath, block.startLine - 1, true, {
|
|
505
|
+
profile,
|
|
506
|
+
phase: 'css-in-js',
|
|
507
|
+
}));
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (options?.designSystem) {
|
|
511
|
+
findings.push(...profileFindings(profile, {
|
|
512
|
+
engine: 'regex',
|
|
513
|
+
phase: 'source',
|
|
514
|
+
ruleId: 'design-system',
|
|
515
|
+
target: filePath,
|
|
516
|
+
}, () => checkSourceDesignSystem(content, filePath, { designSystem: options.designSystem })));
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// Deduplicate findings (same antipattern + similar snippet, within 2 lines)
|
|
520
|
+
const deduped = [];
|
|
521
|
+
for (const f of findings) {
|
|
522
|
+
const isDupe = deduped.some(d =>
|
|
523
|
+
d.antipattern === f.antipattern &&
|
|
524
|
+
d.snippet === f.snippet &&
|
|
525
|
+
Math.abs(d.line - f.line) <= 2
|
|
526
|
+
);
|
|
527
|
+
if (!isDupe) deduped.push(f);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
// Page-level analyzers only run on full pages
|
|
531
|
+
if (shouldRunPageAnalyzers(content, filePath)) {
|
|
532
|
+
const analyzerIds = [
|
|
533
|
+
'single-font',
|
|
534
|
+
'flat-type-hierarchy',
|
|
535
|
+
'monotonous-spacing',
|
|
536
|
+
'em-dash-overuse',
|
|
537
|
+
'marketing-buzzword',
|
|
538
|
+
'numbered-section-markers',
|
|
539
|
+
'aphoristic-cadence',
|
|
540
|
+
'dark-glow',
|
|
541
|
+
];
|
|
542
|
+
for (let i = 0; i < REGEX_ANALYZERS.length; i++) {
|
|
543
|
+
const analyzer = REGEX_ANALYZERS[i];
|
|
544
|
+
deduped.push(...profileFindings(profile, {
|
|
545
|
+
engine: 'regex',
|
|
546
|
+
phase: 'page-analyzer',
|
|
547
|
+
ruleId: analyzerIds[i] || `analyzer-${i + 1}`,
|
|
548
|
+
target: filePath,
|
|
549
|
+
}, () => analyzer(content, filePath)));
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
const byProvider = filterByProviders(deduped, options?.providers);
|
|
554
|
+
// Inline `impeccable-disable*` waivers travel with the file; honor them unless
|
|
555
|
+
// explicitly bypassed (`--no-config` / `--no-inline-ignores`).
|
|
556
|
+
return options?.inlineIgnores === false ? byProvider : applyInlineIgnores(byProvider, content);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export {
|
|
560
|
+
REGEX_MATCHERS,
|
|
561
|
+
REGEX_ANALYZERS,
|
|
562
|
+
TEXT_CONTENT_ANALYZER_IDS,
|
|
563
|
+
extractStyleBlocks,
|
|
564
|
+
extractCSSinJS,
|
|
565
|
+
runRegexMatchers,
|
|
566
|
+
runTextContentAnalyzers,
|
|
567
|
+
detectText,
|
|
568
|
+
};
|