opencode-skills-collection 4.0.68 → 4.0.70
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/bundled-skills/.antigravity-install-manifest.json +304 -1
- package/bundled-skills/access-review/SKILL.md +394 -0
- package/bundled-skills/access-review/references/details.md +121 -0
- package/bundled-skills/agent-evals/SKILL.md +420 -0
- package/bundled-skills/agent-observability/SKILL.md +346 -0
- package/bundled-skills/agent-observability/references/details.md +786 -0
- package/bundled-skills/ai-agent-security/SKILL.md +393 -0
- package/bundled-skills/ai-agent-security/references/details.md +912 -0
- package/bundled-skills/ai-coding-agent-guardrails/SKILL.md +442 -0
- package/bundled-skills/ai-coding-agent-guardrails/references/details.md +753 -0
- package/bundled-skills/ai-inference-service-mesh/SKILL.md +449 -0
- package/bundled-skills/ai-pipeline-orchestration/SKILL.md +287 -0
- package/bundled-skills/ai-red-teaming/SKILL.md +409 -0
- package/bundled-skills/ai-security-hardening/SKILL.md +343 -0
- package/bundled-skills/ai-sre-incident-response/SKILL.md +336 -0
- package/bundled-skills/alerting-oncall/SKILL.md +458 -0
- package/bundled-skills/alerting-oncall/references/details.md +84 -0
- package/bundled-skills/api-integration-architect/SKILL.md +241 -0
- package/bundled-skills/apify-generate-output-schema/SKILL.md +438 -0
- package/bundled-skills/apify-integration-development/SKILL.md +168 -0
- package/bundled-skills/apify-integration-development/references/ai-framework-package.md +158 -0
- package/bundled-skills/apify-integration-development/references/ai-harness-plugin.md +192 -0
- package/bundled-skills/apify-integration-development/references/sdk-integration.md +236 -0
- package/bundled-skills/apify-integration-development/references/workflow-automation.md +163 -0
- package/bundled-skills/apk-redteam-pipeline/SKILL.md +446 -0
- package/bundled-skills/architecture-review/README.md +42 -0
- package/bundled-skills/architecture-review/SKILL.md +77 -0
- package/bundled-skills/architecture-review/examples.md +11 -0
- package/bundled-skills/architecture-review/reference/best-practices.md +7 -0
- package/bundled-skills/architecture-review/reference/capabilities.md +20 -0
- package/bundled-skills/architecture-review/reference/fallbacks.md +11 -0
- package/bundled-skills/architecture-review/reference/graph.md +15 -0
- package/bundled-skills/architecture-review/reference/mcp.md +14 -0
- package/bundled-skills/architecture-review/reference/workflow.md +15 -0
- package/bundled-skills/architecture-review/templates/architecture-review.md +21 -0
- package/bundled-skills/argocd-gitops/SKILL.md +469 -0
- package/bundled-skills/arm-templates/SKILL.md +438 -0
- package/bundled-skills/arm-templates/references/details.md +64 -0
- package/bundled-skills/asset-inventory/SKILL.md +412 -0
- package/bundled-skills/asset-inventory/references/details.md +127 -0
- package/bundled-skills/audit-logging/SKILL.md +476 -0
- package/bundled-skills/aws-cloudtrail/SKILL.md +486 -0
- package/bundled-skills/aws-cost-optimization/SKILL.md +331 -0
- package/bundled-skills/aws-ec2/SKILL.md +426 -0
- package/bundled-skills/aws-ecs-fargate/SKILL.md +388 -0
- package/bundled-skills/aws-iam/SKILL.md +463 -0
- package/bundled-skills/aws-lambda/SKILL.md +428 -0
- package/bundled-skills/aws-rds/SKILL.md +380 -0
- package/bundled-skills/aws-s3/SKILL.md +434 -0
- package/bundled-skills/aws-secrets-manager/SKILL.md +486 -0
- package/bundled-skills/aws-vpc/SKILL.md +436 -0
- package/bundled-skills/azure-ai-document-intelligence-ts/SKILL.md +1 -1
- package/bundled-skills/azure-aks/SKILL.md +423 -0
- package/bundled-skills/azure-devops/SKILL.md +457 -0
- package/bundled-skills/azure-functions-devsec/SKILL.md +436 -0
- package/bundled-skills/azure-keyvault/SKILL.md +455 -0
- package/bundled-skills/azure-keyvault/references/details.md +83 -0
- package/bundled-skills/azure-monitor-audit/SKILL.md +379 -0
- package/bundled-skills/azure-networking/SKILL.md +448 -0
- package/bundled-skills/azure-networking/references/details.md +135 -0
- package/bundled-skills/azure-sql/SKILL.md +413 -0
- package/bundled-skills/azure-sql/references/details.md +113 -0
- package/bundled-skills/azure-vms/SKILL.md +402 -0
- package/bundled-skills/azure-vms/references/details.md +134 -0
- package/bundled-skills/backup-recovery/SKILL.md +388 -0
- package/bundled-skills/bb-methodology/SKILL.md +451 -0
- package/bundled-skills/bb-methodology/references/details.md +120 -0
- package/bundled-skills/block-storage/SKILL.md +371 -0
- package/bundled-skills/blue-green-deploy/SKILL.md +453 -0
- package/bundled-skills/blue-green-deploy/references/details.md +90 -0
- package/bundled-skills/bug-bounty/SKILL.md +447 -0
- package/bundled-skills/bug-bounty/references/details.md +1316 -0
- package/bundled-skills/bugcrowd-reporting/SKILL.md +351 -0
- package/bundled-skills/business-continuity/SKILL.md +463 -0
- package/bundled-skills/career-ops/SKILL.md +186 -0
- package/bundled-skills/cdn-setup/SKILL.md +374 -0
- package/bundled-skills/change-management/SKILL.md +438 -0
- package/bundled-skills/change-management/references/details.md +105 -0
- package/bundled-skills/circleci/SKILL.md +475 -0
- package/bundled-skills/cis-benchmarks/SKILL.md +150 -0
- package/bundled-skills/cloudflare-pages/SKILL.md +318 -0
- package/bundled-skills/cloudflare-r2/SKILL.md +353 -0
- package/bundled-skills/cloudflare-workers/SKILL.md +415 -0
- package/bundled-skills/cloudflare-zero-trust/SKILL.md +361 -0
- package/bundled-skills/cloudformation/SKILL.md +461 -0
- package/bundled-skills/code-review-sensei/SKILL.md +177 -0
- package/bundled-skills/codebase-onboarding/README.md +42 -0
- package/bundled-skills/codebase-onboarding/SKILL.md +77 -0
- package/bundled-skills/codebase-onboarding/examples.md +11 -0
- package/bundled-skills/codebase-onboarding/reference/best-practices.md +7 -0
- package/bundled-skills/codebase-onboarding/reference/capabilities.md +20 -0
- package/bundled-skills/codebase-onboarding/reference/fallbacks.md +11 -0
- package/bundled-skills/codebase-onboarding/reference/graph.md +15 -0
- package/bundled-skills/codebase-onboarding/reference/mcp.md +14 -0
- package/bundled-skills/codebase-onboarding/reference/workflow.md +15 -0
- package/bundled-skills/codebase-onboarding/templates/repository-onboarding.md +21 -0
- package/bundled-skills/connection-auth-rules/SKILL.md +199 -0
- package/bundled-skills/connection-auth-rules/fetch_schema.py +320 -0
- package/bundled-skills/constraint-driven-development/SKILL.md +335 -0
- package/bundled-skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/bundled-skills/container-hardening/SKILL.md +126 -0
- package/bundled-skills/container-registries/SKILL.md +435 -0
- package/bundled-skills/container-scanning/SKILL.md +416 -0
- package/bundled-skills/convex-backend/SKILL.md +338 -0
- package/bundled-skills/dast-scanning/SKILL.md +437 -0
- package/bundled-skills/database-backups/SKILL.md +425 -0
- package/bundled-skills/datadog/SKILL.md +487 -0
- package/bundled-skills/dependency-analysis/README.md +42 -0
- package/bundled-skills/dependency-analysis/SKILL.md +76 -0
- package/bundled-skills/dependency-analysis/examples.md +11 -0
- package/bundled-skills/dependency-analysis/reference/best-practices.md +7 -0
- package/bundled-skills/dependency-analysis/reference/capabilities.md +20 -0
- package/bundled-skills/dependency-analysis/reference/fallbacks.md +11 -0
- package/bundled-skills/dependency-analysis/reference/graph.md +15 -0
- package/bundled-skills/dependency-analysis/reference/mcp.md +14 -0
- package/bundled-skills/dependency-analysis/reference/workflow.md +15 -0
- package/bundled-skills/dependency-analysis/templates/dependency-review.md +21 -0
- package/bundled-skills/dependency-scanning/SKILL.md +457 -0
- package/bundled-skills/devcontainers-nix/SKILL.md +416 -0
- package/bundled-skills/devops-pipeline-builder/SKILL.md +200 -0
- package/bundled-skills/disaster-recovery/SKILL.md +374 -0
- package/bundled-skills/disaster-recovery/references/details.md +219 -0
- package/bundled-skills/dns-management/SKILL.md +375 -0
- package/bundled-skills/docker-compose/SKILL.md +482 -0
- package/bundled-skills/docker-management/SKILL.md +426 -0
- package/bundled-skills/eas-app-stores/SKILL.md +197 -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 +448 -0
- package/bundled-skills/eas-hosting/agents/openai.yaml +4 -0
- package/bundled-skills/eas-observe/SKILL.md +75 -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 +251 -0
- package/bundled-skills/eas-simulator/agents/openai.yaml +4 -0
- package/bundled-skills/eas-simulator/references/controllers.md +135 -0
- package/bundled-skills/eas-simulator/references/run-your-app.md +240 -0
- package/bundled-skills/eas-simulator/references/troubleshooting.md +47 -0
- package/bundled-skills/eas-workflows/SKILL.md +119 -0
- package/bundled-skills/eas-workflows/agents/openai.yaml +4 -0
- package/bundled-skills/eas-workflows/scripts/fetch.js +109 -0
- package/bundled-skills/ebpf-observability/SKILL.md +436 -0
- package/bundled-skills/ebpf-observability/references/details.md +542 -0
- package/bundled-skills/elk-stack/SKILL.md +487 -0
- package/bundled-skills/enterprise-vpn-attack/SKILL.md +395 -0
- package/bundled-skills/evidence-hygiene/SKILL.md +404 -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 +295 -0
- package/bundled-skills/expo-animation/agents/openai.yaml +4 -0
- package/bundled-skills/fact-check-x-unified/SKILL.md +178 -0
- package/bundled-skills/fact-check-x-unified/agents/openai.yaml +4 -0
- package/bundled-skills/fact-check-x-unified/references/acceptance-criteria.md +44 -0
- package/bundled-skills/fact-check-x-unified/references/contracts.md +39 -0
- package/bundled-skills/fact-check-x-unified/scripts/common.py +31 -0
- package/bundled-skills/fact-check-x-unified/scripts/fact_check_x.py +1832 -0
- package/bundled-skills/fact-check-x-unified/scripts/trusted_search_config.py +324 -0
- package/bundled-skills/fact-check-x-unified/tests/anchor_downgrade_test.py +90 -0
- package/bundled-skills/fact-check-x-unified/tests/multi_platform_test.py +369 -0
- package/bundled-skills/fact-check-x-unified/tests/smoke_test.py +740 -0
- package/bundled-skills/fact-check-x-unified/tests/stage_checkpoint_test.py +103 -0
- package/bundled-skills/fact-check-x-unified/tests/trusted_search_config_test.py +156 -0
- package/bundled-skills/feature-flags/SKILL.md +426 -0
- package/bundled-skills/feature-flags/references/details.md +86 -0
- package/bundled-skills/fedramp-compliance/SKILL.md +453 -0
- package/bundled-skills/firebase-app-platform/SKILL.md +381 -0
- package/bundled-skills/firewall-config/SKILL.md +479 -0
- package/bundled-skills/gcp-audit-logs/SKILL.md +452 -0
- package/bundled-skills/gcp-audit-logs/references/details.md +56 -0
- package/bundled-skills/gcp-cloud-functions/SKILL.md +284 -0
- package/bundled-skills/gcp-cloud-sql/SKILL.md +277 -0
- package/bundled-skills/gcp-compute/SKILL.md +319 -0
- package/bundled-skills/gcp-gke/SKILL.md +307 -0
- package/bundled-skills/gcp-networking/SKILL.md +293 -0
- package/bundled-skills/gcp-secret-manager/SKILL.md +421 -0
- package/bundled-skills/gcp-secret-manager/references/details.md +131 -0
- package/bundled-skills/gdpr-compliance/SKILL.md +451 -0
- package/bundled-skills/gdpr-compliance/references/details.md +145 -0
- package/bundled-skills/geo-audit/SKILL.md +368 -0
- package/bundled-skills/geo-brand-mentions/SKILL.md +68 -0
- package/bundled-skills/geo-brand-mentions/references/details.md +471 -0
- package/bundled-skills/geo-citability/SKILL.md +350 -0
- package/bundled-skills/geo-compare/SKILL.md +340 -0
- package/bundled-skills/geo-content/SKILL.md +383 -0
- package/bundled-skills/geo-crawlers/SKILL.md +408 -0
- package/bundled-skills/geo-llmstxt/SKILL.md +464 -0
- package/bundled-skills/geo-platform-optimizer/SKILL.md +314 -0
- package/bundled-skills/geo-proposal/SKILL.md +378 -0
- package/bundled-skills/geo-prospect/SKILL.md +225 -0
- package/bundled-skills/geo-report/SKILL.md +436 -0
- package/bundled-skills/geo-report-pdf/SKILL.md +157 -0
- package/bundled-skills/geo-schema/SKILL.md +408 -0
- package/bundled-skills/geo-technical/SKILL.md +78 -0
- package/bundled-skills/geo-technical/references/details.md +543 -0
- package/bundled-skills/git-workflow/SKILL.md +460 -0
- package/bundled-skills/github-actions/SKILL.md +368 -0
- package/bundled-skills/gitlab-ci/SKILL.md +340 -0
- package/bundled-skills/gpt-taste/SKILL.md +8 -1
- package/bundled-skills/gpu-kubernetes-operations/SKILL.md +468 -0
- package/bundled-skills/gpu-server-management/SKILL.md +236 -0
- package/bundled-skills/hashicorp-vault/SKILL.md +408 -0
- package/bundled-skills/helm-charts/SKILL.md +469 -0
- package/bundled-skills/hf-cli/SKILL.md +263 -0
- package/bundled-skills/hipaa-compliance/SKILL.md +451 -0
- package/bundled-skills/huggingface-community-evals/SKILL.md +228 -0
- package/bundled-skills/huggingface-community-evals/examples/.env.example +3 -0
- package/bundled-skills/huggingface-community-evals/examples/USAGE_EXAMPLES.md +101 -0
- package/bundled-skills/huggingface-community-evals/scripts/inspect_eval_uv.py +104 -0
- package/bundled-skills/huggingface-community-evals/scripts/inspect_vllm_uv.py +306 -0
- package/bundled-skills/huggingface-community-evals/scripts/lighteval_vllm_uv.py +297 -0
- package/bundled-skills/huggingface-datasets/SKILL.md +130 -0
- package/bundled-skills/hunt-aspnet/SKILL.md +321 -0
- package/bundled-skills/hunt-ato/SKILL.md +184 -0
- package/bundled-skills/hunt-auth-bypass/SKILL.md +426 -0
- package/bundled-skills/hunt-auth-bypass/references/details.md +80 -0
- package/bundled-skills/hunt-brute-force/SKILL.md +341 -0
- package/bundled-skills/hunt-business-logic/SKILL.md +281 -0
- package/bundled-skills/hunt-cache-poison/SKILL.md +382 -0
- package/bundled-skills/hunt-captcha-bypass/SKILL.md +136 -0
- package/bundled-skills/hunt-cicd/SKILL.md +311 -0
- package/bundled-skills/hunt-clickjacking/SKILL.md +110 -0
- package/bundled-skills/hunt-cors/SKILL.md +335 -0
- package/bundled-skills/hunt-dom/SKILL.md +323 -0
- package/bundled-skills/hunt-exceptional-conditions/SKILL.md +111 -0
- package/bundled-skills/hunt-file-upload/SKILL.md +202 -0
- package/bundled-skills/hunt-fintech-graphql/SKILL.md +289 -0
- package/bundled-skills/hunt-forgot-password/SKILL.md +114 -0
- package/bundled-skills/hunt-grpc/SKILL.md +317 -0
- package/bundled-skills/hunt-host-header/SKILL.md +309 -0
- package/bundled-skills/hunt-html-injection/SKILL.md +106 -0
- package/bundled-skills/hunt-http-smuggling/SKILL.md +129 -0
- package/bundled-skills/hunt-http-smuggling/references/phase2h-smuggling-cachepoison.md +177 -0
- package/bundled-skills/hunt-idor/SKILL.md +434 -0
- package/bundled-skills/hunt-jwt-crypto/SKILL.md +221 -0
- package/bundled-skills/hunt-k8s/SKILL.md +337 -0
- package/bundled-skills/hunt-laravel/SKILL.md +255 -0
- package/bundled-skills/hunt-ldap/SKILL.md +351 -0
- package/bundled-skills/hunt-lfi/SKILL.md +311 -0
- package/bundled-skills/hunt-llm-ai/SKILL.md +289 -0
- package/bundled-skills/hunt-mfa-bypass/SKILL.md +177 -0
- package/bundled-skills/hunt-misc/SKILL.md +378 -0
- package/bundled-skills/hunt-nextjs/SKILL.md +299 -0
- package/bundled-skills/hunt-nodejs/SKILL.md +263 -0
- package/bundled-skills/hunt-nosqli/SKILL.md +210 -0
- package/bundled-skills/hunt-ntlm-info/SKILL.md +314 -0
- package/bundled-skills/hunt-oauth/SKILL.md +459 -0
- package/bundled-skills/hunt-open-redirect/SKILL.md +223 -0
- package/bundled-skills/hunt-race-condition/SKILL.md +381 -0
- package/bundled-skills/hunt-race-condition/references/details.md +159 -0
- package/bundled-skills/hunt-rag-vector/SKILL.md +212 -0
- package/bundled-skills/hunt-rce/SKILL.md +444 -0
- package/bundled-skills/hunt-rce/references/details.md +110 -0
- package/bundled-skills/hunt-saml/SKILL.md +156 -0
- package/bundled-skills/hunt-session/SKILL.md +342 -0
- package/bundled-skills/hunt-shadow-api/SKILL.md +198 -0
- package/bundled-skills/hunt-source-leak/SKILL.md +345 -0
- package/bundled-skills/hunt-spa-api/SKILL.md +163 -0
- package/bundled-skills/hunt-springboot/SKILL.md +285 -0
- package/bundled-skills/hunt-sqli/SKILL.md +466 -0
- package/bundled-skills/hunt-ssrf/SKILL.md +396 -0
- package/bundled-skills/hunt-ssrf/references/details.md +179 -0
- package/bundled-skills/hunt-ssti/SKILL.md +163 -0
- package/bundled-skills/hunt-subdomain/SKILL.md +379 -0
- package/bundled-skills/hunt-tls-network/SKILL.md +399 -0
- package/bundled-skills/hunt-xxe/SKILL.md +466 -0
- package/bundled-skills/i-have-adhd/SKILL.md +170 -0
- package/bundled-skills/identity-access-management/SKILL.md +382 -0
- package/bundled-skills/identity-access-management/references/details.md +524 -0
- package/bundled-skills/incident-management/SKILL.md +484 -0
- package/bundled-skills/incident-response/SKILL.md +448 -0
- package/bundled-skills/incident-response/references/details.md +113 -0
- package/bundled-skills/interview-me/SKILL.md +248 -0
- package/bundled-skills/iso27001-compliance/SKILL.md +460 -0
- package/bundled-skills/jenkins/SKILL.md +462 -0
- package/bundled-skills/jev-social/SKILL.md +182 -0
- package/bundled-skills/jev-use/SKILL.md +158 -0
- package/bundled-skills/kubernetes-hardening/SKILL.md +154 -0
- package/bundled-skills/kubernetes-ops/SKILL.md +449 -0
- package/bundled-skills/kubernetes-ops/references/details.md +108 -0
- package/bundled-skills/kustomize/SKILL.md +478 -0
- package/bundled-skills/linux-administration/SKILL.md +367 -0
- package/bundled-skills/linux-hardening/SKILL.md +154 -0
- package/bundled-skills/llm-app-security/SKILL.md +389 -0
- package/bundled-skills/llm-app-security/references/details.md +674 -0
- package/bundled-skills/llm-caching/SKILL.md +334 -0
- package/bundled-skills/llm-cost-optimization/SKILL.md +311 -0
- package/bundled-skills/llm-fine-tuning/SKILL.md +329 -0
- package/bundled-skills/llm-gateway/SKILL.md +282 -0
- package/bundled-skills/llm-inference-scaling/SKILL.md +286 -0
- package/bundled-skills/llmops-platform-engineering/SKILL.md +472 -0
- package/bundled-skills/load-balancing/SKILL.md +403 -0
- package/bundled-skills/loki-logging/SKILL.md +479 -0
- package/bundled-skills/longbridge-derivatives/SKILL.md +117 -0
- package/bundled-skills/longbridge-derivatives/references/option.md +36 -0
- package/bundled-skills/longbridge-derivatives/references/options-advanced.md +101 -0
- package/bundled-skills/longbridge-derivatives/references/options-pnl.md +74 -0
- package/bundled-skills/longbridge-derivatives/references/options-strategy.md +82 -0
- package/bundled-skills/longbridge-derivatives/references/options-volatility.md +70 -0
- package/bundled-skills/longbridge-derivatives/references/warrant.md +12 -0
- package/bundled-skills/longbridge-quant/SKILL.md +151 -0
- package/bundled-skills/longbridge-quant/references/correlation.md +51 -0
- package/bundled-skills/longbridge-quant/references/execution-model.md +68 -0
- package/bundled-skills/longbridge-quant/references/factor-research.md +95 -0
- package/bundled-skills/longbridge-quant/references/factor-screen.md +101 -0
- package/bundled-skills/longbridge-quant/references/hedging.md +136 -0
- package/bundled-skills/longbridge-quant/references/ml-strategy.md +77 -0
- package/bundled-skills/longbridge-quant/references/multifactor.md +68 -0
- package/bundled-skills/longbridge-quant/references/pairs-trading.md +61 -0
- package/bundled-skills/longbridge-quant/references/quant-cli.md +133 -0
- package/bundled-skills/longbridge-quant/references/quant-stats.md +150 -0
- package/bundled-skills/longbridge-quant/references/seasonality.md +50 -0
- package/bundled-skills/longbridge-quant/references/strategy-optimizer.md +68 -0
- package/bundled-skills/longbridge-quant/references/volatility-strategy.md +52 -0
- package/bundled-skills/longbridge-research/SKILL.md +187 -0
- package/bundled-skills/longbridge-research/references/company-profile.md +96 -0
- package/bundled-skills/longbridge-research/references/company-tearsheet.md +82 -0
- package/bundled-skills/longbridge-research/references/competitive-analysis.md +81 -0
- package/bundled-skills/longbridge-research/references/consensus.md +92 -0
- package/bundled-skills/longbridge-research/references/coverage-initiation.md +76 -0
- package/bundled-skills/longbridge-research/references/defi-yield.md +60 -0
- package/bundled-skills/longbridge-research/references/finance-calendar.md +165 -0
- package/bundled-skills/longbridge-research/references/financial-planning.md +77 -0
- package/bundled-skills/longbridge-research/references/forecast-eps.md +39 -0
- package/bundled-skills/longbridge-research/references/fund-holder.md +44 -0
- package/bundled-skills/longbridge-research/references/hkipo-analysis.md +101 -0
- package/bundled-skills/longbridge-research/references/industry-peers.md +46 -0
- package/bundled-skills/longbridge-research/references/industry-rank.md +62 -0
- package/bundled-skills/longbridge-research/references/insider-trades.md +48 -0
- package/bundled-skills/longbridge-research/references/institution-rating.md +62 -0
- package/bundled-skills/longbridge-research/references/investment-ideas.md +69 -0
- package/bundled-skills/longbridge-research/references/investment-proposal.md +95 -0
- package/bundled-skills/longbridge-research/references/investors.md +87 -0
- package/bundled-skills/longbridge-research/references/onchain.md +70 -0
- package/bundled-skills/longbridge-research/references/post-investment.md +76 -0
- package/bundled-skills/longbridge-research/references/shareholder.md +72 -0
- package/bundled-skills/longbridge-research/references/short-positions.md +50 -0
- package/bundled-skills/longbridge-research/references/short-trades.md +50 -0
- package/bundled-skills/longbridge-research/references/stock-research.md +61 -0
- package/bundled-skills/longbridge-research/references/thesis-tracker.md +64 -0
- package/bundled-skills/m365-entra-attack/SKILL.md +423 -0
- package/bundled-skills/mac-mini-llm-lab/SKILL.md +350 -0
- package/bundled-skills/makepad-2-0-animation/SKILL.md +318 -0
- package/bundled-skills/makepad-2-0-animation/references/animator-reference.md +433 -0
- package/bundled-skills/makepad-2-0-dsl/SKILL.md +492 -0
- package/bundled-skills/makepad-2-0-dsl/references/dsl-syntax-reference.md +511 -0
- package/bundled-skills/makepad-2-0-dsl/references/extended-guide.md +56 -0
- package/bundled-skills/makepad-2-0-dsl/references/property-system.md +757 -0
- package/bundled-skills/makepad-2-0-events/SKILL.md +497 -0
- package/bundled-skills/makepad-2-0-events/references/event-patterns.md +802 -0
- package/bundled-skills/makepad-2-0-events/references/extended-guide.md +590 -0
- package/bundled-skills/makepad-2-0-layout/SKILL.md +499 -0
- package/bundled-skills/makepad-2-0-layout/references/extended-guide.md +243 -0
- package/bundled-skills/makepad-2-0-layout/references/layout-patterns.md +881 -0
- package/bundled-skills/makepad-2-0-widgets/SKILL.md +261 -0
- package/bundled-skills/makepad-2-0-widgets/references/widget-advanced.md +648 -0
- package/bundled-skills/makepad-2-0-widgets/references/widget-catalog.md +547 -0
- package/bundled-skills/mcp-server-security/SKILL.md +356 -0
- package/bundled-skills/mcp-server-security/references/details.md +745 -0
- package/bundled-skills/mdm-device-management/SKILL.md +404 -0
- package/bundled-skills/mdm-device-management/references/details.md +410 -0
- package/bundled-skills/meeting-distiller-pro/SKILL.md +120 -0
- package/bundled-skills/meme-coin-audit/SKILL.md +402 -0
- package/bundled-skills/mid-engagement-ir-detection/SKILL.md +377 -0
- package/bundled-skills/model-registry-governance/SKILL.md +452 -0
- package/bundled-skills/model-serving-kubernetes/SKILL.md +339 -0
- package/bundled-skills/model-supply-chain-security/SKILL.md +427 -0
- package/bundled-skills/mongodb/SKILL.md +436 -0
- package/bundled-skills/monte-carlo-analyze-root-cause/SKILL.md +12 -1
- package/bundled-skills/monte-carlo-asset-health/SKILL.md +12 -1
- package/bundled-skills/monte-carlo-context-detection/SKILL.md +170 -0
- package/bundled-skills/monte-carlo-context-detection/references/signal-definitions.md +46 -0
- package/bundled-skills/multi-tenant-llm-hosting/SKILL.md +435 -0
- package/bundled-skills/multi-tenant-llm-hosting/references/details.md +211 -0
- package/bundled-skills/mysql/SKILL.md +390 -0
- package/bundled-skills/new-relic/SKILL.md +472 -0
- package/bundled-skills/nfs-storage/SKILL.md +356 -0
- package/bundled-skills/object-storage/SKILL.md +378 -0
- package/bundled-skills/offensive-osint/SKILL.md +443 -0
- package/bundled-skills/okta-attack/SKILL.md +436 -0
- package/bundled-skills/ollama-stack/SKILL.md +379 -0
- package/bundled-skills/openclaw-deployment-hardening/SKILL.md +135 -0
- package/bundled-skills/openclaw-local-mac-mini/SKILL.md +426 -0
- package/bundled-skills/openclaw-local-mac-mini/references/details.md +221 -0
- package/bundled-skills/openclaw-security-hardening/SKILL.md +135 -0
- package/bundled-skills/openshift/SKILL.md +485 -0
- package/bundled-skills/opentelemetry/SKILL.md +438 -0
- package/bundled-skills/opentelemetry/references/details.md +78 -0
- package/bundled-skills/opentofu-migration/SKILL.md +349 -0
- package/bundled-skills/osint-methodology/SKILL.md +460 -0
- package/bundled-skills/osint-methodology/references/details.md +1350 -0
- package/bundled-skills/pci-dss-compliance/SKILL.md +446 -0
- package/bundled-skills/penetration-testing/SKILL.md +152 -0
- package/bundled-skills/performance-tuning/SKILL.md +381 -0
- package/bundled-skills/planetscale/SKILL.md +297 -0
- package/bundled-skills/platform-engineering/SKILL.md +348 -0
- package/bundled-skills/platform-engineering/references/details.md +944 -0
- package/bundled-skills/podman/SKILL.md +405 -0
- package/bundled-skills/policy-as-code/SKILL.md +434 -0
- package/bundled-skills/policy-as-code/references/details.md +204 -0
- package/bundled-skills/postgresql-devsec/SKILL.md +378 -0
- package/bundled-skills/prometheus-grafana/SKILL.md +469 -0
- package/bundled-skills/prompt-injection-defense/SKILL.md +483 -0
- package/bundled-skills/rag-infrastructure/SKILL.md +269 -0
- package/bundled-skills/rag-observability-evals/SKILL.md +444 -0
- package/bundled-skills/rag-observability-evals/references/details.md +92 -0
- package/bundled-skills/recon-scope-triage/SKILL.md +128 -0
- package/bundled-skills/redis/SKILL.md +421 -0
- package/bundled-skills/redteam-report-template/SKILL.md +370 -0
- package/bundled-skills/remotion-captions/SKILL.md +57 -0
- package/bundled-skills/remotion-captions/agents/openai.yaml +7 -0
- package/bundled-skills/remotion-captions/assets/remotion-icon.svg +4 -0
- package/bundled-skills/remotion-captions/display-captions.md +190 -0
- package/bundled-skills/remotion-captions/import-srt-captions.md +73 -0
- package/bundled-skills/remotion-captions/transcribe-captions.md +70 -0
- package/bundled-skills/remotion-create/SKILL.md +106 -0
- package/bundled-skills/remotion-create/agents/openai.yaml +7 -0
- package/bundled-skills/remotion-create/assets/remotion-icon.svg +4 -0
- package/bundled-skills/remotion-create/tailwind.md +11 -0
- package/bundled-skills/remotion-create/video-layout.md +9 -0
- package/bundled-skills/remotion-docs/SKILL.md +67 -0
- package/bundled-skills/remotion-docs/agents/openai.yaml +7 -0
- package/bundled-skills/remotion-docs/assets/remotion-icon.svg +4 -0
- package/bundled-skills/remotion-interactivity/SKILL.md +270 -0
- package/bundled-skills/remotion-interactivity/agents/openai.yaml +7 -0
- package/bundled-skills/remotion-interactivity/assets/remotion-icon.svg +4 -0
- package/bundled-skills/remotion-render/SKILL.md +48 -0
- package/bundled-skills/remotion-render/agents/openai.yaml +7 -0
- package/bundled-skills/remotion-render/assets/remotion-icon.svg +4 -0
- package/bundled-skills/remotion-render/transparent-videos.md +106 -0
- package/bundled-skills/report-writing/SKILL.md +426 -0
- package/bundled-skills/report-writing/references/details.md +187 -0
- package/bundled-skills/reverse-proxy/SKILL.md +420 -0
- package/bundled-skills/runbook-creation/SKILL.md +438 -0
- package/bundled-skills/runbook-creation/references/details.md +71 -0
- package/bundled-skills/saas-pricing-strategist/SKILL.md +169 -0
- package/bundled-skills/saas-security-posture/SKILL.md +415 -0
- package/bundled-skills/sast-scanning/SKILL.md +444 -0
- package/bundled-skills/sbom-supply-chain/SKILL.md +433 -0
- package/bundled-skills/score-eval/SKILL.md +35 -0
- package/bundled-skills/security-arsenal/SKILL.md +446 -0
- package/bundled-skills/security-arsenal/references/details.md +540 -0
- package/bundled-skills/security-automation/SKILL.md +146 -0
- package/bundled-skills/semantic-versioning/SKILL.md +434 -0
- package/bundled-skills/semantic-versioning/references/details.md +83 -0
- package/bundled-skills/service-mesh/SKILL.md +422 -0
- package/bundled-skills/soc2-compliance/SKILL.md +409 -0
- package/bundled-skills/sops-encryption/SKILL.md +124 -0
- package/bundled-skills/sre-dashboards/SKILL.md +143 -0
- package/bundled-skills/ssh-configuration/SKILL.md +324 -0
- package/bundled-skills/ssl-tls-management/SKILL.md +428 -0
- package/bundled-skills/ssl-tls-management/references/details.md +99 -0
- package/bundled-skills/startup-it-troubleshooting/SKILL.md +415 -0
- package/bundled-skills/supply-chain-attack-recon/SKILL.md +453 -0
- package/bundled-skills/supply-chain-attack-recon/references/details.md +258 -0
- package/bundled-skills/systemd-services/SKILL.md +379 -0
- package/bundled-skills/terraform-aws/SKILL.md +125 -0
- package/bundled-skills/terraform-azure/SKILL.md +415 -0
- package/bundled-skills/terraform-azure/references/details.md +231 -0
- package/bundled-skills/terraform-gcp/SKILL.md +369 -0
- package/bundled-skills/threat-modeling/SKILL.md +487 -0
- package/bundled-skills/user-management/SKILL.md +383 -0
- package/bundled-skills/using-agent-skills/SKILL.md +220 -0
- package/bundled-skills/vector-database-ops/SKILL.md +300 -0
- package/bundled-skills/vendor-management/SKILL.md +439 -0
- package/bundled-skills/vendor-management/references/details.md +109 -0
- package/bundled-skills/vercel-deployments/SKILL.md +296 -0
- package/bundled-skills/vllm-server/SKILL.md +236 -0
- package/bundled-skills/vmware-vcenter-attack/SKILL.md +412 -0
- package/bundled-skills/vpn-setup/SKILL.md +452 -0
- package/bundled-skills/vulnerability-scanning/SKILL.md +448 -0
- package/bundled-skills/waf-setup/SKILL.md +354 -0
- package/bundled-skills/waf-setup/references/details.md +211 -0
- package/bundled-skills/web2-recon/SKILL.md +440 -0
- package/bundled-skills/web2-recon/references/details.md +319 -0
- package/bundled-skills/web3-audit/SKILL.md +445 -0
- package/bundled-skills/web3-audit/references/details.md +224 -0
- package/bundled-skills/windows-hardening/SKILL.md +454 -0
- package/bundled-skills/windows-hardening/references/details.md +204 -0
- package/bundled-skills/windows-server/SKILL.md +318 -0
- package/bundled-skills/writing-guidelines/SKILL.md +60 -0
- package/bundled-skills/zero-trust/SKILL.md +461 -0
- package/package.json +1 -1
- package/skills_index.json +7874 -277
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# longbridge-factor-research
|
|
2
|
+
|
|
3
|
+
A systematic framework for testing whether a quantitative factor adds predictive value for future returns — covering IC analysis, information ratio, decile portfolio construction, and factor decay.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
### Step 1 — Define the factor
|
|
8
|
+
|
|
9
|
+
Clarify with the user:
|
|
10
|
+
|
|
11
|
+
- Factor name and calculation (e.g. trailing-12M PE, 1M price momentum, ROE YoY change).
|
|
12
|
+
- Universe: index constituent (e.g. CSI 300, HSI, S&P 500) or custom list.
|
|
13
|
+
- Test period (e.g. 2020-01-01 to 2024-12-31).
|
|
14
|
+
- Holding period (e.g. monthly rebalance).
|
|
15
|
+
|
|
16
|
+
### Step 2 — Fetch universe constituents
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
longbridge constituent --help
|
|
20
|
+
longbridge constituent <INDEX> --format json
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Extract the `stocks` array. Common indices: `000300.SH` (CSI 300), `HSI.HK`, `SPX.US`.
|
|
24
|
+
|
|
25
|
+
### Step 3 — Fetch factor values and returns
|
|
26
|
+
|
|
27
|
+
For each symbol in the universe:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
longbridge calc-index <SYMBOL> --format json # valuation, growth metrics
|
|
31
|
+
longbridge kline <SYMBOL> --period day --count 252 --format json # price history for returns
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Run `--help` on each command to verify available fields before parsing.
|
|
35
|
+
|
|
36
|
+
### Step 4 — Compute IC at each rebalance date
|
|
37
|
+
|
|
38
|
+
`IC_t = rank_correlation(factor_value_t, forward_return_t+h)`
|
|
39
|
+
|
|
40
|
+
Where `h` = holding period. Use Spearman rank correlation (robust to outliers). Winsorize factor values at 1%/99% before ranking.
|
|
41
|
+
|
|
42
|
+
### Step 5 — Summary statistics
|
|
43
|
+
|
|
44
|
+
| Metric | Formula | Good signal threshold |
|
|
45
|
+
| ---------------------- | ------------------------- | --------------------- |
|
|
46
|
+
| Mean IC | Average of IC time series | > 0.03 (positive) |
|
|
47
|
+
| IC Std Dev | Standard deviation of IC | Lower is better |
|
|
48
|
+
| IR (Information Ratio) | Mean IC / Std Dev IC | > 0.5 is promising |
|
|
49
|
+
| IC > 0 hit rate | % of periods IC > 0 | > 55% |
|
|
50
|
+
| ICIR (annualised) | IR × √(periods per year) | > 1.0 strong |
|
|
51
|
+
|
|
52
|
+
### Step 6 — Decile portfolio backtest
|
|
53
|
+
|
|
54
|
+
1. At each rebalance date, sort universe into 10 deciles by factor value.
|
|
55
|
+
2. Track equal-weighted returns for each decile over the holding period.
|
|
56
|
+
3. Key output: decile 1 vs decile 10 spread (long-short portfolio return).
|
|
57
|
+
4. Compute cumulative return, Sharpe ratio, and max drawdown for the long-short portfolio.
|
|
58
|
+
|
|
59
|
+
### Step 7 — IC decay analysis
|
|
60
|
+
|
|
61
|
+
Compute IC for multiple forward horizons (1M, 2M, 3M, 6M, 12M). Plot IC vs horizon. Fast decay = short-term factor; slow decay = longer-term signal.
|
|
62
|
+
|
|
63
|
+
Serial autocorrelation of IC series: `autocorr(IC, lag=1)`. High autocorrelation → smoother signal, lower trading cost.
|
|
64
|
+
|
|
65
|
+
## CLI
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
longbridge constituent --help
|
|
69
|
+
longbridge calc-index --help
|
|
70
|
+
longbridge kline --help
|
|
71
|
+
|
|
72
|
+
longbridge constituent <INDEX> --format json
|
|
73
|
+
longbridge calc-index <SYMBOL> --format json
|
|
74
|
+
longbridge kline <SYMBOL> --period day --count 252 --format json
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Output
|
|
78
|
+
|
|
79
|
+
Present:
|
|
80
|
+
|
|
81
|
+
1. Factor definition and universe summary.
|
|
82
|
+
2. IC time series chart (describe in text if no chart tool).
|
|
83
|
+
3. Summary statistics table (Mean IC, IC Std Dev, IR, hit rate).
|
|
84
|
+
4. Decile return bar chart description (decile 1 to 10 cumulative return).
|
|
85
|
+
5. IC decay table across horizons.
|
|
86
|
+
6. Interpretation: is the factor effective? Recommended holding period?
|
|
87
|
+
|
|
88
|
+
## Error handling
|
|
89
|
+
|
|
90
|
+
| Situation | 简体回复 | 繁體回覆 | English reply |
|
|
91
|
+
| ------------------------------- | ------------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------------------------------- |
|
|
92
|
+
| `command not found: longbridge` | 请安装 longbridge-terminal 或检查 MCP 配置。 | 請安裝 longbridge-terminal 或檢查 MCP 配置。 | Install longbridge-terminal or check MCP config. |
|
|
93
|
+
| stderr: `not logged in` | 请运行 `longbridge auth login`。 | 請執行 `longbridge auth login`。 | Run `longbridge auth login`. |
|
|
94
|
+
| Index not found | 请检查指数代码格式,如 000300.SH / HSI.HK / SPX.US。 | 請確認指數代碼,如 000300.SH / HSI.HK / SPX.US。 | Check index ticker format, e.g. 000300.SH / HSI.HK / SPX.US. |
|
|
95
|
+
| Insufficient history | 该标的历史数据不足以进行回测,请缩短测试期或更换标的。 | 歷史數據不足,請縮短測試期或更換標的。 | Insufficient price history; shorten the test period or change the symbol. |
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# longbridge-factor-screen
|
|
2
|
+
|
|
3
|
+
Fundamental multi-factor screener. Applies user-defined thresholds across PE, PB, ROE, revenue growth, profit growth, and dividend yield to filter a candidate list and rank survivors by composite score.
|
|
4
|
+
|
|
5
|
+
## Supported factors
|
|
6
|
+
|
|
7
|
+
| Factor | 简体 | 繁體 | Source CLI |
|
|
8
|
+
| -------------- | ------------ | ------------ | --------------------------------- |
|
|
9
|
+
| PE (TTM) | 市盈率 | 市盈率 | `calc-index` or `valuation` |
|
|
10
|
+
| PB | 市净率 | 市淨率 | `calc-index` or `valuation` |
|
|
11
|
+
| PS | 市销率 | 市銷率 | `calc-index` or `valuation` |
|
|
12
|
+
| ROE | 净资产收益率 | 淨資產收益率 | `operating` or `financial-report` |
|
|
13
|
+
| Revenue YoY | 营收增速 | 營收增速 | `operating` or `financial-report` |
|
|
14
|
+
| Net profit YoY | 净利润增速 | 淨利潤增速 | `operating` or `financial-report` |
|
|
15
|
+
| Dividend yield | 股息率 | 股息率 | `dividend` or `calc-index` |
|
|
16
|
+
|
|
17
|
+
## Workflow
|
|
18
|
+
|
|
19
|
+
1. **Collect screening criteria** — ask the user if not given. Example defaults:
|
|
20
|
+
- Value screen: PE < 20, PB < 2, ROE > 12%, dividend yield > 2%
|
|
21
|
+
- Growth screen: revenue YoY > 20%, net profit YoY > 20%, PE < 40
|
|
22
|
+
2. **Obtain a candidate universe**. Options (ask user):
|
|
23
|
+
- User provides a list of symbols.
|
|
24
|
+
- Use an index as universe (route to `longbridge-constituent` first):
|
|
25
|
+
```bash
|
|
26
|
+
longbridge constituent 000300.SH --format json # run --help for available flags
|
|
27
|
+
```
|
|
28
|
+
3. **Discover exact CLI flags** before calling:
|
|
29
|
+
```bash
|
|
30
|
+
longbridge calc-index --help
|
|
31
|
+
longbridge operating --help
|
|
32
|
+
longbridge valuation --help
|
|
33
|
+
longbridge dividend --help
|
|
34
|
+
```
|
|
35
|
+
4. **Batch-query each candidate** (call concurrently where possible):
|
|
36
|
+
```bash
|
|
37
|
+
longbridge calc-index <SYMBOL> --format json
|
|
38
|
+
longbridge operating <SYMBOL> --format json
|
|
39
|
+
longbridge dividend <SYMBOL> --format json
|
|
40
|
+
```
|
|
41
|
+
5. **Filter in-context**: discard symbols that fail any hard threshold.
|
|
42
|
+
6. **Score survivors**: normalise each factor to 0–1 range within the passing set; compute weighted composite score. Default weights: ROE 25%, revenue YoY 20%, PE 20%, PB 15%, dividend yield 10%, net profit YoY 10%.
|
|
43
|
+
7. **Output** the candidate table sorted by composite score descending (see Output section). Cite Longbridge Securities.
|
|
44
|
+
|
|
45
|
+
## CLI
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Step 0: discover flags
|
|
49
|
+
longbridge calc-index --help
|
|
50
|
+
longbridge operating --help
|
|
51
|
+
longbridge valuation --help
|
|
52
|
+
longbridge dividend --help
|
|
53
|
+
|
|
54
|
+
# Step 1: get universe (if using an index)
|
|
55
|
+
# NOTE: JSON response uses key "stocks" (not "list") — extract symbols from data["stocks"]
|
|
56
|
+
longbridge constituent 000300.SH --format json # run --help for available flags
|
|
57
|
+
|
|
58
|
+
# Step 2: per-symbol data (repeat for each candidate)
|
|
59
|
+
longbridge calc-index 600519.SH --format json # PE, PB, PS, dividend yield
|
|
60
|
+
# NOTE: `operating` returns data for HK stocks only; for US/A-share use financial-report instead
|
|
61
|
+
longbridge operating 700.HK --format json # ROE, revenue/profit growth (HK only)
|
|
62
|
+
longbridge financial-report AAPL.US --format json # US/A-share fallback; run --help for flags
|
|
63
|
+
longbridge dividend 600519.SH --format json # dividend history
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Output
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Factor Screen Results — Source: Longbridge Securities
|
|
70
|
+
Criteria: PE < 20, ROE > 15%, Revenue YoY > 10%
|
|
71
|
+
Universe: CSI 300 (300 stocks checked) | Passed: N
|
|
72
|
+
|
|
73
|
+
Rank | Symbol | Name | PE | PB | ROE | Rev YoY | NP YoY | Div Yield | Score
|
|
74
|
+
-----|-------------|---------|------|-----|-------|---------|--------|-----------|------
|
|
75
|
+
1 | 600519.SH | Maotai | 28.1 | 9.5 | 31.2% | +18.4% | +15.7% | 2.1% | 0.87
|
|
76
|
+
2 | 601318.SH | Ping An | 8.2 | 1.2 | 14.8% | +12.1% | +10.3% | 4.5% | 0.79
|
|
77
|
+
...
|
|
78
|
+
|
|
79
|
+
Notes:
|
|
80
|
+
- Score = weighted composite (ROE 25%, Rev YoY 20%, PE 20%, PB 15%, Div 10%, NP YoY 10%)
|
|
81
|
+
- PE and PB: lower is better (inverted for scoring); ROE / growth / yield: higher is better
|
|
82
|
+
- N/A fields excluded from score denominator
|
|
83
|
+
|
|
84
|
+
⚠️ 数据仅供参考,不构成投资建议。/ 數據僅供參考,不構成投資建議。/ For reference only. Not investment advice.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Limitations
|
|
88
|
+
|
|
89
|
+
- Screening is applied to a **user-supplied list or index constituents** — this is not a real-time full-market screener.
|
|
90
|
+
- Data is point-in-time from the last available report; forward-looking factors require analyst consensus (`longbridge-fundamental`).
|
|
91
|
+
- If the candidate list exceeds ~30 symbols, process in batches and note that partial results are shown.
|
|
92
|
+
|
|
93
|
+
## Error handling
|
|
94
|
+
|
|
95
|
+
| Situation | 简体 | 繁體 | English |
|
|
96
|
+
| ------------------------------- | -------------------------------------------- | -------------------------------------------- | --------------------------------------------------------------------- |
|
|
97
|
+
| `command not found: longbridge` | 回退到 MCP;否则告知安装 longbridge-terminal | 回退到 MCP;否則告知安裝 longbridge-terminal | Fall back to MCP; otherwise tell user to install longbridge-terminal. |
|
|
98
|
+
| stderr `not logged in` | 请运行 `longbridge auth login` | 請執行 `longbridge auth login` | Run `longbridge auth login`. |
|
|
99
|
+
| `calc-index` returns empty | 该标的无估值数据,跳过或标注 N/A | 該標的無估值數據,跳過或標注 N/A | No valuation data; skip or mark N/A. |
|
|
100
|
+
| Candidate list > 30 symbols | 提示分批处理,优先处理前 30 | 提示分批處理,優先處理前 30 | Process in batches of 30; note partial coverage. |
|
|
101
|
+
| Other stderr | 原文显示错误 | 原文顯示錯誤 | Surface verbatim. |
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# longbridge-hedging
|
|
2
|
+
|
|
3
|
+
Design and evaluate hedging strategies for a portfolio or single position using Longbridge market data — from simple Beta hedges to options-based protection and cross-asset tail-risk hedges.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
### Step 1 — Identify hedge objective
|
|
8
|
+
|
|
9
|
+
Clarify with the user:
|
|
10
|
+
|
|
11
|
+
- What is being hedged: single position, portfolio, or sector exposure?
|
|
12
|
+
- Risk to hedge: market Beta, tail event, currency, or volatility?
|
|
13
|
+
- Hedge horizon: days, weeks, or months?
|
|
14
|
+
- Cost tolerance: zero-cost (collar) or willing to pay premium?
|
|
15
|
+
|
|
16
|
+
### Step 2 — Fetch data
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
longbridge kline --help
|
|
20
|
+
longbridge option --help
|
|
21
|
+
|
|
22
|
+
# Beta calculation (60-day daily returns)
|
|
23
|
+
longbridge kline <SYMBOL> --period day --count 60 --format json
|
|
24
|
+
|
|
25
|
+
# Option chain for hedge instruments
|
|
26
|
+
longbridge option chain <SYMBOL> --format json
|
|
27
|
+
|
|
28
|
+
# Current portfolio positions (requires login with trade scope)
|
|
29
|
+
longbridge positions --format json
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Step 3 — Beta hedge
|
|
33
|
+
|
|
34
|
+
**Portfolio Beta**:
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
β_portfolio = Σ(w_i × β_i)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Compute individual Beta for each holding from 60-day returns vs benchmark (SPX / HSI / CSI300). Fetch benchmark kline with `longbridge kline <BENCHMARK> --period day --count 60 --format json`.
|
|
41
|
+
|
|
42
|
+
**Hedge ratio (index futures or inverse ETF)**:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
Contracts needed = (Portfolio Value × β_portfolio) / (Futures Price × Contract Multiplier)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Present: number of contracts, hedge cost, and residual Beta after hedge.
|
|
49
|
+
|
|
50
|
+
### Step 4 — Options-based protection
|
|
51
|
+
|
|
52
|
+
**Protective Put** (保护性看跌期权介绍):
|
|
53
|
+
|
|
54
|
+
- 原理:持有正股的同时持有看跌期权;当标的价格下跌时,期权价值上升,可对冲下行风险。常见做法是选择平值(ATM)或略虚值(OTM)的看跌期权。
|
|
55
|
+
- Cost = put premium; protection kicks in below strike.
|
|
56
|
+
- Effective floor = Strike − Premium paid.
|
|
57
|
+
- 具体期权合约是否适用,请根据自身持仓情况和风险偏好独立判断。
|
|
58
|
+
- Fetch available strikes: `longbridge option chain <SYMBOL> --format json`.
|
|
59
|
+
|
|
60
|
+
**Collar Strategy** (zero-cost or near-zero):
|
|
61
|
+
|
|
62
|
+
- Buy OTM put (downside protection) + sell OTM call (cap upside).
|
|
63
|
+
- Net premium ≈ 0 if call premium offsets put premium.
|
|
64
|
+
- Present: put strike, call strike, net cost, max gain, max loss.
|
|
65
|
+
|
|
66
|
+
**Selection criteria**:
|
|
67
|
+
| Criterion | Protective Put | Collar |
|
|
68
|
+
|---|---|---|
|
|
69
|
+
| Upside retention | Full | Capped at call strike |
|
|
70
|
+
| Cost | Premium paid | Near zero |
|
|
71
|
+
| Best for | Bullish with hedge need | Neutral/mild bearish |
|
|
72
|
+
|
|
73
|
+
### Step 5 — Tail risk hedges
|
|
74
|
+
|
|
75
|
+
| Tool | Instrument | Mechanism |
|
|
76
|
+
| ------------------------ | --------------------- | ---------------------------------- |
|
|
77
|
+
| VIX calls | UVXY.US / VIX options | Profit from volatility spike |
|
|
78
|
+
| Gold | GLD.US / 518880.SH | Safe-haven in risk-off |
|
|
79
|
+
| Long-dated US Treasuries | TLT.US | Negative correlation with equities |
|
|
80
|
+
| Put on index | SPY puts / HSI puts | Direct market hedge |
|
|
81
|
+
|
|
82
|
+
Note: fetch current price and recent kline for any hedge instrument before recommending.
|
|
83
|
+
|
|
84
|
+
### Step 6 — Currency hedge
|
|
85
|
+
|
|
86
|
+
For HK/US cross-currency portfolios:
|
|
87
|
+
|
|
88
|
+
- USD/HKD is pegged — minimal FX risk.
|
|
89
|
+
- CNY exposure: use offshore RMB (CNH) forwards or futures.
|
|
90
|
+
- Non-HKD Asian exposure: fetch FX rate via `longbridge fx --format json` (verify flag with `--help`).
|
|
91
|
+
|
|
92
|
+
Present notional hedge amount, instrument, tenor, and estimated cost.
|
|
93
|
+
|
|
94
|
+
### Step 7 — Hedge cost assessment
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
Cost efficiency = Protection value / Premium paid
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Present: premium as % of protected notional, breakeven move, and expected cost per 1% of downside protection.
|
|
101
|
+
|
|
102
|
+
## CLI
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
longbridge kline --help
|
|
106
|
+
longbridge option --help
|
|
107
|
+
longbridge positions --help
|
|
108
|
+
|
|
109
|
+
longbridge kline <SYMBOL> --period day --count 60 --format json
|
|
110
|
+
longbridge option chain <SYMBOL> --format json
|
|
111
|
+
longbridge positions --format json
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Output
|
|
115
|
+
|
|
116
|
+
Present:
|
|
117
|
+
|
|
118
|
+
1. Hedge objective summary.
|
|
119
|
+
2. Recommended strategy with rationale.
|
|
120
|
+
3. Implementation details (strikes, contracts, premium).
|
|
121
|
+
4. Cost vs protection table.
|
|
122
|
+
5. Scenarios: portfolio value if market falls 10% / 20% with and without hedge.
|
|
123
|
+
6. Caveats (basis risk, early exercise for American options, liquidity).
|
|
124
|
+
|
|
125
|
+
Always note: hedging reduces risk but also limits upside.
|
|
126
|
+
|
|
127
|
+
> 以上内容仅供参考,不构成投资建议。投资决策请结合自身风险承受能力独立判断。/ The above is for reference only and does not constitute investment advice. Please make investment decisions independently based on your own risk tolerance.
|
|
128
|
+
|
|
129
|
+
## Error handling
|
|
130
|
+
|
|
131
|
+
| Situation | 简体回复 | 繁體回覆 | English reply |
|
|
132
|
+
| ------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------ |
|
|
133
|
+
| `command not found: longbridge` | 请安装 longbridge-terminal 或检查 MCP 配置。 | 請安裝 longbridge-terminal 或檢查 MCP 配置。 | Install longbridge-terminal or check MCP config. |
|
|
134
|
+
| stderr: `not logged in` | 请运行 `longbridge auth login`(需 Trade 权限查看持仓)。 | 請執行 `longbridge auth login`(需 Trade 權限查看持倉)。 | Run `longbridge auth login` (Trade scope needed for positions). |
|
|
135
|
+
| No option chain data | 该标的无期权数据,请尝试对应指数期权或 ETF 期权。 | 該標的無期權數據,請嘗試指數或 ETF 期權。 | No option chain for this symbol; try index or ETF options instead. |
|
|
136
|
+
| Negative or missing Beta | Beta 数据不足,将使用市值加权 Beta=1 作为默认值。 | Beta 數據不足,使用 Beta=1 作為默認值。 | Insufficient Beta data; defaulting to Beta = 1. |
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# longbridge-ml-strategy
|
|
2
|
+
|
|
3
|
+
Walk-forward machine-learning framework for stock direction prediction. Fetches historical OHLCV data, engineers technical features, trains a rolling classifier (Random Forest or Gradient Boosting), generates probabilistic buy/sell signals, and evaluates backtest performance.
|
|
4
|
+
|
|
5
|
+
## Dependencies
|
|
6
|
+
|
|
7
|
+
Requires: `scikit-learn`, `pandas`, `numpy` (usually pre-installed).
|
|
8
|
+
Optional: `xgboost` or `lightgbm` for gradient-boosting models.
|
|
9
|
+
If unavailable, fall back to a simpler logistic-regression model.
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. Fetch 504 daily candles (≈ 2 years):
|
|
14
|
+
`longbridge kline <SYMBOL> --period day --count 504 --format json`
|
|
15
|
+
|
|
16
|
+
2. **Feature engineering** (compute on rolling windows):
|
|
17
|
+
- MACD line and signal (EMA12 − EMA26, signal EMA9)
|
|
18
|
+
- RSI-14
|
|
19
|
+
- Bollinger Band width: (upper − lower) / mid, window 20
|
|
20
|
+
- Volume change rate: (vol*t − vol*{t-5}) / vol\_{t-5}
|
|
21
|
+
- 5-day price momentum: (close*t / close*{t-5}) − 1
|
|
22
|
+
- Label: 1 if close\_{t+5} > close_t × 1.01, 0 if < close_t × 0.99, else drop
|
|
23
|
+
|
|
24
|
+
3. **Walk-forward training**:
|
|
25
|
+
- Training window: 252 days; retrain every 60 days
|
|
26
|
+
- Model: `RandomForestClassifier(n_estimators=100)` or `GradientBoostingClassifier`
|
|
27
|
+
- Predict probability for the current bar
|
|
28
|
+
|
|
29
|
+
4. **Signal generation**:
|
|
30
|
+
- prob > 0.60 → 模型上涨概率偏高 / Model upside probability elevated
|
|
31
|
+
- prob < 0.40 → 模型下跌概率偏高 / Model downside probability elevated
|
|
32
|
+
- Otherwise → 模型无方向性预测 / No directional signal from model
|
|
33
|
+
|
|
34
|
+
5. **Backtest metrics** (on out-of-sample predictions):
|
|
35
|
+
- Win rate (% correct directional calls)
|
|
36
|
+
- Profit factor (gross profit / gross loss)
|
|
37
|
+
- Annualised Sharpe ratio (assuming daily rebalance)
|
|
38
|
+
- Max drawdown
|
|
39
|
+
|
|
40
|
+
6. **Feature importance**: rank top-5 features by mean decrease in impurity.
|
|
41
|
+
|
|
42
|
+
Run `longbridge kline --help` to confirm flag names before calling.
|
|
43
|
+
|
|
44
|
+
## CLI
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
longbridge kline --help
|
|
48
|
+
|
|
49
|
+
longbridge kline <SYMBOL> --period day --count 504 --format json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Output
|
|
53
|
+
|
|
54
|
+
| Metric | 简体 | 繁體 | English |
|
|
55
|
+
| ------------------ | -------- | -------- | ------------------ |
|
|
56
|
+
| Current signal | 当前信号 | 當前訊號 | Current signal |
|
|
57
|
+
| Signal probability | 预测概率 | 預測概率 | Signal probability |
|
|
58
|
+
| Win rate | 胜率 | 勝率 | Win rate |
|
|
59
|
+
| Profit factor | 盈亏比 | 盈虧比 | Profit factor |
|
|
60
|
+
| Sharpe ratio | 夏普比率 | 夏普比率 | Sharpe ratio |
|
|
61
|
+
| Max drawdown | 最大回撤 | 最大回撤 | Max drawdown |
|
|
62
|
+
| Top features | 重要特征 | 重要特徵 | Top features |
|
|
63
|
+
|
|
64
|
+
Output: current signal box → backtest summary table → feature importance list → caveats (past performance, data snooping). Cite **Longbridge Securities** / **数据来源:长桥证券** / **數據來源:長橋證券**.
|
|
65
|
+
|
|
66
|
+
> 以上内容仅供参考,不构成投资建议。投资决策请结合自身风险承受能力独立判断。
|
|
67
|
+
> The above is for reference only and does not constitute investment advice. Investment decisions should be made based on your own risk tolerance.
|
|
68
|
+
|
|
69
|
+
## Error handling
|
|
70
|
+
|
|
71
|
+
| Situation | 简体回复 | 繁體回復 | English reply |
|
|
72
|
+
| -------------------------------- | ---------------------------------------------------------------- | ----------------------------------------- | ----------------------------------------------- |
|
|
73
|
+
| `command not found: longbridge` | 回退到 MCP 或提示安装 longbridge-terminal | 回退到 MCP 或提示安裝 longbridge-terminal | Fall back to MCP or install longbridge-terminal |
|
|
74
|
+
| `not logged in` / `unauthorized` | 请运行 `longbridge auth login` | 請執行 `longbridge auth login` | Run `longbridge auth login` |
|
|
75
|
+
| `scikit-learn` not found | 提示 `pip install scikit-learn pandas numpy`,并改用逻辑回归降级 | 提示安裝,降級至邏輯回歸 | Prompt install; degrade to logistic regression |
|
|
76
|
+
| Fewer than 252 candles | 数据不足,无法完成 walk-forward 训练 | 數據不足 | Insufficient data for walk-forward |
|
|
77
|
+
| Other stderr | 直接显示原始错误 | 直接顯示原始錯誤 | Surface verbatim |
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# longbridge-multifactor
|
|
2
|
+
|
|
3
|
+
Cross-sectional multi-factor quantitative stock selection. Scores a universe of stocks on value, momentum, quality, and low-volatility factors; composites the scores; ranks stocks; and outputs a TopN buy list and bottom-N short list with factor-level attribution.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
1. **Get universe**: fetch index constituents:
|
|
8
|
+
`longbridge constituent <INDEX> --format json`
|
|
9
|
+
Extract the `stocks` key. If the user provides a custom list, skip this step.
|
|
10
|
+
|
|
11
|
+
2. **Fetch valuation factors** for each symbol (batched, up to 20 stocks for manageable output):
|
|
12
|
+
`longbridge calc-index <SYMBOL> --format json`
|
|
13
|
+
Extract PE, PB, ROE. Value factors: `f_value = 0.5 × (1/PE) + 0.5 × (1/PB)` (normalised).
|
|
14
|
+
|
|
15
|
+
3. **Fetch price history** for momentum and low-vol:
|
|
16
|
+
`longbridge kline <SYMBOL> --period day --count 60 --format json`
|
|
17
|
+
- Momentum: (close_today / close_60d_ago) − 1
|
|
18
|
+
- Low-volatility: annualised std of last 60 daily returns × √252 (negate: lower HV → higher score)
|
|
19
|
+
|
|
20
|
+
4. **Standardise** each factor across the universe to Z-scores (subtract mean, divide by std).
|
|
21
|
+
|
|
22
|
+
5. **Composite score**:
|
|
23
|
+
- Equal-weight: `score = 0.25 × Z_value + 0.25 × Z_momentum + 0.25 × Z_quality + 0.25 × Z_lowvol`
|
|
24
|
+
- IC-weighted (if the user specifies): weight each factor by its historical IC (information coefficient); if IC data unavailable, default to equal-weight.
|
|
25
|
+
|
|
26
|
+
6. **Rank and output**:
|
|
27
|
+
- Top 20%: buy / long signal
|
|
28
|
+
- Bottom 20%: avoid / short signal
|
|
29
|
+
- Display top-10 and bottom-10 stocks with individual factor Z-scores and composite score.
|
|
30
|
+
|
|
31
|
+
Run `longbridge constituent --help`, `longbridge calc-index --help`, and `longbridge kline --help` to verify current flag names.
|
|
32
|
+
|
|
33
|
+
## CLI
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
longbridge constituent --help
|
|
37
|
+
longbridge calc-index --help
|
|
38
|
+
longbridge kline --help
|
|
39
|
+
|
|
40
|
+
longbridge constituent <INDEX> --format json
|
|
41
|
+
longbridge calc-index <SYMBOL> --format json
|
|
42
|
+
longbridge kline <SYMBOL> --period day --count 60 --format json
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Supported index examples: `HSI.HK`, `SPX.US`, `IXIC.US`, `DJI.US`, `000300.SH`.
|
|
46
|
+
|
|
47
|
+
## Output
|
|
48
|
+
|
|
49
|
+
| Column | 简体 | 繁體 | English |
|
|
50
|
+
| --------------- | --------------- | --------------- | ---------------- |
|
|
51
|
+
| Composite score | 综合得分 | 綜合得分 | Composite score |
|
|
52
|
+
| Value Z | 价值因子 Z 值 | 價值因子 Z 值 | Value Z-score |
|
|
53
|
+
| Momentum Z | 动量因子 Z 值 | 動量因子 Z 值 | Momentum Z-score |
|
|
54
|
+
| Quality Z | 质量因子 Z 值 | 質量因子 Z 值 | Quality Z-score |
|
|
55
|
+
| Low-vol Z | 低波动因子 Z 值 | 低波動因子 Z 值 | Low-vol Z-score |
|
|
56
|
+
| Signal | 信号 | 訊號 | Signal |
|
|
57
|
+
|
|
58
|
+
Output: top-10 / bottom-10 ranked table → factor dispersion summary → composite methodology note. Add caveat that the universe is limited by API throughput. Cite **Longbridge Securities** / **数据来源:长桥证券** / **數據來源:長橋證券**.
|
|
59
|
+
|
|
60
|
+
## Error handling
|
|
61
|
+
|
|
62
|
+
| Situation | 简体回复 | 繁體回復 | English reply |
|
|
63
|
+
| -------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------------- |
|
|
64
|
+
| `command not found: longbridge` | 回退到 MCP 或提示安装 longbridge-terminal | 回退到 MCP 或提示安裝 longbridge-terminal | Fall back to MCP or install longbridge-terminal |
|
|
65
|
+
| `not logged in` / `unauthorized` | 请运行 `longbridge auth login` | 請執行 `longbridge auth login` | Run `longbridge auth login` |
|
|
66
|
+
| `calc-index` returns null PE/PB | 跳过该标的,标注"数据缺失" | 跳過該標的,標注"數據缺失" | Skip symbol; mark as "data missing" |
|
|
67
|
+
| Universe > 50 stocks | 自动截取前50只成交额最大的标的 | 自動截取前50只 | Auto-limit to top-50 by turnover |
|
|
68
|
+
| Other stderr | 直接显示原始错误 | 直接顯示原始錯誤 | Surface verbatim |
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# longbridge-pairs-trading
|
|
2
|
+
|
|
3
|
+
Statistical-arbitrage strategy for a pair of correlated securities. Tests for cointegration, estimates hedge ratio, computes spread Z-score, and outputs actionable long/short signals with half-life and position sizing guidance.
|
|
4
|
+
|
|
5
|
+
## Workflow
|
|
6
|
+
|
|
7
|
+
1. Fetch 252 daily candles for each symbol:
|
|
8
|
+
```
|
|
9
|
+
longbridge kline <SYMBOL_A> --period day --count 252 --format json
|
|
10
|
+
longbridge kline <SYMBOL_B> --period day --count 252 --format json
|
|
11
|
+
```
|
|
12
|
+
2. Align on `time`, drop unmatched rows (different trading calendars).
|
|
13
|
+
3. **Cointegration test (Engle-Granger)**:
|
|
14
|
+
- OLS regress `ln(close_A)` on `ln(close_B)` → hedge ratio β
|
|
15
|
+
- Compute residuals (spread) = `ln(close_A) − β × ln(close_B)`
|
|
16
|
+
- Run ADF test on residuals; if p-value < 0.05, declare cointegrated
|
|
17
|
+
4. **Spread statistics**:
|
|
18
|
+
- Spread mean μ, std σ
|
|
19
|
+
- Z-score = (spread_current − μ) / σ
|
|
20
|
+
- Half-life λ = −ln(2) / OLS*slope of Δspread ~ spread*{t-1} (AR(1))
|
|
21
|
+
5. **Signal**:
|
|
22
|
+
- Z > 2.0: 价差处于历史高位区间(统计上偏离均值偏大)/ Spread at historical high (statistically elevated)
|
|
23
|
+
- Z < −2.0: 价差处于历史低位区间(统计上偏离均值偏小)/ Spread at historical low (statistically depressed)
|
|
24
|
+
- |Z| < 0.5: 价差回归均值区间 / Spread near historical mean
|
|
25
|
+
6. Position sizing: suggest equal-dollar or volatility-scaled sizing; note that execution must be simultaneous.
|
|
26
|
+
|
|
27
|
+
Run `longbridge kline --help` to confirm current flag names before calling.
|
|
28
|
+
|
|
29
|
+
## CLI
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
longbridge kline --help
|
|
33
|
+
|
|
34
|
+
longbridge kline <SYMBOL_A> --period day --count 252 --format json
|
|
35
|
+
longbridge kline <SYMBOL_B> --period day --count 252 --format json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Output
|
|
39
|
+
|
|
40
|
+
| Metric | 简体 | 繁體 | English |
|
|
41
|
+
| --------------------- | ------------ | ------------ | --------------------- |
|
|
42
|
+
| Hedge ratio β | 对冲比率 | 對沖比率 | Hedge ratio |
|
|
43
|
+
| Cointegration p-value | 协整 p 值 | 協整 p 值 | Cointegration p-value |
|
|
44
|
+
| Spread Z-score | 价差 Z 分 | 價差 Z 分 | Spread Z-score |
|
|
45
|
+
| Half-life | 半衰期(天) | 半衰期(天) | Half-life (days) |
|
|
46
|
+
| Signal | 交易信号 | 交易訊號 | Trade signal |
|
|
47
|
+
|
|
48
|
+
Output: cointegration verdict → spread statistics table → current signal → position guidance. Add a risk note if p-value > 0.05 (not cointegrated). Cite **Longbridge Securities** / **数据来源:长桥证券** / **數據來源:長橋證券**.
|
|
49
|
+
|
|
50
|
+
> 以上内容仅供参考,不构成投资建议。投资决策请结合自身风险承受能力独立判断。
|
|
51
|
+
> The above is for reference only and does not constitute investment advice. Investment decisions should be made based on your own risk tolerance.
|
|
52
|
+
|
|
53
|
+
## Error handling
|
|
54
|
+
|
|
55
|
+
| Situation | 简体回复 | 繁體回復 | English reply |
|
|
56
|
+
| -------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------------- |
|
|
57
|
+
| `command not found: longbridge` | 回退到 MCP 或提示安装 longbridge-terminal | 回退到 MCP 或提示安裝 longbridge-terminal | Fall back to MCP or install longbridge-terminal |
|
|
58
|
+
| `not logged in` / `unauthorized` | 请运行 `longbridge auth login` | 請執行 `longbridge auth login` | Run `longbridge auth login` |
|
|
59
|
+
| ADF p-value > 0.05 | 两标的未通过协整检验,配对交易风险较高 | 兩標的未通過協整檢驗,配對交易風險較高 | Not cointegrated; pairs trade is high-risk |
|
|
60
|
+
| Insufficient overlapping dates | 两标的历史数据重叠不足,无法建立配对 | 兩標的歷史數據重疊不足 | Insufficient overlapping history |
|
|
61
|
+
| Other stderr | 直接显示原始错误 | 直接顯示原始錯誤 | Surface verbatim |
|