myagent-ai 1.0.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/Dockerfile +30 -0
- package/README.md +333 -0
- package/agents/__init__.py +6 -0
- package/agents/__pycache__/main_agent.cpython-312.pyc +0 -0
- package/agents/base.py +115 -0
- package/agents/main_agent.py +695 -0
- package/agents/memory_agent.py +313 -0
- package/agents/tool_agent.py +248 -0
- package/chatbot/__init__.py +5 -0
- package/chatbot/base.py +124 -0
- package/chatbot/discord_bot.py +146 -0
- package/chatbot/feishu_bot.py +548 -0
- package/chatbot/manager.py +164 -0
- package/chatbot/qq_bot.py +189 -0
- package/chatbot/telegram_bot.py +167 -0
- package/chatbot/wechat_bot.py +558 -0
- package/communication/__init__.py +66 -0
- package/communication/channel.py +576 -0
- package/communication/crypto.py +347 -0
- package/communication/manager.py +397 -0
- package/communication/peer.py +156 -0
- package/config.py +464 -0
- package/core/__init__.py +10 -0
- package/core/config_broadcast.py +276 -0
- package/core/llm.py +878 -0
- package/core/logger.py +241 -0
- package/core/task_queue.py +362 -0
- package/core/utils.py +184 -0
- package/executor/__init__.py +4 -0
- package/executor/__pycache__/engine.cpython-312.pyc +0 -0
- package/executor/engine.py +1215 -0
- package/groups/__init__.py +15 -0
- package/groups/manager.py +724 -0
- package/knowledge/__init__.py +4 -0
- package/knowledge/rag.py +444 -0
- package/main.py +801 -0
- package/memory/__init__.py +4 -0
- package/memory/manager.py +840 -0
- package/organization/__init__.py +4 -0
- package/organization/manager.py +350 -0
- package/package.json +58 -0
- package/requirements.txt +59 -0
- package/setup.py +40 -0
- package/skills/ASR/LICENSE.txt +21 -0
- package/skills/ASR/SKILL.md +580 -0
- package/skills/ASR/scripts/asr.ts +27 -0
- package/skills/LLM/LICENSE.txt +21 -0
- package/skills/LLM/SKILL.md +856 -0
- package/skills/LLM/scripts/chat.ts +32 -0
- package/skills/TTS/LICENSE.txt +21 -0
- package/skills/TTS/SKILL.md +735 -0
- package/skills/TTS/tts.ts +25 -0
- package/skills/VLM/LICENSE.txt +21 -0
- package/skills/VLM/SKILL.md +588 -0
- package/skills/VLM/scripts/vlm.ts +57 -0
- package/skills/__init__.py +5 -0
- package/skills/agent-browser/SKILL.md +328 -0
- package/skills/ai-news-collectors/SKILL.md +157 -0
- package/skills/ai-news-collectors/_meta.json +6 -0
- package/skills/ai-news-collectors/references/sources.md +128 -0
- package/skills/aminer-open-academic/SKILL.md +312 -0
- package/skills/aminer-open-academic/_meta.json +6 -0
- package/skills/aminer-open-academic/evals/evals.json +46 -0
- package/skills/aminer-open-academic/references/api-catalog.md +1032 -0
- package/skills/aminer-open-academic/scripts/__pycache__/aminer_client.cpython-312.pyc +0 -0
- package/skills/aminer-open-academic/scripts/aminer_client.py +875 -0
- package/skills/auto-target-tracker/SKILL.md +317 -0
- package/skills/base.py +147 -0
- package/skills/blog-writer/2024-02-17-radical-transparency-sales.md +35 -0
- package/skills/blog-writer/2024-02-17-raycast-spotlight-superpowers.md +33 -0
- package/skills/blog-writer/2024-02-17-short-form-content-marketing.md +47 -0
- package/skills/blog-writer/2024-02-17-typing-speed-benefits.md +33 -0
- package/skills/blog-writer/2024-03-14-effective-ai-prompts.md +55 -0
- package/skills/blog-writer/2024-11-08-ai-revolutionizing-entry-level-sales.md +43 -0
- package/skills/blog-writer/2025-11-12-why-ai-art-is-useless.md +49 -0
- package/skills/blog-writer/README.md +2 -0
- package/skills/blog-writer/SKILL.md +158 -0
- package/skills/blog-writer/__pycache__/manage_examples.cpython-312.pyc +0 -0
- package/skills/blog-writer/_meta.json +6 -0
- package/skills/blog-writer/manage_examples.py +90 -0
- package/skills/blog-writer/style-guide.md +160 -0
- package/skills/browser_skill.py +146 -0
- package/skills/coding-agent/SKILL.md +120 -0
- package/skills/coding-agent/_meta.json +6 -0
- package/skills/coding-agent/criteria.md +48 -0
- package/skills/coding-agent/execution.md +42 -0
- package/skills/coding-agent/memory-template.md +38 -0
- package/skills/coding-agent/planning.md +31 -0
- package/skills/coding-agent/state.md +60 -0
- package/skills/coding-agent/verification.md +39 -0
- package/skills/content-strategy/SKILL.md +181 -0
- package/skills/content-strategy/_meta.json +6 -0
- package/skills/contentanalysis/ExtractWisdom/SKILL.md +229 -0
- package/skills/contentanalysis/ExtractWisdom/Workflows/Extract.md +60 -0
- package/skills/contentanalysis/SKILL.md +14 -0
- package/skills/docx/CHANGELOG.md +85 -0
- package/skills/docx/LICENSE.txt +30 -0
- package/skills/docx/SKILL.md +455 -0
- package/skills/docx/docx-js.md +681 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/docx/ooxml/scripts/__pycache__/pack.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/__pycache__/unpack.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/pack.py +159 -0
- package/skills/docx/ooxml/scripts/unpack.py +29 -0
- package/skills/docx/ooxml/scripts/validate.py +69 -0
- package/skills/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/docx/ooxml/scripts/validation/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/validation/__pycache__/base.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/validation/__pycache__/docx.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/validation/__pycache__/pptx.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/validation/__pycache__/redlining.cpython-312.pyc +0 -0
- package/skills/docx/ooxml/scripts/validation/base.py +951 -0
- package/skills/docx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/docx/ooxml.md +615 -0
- package/skills/docx/scripts/__init__.py +1 -0
- package/skills/docx/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/docx/scripts/__pycache__/add_toc_placeholders.cpython-312.pyc +0 -0
- package/skills/docx/scripts/__pycache__/document.cpython-312.pyc +0 -0
- package/skills/docx/scripts/__pycache__/utilities.cpython-312.pyc +0 -0
- package/skills/docx/scripts/add_toc_placeholders.py +220 -0
- package/skills/docx/scripts/document.py +1302 -0
- package/skills/docx/scripts/templates/comments.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/docx/scripts/templates/people.xml +3 -0
- package/skills/docx/scripts/utilities.py +374 -0
- package/skills/dream-interpreter/SKILL.md +88 -0
- package/skills/dream-interpreter/assets/example_asset.txt +24 -0
- package/skills/dream-interpreter/references/api_reference.md +34 -0
- package/skills/dream-interpreter/references/interpretation-guide.md +83 -0
- package/skills/dream-interpreter/references/output-schema.md +65 -0
- package/skills/dream-interpreter/references/questioning-strategy.md +62 -0
- package/skills/dream-interpreter/references/visual-mapping.md +81 -0
- package/skills/dream-interpreter/scripts/__pycache__/example.cpython-312.pyc +0 -0
- package/skills/dream-interpreter/scripts/example.py +19 -0
- package/skills/dream-interpreter/skill.json +7 -0
- package/skills/file_skill.py +246 -0
- package/skills/finance/Finance_API_Doc.md +445 -0
- package/skills/finance/SKILL.md +53 -0
- package/skills/fullstack-dev/SKILL.md +205 -0
- package/skills/get-fortune-analysis/SKILL.md +370 -0
- package/skills/get-fortune-analysis/lunar_python.py +91 -0
- package/skills/gift-evaluator/SKILL.md +83 -0
- package/skills/gift-evaluator/__pycache__/html_tools.cpython-312.pyc +0 -0
- package/skills/gift-evaluator/html_tools.py +268 -0
- package/skills/image-edit/LICENSE.txt +21 -0
- package/skills/image-edit/SKILL.md +896 -0
- package/skills/image-edit/scripts/image-edit.ts +36 -0
- package/skills/image-generation/LICENSE.txt +21 -0
- package/skills/image-generation/SKILL.md +583 -0
- package/skills/image-generation/scripts/image-generation.ts +28 -0
- package/skills/image-understand/LICENSE.txt +21 -0
- package/skills/image-understand/SKILL.md +855 -0
- package/skills/image-understand/scripts/image-understand.ts +41 -0
- package/skills/interview-designer/README.md +70 -0
- package/skills/interview-designer/SKILL.md +53 -0
- package/skills/interview-designer/_meta.json +6 -0
- package/skills/interview-designer/references/design_rationale.md +43 -0
- package/skills/interview-designer/templates/interview_guide_template.md +62 -0
- package/skills/market-research-reports/SKILL.md +901 -0
- package/skills/market-research-reports/assets/FORMATTING_GUIDE.md +428 -0
- package/skills/market-research-reports/assets/market_report_template.tex +1380 -0
- package/skills/market-research-reports/assets/market_research.sty +564 -0
- package/skills/market-research-reports/references/data_analysis_patterns.md +548 -0
- package/skills/market-research-reports/references/report_structure_guide.md +999 -0
- package/skills/market-research-reports/references/visual_generation_guide.md +1077 -0
- package/skills/market-research-reports/scripts/__pycache__/generate_market_visuals.cpython-312.pyc +0 -0
- package/skills/market-research-reports/scripts/generate_market_visuals.py +529 -0
- package/skills/marketing-mode/README.md +49 -0
- package/skills/marketing-mode/SKILL.md +693 -0
- package/skills/marketing-mode/_meta.json +6 -0
- package/skills/marketing-mode/mode-prompt.md +39 -0
- package/skills/marketing-mode/skill.json +51 -0
- package/skills/mindfulness-meditation/SKILL.md +65 -0
- package/skills/mindfulness-meditation/_meta.json +6 -0
- package/skills/multi-search-engine/CHANGELOG.md +15 -0
- package/skills/multi-search-engine/CHANNELLOG.md +48 -0
- package/skills/multi-search-engine/SKILL.md +78 -0
- package/skills/multi-search-engine/_meta.json +6 -0
- package/skills/multi-search-engine/config.json +14 -0
- package/skills/multi-search-engine/metadata.json +7 -0
- package/skills/multi-search-engine/references/international-search.md +651 -0
- package/skills/pdf/LICENSE.txt +30 -0
- package/skills/pdf/SKILL.md +1534 -0
- package/skills/pdf/forms.md +205 -0
- package/skills/pdf/reference.md +765 -0
- package/skills/pdf/scripts/__pycache__/add_zai_metadata.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/check_bounding_boxes.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/check_bounding_boxes_test.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/check_fillable_fields.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/convert_pdf_to_images.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/create_validation_image.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/extract_form_field_info.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/fill_fillable_fields.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/fill_pdf_form_with_annotations.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/__pycache__/sanitize_code.cpython-312.pyc +0 -0
- package/skills/pdf/scripts/add_zai_metadata.py +172 -0
- package/skills/pdf/scripts/check_bounding_boxes.py +70 -0
- package/skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/skills/pdf/scripts/check_fillable_fields.py +12 -0
- package/skills/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/skills/pdf/scripts/create_validation_image.py +41 -0
- package/skills/pdf/scripts/extract_form_field_info.py +152 -0
- package/skills/pdf/scripts/fill_fillable_fields.py +114 -0
- package/skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/skills/pdf/scripts/sanitize_code.py +110 -0
- package/skills/podcast-generate/LICENSE.txt +21 -0
- package/skills/podcast-generate/SKILL.md +198 -0
- package/skills/podcast-generate/generate.ts +661 -0
- package/skills/podcast-generate/package.json +30 -0
- package/skills/podcast-generate/readme.md +177 -0
- package/skills/podcast-generate/test_data/segments.jsonl +3 -0
- package/skills/podcast-generate/tsconfig.json +26 -0
- package/skills/pptx/LICENSE.txt +30 -0
- package/skills/pptx/SKILL.md +507 -0
- package/skills/pptx/html2pptx.md +625 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/pptx/ooxml/scripts/__pycache__/pack.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/__pycache__/unpack.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/__pycache__/validate.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/pack.py +159 -0
- package/skills/pptx/ooxml/scripts/unpack.py +29 -0
- package/skills/pptx/ooxml/scripts/validate.py +69 -0
- package/skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/pptx/ooxml/scripts/validation/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/validation/__pycache__/base.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/validation/__pycache__/docx.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/validation/__pycache__/pptx.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/validation/__pycache__/redlining.cpython-312.pyc +0 -0
- package/skills/pptx/ooxml/scripts/validation/base.py +951 -0
- package/skills/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/pptx/ooxml.md +427 -0
- package/skills/pptx/scripts/__pycache__/inventory.cpython-312.pyc +0 -0
- package/skills/pptx/scripts/__pycache__/inventory.cpython-313.pyc +0 -0
- package/skills/pptx/scripts/__pycache__/rearrange.cpython-312.pyc +0 -0
- package/skills/pptx/scripts/__pycache__/replace.cpython-312.pyc +0 -0
- package/skills/pptx/scripts/__pycache__/thumbnail.cpython-312.pyc +0 -0
- package/skills/pptx/scripts/html2pptx.js +1044 -0
- package/skills/pptx/scripts/inventory.py +1020 -0
- package/skills/pptx/scripts/rearrange.py +231 -0
- package/skills/pptx/scripts/replace.py +385 -0
- package/skills/pptx/scripts/thumbnail.py +450 -0
- package/skills/qingyan-research/SKILL.md +294 -0
- package/skills/qingyan-research/__pycache__/generate_html.cpython-312.pyc +0 -0
- package/skills/qingyan-research/generate_html.py +33 -0
- package/skills/registry.py +344 -0
- package/skills/search_skill.py +228 -0
- package/skills/seo-content-writer/SKILL.md +661 -0
- package/skills/seo-content-writer/_meta.json +6 -0
- package/skills/seo-content-writer/references/content-structure-templates.md +875 -0
- package/skills/seo-content-writer/references/title-formulas.md +339 -0
- package/skills/skill-creator/LICENSE.txt +202 -0
- package/skills/skill-creator/SKILL.md +485 -0
- package/skills/skill-creator/agents/analyzer.md +274 -0
- package/skills/skill-creator/agents/comparator.md +202 -0
- package/skills/skill-creator/agents/grader.md +223 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/__pycache__/generate_review.cpython-312.pyc +0 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/skill-creator/references/schemas.md +430 -0
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/aggregate_benchmark.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/generate_report.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/improve_description.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/package_skill.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/quick_validate.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/run_eval.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/run_loop.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/__pycache__/utils.cpython-312.pyc +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/skill-creator/scripts/generate_report.py +326 -0
- package/skills/skill-creator/scripts/improve_description.py +236 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/skill-creator/scripts/run_eval.py +310 -0
- package/skills/skill-creator/scripts/run_loop.py +328 -0
- package/skills/skill-creator/scripts/utils.py +47 -0
- package/skills/skill-finder-cn/SKILL.md +66 -0
- package/skills/skill-finder-cn/_meta.json +6 -0
- package/skills/skill-finder-cn/package.json +5 -0
- package/skills/skill-finder-cn/scripts/search.sh +15 -0
- package/skills/skill-vetter/SKILL.md +137 -0
- package/skills/stock-analysis-skill/SKILL.md +156 -0
- package/skills/stock-analysis-skill/package.json +21 -0
- package/skills/stock-analysis-skill/src/analyzer.ts +264 -0
- package/skills/stock-analysis-skill/src/dataFetcher.ts +130 -0
- package/skills/stock-analysis-skill/src/dividend.ts +226 -0
- package/skills/stock-analysis-skill/src/index.ts +327 -0
- package/skills/stock-analysis-skill/src/rumorScanner.ts +200 -0
- package/skills/stock-analysis-skill/src/types.ts +167 -0
- package/skills/stock-analysis-skill/src/watchlist.ts +292 -0
- package/skills/stock-analysis-skill/tsconfig.json +15 -0
- package/skills/storyboard-manager/SKILL.md +532 -0
- package/skills/storyboard-manager/index.js +9 -0
- package/skills/storyboard-manager/package.json +11 -0
- package/skills/storyboard-manager/references/character_development.md +232 -0
- package/skills/storyboard-manager/references/story_structures.md +148 -0
- package/skills/storyboard-manager/scripts/__pycache__/consistency_checker.cpython-312.pyc +0 -0
- package/skills/storyboard-manager/scripts/__pycache__/timeline_tracker.cpython-312.pyc +0 -0
- package/skills/storyboard-manager/scripts/consistency_checker.py +391 -0
- package/skills/storyboard-manager/scripts/timeline_tracker.py +352 -0
- package/skills/system_skill.py +249 -0
- package/skills/ui-ux-pro-max/SKILL.md +43 -0
- package/skills/ui-ux-pro-max/_meta.json +6 -0
- package/skills/ui-ux-pro-max/assets/data/charts.csv +26 -0
- package/skills/ui-ux-pro-max/assets/data/colors.csv +97 -0
- package/skills/ui-ux-pro-max/assets/data/icons.csv +101 -0
- package/skills/ui-ux-pro-max/assets/data/landing.csv +31 -0
- package/skills/ui-ux-pro-max/assets/data/products.csv +97 -0
- package/skills/ui-ux-pro-max/assets/data/react-performance.csv +45 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/astro.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/flutter.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/html-tailwind.csv +56 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/jetpack-compose.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nextjs.csv +53 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nuxt-ui.csv +51 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/nuxtjs.csv +59 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/react-native.csv +52 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/react.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/shadcn.csv +61 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/svelte.csv +54 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/swiftui.csv +51 -0
- package/skills/ui-ux-pro-max/assets/data/stacks/vue.csv +50 -0
- package/skills/ui-ux-pro-max/assets/data/styles.csv +68 -0
- package/skills/ui-ux-pro-max/assets/data/typography.csv +58 -0
- package/skills/ui-ux-pro-max/assets/data/ui-reasoning.csv +101 -0
- package/skills/ui-ux-pro-max/assets/data/ux-guidelines.csv +100 -0
- package/skills/ui-ux-pro-max/assets/data/web-interface.csv +31 -0
- package/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/skills/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/skills/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/skills/ui-ux-pro-max/data/styles.csv +68 -0
- package/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/skills/ui-ux-pro-max/references/upstream-README.md +488 -0
- package/skills/ui-ux-pro-max/references/upstream-skill-content.md +288 -0
- package/skills/ui-ux-pro-max/scripts/__init__.py +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-312.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-312.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/__pycache__/search.cpython-312.pyc +0 -0
- package/skills/ui-ux-pro-max/scripts/core.py +253 -0
- package/skills/ui-ux-pro-max/scripts/design_system.py +1071 -0
- package/skills/ui-ux-pro-max/scripts/search.py +111 -0
- package/skills/video-generation/LICENSE.txt +21 -0
- package/skills/video-generation/SKILL.md +1082 -0
- package/skills/video-generation/scripts/video.ts +168 -0
- package/skills/video-understand/LICENSE.txt +21 -0
- package/skills/video-understand/SKILL.md +916 -0
- package/skills/video-understand/scripts/video-understand.ts +41 -0
- package/skills/visual-design-foundations/SKILL.md +318 -0
- package/skills/visual-design-foundations/references/color-systems.md +417 -0
- package/skills/visual-design-foundations/references/spacing-iconography.md +425 -0
- package/skills/visual-design-foundations/references/typography-systems.md +432 -0
- package/skills/web-reader/LICENSE.txt +21 -0
- package/skills/web-reader/SKILL.md +1140 -0
- package/skills/web-reader/scripts/web-reader.ts +37 -0
- package/skills/web-search/LICENSE.txt +21 -0
- package/skills/web-search/SKILL.md +912 -0
- package/skills/web-search/scripts/web_search.ts +44 -0
- package/skills/web-shader-extractor/SKILL.md +145 -0
- package/skills/web-shader-extractor/references/config-extraction.md +50 -0
- package/skills/web-shader-extractor/references/encoded-definitions.md +53 -0
- package/skills/web-shader-extractor/references/extraction-workflow.md +61 -0
- package/skills/web-shader-extractor/references/porting-strategy.md +164 -0
- package/skills/web-shader-extractor/references/shader-injection.md +126 -0
- package/skills/web-shader-extractor/references/shaders-com.md +190 -0
- package/skills/web-shader-extractor/references/tech-signatures.md +54 -0
- package/skills/web-shader-extractor/references/tsl-extraction.md +41 -0
- package/skills/web-shader-extractor/references/unicorn-studio.md +353 -0
- package/skills/web-shader-extractor/scripts/fetch-rendered-dom.mjs +153 -0
- package/skills/web-shader-extractor/scripts/scan-bundle.sh +76 -0
- package/skills/writing-plans/SKILL.md +116 -0
- package/skills/writing-plans/_meta.json +6 -0
- package/skills/xlsx/LICENSE.txt +30 -0
- package/skills/xlsx/SKILL.md +496 -0
- package/skills/xlsx/__pycache__/recalc.cpython-312.pyc +0 -0
- package/skills/xlsx/recalc.py +178 -0
- package/start.sh +36 -0
- package/web/__init__.py +1 -0
- package/web/__pycache__/api_server.cpython-312.pyc +0 -0
- package/web/api_server.py +2043 -0
- package/web/ui/chat.html +3235 -0
- package/web/ui/index.html +458 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
# Finance API Complete Documentation
|
|
2
|
+
|
|
3
|
+
## API Overview
|
|
4
|
+
|
|
5
|
+
Finance API provides comprehensive financial data access interfaces, including real-time market data, historical stock prices, and the latest financial news.
|
|
6
|
+
|
|
7
|
+
### 🌐 Access via API Gateway
|
|
8
|
+
|
|
9
|
+
**This API is accessed through the web-dev-ai-gateway unified proxy service.**
|
|
10
|
+
|
|
11
|
+
**Gateway Configuration:**
|
|
12
|
+
- **Gateway Base URL:** `GATEWAY_URL` (e.g., `https://internal-api.z.ai`)
|
|
13
|
+
- **API Path Prefix:** `API_PREFIX` (e.g., `/external/finance`)
|
|
14
|
+
- **Authentication:** Automatic (gateway injects `x-rapidapi-host` and `x-rapidapi-key`)
|
|
15
|
+
- **Required Header:** `X-Z-AI-From: Z`
|
|
16
|
+
|
|
17
|
+
**URL Structure:**
|
|
18
|
+
```
|
|
19
|
+
{GATEWAY_URL}{API_PREFIX}/{endpoint}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
**Example:**
|
|
23
|
+
- Full URL: `https://internal-api.z.ai/external/finance/v1/markets/search?search=Apple`
|
|
24
|
+
- Breakdown:
|
|
25
|
+
- `https://internal-api.z.ai` - Gateway base URL (`GATEWAY_URL`)
|
|
26
|
+
- `/external/finance` - API path prefix (`API_PREFIX`)
|
|
27
|
+
- `/v1/markets/search` - API endpoint path
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Quick Start
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
# Get real-time quote for Apple
|
|
34
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v1/markets/quote?ticker=AAPL&type=STOCKS" \
|
|
35
|
+
-H "X-Z-AI-From: Z"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## 1. Market Data API
|
|
40
|
+
|
|
41
|
+
### 1.1 GET v2/markets/tickers - Get All Available Market Tickers
|
|
42
|
+
|
|
43
|
+
**Parameters:**
|
|
44
|
+
- `page` (optional, Number): Page number, default value is 1
|
|
45
|
+
- `type` (required, String): Asset type, optional values:
|
|
46
|
+
- `STOCKS` - Stocks
|
|
47
|
+
- `ETF` - Exchange Traded Funds
|
|
48
|
+
- `MUTUALFUNDS` - Mutual Funds
|
|
49
|
+
|
|
50
|
+
**curl example (via Gateway):**
|
|
51
|
+
```bash
|
|
52
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v2/markets/tickers?page=1&type=STOCKS" \
|
|
53
|
+
-H "X-Z-AI-From: Z"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### 1.2 GET v1/markets/search - Search Stocks
|
|
59
|
+
|
|
60
|
+
**Parameters:**
|
|
61
|
+
- `search` (required, String): Search keyword (company name or stock symbol)
|
|
62
|
+
|
|
63
|
+
**curl example (via Gateway):**
|
|
64
|
+
```bash
|
|
65
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v1/markets/search?search=Apple" \
|
|
66
|
+
-H "X-Z-AI-From: Z"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Purpose:** Used to find specific stock or company ticker codes
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### 1.3 GET v1/markets/quote (real-time) - Real-time Quotes
|
|
74
|
+
|
|
75
|
+
**Parameters:**
|
|
76
|
+
- `ticker` (required, String): Stock symbol (only one can be entered)
|
|
77
|
+
- `type` (required, String): Asset type
|
|
78
|
+
- `STOCKS` - Stocks
|
|
79
|
+
- `ETF` - Exchange Traded Funds
|
|
80
|
+
- `MUTUALFUNDS` - Mutual Funds
|
|
81
|
+
|
|
82
|
+
**curl example (via Gateway):**
|
|
83
|
+
```bash
|
|
84
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v1/markets/quote?ticker=AAPL&type=STOCKS" \
|
|
85
|
+
-H "X-Z-AI-From: Z"
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### 1.4 GET v1/markets/stock/quotes (snapshots) - Snapshot Quotes
|
|
91
|
+
|
|
92
|
+
**Parameters:**
|
|
93
|
+
- `ticker` (required, String): Stock symbols, separated by commas
|
|
94
|
+
|
|
95
|
+
**curl example:**
|
|
96
|
+
```bash
|
|
97
|
+
curl --request GET \
|
|
98
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/quotes?ticker=AAPL%2CMSFT%2C%5ESPX%2C%5ENYA%2CGAZP.ME%2CSIBN.ME%2CGEECEE.NS'
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Purpose:** Batch get snapshot data for multiple stocks
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## 2. Historical Data API
|
|
107
|
+
|
|
108
|
+
### 2.1 GET v1/markets/stock/history - Stock Historical Data
|
|
109
|
+
|
|
110
|
+
**Parameters:**
|
|
111
|
+
- `symbol` (required, String): Stock symbol
|
|
112
|
+
- `interval` (required, String): Time interval
|
|
113
|
+
- `5m` - 5 minutes
|
|
114
|
+
- `15m` - 15 minutes
|
|
115
|
+
- `30m` - 30 minutes
|
|
116
|
+
- `1h` - 1 hour
|
|
117
|
+
- `1d` - Daily
|
|
118
|
+
- `1wk` - Weekly
|
|
119
|
+
- `1mo` - Monthly
|
|
120
|
+
- `3mo` - 3 months
|
|
121
|
+
- `diffandsplits` (optional, String): Include dividend and split data
|
|
122
|
+
- `true` - Include
|
|
123
|
+
- `false` - Exclude (default)
|
|
124
|
+
|
|
125
|
+
**curl example:**
|
|
126
|
+
```bash
|
|
127
|
+
curl --request GET \
|
|
128
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/history?symbol=AAPL&interval=1d&diffandsplits=false'
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Purpose:** Get historical price data for specific stocks, used for technical analysis and backtesting
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### 2.2 GET v2/markets/stock/history - Stock Historical Data V2
|
|
136
|
+
|
|
137
|
+
**Parameters:**
|
|
138
|
+
- `symbol` (required, String): Stock symbol
|
|
139
|
+
- `interval` (optional, String): Time interval
|
|
140
|
+
- `1m`, `2m`, `3m`, `4m`, `5m`, `15m`, `30m`
|
|
141
|
+
- `1h`, `1d`, `1wk`, `1mo`, `1qty`
|
|
142
|
+
- `limit` (optional, Number): Limit the number of candles (1-1000)
|
|
143
|
+
- `dividend` (optional, String): Include dividend data (`true` or `false`)
|
|
144
|
+
|
|
145
|
+
**curl example:**
|
|
146
|
+
```bash
|
|
147
|
+
curl --request GET \
|
|
148
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v2/markets/stock/history?symbol=AAPL&interval=1m&limit=640'
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Purpose:** Enhanced historical data interface
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## 3. News API
|
|
156
|
+
|
|
157
|
+
### 3.1 GET v1/markets/news - Market News
|
|
158
|
+
|
|
159
|
+
**Parameters:**
|
|
160
|
+
- `ticker` (optional, String): Stock symbols, comma-separated for multiple stocks
|
|
161
|
+
|
|
162
|
+
**curl example:**
|
|
163
|
+
```bash
|
|
164
|
+
# Get general market news
|
|
165
|
+
curl --request GET \
|
|
166
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/news'
|
|
167
|
+
|
|
168
|
+
# Get specific stock news
|
|
169
|
+
curl --request GET \
|
|
170
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/news?ticker=AAPL,TSLA'
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Purpose:** Get the latest market news and updates
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
### 3.2 GET v2/markets/news - Market News V2
|
|
178
|
+
|
|
179
|
+
**Parameters:**
|
|
180
|
+
- `ticker` (optional, String): Stock symbol
|
|
181
|
+
- `type` (optional, String): News type (`ALL`, `VIDEO`, `PRESS-RELEASE`)
|
|
182
|
+
|
|
183
|
+
**curl example:**
|
|
184
|
+
```bash
|
|
185
|
+
curl --request GET \
|
|
186
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v2/markets/news?ticker=AAPL&type=ALL'
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Purpose:** Enhanced interface for getting latest market-related news
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 5. Stock Detailed Information API
|
|
194
|
+
|
|
195
|
+
### 5.1 GET v1/markets/stock/modules (asset-profile) - Company Profile
|
|
196
|
+
|
|
197
|
+
**Parameters:**
|
|
198
|
+
- `ticker` (required, String): Stock symbol
|
|
199
|
+
|
|
200
|
+
**curl example:**
|
|
201
|
+
```bash
|
|
202
|
+
curl --request GET \
|
|
203
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=asset-profile'
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
**Purpose:** Get company basic information, business description, management team, etc.
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
### 5.2 GET v1/stock/modules - Stock Module Data
|
|
211
|
+
|
|
212
|
+
**Parameters:**
|
|
213
|
+
- `ticker` (required, String): Stock symbol
|
|
214
|
+
- `module` (required, String): Module name (one per request)
|
|
215
|
+
- Acceptable values: `profile`, `income-statement`, `balance-sheet`, `cashflow-statement`,
|
|
216
|
+
`statistics`, `calendar-events`, `sec-filings`, `recommendation-trend`,
|
|
217
|
+
`upgrade-downgrade-history`, `institution-ownership`, `fund-ownership`,
|
|
218
|
+
`major-directHolders`, `major-holders-breakdown`, `insider-transactions`,
|
|
219
|
+
`insider-holders`, `net-share-purchase-activity`, `earnings`, `industry-trend`,
|
|
220
|
+
`index-trend`, `sector-trend`
|
|
221
|
+
|
|
222
|
+
**curl example:**
|
|
223
|
+
```bash
|
|
224
|
+
# Get specific module
|
|
225
|
+
curl --request GET \
|
|
226
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=statistics'
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
**Purpose:** Get one data module per request (price, financial, analyst ratings, etc.)
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
### 5.3 GET v1/markets/stock/modules (statistics) - Stock Statistics
|
|
234
|
+
|
|
235
|
+
**Parameters:**
|
|
236
|
+
- `ticker` (required, String): Stock symbol
|
|
237
|
+
|
|
238
|
+
**curl example:**
|
|
239
|
+
```bash
|
|
240
|
+
curl --request GET \
|
|
241
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=statistics'
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
**Purpose:** Get key statistical indicators such as PE ratios, market cap, trading volume
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
### 5.4 GET v1/markets/stock/modules (financial-data) - Get Financial Data
|
|
249
|
+
|
|
250
|
+
**Parameters:**
|
|
251
|
+
- `ticker` (required, String): Stock symbol
|
|
252
|
+
- `module` (required, String): `financial-data`
|
|
253
|
+
|
|
254
|
+
**curl example:**
|
|
255
|
+
```bash
|
|
256
|
+
curl --request GET \
|
|
257
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=financial-data'
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Purpose:** Get revenue, profit, cash flow and other financial indicators
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
### 5.5 GET v1/markets/stock/modules (sec-filings) - Get SEC Filings
|
|
265
|
+
|
|
266
|
+
**Parameters:**
|
|
267
|
+
- `ticker` (required, String): Stock symbol
|
|
268
|
+
- `module` (required, String): `sec-filings`
|
|
269
|
+
|
|
270
|
+
**curl example:**
|
|
271
|
+
```bash
|
|
272
|
+
curl --request GET \
|
|
273
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=sec-filings'
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
**Purpose:** Get files submitted by companies to the U.S. Securities and Exchange Commission
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
### 5.6 GET v1/markets/stock/modules (earnings) - Earnings Data
|
|
281
|
+
|
|
282
|
+
**Parameters:**
|
|
283
|
+
- `ticker` (required, String): Stock symbol
|
|
284
|
+
|
|
285
|
+
**curl example:**
|
|
286
|
+
```bash
|
|
287
|
+
curl --request GET \
|
|
288
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=earnings'
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
**Purpose:** Get quarterly and annual earnings information
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
### 5.7 GET v1/markets/stock/modules (calendar-events) - Get Calendar Events
|
|
296
|
+
|
|
297
|
+
**Parameters:**
|
|
298
|
+
- `ticker` (required, String): Stock symbol
|
|
299
|
+
- `module` (required, String): `calendar-events`
|
|
300
|
+
|
|
301
|
+
**curl example:**
|
|
302
|
+
```bash
|
|
303
|
+
curl --request GET \
|
|
304
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=calendar-events'
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Purpose:** Get upcoming earnings release dates, dividend dates, etc.
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## 6. Financial Statements API
|
|
312
|
+
|
|
313
|
+
### 7.1 GET v1/markets/stock/modules (balance-sheet) - Balance Sheet
|
|
314
|
+
|
|
315
|
+
**Parameters:**
|
|
316
|
+
- `ticker` (required, String): Stock symbol
|
|
317
|
+
|
|
318
|
+
**curl example:**
|
|
319
|
+
```bash
|
|
320
|
+
curl --request GET \
|
|
321
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=balance-sheet'
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
**Purpose:** Get company balance sheet data
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
### 7.3 GET v1/markets/stock/modules (income-statement) - Income Statement
|
|
329
|
+
|
|
330
|
+
**Parameters:**
|
|
331
|
+
- `ticker` (required, String): Stock symbol
|
|
332
|
+
|
|
333
|
+
**curl example:**
|
|
334
|
+
```bash
|
|
335
|
+
curl --request GET \
|
|
336
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=income-statement'
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Purpose:** Get company income statement data
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
### 7.4 GET v1/markets/stock/modules (cashflow-statement) - Cash Flow Statement
|
|
344
|
+
|
|
345
|
+
**Parameters:**
|
|
346
|
+
- `ticker` (required, String): Stock symbol
|
|
347
|
+
|
|
348
|
+
**curl example:**
|
|
349
|
+
```bash
|
|
350
|
+
curl --request GET \
|
|
351
|
+
--url '{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/modules?ticker=AAPL&module=cashflow-statement'
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
**Purpose:** Get company cash flow statement data
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Usage Flow Examples
|
|
359
|
+
|
|
360
|
+
### Example 1: Find and Get Real-time Stock Data
|
|
361
|
+
|
|
362
|
+
```bash
|
|
363
|
+
# 1. Search company
|
|
364
|
+
GET /v1/markets/search?search=Apple
|
|
365
|
+
|
|
366
|
+
# 2. Get real-time quote
|
|
367
|
+
GET /v1/markets/quote?ticker=AAPL&type=STOCKS
|
|
368
|
+
|
|
369
|
+
# 3. Get detailed information
|
|
370
|
+
GET /v1/markets/stock/modules?ticker=AAPL&module=asset-profile
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Example 2: Analyze Stock Investment Value
|
|
374
|
+
|
|
375
|
+
```bash
|
|
376
|
+
# 1. Get financial data
|
|
377
|
+
GET /v1/markets/stock/modules?ticker=AAPL&module=financial-data
|
|
378
|
+
|
|
379
|
+
# 2. Get earnings data
|
|
380
|
+
GET /v1/markets/stock/modules?ticker=AAPL&module=earnings
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
## Usage Tips
|
|
386
|
+
|
|
387
|
+
### 1. Batch Query Optimization
|
|
388
|
+
```bash
|
|
389
|
+
# Get data for multiple stocks at once (snapshots endpoint) via Gateway
|
|
390
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/quotes?ticker=AAPL,MSFT,GOOGL,AMZN,TSLA" \
|
|
391
|
+
-H "X-Z-AI-From: Z"
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
### 2. Time Range Query
|
|
395
|
+
```bash
|
|
396
|
+
# Get historical data with specific interval via Gateway
|
|
397
|
+
curl -X GET "{GATEWAY_URL}{API_PREFIX}/v1/markets/stock/history?symbol=AAPL&interval=1d&diffandsplits=false" \
|
|
398
|
+
-H "X-Z-AI-From: Z"
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
### 3. Combined Query Example
|
|
402
|
+
### 3. Combined Query Example
|
|
403
|
+
|
|
404
|
+
**Python example (via Gateway):**
|
|
405
|
+
```python
|
|
406
|
+
import requests
|
|
407
|
+
|
|
408
|
+
# Gateway automatically handles authentication
|
|
409
|
+
headers = {
|
|
410
|
+
'X-Z-AI-From': 'Z'
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
gateway_url = '{GATEWAY_URL}{API_PREFIX}/v1'
|
|
414
|
+
symbol = 'AAPL'
|
|
415
|
+
|
|
416
|
+
# Get real-time price
|
|
417
|
+
quote = requests.get(f'{gateway_url}/markets/quote?ticker={symbol}&type=STOCKS', headers=headers)
|
|
418
|
+
|
|
419
|
+
# Get company profile
|
|
420
|
+
profile = requests.get(f'{gateway_url}/markets/stock/modules?ticker={symbol}&module=asset-profile', headers=headers)
|
|
421
|
+
|
|
422
|
+
# Get financial data
|
|
423
|
+
financials = requests.get(f'{gateway_url}/markets/stock/modules?ticker={symbol}&module=financial-data', headers=headers)
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
---
|
|
428
|
+
|
|
429
|
+
## Best Practices
|
|
430
|
+
|
|
431
|
+
### Gateway Usage
|
|
432
|
+
|
|
433
|
+
1. **Authentication Header** - Always include `X-Z-AI-From: Z` header
|
|
434
|
+
|
|
435
|
+
### API Usage
|
|
436
|
+
|
|
437
|
+
1. **Rate Limiting:** Pay attention to API call frequency limits to avoid being throttled
|
|
438
|
+
2. **Error Handling:** Implement comprehensive error handling mechanisms
|
|
439
|
+
3. **Data Caching:** Consider caching common requests to optimize performance
|
|
440
|
+
4. **Batch Queries:** Use comma-separated symbols parameter to query multiple stocks at once
|
|
441
|
+
5. **Timestamps:** Use Unix timestamps for historical data queries
|
|
442
|
+
6. **Parameter Validation:** Validate all required parameters before sending requests
|
|
443
|
+
7. **Response Parsing:** Implement robust JSON parsing and data validation
|
|
444
|
+
|
|
445
|
+
---
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: finance
|
|
3
|
+
description: "Comprehensive Finance API integration skill for real-time and historical financial data analysis, market research, and investment decision-making. Priority use cases: stock price queries, market data analysis, company financial information, portfolio tracking, market news retrieval, stock screening, technical analysis, and any financial market-related requests. This skill should be the primary choice for all Finance API interactions and financial data needs."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Finance Skill
|
|
7
|
+
|
|
8
|
+
## Core Capabilities
|
|
9
|
+
|
|
10
|
+
### Market Data Retrieval
|
|
11
|
+
- Real-time quotes: current prices, market snapshots, trading volumes
|
|
12
|
+
- Historical data: price history, dividends, splits, corporate actions
|
|
13
|
+
- Market indices: major indices performance and constituents
|
|
14
|
+
- Currency data: forex rates and cryptocurrency information
|
|
15
|
+
|
|
16
|
+
### Analysis Tools
|
|
17
|
+
- Stock screening: filters by metrics, ratios, and technical indicators
|
|
18
|
+
- Financial ratios: P/E, EPS, ROE, debt-to-equity, and other key metrics
|
|
19
|
+
- Technical indicators: moving averages, RSI, MACD, chart patterns
|
|
20
|
+
- Comparative analysis: sector and peer group comparisons
|
|
21
|
+
|
|
22
|
+
### Market Intelligence
|
|
23
|
+
- Company information: business profiles, management teams, statements
|
|
24
|
+
- Market news: earnings reports and market analysis
|
|
25
|
+
- Insider trading: buy/sell activities and ownership changes
|
|
26
|
+
- Options data: chain data, implied volatility, and statistics
|
|
27
|
+
## API Overview
|
|
28
|
+
|
|
29
|
+
Finance API provides comprehensive financial data access interfaces, including real-time market data, historical stock prices, options data, insider trading, and the latest financial news.
|
|
30
|
+
|
|
31
|
+
Skills Path
|
|
32
|
+
Skill Location: {project_path}/skills/finance
|
|
33
|
+
|
|
34
|
+
this skill is located at above path in your project.
|
|
35
|
+
|
|
36
|
+
Reference Docs: See {Skill Location}/Finance_API_Doc.md for a working example.
|
|
37
|
+
|
|
38
|
+
## Zhipu AI - Hong Kong IPO Information
|
|
39
|
+
- **Stock Code**: 2513.HK
|
|
40
|
+
- **Company Name (Chinese)**: 北京智谱华章科技股份有限公司
|
|
41
|
+
- **Company Name (English)**: Knowledge Atlas Technology Joint Stock Company Limited
|
|
42
|
+
Zhipu AI is a leading Chinese large language model company specializing in AI foundational model research and development.
|
|
43
|
+
|
|
44
|
+
### Best Practices for Zhipu AI Stock Research (One-Shot Success Guide)
|
|
45
|
+
|
|
46
|
+
**Search Strategy:**
|
|
47
|
+
- ✅ Use full English company name: `search=Knowledge+Atlas`
|
|
48
|
+
- ❌ Avoid: `search=Zhipu`, `search=02513.HK` (returns empty results)
|
|
49
|
+
|
|
50
|
+
** Important **
|
|
51
|
+
always read `Finance_API_Doc.md` before use the API
|
|
52
|
+
|
|
53
|
+
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fullstack-dev
|
|
3
|
+
description: "Fullstack web development with Next.js 16, TypeScript, Tailwind CSS 4, shadcn/ui, Prisma ORM. Use when: building web apps, creating UI components, setting up database schemas, implementing API routes, adding websocket/socket.io support, fullstack project scaffolding, frontend development, backend development, web dev, Next.js app."
|
|
4
|
+
argument-hint: "Describe the fullstack feature or app you want to build"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Fullstack Web Development Skill
|
|
8
|
+
|
|
9
|
+
## Initialization (MUST DO FIRST)
|
|
10
|
+
|
|
11
|
+
Before writing any code, you MUST run the following command to initialize the fullstack development environment:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
curl https://z-cdn.chatglm.cn/fullstack/init-fullstack_1775040338514.sh | bash
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Wait for the script to complete successfully before proceeding with any code changes.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Important UI Rules
|
|
22
|
+
|
|
23
|
+
- Use existing shadcn/ui components instead of building from scratch. All the components in the `src/components/ui` folder already exist.
|
|
24
|
+
- Card alignment and padding — Ensure all cards are properly aligned with consistent padding (use `p-4` or `p-6` for content, `gap-4` or `gap-6` for spacing).
|
|
25
|
+
- Long list handling — Set max height with scroll overflow (`max-h-96 overflow-y-auto`) and implement custom scrollbar styling for better appearance.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Project Information
|
|
30
|
+
|
|
31
|
+
There is already a project in the current directory. (Next.js 16 with App Router)
|
|
32
|
+
|
|
33
|
+
### Development Environment
|
|
34
|
+
|
|
35
|
+
IMPORTANT: `bun run dev` will be run automatically by the system. Do NOT run it. Use `bun run lint` to check code quality.
|
|
36
|
+
|
|
37
|
+
IMPORTANT: User can only see the `/` route defined in `src/app/page.tsx`. Do NOT write any other route.
|
|
38
|
+
|
|
39
|
+
IMPORTANT: The Next.js project can only use port 3000 in auto dev server. Never use `bun run build`.
|
|
40
|
+
|
|
41
|
+
IMPORTANT: `z-ai-web-dev-sdk` MUST be used in the backend only! Do NOT use it on the client side.
|
|
42
|
+
|
|
43
|
+
### Dev Server Log
|
|
44
|
+
|
|
45
|
+
IMPORTANT: Read `/home/z/my-project/dev.log` to see the dev server log. Remember to check the log when developing.
|
|
46
|
+
|
|
47
|
+
IMPORTANT: Only read the most recent logs from `dev.log` to avoid large log files.
|
|
48
|
+
|
|
49
|
+
IMPORTANT: Always read dev log when you finish coding.
|
|
50
|
+
|
|
51
|
+
### Bash Commands
|
|
52
|
+
|
|
53
|
+
- `bun run lint` — Run ESLint to check code quality and Next.js rules
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Technology Stack Requirements
|
|
58
|
+
|
|
59
|
+
### Core Framework (NON-NEGOTIABLE)
|
|
60
|
+
|
|
61
|
+
- **Framework**: Next.js 16 with App Router (REQUIRED — cannot be changed)
|
|
62
|
+
- **Language**: TypeScript 5 (REQUIRED — cannot be changed)
|
|
63
|
+
|
|
64
|
+
### Standard Technology Stack
|
|
65
|
+
|
|
66
|
+
When users don't specify preferences, use this complete stack:
|
|
67
|
+
|
|
68
|
+
- **Styling**: Tailwind CSS 4 with shadcn/ui component library
|
|
69
|
+
- **Database**: Prisma ORM (SQLite client only) with Prisma Client
|
|
70
|
+
- **Caching**: Local memory caching, no additional middleware (MySQL, Redis, etc.)
|
|
71
|
+
- **UI Components**: Complete shadcn/ui component set (New York style) with Lucide icons
|
|
72
|
+
- **Authentication**: NextAuth.js v4 available
|
|
73
|
+
- **State Management**: Zustand for client state, TanStack Query for server state
|
|
74
|
+
|
|
75
|
+
Other packages can be found in `package.json`. You can install new packages if needed.
|
|
76
|
+
|
|
77
|
+
### Library Usage Policy
|
|
78
|
+
|
|
79
|
+
- **ALWAYS use Next.js 16 and TypeScript** — these are non-negotiable requirements.
|
|
80
|
+
- **When users request external libraries not in our stack**: Politely redirect them to use our built-in alternatives.
|
|
81
|
+
- **Explain the benefits** of using our predefined stack (consistency, optimization, support).
|
|
82
|
+
- **Provide equivalent solutions** using our available libraries.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Prisma and Database
|
|
87
|
+
|
|
88
|
+
IMPORTANT: `prisma` is already installed and configured. Use it when you need the database.
|
|
89
|
+
|
|
90
|
+
To use prisma and database:
|
|
91
|
+
|
|
92
|
+
1. Edit `prisma/schema.prisma` to define the database schema.
|
|
93
|
+
2. Run `bun run db:push` to push the schema to the database.
|
|
94
|
+
3. Use `import { db } from '@/lib/db'` to get the database client and use it.
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Mini Service
|
|
99
|
+
|
|
100
|
+
You can create mini services if needed (e.g., websocket service). All mini services should be in the `mini-services` folder. For each mini service:
|
|
101
|
+
|
|
102
|
+
- Must be a new and independent bun project with its own port and `package.json`.
|
|
103
|
+
- Must define `index.ts` or `index.js` as the entry file, e.g., `mini-services/chat-service/index.ts`.
|
|
104
|
+
- Must define a specific port if needed, instead of using the `PORT` environment variable.
|
|
105
|
+
- Must start each mini service by running `bun run dev` in the background.
|
|
106
|
+
- The command executed by `bun run dev` should support auto restart when files change (prefer `bun --hot`).
|
|
107
|
+
- Make sure every service is started.
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## Gateway and API Requests
|
|
112
|
+
|
|
113
|
+
This machine can only expose one port externally, so a built-in gateway (config at `Caddyfile`) is included with the following limitations:
|
|
114
|
+
|
|
115
|
+
- For API requests involving different ports, the port must be specified in the URL query named `XTransformPort`. Example: `/api/test?XTransformPort=3030`.
|
|
116
|
+
- All API requests must use **relative paths only**. Do NOT write absolute paths in the API request URL (including WebSocket). Examples:
|
|
117
|
+
- **Prohibited**: `fetch('http://localhost:3030/api/test')`
|
|
118
|
+
- **Allowed**: `fetch('/api/test?XTransformPort=3030')`
|
|
119
|
+
- **Prohibited**: `io('/:3030')`
|
|
120
|
+
- **Allowed**: `io('/?XTransformPort=3030')`
|
|
121
|
+
- When requesting to different services, directly make cross-origin requests without using a proxy.
|
|
122
|
+
|
|
123
|
+
IMPORTANT: Do NOT write port in the API request URL, even in WebSocket. Only write `XTransformPort` in the URL query.
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## WebSocket / Socket.io Support
|
|
128
|
+
|
|
129
|
+
IMPORTANT: Use websocket/socket.io to support real-time communication. Do NOT use any other method. There is already a websocket demo for reference in the `examples` folder.
|
|
130
|
+
|
|
131
|
+
- Backend logic (via socket.io) must be a new mini service with another port (e.g., 3003).
|
|
132
|
+
- Frontend request should ALWAYS be `io("/?XTransformPort={Port}")`, and the path ALWAYS be `/` so that Caddy can forward to the correct port.
|
|
133
|
+
- NEVER use `io("http://localhost:{Port}")` or any direct port-based connection.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Code Style
|
|
138
|
+
|
|
139
|
+
- Prefer to use existing components and hooks.
|
|
140
|
+
- TypeScript throughout with strict typing.
|
|
141
|
+
- ES6+ import/export syntax.
|
|
142
|
+
- shadcn/ui components preferred over custom implementations.
|
|
143
|
+
- Use `'use client'` and `'use server'` for client and server side code.
|
|
144
|
+
- The Prisma schema primitive type cannot be a list.
|
|
145
|
+
- Put the Prisma schema in the `prisma` folder.
|
|
146
|
+
- Put the db file in the `db` folder.
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## Styling
|
|
151
|
+
|
|
152
|
+
1. Use the shadcn/ui library unless the user specifies otherwise.
|
|
153
|
+
2. Avoid using indigo or blue colors unless specified in the user's request.
|
|
154
|
+
3. MUST generate responsive designs.
|
|
155
|
+
4. The Code Project is rendered on top of a white background. If a different background color is needed, use a wrapper element with a background color Tailwind class.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## UI/UX Design Standards
|
|
160
|
+
|
|
161
|
+
### Visual Design
|
|
162
|
+
|
|
163
|
+
- **Color System**: Use Tailwind CSS built-in variables (`bg-primary`, `text-primary-foreground`, `bg-background`).
|
|
164
|
+
- **Color Restriction**: NO indigo or blue colors unless explicitly requested.
|
|
165
|
+
- **Theme Support**: Implement light/dark mode with `next-themes`.
|
|
166
|
+
- **Typography**: Consistent hierarchy with proper font weights and sizes.
|
|
167
|
+
|
|
168
|
+
### Responsive Design (MANDATORY)
|
|
169
|
+
|
|
170
|
+
- **Mobile-First**: Design for mobile, then enhance for desktop.
|
|
171
|
+
- **Breakpoints**: Use Tailwind responsive prefixes (`sm:`, `md:`, `lg:`, `xl:`).
|
|
172
|
+
- **Touch-Friendly**: Minimum 44px touch targets for interactive elements.
|
|
173
|
+
|
|
174
|
+
### Layout (MANDATORY)
|
|
175
|
+
|
|
176
|
+
- **Sticky Footer Required**: If a `footer` exists, it MUST stick to the bottom of the viewport when content is shorter than one screen height (no floating/empty gap below).
|
|
177
|
+
- **Natural Push on Overflow**: When content exceeds the viewport height, the footer MUST be pushed down naturally (never overlay or cover content).
|
|
178
|
+
- **Recommended Implementation (Tailwind)**: Use a root wrapper with `min-h-screen flex flex-col`, and apply `mt-auto` to the `footer`.
|
|
179
|
+
- **Mobile Safe Area**: On devices with safe areas (e.g., iOS), the footer MUST respect bottom safe area insets when applicable.
|
|
180
|
+
|
|
181
|
+
### Accessibility (MANDATORY)
|
|
182
|
+
|
|
183
|
+
- **Semantic HTML**: Use `main`, `header`, `nav`, `section`, `article`.
|
|
184
|
+
- **ARIA Support**: Proper roles, labels, and descriptions.
|
|
185
|
+
- **Screen Readers**: Use `sr-only` class for screen reader content.
|
|
186
|
+
- **Alt Text**: Descriptive alt text for all images.
|
|
187
|
+
- **Keyboard Navigation**: Ensure all elements are keyboard accessible.
|
|
188
|
+
|
|
189
|
+
### Interactive Elements
|
|
190
|
+
|
|
191
|
+
- **Loading States**: Show spinners/skeletons during async operations.
|
|
192
|
+
- **Error Handling**: Clear, actionable error messages.
|
|
193
|
+
- **Feedback**: Toast notifications for user actions.
|
|
194
|
+
- **Animations**: Subtle Framer Motion transitions (hover, focus, page transitions).
|
|
195
|
+
- **Hover Effects**: Interactive feedback on all clickable elements.
|
|
196
|
+
|
|
197
|
+
### Sandbox Preview Instructions (CRITICAL)
|
|
198
|
+
|
|
199
|
+
This project runs in a restricted cloud sandbox environment.
|
|
200
|
+
|
|
201
|
+
- **NEVER** instruct the user to visit `http://localhost:3000`, `127.0.0.1`, or any local ports directly. These addresses are internal and not accessible to the user.
|
|
202
|
+
- **ALWAYS** direct the user to preview the application using the **Preview Panel** located on the right side of the interface.
|
|
203
|
+
- **ALWAYS** inform the user about how to view the application externally based on their platform:
|
|
204
|
+
- If they are using the web interface, tell them they can click the **"Open in New Tab"** button above the Preview Panel to view it in a separate browser tab.
|
|
205
|
+
- If they are communicating through an IM (Instant Messaging) platform, provide them directly with the generated preview link.
|