ssci-subagent-skills 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/CHANGELOG.md +195 -0
- package/LICENSE +21 -0
- package/README.md +529 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_SUMMARY.md +618 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_UPDATE.md +284 -0
- package/agents/__pycache__/literature_expert_integration.cpython-312.pyc +0 -0
- package/agents/ant-expert-main.md +127 -0
- package/agents/ant-expert.md +301 -0
- package/agents/chinese-localization-expert.md +261 -0
- package/agents/core_engine.py +375 -0
- package/agents/digital-ecosystem-analyst/digital-ecosystem-analyst.py +507 -0
- package/agents/digital-marx-expert.md +373 -0
- package/agents/digital-transformation-ecosystem-analyst/digital-transformation-ecosystem-analyst.md +76 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_REALITY_VERIFIED.py +233 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_SKILL_SPECIFICATION.md +357 -0
- package/agents/digital-transformation-innovation-analyst/README_AGENTSILLS_IO_STANDARD.md +418 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.md +469 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.py +513 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.md +299 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.py +342 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION_TDD.py +615 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_REAL_DATA_TDD.py +291 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_data_real_sources.py +468 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_tdd.py +1126 -0
- package/agents/digital-transformation-innovation-analyst/digital_transformation_innovation-analyst.py +756 -0
- package/agents/digital-transformation-innovation-analyst/tdd_executor.py +203 -0
- package/agents/digital-transformation-innovation-analyst/tdd_runner.py +154 -0
- package/agents/field-analysis-expert-main.md +129 -0
- package/agents/field-analysis-expert.md +231 -0
- package/agents/grounded-theory-agent-implementation.md +431 -0
- package/agents/grounded-theory-expert-v2.md +202 -0
- package/agents/grounded-theory-expert.md +309 -0
- package/agents/literature-expert-v2.md +489 -0
- package/agents/literature-expert.md +639 -0
- package/agents/literature_expert_integration.py +384 -0
- package/agents/references/actor-network-analysis.html +598 -0
- package/agents/references/ant-actor-identification.md +155 -0
- package/agents/references/ant-network-analysis.md +266 -0
- package/agents/references/ant-power-analysis.md +323 -0
- package/agents/references/ant-translation-process.md +185 -0
- package/agents/references/bourdieu-field-analysis.html +805 -0
- package/agents/references/business-ecosystem-analysis.html +598 -0
- package/agents/references/business-model-analysis-implementation-plan.md +199 -0
- package/agents/references/business-model-analysis-plan.md +217 -0
- package/agents/references/business-model-analysis.html +620 -0
- package/agents/references/business-model-coordinator.js +356 -0
- package/agents/references/business-model-expert-agent.js +204 -0
- package/agents/references/data-analysis.html +397 -0
- package/agents/references/did-analysis.html +591 -0
- package/agents/references/digital-durkheim.html +725 -0
- package/agents/references/digital-marx.html +460 -0
- package/agents/references/digital-weber.html +591 -0
- package/agents/references/field-boundary-identification.md +232 -0
- package/agents/references/field-capital-analysis.md +268 -0
- package/agents/references/grounded-theory.html +731 -0
- package/agents/references/msqca-analysis.html +589 -0
- package/agents/references/research-design.html +394 -0
- package/agents/references/social-network-analysis.html +590 -0
- package/agents/references/survey-design.html +577 -0
- package/agents/sna-expert.md +348 -0
- package/common/dependency_config.py +96 -0
- package/common/dependency_manager.py +175 -0
- package/common/smart_dependency_manager.py +331 -0
- package/package.json +81 -0
- package/scripts/postinstall.js +147 -0
- package/scripts/validate-skills.js +209 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill +0 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill.install.md +114 -0
- package/skills/COMPLIANCE_REPORT.md +122 -0
- package/skills/INTEGRATION_PLAN.md +405 -0
- package/skills/QWEN.md +230 -0
- package/skills/SKILLS_APPLICATION_MAPPING.md +155 -0
- package/skills/__init__.py +7 -0
- package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/SKILL.md +195 -0
- package/skills/alienation-analysis/__init__.py +8 -0
- package/skills/alienation-analysis/prompts/core-analysis-framework.md +88 -0
- package/skills/alienation-analysis/prompts/specialized-alienation-analysis.md +190 -0
- package/skills/alienation-analysis/pyproject.toml +36 -0
- package/skills/alienation-analysis/scripts/__init__.py +8 -0
- package/skills/alienation-analysis/scripts/__pycache__/alienation_analysis_engine.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/career_development_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/classify_alienation_types.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/consumer_behavior_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/core_analyzer.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/digital_wellbeing_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/generate_intervention_plan.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/materialism_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/relationship_quality_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/social_network_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/technology_dependency_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/workplace_satisfaction_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/alienation_analysis_engine.py +597 -0
- package/skills/alienation-analysis/scripts/career_development_evaluation.py +512 -0
- package/skills/alienation-analysis/scripts/classify_alienation_types.py +357 -0
- package/skills/alienation-analysis/scripts/consumer_behavior_analysis.py +643 -0
- package/skills/alienation-analysis/scripts/core_analyzer.py +571 -0
- package/skills/alienation-analysis/scripts/digital_wellbeing_evaluation.py +597 -0
- package/skills/alienation-analysis/scripts/generate_intervention_plan.py +358 -0
- package/skills/alienation-analysis/scripts/materialism_assessment.py +528 -0
- package/skills/alienation-analysis/scripts/relationship_quality_assessment.py +621 -0
- package/skills/alienation-analysis/scripts/social_network_analysis.py +802 -0
- package/skills/alienation-analysis/scripts/technology_dependency_analysis.py +534 -0
- package/skills/alienation-analysis/scripts/workplace_satisfaction_analysis.py +340 -0
- package/skills/alienation_analysis/SKILL.md +291 -0
- package/skills/alienation_analysis/__init__.py +1 -0
- package/skills/alienation_analysis/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation_analysis/scripts/__init__.py +1 -0
- package/skills/alienation_analysis/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/ant/SKILL.md +139 -0
- package/skills/ant/pyproject.toml +36 -0
- package/skills/ant/scripts/ant_analysis_with_fallback.py +383 -0
- package/skills/ant-expert/SKILL.md +182 -0
- package/skills/ant-expert/integration_with_trusted_scraper.md +115 -0
- package/skills/ant-expert/modules/__pycache__/network_analysis.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/participant_identification.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/translation_process.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/network_analysis.py +253 -0
- package/skills/ant-expert/modules/participant_identification.py +325 -0
- package/skills/ant-expert/modules/translation_process.py +283 -0
- package/skills/ant-expert/pyproject.toml +27 -0
- package/skills/ant-expert/scripts/ant_expert_analyzer.py +146 -0
- package/skills/ant-expert/test_input.json +82 -0
- package/skills/ant-expert/test_output.json +728 -0
- package/skills/ant-network-analysis/SKILL.md +132 -0
- package/skills/ant-participant-identification/SKILL.md +140 -0
- package/skills/ant-participant-identification/pyproject.toml +35 -0
- package/skills/ant-participant-identification/scripts/identify_participants.py +318 -0
- package/skills/ant-subagent/SKILL.md +60 -0
- package/skills/ant-subagent/modules/network_analysis.py +146 -0
- package/skills/ant-subagent/pyproject.toml +16 -0
- package/skills/ant-translation-process/SKILL.md +144 -0
- package/skills/ant-translation-process/pyproject.toml +35 -0
- package/skills/ant-translation-process/scripts/trace_translation.py +370 -0
- package/skills/ant_relationship_analysis.md +157 -0
- package/skills/arxiv-paper-search/ARXIV_SKILL_COMPLETION_REPORT.md +449 -0
- package/skills/arxiv-paper-search/DEPENDENCY_OPTIMIZATION.md +355 -0
- package/skills/arxiv-paper-search/OPTIMIZATION_SUMMARY.md +213 -0
- package/skills/arxiv-paper-search/README.md +90 -0
- package/skills/arxiv-paper-search/SKILL.md +321 -0
- package/skills/arxiv-paper-search/pyproject.toml +29 -0
- package/skills/arxiv-paper-search/references/ADVANCED_USAGE.md +587 -0
- package/skills/arxiv-paper-search/references/API_REFERENCE.md +350 -0
- package/skills/arxiv-paper-search/references/ARXIV_CATEGORIES.md +249 -0
- package/skills/arxiv-paper-search/references/USER_GUIDE.md +349 -0
- package/skills/arxiv-paper-search/requirements.txt +13 -0
- package/skills/arxiv-paper-search/scripts/__pycache__/arxiv_searcher.cpython-312.pyc +0 -0
- package/skills/arxiv-paper-search/scripts/arxiv_searcher.py +439 -0
- package/skills/arxiv-paper-search/scripts/test_arxiv_searcher.py +307 -0
- package/skills/arxiv-paper-search/test_abstracts.json +461 -0
- package/skills/arxiv-paper-search/test_batch_papers/2009.00804v2_Architectural_Implications_of_.pdf +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2201.00978v1_PyramidTNT +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2207.13219v4_Dalorex +0 -0
- package/skills/arxiv-paper-search/test_papers/1706.03762.pdf +0 -0
- package/skills/arxiv-paper-search/test_papers.csv +11 -0
- package/skills/best_practices.md +271 -0
- package/skills/business-ecosystem-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-ecosystem-data-collection/FreeDataCrawler.js +472 -0
- package/skills/business-ecosystem-data-collection/INFO.md +68 -0
- package/skills/business-ecosystem-data-collection/SKILL.md +118 -0
- package/skills/business-ecosystem-data-collection/algorithms/data_validation.py +44 -0
- package/skills/business-ecosystem-data-collection/algorithms/entity_recognition.py +53 -0
- package/skills/business-ecosystem-data-collection/algorithms/relationship_mapping.py +44 -0
- package/skills/business-ecosystem-data-collection/config.json +10 -0
- package/skills/business-ecosystem-data-collection/e2e-test.js +81 -0
- package/skills/business-ecosystem-data-collection/package-lock.json +433 -0
- package/skills/business-ecosystem-data-collection/package.json +21 -0
- package/skills/business-ecosystem-data-collection/references/data-collection-strategies.md +18 -0
- package/skills/business-ecosystem-data-collection/references/data-validation.md +22 -0
- package/skills/business-ecosystem-data-collection/references/entity-recognition.md +16 -0
- package/skills/business-ecosystem-data-collection/references/relationship-mapping.md +16 -0
- package/skills/business-ecosystem-data-collection/scripts/ecosystem_data_collector.py +103 -0
- package/skills/business-ecosystem-data-collection/skill.js +1383 -0
- package/skills/business-ecosystem-data-collection/skill.json +191 -0
- package/skills/business-ecosystem-data-collection/test.js +304 -0
- package/skills/business-ecosystem-data-collection/test_context.json +16 -0
- package/skills/business-model-analysis/INFO.md +65 -0
- package/skills/business-model-analysis/SKILL.md +208 -0
- package/skills/business-model-analysis/e2e-test.js +111 -0
- package/skills/business-model-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-model-analysis/package.json +23 -0
- package/skills/business-model-analysis/skill.js +1779 -0
- package/skills/business-model-analysis/skill.json +175 -0
- package/skills/business-model-analysis/test.js +202 -0
- package/skills/business-model-canvas-analysis/INFO.md +68 -0
- package/skills/business-model-canvas-analysis/README.md +53 -0
- package/skills/business-model-canvas-analysis/SKILL.md +215 -0
- package/skills/business-model-canvas-analysis/prompts.txt +70 -0
- package/skills/business-model-canvas-analysis/reference.md +101 -0
- package/skills/business-model-canvas-analysis/skill.js +675 -0
- package/skills/business-model-canvas-analysis/skill.json +47 -0
- package/skills/business-service-supply-analysis/INFO.md +28 -0
- package/skills/business-service-supply-analysis/SKILL.md +300 -0
- package/skills/business-service-supply-analysis/skill.js +1319 -0
- package/skills/business-service-supply-analysis/skill.json +233 -0
- package/skills/capital-analysis/INFO.md +80 -0
- package/skills/capital-analysis/README.md +65 -0
- package/skills/capital-analysis/SKILL.md +367 -0
- package/skills/capital-analysis/prompts.txt +103 -0
- package/skills/capital-analysis/reference.md +132 -0
- package/skills/capital-analysis/skill.js +739 -0
- package/skills/capital-analysis/skill.json +268 -0
- package/skills/checking-theory-saturation/SKILL.md +280 -0
- package/skills/checking-theory-saturation/pyproject.toml +17 -0
- package/skills/checking-theory-saturation/references/README.md +54 -0
- package/skills/checking-theory-saturation/scripts/__pycache__/assess_saturation.cpython-312.pyc +0 -0
- package/skills/checking-theory-saturation/scripts/assess_saturation.py +296 -0
- package/skills/checking-theory-saturation/tests/__pycache__/test_assess_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/checking-theory-saturation/tests/test_assess_saturation.py +194 -0
- package/skills/class-structure-analysis/SKILL.md +211 -0
- package/skills/competitive-analysis/INFO.md +77 -0
- package/skills/competitive-analysis/README.md +61 -0
- package/skills/competitive-analysis/SKILL.md +357 -0
- package/skills/competitive-analysis/prompts.txt +117 -0
- package/skills/competitive-analysis/reference.md +206 -0
- package/skills/competitive-analysis/skill.js +1166 -0
- package/skills/competitive-analysis/skill.json +219 -0
- package/skills/conflict-resolution/SKILL.md +124 -0
- package/skills/conflict-resolution/conflict-resolution-skill.md +628 -0
- package/skills/data-analysis/SKILL.md +73 -0
- package/skills/data-analysis/prompts/data-cleaning-outline.md +355 -0
- package/skills/data-analysis/prompts/data-cleaning.md +40 -0
- package/skills/data-analysis/prompts/data-understanding-outline.md +243 -0
- package/skills/data-analysis/prompts/data-understanding.md +43 -0
- package/skills/data-analysis/prompts/exploratory-analysis-outline.md +316 -0
- package/skills/data-analysis/prompts/exploratory-analysis.md +40 -0
- package/skills/data-analysis/prompts/modeling-strategy.md +40 -0
- package/skills/data-analysis/pyproject.toml +39 -0
- package/skills/dependency_management.md +46 -0
- package/skills/dialectical-quantitative-synthesis/SKILL.md +239 -0
- package/skills/did-analysis/SKILL.md +239 -0
- package/skills/did-analysis/prompts/causal-interpretation.md +245 -0
- package/skills/did-analysis/prompts/experimental-design.md +260 -0
- package/skills/did-analysis/prompts/model-specification.md +242 -0
- package/skills/did-analysis/prompts/policy-recommendation.md +253 -0
- package/skills/did-analysis/pyproject.toml +35 -0
- package/skills/did-analysis/references/BEST_PRACTICES.md +553 -0
- package/skills/did-analysis/scripts/__pycache__/did_estimator.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/integrated_did.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/parallel_trend.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/robustness_test.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/visualization.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/did_estimator.py +553 -0
- package/skills/did-analysis/scripts/integrated_did.py +867 -0
- package/skills/did-analysis/scripts/parallel_trend.py +473 -0
- package/skills/did-analysis/scripts/parallel_trend_plot.png +0 -0
- package/skills/did-analysis/scripts/parallel_trend_test.png +0 -0
- package/skills/did-analysis/scripts/placebo_test_distribution.png +0 -0
- package/skills/did-analysis/scripts/robustness_test.py +633 -0
- package/skills/did-analysis/scripts/test_integration.py +253 -0
- package/skills/did-analysis/scripts/visualization.py +539 -0
- package/skills/digital-durkheim/SKILL.md +114 -0
- package/skills/digital-durkheim/prompts/collective-consciousness.md +127 -0
- package/skills/digital-durkheim/prompts/functional-analysis.md +127 -0
- package/skills/digital-durkheim/prompts/social-fact-identification.md +128 -0
- package/skills/digital-durkheim/prompts/social-solidarity.md +134 -0
- package/skills/digital-durkheim/pyproject.toml +36 -0
- package/skills/digital-durkheim/scripts/__pycache__/integrated_durkheim_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/__pycache__/social_fact_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/durkheim_analysis_results.json +226 -0
- package/skills/digital-durkheim/scripts/integrated_durkheim_analyzer.py +540 -0
- package/skills/digital-durkheim/scripts/social_fact_analyzer.py +712 -0
- package/skills/digital-durkheim/test_integration.py +226 -0
- package/skills/digital-marx/README.md +215 -0
- package/skills/digital-marx/SHORT_TERM_IMPLEMENTATION_REPORT.md +183 -0
- package/skills/digital-marx/SKILL.md +189 -0
- package/skills/digital-marx/THEORETICAL_ACCURACY_ANALYSIS.md +278 -0
- package/skills/digital-marx/prompts/material-base-analysis.md +113 -0
- package/skills/digital-marx/prompts/production-relations-analysis.md +113 -0
- package/skills/digital-marx/prompts/social-change-prediction.md +112 -0
- package/skills/digital-marx/prompts/superstructure-analysis.md +112 -0
- package/skills/digital-marx/pyproject.toml +37 -0
- package/skills/digital-marx/scripts/__pycache__/dialectical_thinking_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/enhanced_historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/basic_quality_detector.py +760 -0
- package/skills/digital-marx/scripts/dialectical_thinking_analyzer.py +1601 -0
- package/skills/digital-marx/scripts/enhanced_historical_materialism_analyzer.py +1525 -0
- package/skills/digital-marx/scripts/historical_materialism_analyzer.py +963 -0
- package/skills/digital-marx/scripts/integrated_marx_analyzer.py +932 -0
- package/skills/digital-marx/scripts/marxist_theory_validator.py +1192 -0
- package/skills/digital-marx/scripts/quality_validator.py +890 -0
- package/skills/digital-marx-expert/SKILL.md +179 -0
- package/skills/digital-marx-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/class_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/historical_materialism.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/capital_analysis.py +611 -0
- package/skills/digital-marx-expert/modules/class_analysis.py +836 -0
- package/skills/digital-marx-expert/modules/historical_materialism.py +435 -0
- package/skills/digital-marx-expert/pyproject.toml +29 -0
- package/skills/digital-marx-expert/scripts/digital_marx_expert_analyzer.py +189 -0
- package/skills/digital-marx-expert/test_input.json +100 -0
- package/skills/digital-marx-expert/test_output.json +588 -0
- package/skills/digital-transformation/business-innovation-pathway-planning.SKILL.md +102 -0
- package/skills/digital-transformation/business-model-reconstruction.SKILL.md +88 -0
- package/skills/digital-transformation/business-scene-deconstruction-analysis.SKILL.md +131 -0
- package/skills/digital-transformation/config.json +16 -0
- package/skills/digital-transformation/config_host_llm.json +311 -0
- package/skills/digital-transformation/config_llm.json +297 -0
- package/skills/digital-transformation/digitization-deconstruction-analysis.SKILL.md +84 -0
- package/skills/digital-transformation/innovation-niche-identification.SKILL.md +78 -0
- package/skills/digital-transformation/intelligent-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/online-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/scripts/data_integrator.py +637 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer.py +800 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_agentskills_io.py +1677 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_cli.py +834 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_llm.py +1026 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_llm.py +957 -0
- package/skills/digital-transformation/scripts/host_cli_interface.py +531 -0
- package/skills/digital-transformation/scripts/llm_client.py +662 -0
- package/skills/digital-transformation/scripts/skill_executor.py +527 -0
- package/skills/digital-transformation/scripts/transformation_visualizer.py +946 -0
- package/skills/digital-transformation/test_context.json +6 -0
- package/skills/digital-transformation/tests/test_digital_transformation.py +844 -0
- package/skills/digital-weber/SKILL.md +88 -0
- package/skills/digital-weber/prompts/comparative-research.md +155 -0
- package/skills/digital-weber/prompts/institutional-analysis.md +147 -0
- package/skills/digital-weber/prompts/theoretical-interpretation.md +102 -0
- package/skills/digital-weber/prompts/understanding-analysis.md +129 -0
- package/skills/digital-weber/pyproject.toml +36 -0
- package/skills/digital-weber/scripts/__pycache__/integrated_weber_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/optimized_weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/enhanced_weberian_analyzer.py +531 -0
- package/skills/digital-weber/scripts/integrated_weber_analyzer.py +772 -0
- package/skills/digital-weber/scripts/optimized_weberian_analyzer.py +713 -0
- package/skills/digital-weber/scripts/weber_analysis_results.json +196 -0
- package/skills/digital-weber/scripts/weberian_analyzer.py +877 -0
- package/skills/digital-weber/simple_quality_test.py +204 -0
- package/skills/digital-weber/test_comprehensive.py +320 -0
- package/skills/digital-weber/test_quality_improvement.py +237 -0
- package/skills/dissent-resolution/SKILL.md +159 -0
- package/skills/ecosystem-analysis/analyzing-business-model-of-key-species.SKILL.md +31 -0
- package/skills/ecosystem-analysis/analyzing-digital-transformation-impact-on-business.SKILL.md +36 -0
- package/skills/ecosystem-analysis/assessing-ecosystem-impact-of-digital-transformation.SKILL.md +36 -0
- package/skills/ecosystem-analysis/config.json +15 -0
- package/skills/ecosystem-analysis/constructing-business-ecosystem-map.SKILL.md +31 -0
- package/skills/ecosystem-analysis/identifying-key-species-in-industry.SKILL.md +30 -0
- package/skills/ecosystem-analysis/performing-industry-ecosystem-analysis.SKILL.md +79 -0
- package/skills/ecosystem-analysis/references/industry-life-cycle.md +29 -0
- package/skills/ecosystem-analysis/references/value-chain-analysis.md +28 -0
- package/skills/ecosystem-analysis/scripts/business_ecosystem_analyzer.py +640 -0
- package/skills/ecosystem-analysis/scripts/data_collector.py +239 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_analysis.py +309 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_data_integrator.py +620 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_preprocessing.py +262 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_visualizer.py +811 -0
- package/skills/ecosystem-analysis/test_context.json +6 -0
- package/skills/ecosystem-analysis/tests/test_ecosystem_analysis.py +1193 -0
- package/skills/ecosystem-relationship-analysis/INFO.md +28 -0
- package/skills/ecosystem-relationship-analysis/SKILL.md +147 -0
- package/skills/ecosystem-relationship-analysis/algorithms/community_detection.py +128 -0
- package/skills/ecosystem-relationship-analysis/algorithms/health_assessment.py +53 -0
- package/skills/ecosystem-relationship-analysis/algorithms/network_analysis.py +171 -0
- package/skills/ecosystem-relationship-analysis/config.json +10 -0
- package/skills/ecosystem-relationship-analysis/references/community-detection.md +24 -0
- package/skills/ecosystem-relationship-analysis/references/ecosystem-theory.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/health-assessment.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/network-analysis-theory.md +19 -0
- package/skills/ecosystem-relationship-analysis/references/relationship-analysis.md +27 -0
- package/skills/ecosystem-relationship-analysis/scripts/ecosystem_relationship_analyzer.py +155 -0
- package/skills/ecosystem-relationship-analysis/skill.js +797 -0
- package/skills/ecosystem-relationship-analysis/skill.json +205 -0
- package/skills/field-analysis/SKILL.md +145 -0
- package/skills/field-boundary-identification/SKILL.md +156 -0
- package/skills/field-boundary-identification/pyproject.toml +36 -0
- package/skills/field-boundary-identification/scripts/identify_boundaries.py +326 -0
- package/skills/field-capital-analysis/SKILL.md +165 -0
- package/skills/field-expert/SKILL.md +409 -0
- package/skills/field-expert/WORKFLOW_SPEC.md +195 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/combined_input.json +247 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/llm_input.json +76 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/01_boundary/boundary_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/02_capital/capital_results.json +5 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/03_habitus/habitus_results.json +120 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/04_dynamics/dynamics_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/output/executive_summary.txt +35 -0
- package/skills/field-expert/field_analysis_workflow/output/json/comprehensive_analysis.json +180 -0
- package/skills/field-expert/field_analysis_workflow/output/reports/field_analysis_report.html +22 -0
- package/skills/field-expert/modules/__pycache__/boundary_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/habitus_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/boundary_analysis.py +234 -0
- package/skills/field-expert/modules/capital_analysis.py +407 -0
- package/skills/field-expert/modules/habitus_analysis.py +306 -0
- package/skills/field-expert/prompts/boundary_analysis.txt +56 -0
- package/skills/field-expert/prompts/boundary_analysis_simple.txt +17 -0
- package/skills/field-expert/prompts/capital_analysis.txt +87 -0
- package/skills/field-expert/prompts/dynamics_analysis.txt +89 -0
- package/skills/field-expert/prompts/habitus_analysis.txt +87 -0
- package/skills/field-expert/pyproject.toml +27 -0
- package/skills/field-expert/scripts/__pycache__/field_analysis_tool.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/__pycache__/prepare_data.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/debug_output.txt +4 -0
- package/skills/field-expert/scripts/debug_output_converted.txt +27 -0
- package/skills/field-expert/scripts/field_analysis_tool.py +536 -0
- package/skills/field-expert/scripts/field_expert_analyzer.py +136 -0
- package/skills/field-expert/scripts/generate_report.py +525 -0
- package/skills/field-expert/scripts/prepare_data.py +226 -0
- package/skills/field-expert/scripts/run_workflow.py +571 -0
- package/skills/field-expert/scripts/summarize_data.py +156 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213035_964505.txt +135 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213534_264265.txt +16 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213932_601575.txt +22 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_214330_241706.txt +15 -0
- package/skills/field-expert/scripts/test_host_llm.py +164 -0
- package/skills/field-expert/scripts/test_stigmergy_llm.py +91 -0
- package/skills/field-expert/test_input.json +168 -0
- package/skills/field-expert/test_output.json +724 -0
- package/skills/field-expert/workflow_spec.json +171 -0
- package/skills/field-habitus-analysis/SKILL.md +165 -0
- package/skills/fsqca-analysis/SKILL.md +71 -0
- package/skills/fsqca-analysis/assets/templates/report_template.md +122 -0
- package/skills/fsqca-analysis/comprehensive_test.py +573 -0
- package/skills/fsqca-analysis/comprehensive_test_report.json +207 -0
- package/skills/fsqca-analysis/comprehensive_test_report.md +35 -0
- package/skills/fsqca-analysis/fsqca_analysis_report.md +35 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance-outline.md +142 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance.md +40 -0
- package/skills/fsqca-analysis/prompts/result-interpretation-outline.md +133 -0
- package/skills/fsqca-analysis/prompts/result-interpretation.md +45 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis-outline.md +75 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis.md +34 -0
- package/skills/fsqca-analysis/pyproject.toml +36 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES-outline.md +158 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES.md +39 -0
- package/skills/fsqca-analysis/references/METHODOLOGY-outline.md +103 -0
- package/skills/fsqca-analysis/references/METHODOLOGY.md +38 -0
- package/skills/fsqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/calibration.py +540 -0
- package/skills/fsqca-analysis/scripts/integrated_analysis.py +651 -0
- package/skills/fsqca-analysis/scripts/minimization.py +536 -0
- package/skills/fsqca-analysis/scripts/truth_table.py +433 -0
- package/skills/fsqca-analysis/test_fsqca.py +199 -0
- package/skills/fusion_plan.md +232 -0
- package/skills/grounded-theory-expert/SKILL.md +180 -0
- package/skills/grounded-theory-expert/pyproject.toml +23 -0
- package/skills/grounded-theory-expert/scripts/gt_expert_analyzer.py +185 -0
- package/skills/grounded-theory-expert/stages/__pycache__/axial_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/open_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/selective_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/axial_coding.py +294 -0
- package/skills/grounded-theory-expert/stages/open_coding.py +245 -0
- package/skills/grounded-theory-expert/stages/selective_coding.py +410 -0
- package/skills/grounded-theory-expert/test_input.json +27 -0
- package/skills/grounded-theory-expert/test_output.json +874 -0
- package/skills/grounded-theory-expert/tests/sample-cases/hongloumeng.txt +91 -0
- package/skills/grounded-theory-expert/tests/sample-cases/sanguoyanyi_excerpts.txt +169 -0
- package/skills/grounded-theory-expert/tests/sample-cases/shuihuzhuan_excerpts.txt +216 -0
- package/skills/grounded-theory-expert/tests/sample-cases/xiyouji_excerpts.txt +100 -0
- package/skills/grounded-theory-expert/tests/sample-cases//345/233/233/345/244/247/345/220/215/350/221/227ANT/345/210/206/346/236/220/346/212/245/345/221/212.md +283 -0
- package/skills/grounded-theory-expert/tools/__pycache__/memo_writer.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/__pycache__/saturation_checker.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/memo_writer.py +512 -0
- package/skills/grounded-theory-expert/tools/saturation_checker.py +345 -0
- package/skills/grounded-theory-expert-enhanced/SKILL.md +218 -0
- package/skills/grounded-theory-expert-enhanced/docs/00_master_guide.md +276 -0
- package/skills/grounded-theory-expert-enhanced/docs/01_quick_start.md +59 -0
- package/skills/grounded-theory-expert-enhanced/docs/02_task_flow.md +464 -0
- package/skills/grounded-theory-expert-enhanced/docs/03_path/350/247/204/350/214/203.md +161 -0
- package/skills/grounded-theory-expert-enhanced/docs/04_html_report.md +340 -0
- package/skills/grounded-theory-expert-enhanced/docs/05_best_practices.md +322 -0
- package/skills/grounded-theory-expert-enhanced/docs/FLOW_GUIDE.md +280 -0
- package/skills/grounded-theory-expert-enhanced/docs/LLM/350/260/203/347/224/250/346/250/241/346/213/237/346/265/201/347/250/213.md +299 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/constructivist_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/localization_expert.md +66 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/phenomenological_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/positivist_expert.md +67 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level1_prompts.md +174 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level2_prompts.md +176 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level3_prompts.md +219 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/preprocessing_prompts.md +120 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/quality_standards.md +166 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/reliability_methods.md +159 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/saturation_methods.md +193 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/theory_construction.md +166 -0
- package/skills/grounded-theory-expert-enhanced/pyproject.toml +33 -0
- package/skills/grounded-theory-expert-enhanced/references/llm_integration_principles.md +56 -0
- package/skills/grounded-theory-expert-enhanced/scripts/preprocessing_script.py +191 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_axial_coding.py +146 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_open_coding.py +94 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_selective_coding.py +163 -0
- package/skills/grounded-theory-expert-enhanced/tools/.env.example +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/LLM_CONFIG_GUIDE.md +67 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/analysis_controller.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/host_cli_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/llm_expert_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/project_structure.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/reliability_validator.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/analysis_controller.py +2344 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_memo_writer.py +90 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_saturation_checker.py +216 -0
- package/skills/grounded-theory-expert-enhanced/tools/fix_dirs.py +48 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/00_raw_data/source_document.txt +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_cleaned/cleaned_text.txt +198 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_tokenized/tokenized_text.json +1099 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_text.txt +20 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_text.txt +21 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_text.txt +23 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_text.txt +135 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/llm_expert_coder.py +469 -0
- package/skills/grounded-theory-expert-enhanced/tools/project_structure.py +1202 -0
- package/skills/grounded-theory-expert-enhanced/tools/reliability_validator.py +800 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/00_raw_data/source_document.txt +169 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_cleaned/cleaned_text.txt +200 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_tokenized/tokenized_text.json +1109 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_text.txt +22 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_text.txt +18 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_text.txt +24 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_text.txt +134 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_claude.py +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/00_raw_data/source_document.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_cleaned/cleaned_text.txt +16 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_tokenized/tokenized_text.json +129 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_text.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/merged_concept_library.json +278 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_real_coding.py +135 -0
- package/skills/historical-materialist-analysis/SKILL.md +186 -0
- package/skills/information-verification/INFO.md +69 -0
- package/skills/information-verification/README.md +80 -0
- package/skills/information-verification/SKILL.md +305 -0
- package/skills/information-verification/prompts.txt +103 -0
- package/skills/information-verification/reference.md +212 -0
- package/skills/information-verification/skill.js +1056 -0
- package/skills/information-verification/skill.json +198 -0
- package/skills/management-theory-analysis/INFO.md +74 -0
- package/skills/management-theory-analysis/README.md +63 -0
- package/skills/management-theory-analysis/SKILL.md +361 -0
- package/skills/management-theory-analysis/prompts.txt +113 -0
- package/skills/management-theory-analysis/reference.md +167 -0
- package/skills/management-theory-analysis/skill.js +561 -0
- package/skills/management-theory-analysis/skill.json +223 -0
- package/skills/mathematical-statistics/SKILL.md +227 -0
- package/skills/mathematical-statistics/pyproject.toml +36 -0
- package/skills/mathematical-statistics/scripts/statistics_toolkit.py +270 -0
- package/skills/msqca-analysis/SKILL.md +261 -0
- package/skills/msqca-analysis/assets/templates/data_template.csv +11 -0
- package/skills/msqca-analysis/assets/templates/report_template.md +188 -0
- package/skills/msqca-analysis/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/prompts/calibration-guidance.md +251 -0
- package/skills/msqca-analysis/prompts/result-interpretation.md +253 -0
- package/skills/msqca-analysis/prompts/theoretical-analysis.md +172 -0
- package/skills/msqca-analysis/pyproject.toml +37 -0
- package/skills/msqca-analysis/references/BEST_PRACTICES.md +612 -0
- package/skills/msqca-analysis/references/METHODOLOGY.md +282 -0
- package/skills/msqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/calibration.py +341 -0
- package/skills/msqca-analysis/scripts/integrated_analysis.py +621 -0
- package/skills/msqca-analysis/scripts/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/scripts/minimization.py +580 -0
- package/skills/msqca-analysis/scripts/truth_table.py +438 -0
- package/skills/network-computation/SKILL.md +270 -0
- package/skills/network-computation/pyproject.toml +34 -0
- package/skills/network-computation/scripts/calculate_centrality.py +213 -0
- package/skills/network-computation-expert/SKILL.md +183 -0
- package/skills/network-computation-expert/modules/__pycache__/centrality_analysis.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/community_detection.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/data_processing.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/network_construction.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/centrality_analysis.py +438 -0
- package/skills/network-computation-expert/modules/community_detection.py +467 -0
- package/skills/network-computation-expert/modules/data_processing.py +467 -0
- package/skills/network-computation-expert/modules/network_construction.py +460 -0
- package/skills/network-computation-expert/pyproject.toml +27 -0
- package/skills/network-computation-expert/scripts/network_computation_expert_analyzer.py +208 -0
- package/skills/network-computation-expert/test_input.json +140 -0
- package/skills/network-computation-expert/test_output.json +627 -0
- package/skills/operations-analysis/INFO.md +76 -0
- package/skills/operations-analysis/README.md +61 -0
- package/skills/operations-analysis/SKILL.md +365 -0
- package/skills/operations-analysis/prompts.txt +109 -0
- package/skills/operations-analysis/pyproject.toml +35 -0
- package/skills/operations-analysis/reference.md +178 -0
- package/skills/operations-analysis/skill.js +870 -0
- package/skills/operations-analysis/skill.json +219 -0
- package/skills/patent-downloader/README.md +358 -0
- package/skills/patent-downloader/SKILL.md +309 -0
- package/skills/patent-downloader/assets/README_TEMPLATE.md +140 -0
- package/skills/patent-downloader/assets/requirements.txt +5 -0
- package/skills/patent-downloader/references/google_patents.md +210 -0
- package/skills/patent-downloader/scripts/patent_server.py +279 -0
- package/skills/performing-axial-coding/SKILL.md +301 -0
- package/skills/performing-axial-coding/pyproject.toml +30 -0
- package/skills/performing-axial-coding/references/README.md +111 -0
- package/skills/performing-axial-coding/references/_BACKUP_paradigm-theory.md +375 -0
- package/skills/performing-axial-coding/references/_BACKUP_relationship-types.md +544 -0
- package/skills/performing-axial-coding/references/_BACKUP_troubleshooting.md +627 -0
- package/skills/performing-axial-coding/references/category-construction/INDEX.md +190 -0
- package/skills/performing-axial-coding/references/category-construction/complete-example.md +438 -0
- package/skills/performing-axial-coding/references/paradigm-theory/INDEX.md +181 -0
- package/skills/performing-axial-coding/references/paradigm-theory/chinese-adaptation.md +349 -0
- package/skills/performing-axial-coding/references/paradigm-theory/quality-standards.md +345 -0
- package/skills/performing-axial-coding/references/paradigm-theory/six-components.md +323 -0
- package/skills/performing-axial-coding/references/relationship-types/INDEX.md +126 -0
- package/skills/performing-axial-coding/references/relationship-types/causal.md +141 -0
- package/skills/performing-axial-coding/references/relationship-types/conditional.md +150 -0
- package/skills/performing-axial-coding/references/troubleshooting/INDEX.md +136 -0
- package/skills/performing-axial-coding/references/troubleshooting/category-issues.md +129 -0
- package/skills/performing-axial-coding/references/troubleshooting/relationship-issues.md +137 -0
- package/skills/performing-axial-coding/references/troubleshooting/technical-issues.md +184 -0
- package/skills/performing-axial-coding/scripts/__pycache__/build_relationships.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/construct_paradigm.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/identify_categories.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/build_relationships.py +314 -0
- package/skills/performing-axial-coding/scripts/categories_test.json +122 -0
- package/skills/performing-axial-coding/scripts/construct_paradigm.py +271 -0
- package/skills/performing-axial-coding/scripts/identify_categories.py +267 -0
- package/skills/performing-axial-coding/tests/test_integration.py +84 -0
- package/skills/performing-centrality-analysis/SKILL.md +210 -0
- package/skills/performing-centrality-analysis/pyproject.toml +21 -0
- package/skills/performing-centrality-analysis/references/README.md +60 -0
- package/skills/performing-centrality-analysis/references/centrality-theory/INDEX.md +136 -0
- package/skills/performing-centrality-analysis/references/chinese-context/INDEX.md +169 -0
- package/skills/performing-centrality-analysis/scripts/__pycache__/calculate_centrality.cpython-312.pyc +0 -0
- package/skills/performing-centrality-analysis/scripts/calculate_centrality.py +213 -0
- package/skills/performing-centrality-analysis/tests/__pycache__/test_calculate_centrality.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-centrality-analysis/tests/test_calculate_centrality.py +218 -0
- package/skills/performing-network-computation/SKILL.md +224 -0
- package/skills/performing-network-computation/pyproject.toml +34 -0
- package/skills/performing-network-computation/scripts/build_network.py +260 -0
- package/skills/performing-network-computation/scripts/calculate_metrics.py +236 -0
- package/skills/performing-network-computation/scripts/detect_communities.py +281 -0
- package/skills/performing-network-computation/scripts/visualize_network.py +272 -0
- package/skills/performing-open-coding/SKILL.md +299 -0
- package/skills/performing-open-coding/pyproject.toml +35 -0
- package/skills/performing-open-coding/references/chinese-context.md +270 -0
- package/skills/performing-open-coding/references/examples.md +338 -0
- package/skills/performing-open-coding/references/theory.md +215 -0
- package/skills/performing-open-coding/references/troubleshooting.md +491 -0
- package/skills/performing-open-coding/scripts/__pycache__/auto_loader.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/compare_codes.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/preprocess_text.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/auto_loader.py +195 -0
- package/skills/performing-open-coding/scripts/cluster_concepts.py +294 -0
- package/skills/performing-open-coding/scripts/clusters_test.json +169 -0
- package/skills/performing-open-coding/scripts/compare_codes.py +257 -0
- package/skills/performing-open-coding/scripts/comparison_test.json +19 -0
- package/skills/performing-open-coding/scripts/concepts_test.json +135 -0
- package/skills/performing-open-coding/scripts/preprocess_text.py +218 -0
- package/skills/performing-open-coding/scripts/test_output.json +134 -0
- package/skills/performing-open-coding/scripts/validate_codes.py +302 -0
- package/skills/performing-open-coding/scripts/validation_test.json +95 -0
- package/skills/performing-open-coding/tests/__pycache__/test_auto_loader.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/__pycache__/test_preprocess.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/run_integration_tests.py +148 -0
- package/skills/performing-open-coding/tests/test_auto_loader.py +233 -0
- package/skills/performing-open-coding/tests/test_compare_codes.py +336 -0
- package/skills/performing-open-coding/tests/test_preprocess.py +187 -0
- package/skills/performing-selective-coding/SKILL.md +305 -0
- package/skills/performing-selective-coding/pyproject.toml +21 -0
- package/skills/performing-selective-coding/references/README.md +86 -0
- package/skills/performing-selective-coding/references/core-category/INDEX.md +132 -0
- package/skills/performing-selective-coding/references/saturation/INDEX.md +153 -0
- package/skills/performing-selective-coding/references/storyline/INDEX.md +166 -0
- package/skills/performing-selective-coding/references/theory-integration/INDEX.md +203 -0
- package/skills/performing-selective-coding/scripts/README.md +101 -0
- package/skills/performing-selective-coding/scripts/__pycache__/check_saturation.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/__pycache__/identify_core_category.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/check_saturation.py +236 -0
- package/skills/performing-selective-coding/scripts/construct_storyline.py +237 -0
- package/skills/performing-selective-coding/scripts/identify_core_category.py +265 -0
- package/skills/performing-selective-coding/scripts/integrate_theory.py +173 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_check_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_identify_core_category.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/test_check_saturation.py +157 -0
- package/skills/performing-selective-coding/tests/test_identify_core_category.py +157 -0
- package/skills/practical-marxist-application/SKILL.md +230 -0
- package/skills/processing-network-data/SKILL.md +146 -0
- package/skills/processing-network-data/pyproject.toml +33 -0
- package/skills/processing-network-data/scripts/clean_survey_data.py +285 -0
- package/skills/processing-network-data/scripts/extract_network_data.py +286 -0
- package/skills/processing-network-data/scripts/transform_data_format.py +334 -0
- package/skills/processing-network-data/scripts/validate_network_data.py +322 -0
- package/skills/pubscholar-auto-search/AGENTSKILLS_OPTIMIZATION_REPORT.md +540 -0
- package/skills/pubscholar-auto-search/README.md +66 -0
- package/skills/pubscholar-auto-search/SKILL.md +242 -0
- package/skills/pubscholar-auto-search/references/API_REFERENCE.md +349 -0
- package/skills/pubscholar-auto-search/references/DEVELOPMENT.md +395 -0
- package/skills/pubscholar-auto-search/references/EXTENSION_STRATEGIES.md +415 -0
- package/skills/pubscholar-auto-search/references/USER_GUIDE.md +432 -0
- package/skills/pubscholar-auto-search/requirements.txt +17 -0
- package/skills/pubscholar-auto-search/scripts/__pycache__/pubscholar_searcher.cpython-312.pyc +0 -0
- package/skills/pubscholar-auto-search/scripts/pubscholar_searcher.py +602 -0
- package/skills/pubscholar-auto-search/scripts/test_pubscholar_search.py +205 -0
- package/skills/research-design/DEPENDENCY_MANAGEMENT.md +112 -0
- package/skills/research-design/README.md +158 -0
- package/skills/research-design/SKILL.md +82 -0
- package/skills/research-design/assets/templates/research_design_template.md +297 -0
- package/skills/research-design/prompts/analysis-strategy-outline.md +307 -0
- package/skills/research-design/prompts/analysis-strategy.md +37 -0
- package/skills/research-design/prompts/data-planning-outline.md +204 -0
- package/skills/research-design/prompts/data-planning.md +36 -0
- package/skills/research-design/prompts/ethics-review-outline.md +406 -0
- package/skills/research-design/prompts/ethics-review.md +36 -0
- package/skills/research-design/prompts/method-selection-outline.md +181 -0
- package/skills/research-design/prompts/method-selection.md +36 -0
- package/skills/research-design/prompts/problem-definition-outline.md +107 -0
- package/skills/research-design/prompts/problem-definition.md +30 -0
- package/skills/research-design/pyproject.toml +35 -0
- package/skills/research-design/references/best-practices.md +185 -0
- package/skills/research-design/references/methodology.md +162 -0
- package/skills/research-design/scripts/__pycache__/design_evaluation.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/literature_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/method_matching.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/design_evaluation.py +670 -0
- package/skills/research-design/scripts/integrated_analysis.py +543 -0
- package/skills/research-design/scripts/literature_analysis.py +303 -0
- package/skills/research-design/scripts/method_matching.py +478 -0
- package/skills/research-design/test_research_design.py +281 -0
- package/skills/sna-analysis/integration_with_trusted_scraper.md +115 -0
- package/skills/spark-integration/INFO.md +64 -0
- package/skills/spark-integration/README.md +159 -0
- package/skills/spark-integration/SKILL.md +232 -0
- package/skills/spark-integration/skill.js +308 -0
- package/skills/spark-integration/skill.json +37 -0
- package/skills/trusted-web-scraper/CONFIG.yaml +60 -0
- package/skills/trusted-web-scraper/README.md +137 -0
- package/skills/trusted-web-scraper/SKILL.md +173 -0
- package/skills/trusted-web-scraper/final_test.json +240 -0
- package/skills/trusted-web-scraper/modules/__pycache__/core_trusted_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/core_trusted_scraper.py +778 -0
- package/skills/trusted-web-scraper/modules/scraper_minimal.py +623 -0
- package/skills/trusted-web-scraper/pyproject.toml +46 -0
- package/skills/trusted-web-scraper/scripts/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/scripts/trusted_web_scraper.py +109 -0
- package/skills/trusted-web-scraper/test_comprehensive.py +53 -0
- package/skills/trusted-web-scraper/test_full.py +154 -0
- package/skills/trusted-web-scraper/test_input.json +10 -0
- package/skills/trusted-web-scraper/test_output.json +162 -0
- package/skills/trusted-web-scraper/test_output2.json +240 -0
- package/skills/trusted-web-scraper/test_output3.json +240 -0
- package/skills/trusted-web-scraper/test_output4.json +240 -0
- package/skills/validity-reliability/SKILL.md +130 -0
- package/skills/validity-reliability/pyproject.toml +36 -0
- package/skills/validity-reliability/scripts/validity_reliability_toolkit.py +480 -0
- package/skills/verify_compliance.ps1 +40 -0
- package/skills/visualization-expert/INFO.md +77 -0
- package/skills/visualization-expert/README.md +78 -0
- package/skills/visualization-expert/SKILL.md +374 -0
- package/skills/visualization-expert/prompts.txt +92 -0
- package/skills/visualization-expert/reference.md +212 -0
- package/skills/visualization-expert/skill.js +904 -0
- package/skills/visualization-expert/skill.json +195 -0
- package/skills/writing-grounded-theory-memos/SKILL.md +301 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
基于真实LLM的数字化转型分析器
|
|
4
|
+
所有分析都由LLM动态生成,不使用预定义框架
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
import argparse
|
|
9
|
+
from typing import Dict, Any, List, Optional
|
|
10
|
+
from enum import Enum
|
|
11
|
+
import logging
|
|
12
|
+
|
|
13
|
+
from llm_client import LLMClientFactory, chat_with_llm
|
|
14
|
+
|
|
15
|
+
# 配置日志
|
|
16
|
+
logging.basicConfig(level=logging.INFO)
|
|
17
|
+
logger = logging.getLogger(__name__)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class AnalysisType(Enum):
|
|
21
|
+
"""分析类型枚举"""
|
|
22
|
+
BUSINESS_SCENE_DECONSTRUCTION = "business-scene-deconstruction"
|
|
23
|
+
DIGITIZATION_DECONSTRUCTION = "digitization-deconstruction"
|
|
24
|
+
ONLINE_TRANSFORMATION_DECONSTRUCTION = "online-transformation-deconstruction"
|
|
25
|
+
INTELLIGENT_TRANSFORMATION_DECONSTRUCTION = "intelligent-transformation-deconstruction"
|
|
26
|
+
INNOVATION_NICHE_IDENTIFICATION = "innovation-niche-identification"
|
|
27
|
+
BUSINESS_MODEL_RECONSTRUCTION = "business-model-reconstruction"
|
|
28
|
+
BUSINESS_INNOVATION_PATHWAY_PLANNING = "business-innovation-pathway-planning"
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class DigitalTransformationAnalyzerLLM:
|
|
32
|
+
"""基于LLM的数字化转型分析器"""
|
|
33
|
+
|
|
34
|
+
def __init__(
|
|
35
|
+
self,
|
|
36
|
+
llm_provider: str = "openai",
|
|
37
|
+
llm_model: Optional[str] = None,
|
|
38
|
+
llm_api_key: Optional[str] = None
|
|
39
|
+
):
|
|
40
|
+
"""
|
|
41
|
+
初始化分析器
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
llm_provider: LLM提供商 (openai, anthropic, ollama, qwen)
|
|
45
|
+
llm_model: LLM模型名称
|
|
46
|
+
llm_api_key: LLM API密钥
|
|
47
|
+
"""
|
|
48
|
+
self.llm_provider = llm_provider
|
|
49
|
+
self.llm_model = llm_model
|
|
50
|
+
self.llm_api_key = llm_api_key
|
|
51
|
+
|
|
52
|
+
logger.info(
|
|
53
|
+
f"基于LLM的数字化转型分析器初始化完成\n"
|
|
54
|
+
f" 提供商: {llm_provider}\n"
|
|
55
|
+
f" 模型: {llm_model or '默认'}\n"
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
def _call_llm(
|
|
59
|
+
self,
|
|
60
|
+
prompt: str,
|
|
61
|
+
system_prompt: str,
|
|
62
|
+
temperature: float = 0.7,
|
|
63
|
+
max_tokens: int = 3000
|
|
64
|
+
) -> str:
|
|
65
|
+
"""
|
|
66
|
+
调用LLM生成分析内容
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
prompt: 用户提示词
|
|
70
|
+
system_prompt: 系统提示词
|
|
71
|
+
temperature: 温度参数
|
|
72
|
+
max_tokens: 最大生成token数
|
|
73
|
+
|
|
74
|
+
Returns:
|
|
75
|
+
LLM生成的文本
|
|
76
|
+
"""
|
|
77
|
+
try:
|
|
78
|
+
response = chat_with_llm(
|
|
79
|
+
prompt=prompt,
|
|
80
|
+
system_prompt=system_prompt,
|
|
81
|
+
provider=self.llm_provider,
|
|
82
|
+
temperature=temperature,
|
|
83
|
+
max_tokens=max_tokens,
|
|
84
|
+
api_key=self.llm_api_key,
|
|
85
|
+
model=self.llm_model
|
|
86
|
+
)
|
|
87
|
+
return response
|
|
88
|
+
except Exception as e:
|
|
89
|
+
logger.error(f"LLM调用失败: {e}")
|
|
90
|
+
return f"分析生成失败: {str(e)}"
|
|
91
|
+
|
|
92
|
+
def deconstruct_business_scene(self, business_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
93
|
+
"""
|
|
94
|
+
业务场景解构分析 - 使用LLM动态生成
|
|
95
|
+
|
|
96
|
+
Args:
|
|
97
|
+
business_context: 业务场景上下文
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
解构分析结果
|
|
101
|
+
"""
|
|
102
|
+
logger.info("开始业务场景解构分析...")
|
|
103
|
+
|
|
104
|
+
# 构建提示词
|
|
105
|
+
system_prompt = """你是一位资深的数字化转型咨询专家,擅长从多维度分析业务场景。
|
|
106
|
+
你的任务是使用DEEP-SCAN框架(五层解构模型)对业务场景进行深度分析。
|
|
107
|
+
|
|
108
|
+
DEEP-SCAN框架包括:
|
|
109
|
+
1. 价值流层(Value Flow Layer):价值创造、传递、捕获、分配
|
|
110
|
+
2. 资源要素层(Resource Element Layer):有形资源、无形资源、人力资源、组织资源
|
|
111
|
+
3. 活动网络层(Activity Network Layer):核心活动、支持活动、管理活动、连接活动
|
|
112
|
+
4. 连接关系层(Connection Relationship Layer):物理连接、信息连接、价值连接、认知连接
|
|
113
|
+
5. 生态系统环境层(Ecosystem Environment Layer):技术环境、市场环境、政策环境、社会环境
|
|
114
|
+
|
|
115
|
+
请基于这个框架,对用户的业务场景进行全面、深入的分析。"""
|
|
116
|
+
|
|
117
|
+
prompt = f"""请对以下业务场景进行全面的解构分析:
|
|
118
|
+
|
|
119
|
+
业务场景信息:
|
|
120
|
+
{json.dumps(business_context, ensure_ascii=False, indent=2)}
|
|
121
|
+
|
|
122
|
+
请按照以下JSON格式返回分析结果:
|
|
123
|
+
|
|
124
|
+
{{
|
|
125
|
+
"analysis_type": "business_scene_deconstruction",
|
|
126
|
+
"business_context_summary": "对业务场景的简要总结",
|
|
127
|
+
"deconstruction_analysis": {{
|
|
128
|
+
"value_flow_layer": {{
|
|
129
|
+
"value_creation": "分析价值是如何创造的",
|
|
130
|
+
"value_delivery": "分析价值是如何传递的",
|
|
131
|
+
"value_capture": "分析各参与方如何获取价值",
|
|
132
|
+
"value_distribution": "分析价值在生态中的分配逻辑"
|
|
133
|
+
}},
|
|
134
|
+
"resource_element_layer": {{
|
|
135
|
+
"tangible_resources": "分析有形资源的使用情况",
|
|
136
|
+
"intangible_resources": "分析无形资源的运用情况",
|
|
137
|
+
"human_resources": "分析人力资源的能力和配置",
|
|
138
|
+
"organizational_resources": "分析组织资源和文化"
|
|
139
|
+
}},
|
|
140
|
+
"activity_network_layer": {{
|
|
141
|
+
"core_activities": "识别和分析核心价值创造活动",
|
|
142
|
+
"support_activities": "识别和分析支持活动",
|
|
143
|
+
"management_activities": "识别和分析管理协调活动",
|
|
144
|
+
"connection_activities": "识别和分析连接协调活动"
|
|
145
|
+
}},
|
|
146
|
+
"connection_relationship_layer": {{
|
|
147
|
+
"physical_connection": "分析实物流动和连接",
|
|
148
|
+
"information_connection": "分析数据和信息流动",
|
|
149
|
+
"value_connection": "分析交易和利益关联",
|
|
150
|
+
"cognitive_connection": "分析认知、信任和文化关联"
|
|
151
|
+
}},
|
|
152
|
+
"ecosystem_environment_layer": {{
|
|
153
|
+
"technology_environment": "分析技术环境和发展趋势",
|
|
154
|
+
"market_environment": "分析市场需求和竞争环境",
|
|
155
|
+
"policy_environment": "分析政策法规环境",
|
|
156
|
+
"social_environment": "分析社会文化和价值观环境"
|
|
157
|
+
}}
|
|
158
|
+
}},
|
|
159
|
+
"expert_analysis": {{
|
|
160
|
+
"digital_transformation_consultant": {{
|
|
161
|
+
"strategic_value": "从战略角度评估数字化的价值",
|
|
162
|
+
"competitive_advantage": "分析数字化如何构建竞争优势",
|
|
163
|
+
"transformation_risk": "识别数字化转型的风险",
|
|
164
|
+
"success_factors": "分析数字化成功的关键因素"
|
|
165
|
+
}},
|
|
166
|
+
"digital_economist": {{
|
|
167
|
+
"cost_structure": "分析数字化对成本结构的影响",
|
|
168
|
+
"value_creation": "分析数字化如何创造新价值",
|
|
169
|
+
"network_effects": "分析数字化带来的网络效应",
|
|
170
|
+
"platform_economics": "分析数字化促进平台化的可能性"
|
|
171
|
+
}},
|
|
172
|
+
"digital_philosopher": {{
|
|
173
|
+
"ontology": "分析数字化如何改变事物的存在方式",
|
|
174
|
+
"epistemology": "分析数字化如何改变认知方式",
|
|
175
|
+
"axiology": "分析数字化如何重新定义价值",
|
|
176
|
+
"space_time": "分析数字化如何重塑时空概念"
|
|
177
|
+
}},
|
|
178
|
+
"industrial_internet_expert": {{
|
|
179
|
+
"industry_chain_coordination": "分析产业链协同的机会",
|
|
180
|
+
"platform_construction": "分析平台建设的可能性",
|
|
181
|
+
"ecosystem_network": "分析生态网络的构建逻辑",
|
|
182
|
+
"standard_setting": "分析标准制定的机会"
|
|
183
|
+
}},
|
|
184
|
+
"ai_expert": {{
|
|
185
|
+
"data_element": "分析数据价值挖掘的机会",
|
|
186
|
+
"algorithm_application": "分析AI算法应用的可能",
|
|
187
|
+
"automation_potential": "分析流程自动化的潜力",
|
|
188
|
+
"intelligent_decision": "分析智能决策的空间"
|
|
189
|
+
}},
|
|
190
|
+
"business_model_reconstruction_expert": {{
|
|
191
|
+
"value_proposition": "分析价值主张的重塑",
|
|
192
|
+
"revenue_model": "分析收入模式的创新",
|
|
193
|
+
"key_resources": "分析关键资源的变化",
|
|
194
|
+
"channel_path": "分析渠道路径的优化"
|
|
195
|
+
}}
|
|
196
|
+
}},
|
|
197
|
+
"innovation_opportunities": [
|
|
198
|
+
{{
|
|
199
|
+
"type": "创新类型",
|
|
200
|
+
"description": "详细描述创新机会",
|
|
201
|
+
"potential_value": "评估潜在价值",
|
|
202
|
+
"feasibility": "评估可行性"
|
|
203
|
+
}}
|
|
204
|
+
]
|
|
205
|
+
}}
|
|
206
|
+
|
|
207
|
+
注意:
|
|
208
|
+
1. 所有分析都必须基于提供的业务场景信息,不要使用通用模板
|
|
209
|
+
2. 分析要具体、深入、有洞察力
|
|
210
|
+
3. 识别的创新机会要具体可行
|
|
211
|
+
4. 必须返回有效的JSON格式
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
# 调用LLM生成分析
|
|
215
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
216
|
+
|
|
217
|
+
# 解析JSON响应
|
|
218
|
+
try:
|
|
219
|
+
result = json.loads(response)
|
|
220
|
+
result["business_context"] = business_context
|
|
221
|
+
logger.info("业务场景解构分析完成")
|
|
222
|
+
return result
|
|
223
|
+
except json.JSONDecodeError as e:
|
|
224
|
+
logger.error(f"JSON解析失败: {e}")
|
|
225
|
+
logger.error(f"LLM响应: {response}")
|
|
226
|
+
return {
|
|
227
|
+
"analysis_type": "business_scene_deconstruction",
|
|
228
|
+
"business_context": business_context,
|
|
229
|
+
"error": "LLM返回的JSON格式无效",
|
|
230
|
+
"raw_response": response
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
def deconstruct_digitization(self, digitization_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
234
|
+
"""
|
|
235
|
+
数字化解构分析 - 使用LLM动态生成
|
|
236
|
+
|
|
237
|
+
Args:
|
|
238
|
+
digitization_context: 数字化上下文
|
|
239
|
+
|
|
240
|
+
Returns:
|
|
241
|
+
解构分析结果
|
|
242
|
+
"""
|
|
243
|
+
logger.info("开始数字化解构分析...")
|
|
244
|
+
|
|
245
|
+
system_prompt = """你是一位数字化转型专家,专长于分析企业的数字化机会和挑战。
|
|
246
|
+
你的任务是深入分析企业的数字化现状,识别数字化转型的机会和障碍。"""
|
|
247
|
+
|
|
248
|
+
prompt = f"""请对以下企业的数字化情况进行深入分析:
|
|
249
|
+
|
|
250
|
+
企业数字化信息:
|
|
251
|
+
{json.dumps(digitization_context, ensure_ascii=False, indent=2)}
|
|
252
|
+
|
|
253
|
+
请按照以下JSON格式返回分析结果:
|
|
254
|
+
|
|
255
|
+
{{
|
|
256
|
+
"analysis_type": "digitization_deconstruction",
|
|
257
|
+
"digitization_context_summary": "对数字化现状的简要总结",
|
|
258
|
+
"current_digitalization_level": "评估当前数字化水平(初级/中级/高级)",
|
|
259
|
+
"digitization_opportunities": {{
|
|
260
|
+
"data_monetization_opportunities": [
|
|
261
|
+
{{
|
|
262
|
+
"opportunity": "数据货币化机会描述",
|
|
263
|
+
"case": "具体应用案例",
|
|
264
|
+
"value": "商业价值",
|
|
265
|
+
"priority": "优先级(高/中/低)"
|
|
266
|
+
}}
|
|
267
|
+
],
|
|
268
|
+
"process_optimization_opportunities": [
|
|
269
|
+
{{
|
|
270
|
+
"opportunity": "流程优化机会描述",
|
|
271
|
+
"case": "具体应用案例",
|
|
272
|
+
"value": "商业价值",
|
|
273
|
+
"priority": "优先级"
|
|
274
|
+
}}
|
|
275
|
+
],
|
|
276
|
+
"experience_upgrade_opportunities": [
|
|
277
|
+
{{
|
|
278
|
+
"opportunity": "体验升级机会描述",
|
|
279
|
+
"case": "具体应用案例",
|
|
280
|
+
"value": "商业价值",
|
|
281
|
+
"priority": "优先级"
|
|
282
|
+
}}
|
|
283
|
+
],
|
|
284
|
+
"ecosystem_coordination_opportunities": [
|
|
285
|
+
{{
|
|
286
|
+
"opportunity": "生态协同机会描述",
|
|
287
|
+
"case": "具体应用案例",
|
|
288
|
+
"value": "商业价值",
|
|
289
|
+
"priority": "优先级"
|
|
290
|
+
}}
|
|
291
|
+
]
|
|
292
|
+
}},
|
|
293
|
+
"digitization_challenges": [
|
|
294
|
+
{{
|
|
295
|
+
"challenge": "数字化挑战描述",
|
|
296
|
+
"impact": "影响程度",
|
|
297
|
+
"solution_suggestion": "解决建议"
|
|
298
|
+
}}
|
|
299
|
+
],
|
|
300
|
+
"digitization_roadmap": {{
|
|
301
|
+
"short_term_goals": "短期目标(3-6个月)",
|
|
302
|
+
"medium_term_goals": "中期目标(6-18个月)",
|
|
303
|
+
"long_term_goals": "长期目标(18个月以上)"
|
|
304
|
+
}}
|
|
305
|
+
}}
|
|
306
|
+
|
|
307
|
+
注意:
|
|
308
|
+
1. 分析必须基于提供的具体企业信息
|
|
309
|
+
2. 识别的机会要具体、可操作
|
|
310
|
+
3. 要考虑企业的实际情况和资源限制
|
|
311
|
+
4. 必须返回有效的JSON格式
|
|
312
|
+
"""
|
|
313
|
+
|
|
314
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
315
|
+
|
|
316
|
+
try:
|
|
317
|
+
result = json.loads(response)
|
|
318
|
+
result["digitization_context"] = digitization_context
|
|
319
|
+
logger.info("数字化解构分析完成")
|
|
320
|
+
return result
|
|
321
|
+
except json.JSONDecodeError as e:
|
|
322
|
+
logger.error(f"JSON解析失败: {e}")
|
|
323
|
+
return {
|
|
324
|
+
"analysis_type": "digitization_deconstruction",
|
|
325
|
+
"digitization_context": digitization_context,
|
|
326
|
+
"error": "LLM返回的JSON格式无效",
|
|
327
|
+
"raw_response": response
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
def deconstruct_online_transformation(self, online_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
331
|
+
"""
|
|
332
|
+
在线化解构分析 - 使用LLM动态生成
|
|
333
|
+
|
|
334
|
+
Args:
|
|
335
|
+
online_context: 在线化上下文
|
|
336
|
+
|
|
337
|
+
Returns:
|
|
338
|
+
解构分析结果
|
|
339
|
+
"""
|
|
340
|
+
logger.info("开始在线化解构分析...")
|
|
341
|
+
|
|
342
|
+
system_prompt = """你是一位在线化和数字化转型专家,专长于分析企业如何通过在线化实现业务增长和客户连接。
|
|
343
|
+
你的任务是深入分析企业的在线化现状和机会。"""
|
|
344
|
+
|
|
345
|
+
prompt = f"""请对以下企业的在线化情况进行深入分析:
|
|
346
|
+
|
|
347
|
+
企业在线化信息:
|
|
348
|
+
{json.dumps(online_context, ensure_ascii=False, indent=2)}
|
|
349
|
+
|
|
350
|
+
请按照以下JSON格式返回分析结果:
|
|
351
|
+
|
|
352
|
+
{{
|
|
353
|
+
"analysis_type": "online_transformation_deconstruction",
|
|
354
|
+
"online_context_summary": "对在线化现状的简要总结",
|
|
355
|
+
"online_maturity_assessment": {{
|
|
356
|
+
"customer_reach_maturity": "评估客户触达成熟度(初级/中级/高级)",
|
|
357
|
+
"digital_interaction_maturity": "评估数字交互成熟度",
|
|
358
|
+
"data_collection_maturity": "评估数据收集成熟度",
|
|
359
|
+
"service_delivery_maturity": "评估服务交付成熟度"
|
|
360
|
+
}},
|
|
361
|
+
"online_opportunities": {{
|
|
362
|
+
"reach_channel_opportunities": [
|
|
363
|
+
{{
|
|
364
|
+
"opportunity": "触达渠道机会描述",
|
|
365
|
+
"case": "具体应用案例",
|
|
366
|
+
"value": "商业价值",
|
|
367
|
+
"priority": "优先级"
|
|
368
|
+
}}
|
|
369
|
+
],
|
|
370
|
+
"data_insight_opportunities": [
|
|
371
|
+
{{
|
|
372
|
+
"opportunity": "数据洞察机会描述",
|
|
373
|
+
"case": "具体应用案例",
|
|
374
|
+
"value": "商业价值",
|
|
375
|
+
"priority": "优先级"
|
|
376
|
+
}}
|
|
377
|
+
],
|
|
378
|
+
"real_time_service_opportunities": [
|
|
379
|
+
{{
|
|
380
|
+
"opportunity": "实时服务机会描述",
|
|
381
|
+
"case": "具体应用案例",
|
|
382
|
+
"value": "商业价值",
|
|
383
|
+
"priority": "优先级"
|
|
384
|
+
}}
|
|
385
|
+
],
|
|
386
|
+
"ecosystem_integration_opportunities": [
|
|
387
|
+
{{
|
|
388
|
+
"opportunity": "生态整合机会描述",
|
|
389
|
+
"case": "具体应用案例",
|
|
390
|
+
"value": "商业价值",
|
|
391
|
+
"priority": "优先级"
|
|
392
|
+
}}
|
|
393
|
+
]
|
|
394
|
+
}},
|
|
395
|
+
"online_transformation_strategy": {{
|
|
396
|
+
"phase1_objectives": "第一阶段目标",
|
|
397
|
+
"phase2_objectives": "第二阶段目标",
|
|
398
|
+
"phase3_objectives": "第三阶段目标",
|
|
399
|
+
"key_success_metrics": ["关键成功指标1", "关键成功指标2"]
|
|
400
|
+
}}
|
|
401
|
+
}}
|
|
402
|
+
|
|
403
|
+
注意:
|
|
404
|
+
1. 分析必须基于企业实际情况
|
|
405
|
+
2. 识别的机会要具体可操作
|
|
406
|
+
3. 策略要分阶段、可执行
|
|
407
|
+
4. 必须返回有效的JSON格式
|
|
408
|
+
"""
|
|
409
|
+
|
|
410
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
411
|
+
|
|
412
|
+
try:
|
|
413
|
+
result = json.loads(response)
|
|
414
|
+
result["online_context"] = online_context
|
|
415
|
+
logger.info("在线化解构分析完成")
|
|
416
|
+
return result
|
|
417
|
+
except json.JSONDecodeError as e:
|
|
418
|
+
logger.error(f"JSON解析失败: {e}")
|
|
419
|
+
return {
|
|
420
|
+
"analysis_type": "online_transformation_deconstruction",
|
|
421
|
+
"online_context": online_context,
|
|
422
|
+
"error": "LLM返回的JSON格式无效",
|
|
423
|
+
"raw_response": response
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
def deconstruct_intelligent_transformation(self, intelligent_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
427
|
+
"""
|
|
428
|
+
智能化解构分析 - 使用LLM动态生成
|
|
429
|
+
|
|
430
|
+
Args:
|
|
431
|
+
intelligent_context: 智能化上下文
|
|
432
|
+
|
|
433
|
+
Returns:
|
|
434
|
+
解构分析结果
|
|
435
|
+
"""
|
|
436
|
+
logger.info("开始智能化解构分析...")
|
|
437
|
+
|
|
438
|
+
system_prompt = """你是一位AI和智能化转型专家,专长于分析企业如何应用AI和数据智能实现业务创新和效率提升。
|
|
439
|
+
你的任务是深入分析企业的智能化现状和机会。"""
|
|
440
|
+
|
|
441
|
+
prompt = f"""请对以下企业的智能化情况进行深入分析:
|
|
442
|
+
|
|
443
|
+
企业智能化信息:
|
|
444
|
+
{json.dumps(intelligent_context, ensure_ascii=False, indent=2)}
|
|
445
|
+
|
|
446
|
+
请按照以下JSON格式返回分析结果:
|
|
447
|
+
|
|
448
|
+
{{
|
|
449
|
+
"analysis_type": "intelligent_transformation_deconstruction",
|
|
450
|
+
"intelligent_context_summary": "对智能化现状的简要总结",
|
|
451
|
+
"ai_readiness_assessment": {{
|
|
452
|
+
"data_readiness": "数据就绪度评估",
|
|
453
|
+
"algorithm_readiness": "算法就绪度评估",
|
|
454
|
+
"infrastructure_readiness": "基础设施就绪度评估",
|
|
455
|
+
"talent_readiness": "人才就绪度评估"
|
|
456
|
+
}},
|
|
457
|
+
"intelligent_opportunities": {{
|
|
458
|
+
"intelligent_decision_opportunities": [
|
|
459
|
+
{{
|
|
460
|
+
"opportunity": "智能决策机会描述",
|
|
461
|
+
"case": "具体应用案例",
|
|
462
|
+
"value": "商业价值",
|
|
463
|
+
"feasibility": "可行性评估",
|
|
464
|
+
"priority": "优先级"
|
|
465
|
+
}}
|
|
466
|
+
],
|
|
467
|
+
"prediction_analysis_opportunities": [
|
|
468
|
+
{{
|
|
469
|
+
"opportunity": "预测分析机会描述",
|
|
470
|
+
"case": "具体应用案例",
|
|
471
|
+
"value": "商业价值",
|
|
472
|
+
"feasibility": "可行性评估",
|
|
473
|
+
"priority": "优先级"
|
|
474
|
+
}}
|
|
475
|
+
],
|
|
476
|
+
"personalized_service_opportunities": [
|
|
477
|
+
{{
|
|
478
|
+
"opportunity": "个性化服务机会描述",
|
|
479
|
+
"case": "具体应用案例",
|
|
480
|
+
"value": "商业价值",
|
|
481
|
+
"feasibility": "可行性评估",
|
|
482
|
+
"priority": "优先级"
|
|
483
|
+
}}
|
|
484
|
+
],
|
|
485
|
+
"intelligent_platform_opportunities": [
|
|
486
|
+
{{
|
|
487
|
+
"opportunity": "智能平台机会描述",
|
|
488
|
+
"case": "具体应用案例",
|
|
489
|
+
"value": "商业价值",
|
|
490
|
+
"feasibility": "可行性评估",
|
|
491
|
+
"priority": "优先级"
|
|
492
|
+
}}
|
|
493
|
+
]
|
|
494
|
+
}},
|
|
495
|
+
"ai_implementation_roadmap": {{
|
|
496
|
+
"foundation_building": "基础建设阶段任务",
|
|
497
|
+
"pilot_deployment": "试点部署阶段任务",
|
|
498
|
+
"scaling_up": "规模化推广阶段任务",
|
|
499
|
+
"advanced_optimization": "高级优化阶段任务"
|
|
500
|
+
}}
|
|
501
|
+
}}
|
|
502
|
+
|
|
503
|
+
注意:
|
|
504
|
+
1. 分析必须基于企业实际AI能力和资源
|
|
505
|
+
2. 识别的机会要技术可行、商业有价值
|
|
506
|
+
3. 实施路线图要分阶段、可执行
|
|
507
|
+
4. 必须返回有效的JSON格式
|
|
508
|
+
"""
|
|
509
|
+
|
|
510
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
511
|
+
|
|
512
|
+
try:
|
|
513
|
+
result = json.loads(response)
|
|
514
|
+
result["intelligent_context"] = intelligent_context
|
|
515
|
+
logger.info("智能化解构分析完成")
|
|
516
|
+
return result
|
|
517
|
+
except json.JSONDecodeError as e:
|
|
518
|
+
logger.error(f"JSON解析失败: {e}")
|
|
519
|
+
return {
|
|
520
|
+
"analysis_type": "intelligent_transformation_deconstruction",
|
|
521
|
+
"intelligent_context": intelligent_context,
|
|
522
|
+
"error": "LLM返回的JSON格式无效",
|
|
523
|
+
"raw_response": response
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
def identify_innovation_niche(self, deconstruction_results: List[Dict[str, Any]]) -> Dict[str, Any]:
|
|
527
|
+
"""
|
|
528
|
+
创新利基识别 - 使用LLM动态生成
|
|
529
|
+
|
|
530
|
+
Args:
|
|
531
|
+
deconstruction_results: 解构分析结果列表
|
|
532
|
+
|
|
533
|
+
Returns:
|
|
534
|
+
创新利基识别结果
|
|
535
|
+
"""
|
|
536
|
+
logger.info("开始创新利基识别...")
|
|
537
|
+
|
|
538
|
+
system_prompt = """你是一位商业创新专家,专长于识别企业转型中的创新利基和机会。
|
|
539
|
+
你的任务是综合多个解构分析结果,识别最有价值的创新机会。"""
|
|
540
|
+
|
|
541
|
+
# 提取关键信息
|
|
542
|
+
insights_summary = []
|
|
543
|
+
for result in deconstruction_results:
|
|
544
|
+
analysis_type = result.get("analysis_type", "unknown")
|
|
545
|
+
insights_summary.append(f"- {analysis_type}分析结果已提供")
|
|
546
|
+
|
|
547
|
+
prompt = f"""请基于以下解构分析结果,识别最有价值的创新利基:
|
|
548
|
+
|
|
549
|
+
解构分析摘要:
|
|
550
|
+
{chr(10).join(insights_summary)}
|
|
551
|
+
|
|
552
|
+
完整的解构分析结果:
|
|
553
|
+
{json.dumps(deconstruction_results, ensure_ascii=False, indent=2)}
|
|
554
|
+
|
|
555
|
+
请按照以下JSON格式返回分析结果:
|
|
556
|
+
|
|
557
|
+
{{
|
|
558
|
+
"analysis_type": "innovation_niche_identification",
|
|
559
|
+
"aggregated_insights": {{
|
|
560
|
+
"pain_points": ["痛点1", "痛点2"],
|
|
561
|
+
"demand_gaps": ["需求缺口1", "需求缺口2"],
|
|
562
|
+
"supply_gaps": ["供给缺口1", "供给缺口2"],
|
|
563
|
+
"ecosystem_gaps": ["生态缺口1", "生态缺口2"]
|
|
564
|
+
}},
|
|
565
|
+
"niche_evaluation_matrix": {{
|
|
566
|
+
"market_demand_intensity": {{"score": "1-5分", "weight": "0.25", "assessment": "评估说明"}},
|
|
567
|
+
"technical_feasibility": {{"score": "1-5分", "weight": "0.20", "assessment": "评估说明"}},
|
|
568
|
+
"competitive_environment": {{"score": "1-5分", "weight": "0.20", "assessment": "评估说明"}},
|
|
569
|
+
"commercial_value": {{"score": "1-5分", "weight": "0.20", "assessment": "评估说明"}},
|
|
570
|
+
"implementation_difficulty": {{"score": "1-5分", "weight": "0.15", "assessment": "评估说明"}}
|
|
571
|
+
}},
|
|
572
|
+
"top_niches": [
|
|
573
|
+
{{
|
|
574
|
+
"name": "利基名称",
|
|
575
|
+
"description": "详细描述",
|
|
576
|
+
"type": "利基类型(efficiency_driven/experience_driven/model_driven/data_driven)",
|
|
577
|
+
"evaluation": {{
|
|
578
|
+
"market_demand": "得分",
|
|
579
|
+
"technical_feasibility": "得分",
|
|
580
|
+
"competitive_advantage": "得分",
|
|
581
|
+
"commercial_value": "得分",
|
|
582
|
+
"implementation_complexity": "得分"
|
|
583
|
+
}},
|
|
584
|
+
"potential_value": "潜在价值评估",
|
|
585
|
+
"action_plan": "行动建议"
|
|
586
|
+
}}
|
|
587
|
+
]
|
|
588
|
+
}}
|
|
589
|
+
|
|
590
|
+
注意:
|
|
591
|
+
1. 基于提供的完整解构分析结果进行综合分析
|
|
592
|
+
2. 识别的创新利基要具体、有吸引力、可行
|
|
593
|
+
3. 评估要客观、基于事实
|
|
594
|
+
4. 必须返回有效的JSON格式
|
|
595
|
+
"""
|
|
596
|
+
|
|
597
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
598
|
+
|
|
599
|
+
try:
|
|
600
|
+
result = json.loads(response)
|
|
601
|
+
result["deconstruction_results"] = deconstruction_results
|
|
602
|
+
logger.info("创新利基识别完成")
|
|
603
|
+
return result
|
|
604
|
+
except json.JSONDecodeError as e:
|
|
605
|
+
logger.error(f"JSON解析失败: {e}")
|
|
606
|
+
return {
|
|
607
|
+
"analysis_type": "innovation_niche_identification",
|
|
608
|
+
"deconstruction_results": deconstruction_results,
|
|
609
|
+
"error": "LLM返回的JSON格式无效",
|
|
610
|
+
"raw_response": response
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
def reconstruct_business_model(self, niche_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
614
|
+
"""
|
|
615
|
+
商业模式重构 - 使用LLM动态生成
|
|
616
|
+
|
|
617
|
+
Args:
|
|
618
|
+
niche_context: 利基上下文
|
|
619
|
+
|
|
620
|
+
Returns:
|
|
621
|
+
商业模式重构结果
|
|
622
|
+
"""
|
|
623
|
+
logger.info("开始商业模式重构...")
|
|
624
|
+
|
|
625
|
+
system_prompt = """你是一位商业模式创新专家,专长于设计数字时代的新型商业模式。
|
|
626
|
+
你的任务是基于识别的创新利基,设计创新的商业模式。"""
|
|
627
|
+
|
|
628
|
+
prompt = f"""请基于以下创新利基,设计创新的商业模式:
|
|
629
|
+
|
|
630
|
+
创新利基信息:
|
|
631
|
+
{json.dumps(niche_context, ensure_ascii=False, indent=2)}
|
|
632
|
+
|
|
633
|
+
请按照以下JSON格式返回分析结果:
|
|
634
|
+
|
|
635
|
+
{{
|
|
636
|
+
"analysis_type": "business_model_reconstruction",
|
|
637
|
+
"niche_summary": "创新利基摘要",
|
|
638
|
+
"business_model_reconstruction": {{
|
|
639
|
+
"value_proposition": {{
|
|
640
|
+
"current_state": "当前价值主张",
|
|
641
|
+
"new_proposition": "新价值主张",
|
|
642
|
+
"value_innovation": "价值创新说明"
|
|
643
|
+
}},
|
|
644
|
+
"value_creation": {{
|
|
645
|
+
"current_mechanism": "当前价值创造机制",
|
|
646
|
+
"new_mechanism": "新价值创造机制",
|
|
647
|
+
"innovation_points": ["创新点1", "创新点2"]
|
|
648
|
+
}},
|
|
649
|
+
"value_delivery": {{
|
|
650
|
+
"current_channels": "当前价值传递渠道",
|
|
651
|
+
"new_channels": "新价值传递渠道",
|
|
652
|
+
"delivery_innovation": "传递创新说明"
|
|
653
|
+
}},
|
|
654
|
+
"value_capture": {{
|
|
655
|
+
"current_revenue_model": "当前收入模式",
|
|
656
|
+
"new_revenue_model": "新收入模式",
|
|
657
|
+
"revenue_streams": ["收入流1", "收入流2"],
|
|
658
|
+
"pricing_strategy": "定价策略"
|
|
659
|
+
}},
|
|
660
|
+
"competitive_advantage": {{
|
|
661
|
+
"current_advantage": "当前竞争优势",
|
|
662
|
+
"new_advantage": "新竞争优势",
|
|
663
|
+
"sustainability": "可持续性分析"
|
|
664
|
+
}}
|
|
665
|
+
}},
|
|
666
|
+
"reconstruction_path": {{
|
|
667
|
+
"path_type": "重构路径类型(value_added/replacement/platform/data)",
|
|
668
|
+
"phases": [
|
|
669
|
+
{{
|
|
670
|
+
"phase": "阶段名称",
|
|
671
|
+
"objectives": "目标",
|
|
672
|
+
"actions": ["行动1", "行动2"],
|
|
673
|
+
"expected_outcomes": "预期成果"
|
|
674
|
+
}}
|
|
675
|
+
],
|
|
676
|
+
"resource_requirements": ["资源需求1", "资源需求2"],
|
|
677
|
+
"timeline": "实施时间表",
|
|
678
|
+
"risks_and_mitigation": [
|
|
679
|
+
{{
|
|
680
|
+
"risk": "风险描述",
|
|
681
|
+
"mitigation": "缓解措施"
|
|
682
|
+
}}
|
|
683
|
+
]
|
|
684
|
+
}}
|
|
685
|
+
}}
|
|
686
|
+
|
|
687
|
+
注意:
|
|
688
|
+
1. 基于具体的创新利基设计商业模式
|
|
689
|
+
2. 商业模式要创新、可行、有价值
|
|
690
|
+
3. 重构路径要分阶段、可执行
|
|
691
|
+
4. 必须返回有效的JSON格式
|
|
692
|
+
"""
|
|
693
|
+
|
|
694
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
695
|
+
|
|
696
|
+
try:
|
|
697
|
+
result = json.loads(response)
|
|
698
|
+
result["niche_context"] = niche_context
|
|
699
|
+
logger.info("商业模式重构完成")
|
|
700
|
+
return result
|
|
701
|
+
except json.JSONDecodeError as e:
|
|
702
|
+
logger.error(f"JSON解析失败: {e}")
|
|
703
|
+
return {
|
|
704
|
+
"analysis_type": "business_model_reconstruction",
|
|
705
|
+
"niche_context": niche_context,
|
|
706
|
+
"error": "LLM返回的JSON格式无效",
|
|
707
|
+
"raw_response": response
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
def plan_business_innovation_pathway(self, innovation_context: Dict[str, Any]) -> Dict[str, Any]:
|
|
711
|
+
"""
|
|
712
|
+
业务创新路径规划 - 使用LLM动态生成
|
|
713
|
+
|
|
714
|
+
Args:
|
|
715
|
+
innovation_context: 创新上下文
|
|
716
|
+
|
|
717
|
+
Returns:
|
|
718
|
+
业务创新路径规划结果
|
|
719
|
+
"""
|
|
720
|
+
logger.info("开始业务创新路径规划...")
|
|
721
|
+
|
|
722
|
+
system_prompt = """你是一位创新管理专家,专长于规划企业创新项目的实施路径。
|
|
723
|
+
你的任务是设计详细的创新实施计划,确保创新项目能够成功落地。"""
|
|
724
|
+
|
|
725
|
+
prompt = f"""请基于以下创新上下文,设计详细的业务创新路径:
|
|
726
|
+
|
|
727
|
+
创新上下文信息:
|
|
728
|
+
{json.dumps(innovation_context, ensure_ascii=False, indent=2)}
|
|
729
|
+
|
|
730
|
+
请按照以下JSON格式返回分析结果:
|
|
731
|
+
|
|
732
|
+
{{
|
|
733
|
+
"analysis_type": "business_innovation_pathway_planning",
|
|
734
|
+
"innovation_summary": "创新项目摘要",
|
|
735
|
+
"innovation_pathway": {{
|
|
736
|
+
"exploration_phase": {{
|
|
737
|
+
"phase_name": "探索阶段",
|
|
738
|
+
"duration": "持续时间",
|
|
739
|
+
"objectives": "阶段目标",
|
|
740
|
+
"key_activities": [
|
|
741
|
+
{{
|
|
742
|
+
"activity": "活动描述",
|
|
743
|
+
"owner": "负责人",
|
|
744
|
+
"timeline": "时间安排",
|
|
745
|
+
"resources_needed": "所需资源"
|
|
746
|
+
}}
|
|
747
|
+
],
|
|
748
|
+
"key_metrics": ["关键指标1", "关键指标2"],
|
|
749
|
+
"success_criteria": "成功标准",
|
|
750
|
+
"deliverables": ["交付物1", "交付物2"]
|
|
751
|
+
}},
|
|
752
|
+
"pilot_phase": {{
|
|
753
|
+
"phase_name": "试点阶段",
|
|
754
|
+
"duration": "持续时间",
|
|
755
|
+
"objectives": "阶段目标",
|
|
756
|
+
"key_activities": [
|
|
757
|
+
{{
|
|
758
|
+
"activity": "活动描述",
|
|
759
|
+
"owner": "负责人",
|
|
760
|
+
"timeline": "时间安排",
|
|
761
|
+
"resources_needed": "所需资源"
|
|
762
|
+
}}
|
|
763
|
+
],
|
|
764
|
+
"key_metrics": ["关键指标1", "关键指标2"],
|
|
765
|
+
"success_criteria": "成功标准",
|
|
766
|
+
"deliverables": ["交付物1", "交付物2"]
|
|
767
|
+
}},
|
|
768
|
+
"scaling_phase": {{
|
|
769
|
+
"phase_name": "扩展阶段",
|
|
770
|
+
"duration": "持续时间",
|
|
771
|
+
"objectives": "阶段目标",
|
|
772
|
+
"key_activities": [
|
|
773
|
+
{{
|
|
774
|
+
"activity": "活动描述",
|
|
775
|
+
"owner": "负责人",
|
|
776
|
+
"timeline": "时间安排",
|
|
777
|
+
"resources_needed": "所需资源"
|
|
778
|
+
}}
|
|
779
|
+
],
|
|
780
|
+
"key_metrics": ["关键指标1", "关键指标2"],
|
|
781
|
+
"success_criteria": "成功标准",
|
|
782
|
+
"deliverables": ["交付物1", "交付物2"]
|
|
783
|
+
}},
|
|
784
|
+
"optimization_phase": {{
|
|
785
|
+
"phase_name": "优化阶段",
|
|
786
|
+
"duration": "持续时间",
|
|
787
|
+
"objectives": "阶段目标",
|
|
788
|
+
"key_activities": [
|
|
789
|
+
{{
|
|
790
|
+
"activity": "活动描述",
|
|
791
|
+
"owner": "负责人",
|
|
792
|
+
"timeline": "时间安排",
|
|
793
|
+
"resources_needed": "所需资源"
|
|
794
|
+
}}
|
|
795
|
+
],
|
|
796
|
+
"key_metrics": ["关键指标1", "关键指标2"],
|
|
797
|
+
"success_criteria": "成功标准",
|
|
798
|
+
"deliverables": ["交付物1", "交付物2"]
|
|
799
|
+
}}
|
|
800
|
+
}},
|
|
801
|
+
"resource_allocation": {{
|
|
802
|
+
"human_resources": {{"requirements": "人力资源需求", "budget": "预算"}},
|
|
803
|
+
"technology_resources": {{"requirements": "技术资源需求", "budget": "预算"}},
|
|
804
|
+
"financial_resources": {{"requirements": "财务资源需求", "budget": "预算"}},
|
|
805
|
+
"total_budget": "总预算"
|
|
806
|
+
}},
|
|
807
|
+
"risk_management": [
|
|
808
|
+
{{
|
|
809
|
+
"risk": "风险描述",
|
|
810
|
+
"probability": "发生概率",
|
|
811
|
+
"impact": "影响程度",
|
|
812
|
+
"mitigation_strategy": "缓解策略",
|
|
813
|
+
"contingency_plan": "应急预案"
|
|
814
|
+
}}
|
|
815
|
+
],
|
|
816
|
+
"success_metrics": {{
|
|
817
|
+
"kpi_metrics": [
|
|
818
|
+
{{
|
|
819
|
+
"metric": "指标名称",
|
|
820
|
+
"target": "目标值",
|
|
821
|
+
"measurement_method": "测量方法"
|
|
822
|
+
}}
|
|
823
|
+
],
|
|
824
|
+
"business_value_metrics": [
|
|
825
|
+
{{
|
|
826
|
+
"metric": "商业价值指标",
|
|
827
|
+
"target": "目标值",
|
|
828
|
+
"measurement_method": "测量方法"
|
|
829
|
+
}}
|
|
830
|
+
]
|
|
831
|
+
}}
|
|
832
|
+
}}
|
|
833
|
+
|
|
834
|
+
注意:
|
|
835
|
+
1. 路径规划要详细、可执行
|
|
836
|
+
2. 每个阶段要有明确的负责人和时间表
|
|
837
|
+
3. 资源分配要合理、预算要可行
|
|
838
|
+
4. 风险管理要全面
|
|
839
|
+
5. 成功指标要可量化
|
|
840
|
+
6. 必须返回有效的JSON格式
|
|
841
|
+
"""
|
|
842
|
+
|
|
843
|
+
response = self._call_llm(prompt, system_prompt, temperature=0.8, max_tokens=4000)
|
|
844
|
+
|
|
845
|
+
try:
|
|
846
|
+
result = json.loads(response)
|
|
847
|
+
result["innovation_context"] = innovation_context
|
|
848
|
+
logger.info("业务创新路径规划完成")
|
|
849
|
+
return result
|
|
850
|
+
except json.JSONDecodeError as e:
|
|
851
|
+
logger.error(f"JSON解析失败: {e}")
|
|
852
|
+
return {
|
|
853
|
+
"analysis_type": "business_innovation_pathway_planning",
|
|
854
|
+
"innovation_context": innovation_context,
|
|
855
|
+
"error": "LLM返回的JSON格式无效",
|
|
856
|
+
"raw_response": response
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
def execute_analysis(self, analysis_type: AnalysisType, context: Dict[str, Any]) -> Dict[str, Any]:
|
|
860
|
+
"""
|
|
861
|
+
执行分析
|
|
862
|
+
|
|
863
|
+
Args:
|
|
864
|
+
analysis_type: 分析类型
|
|
865
|
+
context: 分析上下文
|
|
866
|
+
|
|
867
|
+
Returns:
|
|
868
|
+
分析结果
|
|
869
|
+
"""
|
|
870
|
+
if analysis_type == AnalysisType.BUSINESS_SCENE_DECONSTRUCTION:
|
|
871
|
+
return self.deconstruct_business_scene(context)
|
|
872
|
+
elif analysis_type == AnalysisType.DIGITIZATION_DECONSTRUCTION:
|
|
873
|
+
return self.deconstruct_digitization(context)
|
|
874
|
+
elif analysis_type == AnalysisType.ONLINE_TRANSFORMATION_DECONSTRUCTION:
|
|
875
|
+
return self.deconstruct_online_transformation(context)
|
|
876
|
+
elif analysis_type == AnalysisType.INTELLIGENT_TRANSFORMATION_DECONSTRUCTION:
|
|
877
|
+
return self.deconstruct_intelligent_transformation(context)
|
|
878
|
+
elif analysis_type == AnalysisType.INNOVATION_NICHE_IDENTIFICATION:
|
|
879
|
+
deconstruction_results = context.get("deconstruction_results", [context])
|
|
880
|
+
return self.identify_innovation_niche(deconstruction_results)
|
|
881
|
+
elif analysis_type == AnalysisType.BUSINESS_MODEL_RECONSTRUCTION:
|
|
882
|
+
return self.reconstruct_business_model(context)
|
|
883
|
+
elif analysis_type == AnalysisType.BUS_INNOVATION_PATHWAY_PLANNING:
|
|
884
|
+
return self.plan_business_innovation_pathway(context)
|
|
885
|
+
else:
|
|
886
|
+
raise ValueError(f"不支持的分析类型: {analysis_type}")
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
def main():
|
|
890
|
+
"""主函数"""
|
|
891
|
+
parser = argparse.ArgumentParser(description="基于LLM的数字化转型分析工具")
|
|
892
|
+
parser.add_argument("analysis_type", type=str, help="分析类型")
|
|
893
|
+
parser.add_argument("--llm_provider", type=str, default="openai", help="LLM提供商 (openai/anthropic/ollama/qwen)")
|
|
894
|
+
parser.add_argument("--llm_model", type=str, help="LLM模型名称")
|
|
895
|
+
parser.add_argument("--llm_api_key", type=str, help="LLM API密钥")
|
|
896
|
+
parser.add_argument("--context", type=str, help="分析上下文(JSON格式)")
|
|
897
|
+
parser.add_argument("--input_file", type=str, help="输入文件路径")
|
|
898
|
+
parser.add_argument("--output_file", type=str, help="输出文件路径")
|
|
899
|
+
|
|
900
|
+
args = parser.parse_args()
|
|
901
|
+
|
|
902
|
+
# 初始化分析器
|
|
903
|
+
analyzer = DigitalTransformationAnalyzerLLM(
|
|
904
|
+
llm_provider=args.llm_provider,
|
|
905
|
+
llm_model=args.llm_model,
|
|
906
|
+
llm_api_key=args.llm_api_key
|
|
907
|
+
)
|
|
908
|
+
|
|
909
|
+
# 准备上下文
|
|
910
|
+
context = {}
|
|
911
|
+
if args.context:
|
|
912
|
+
context = json.loads(args.context)
|
|
913
|
+
elif args.input_file:
|
|
914
|
+
with open(args.input_file, 'r', encoding='utf-8') as f:
|
|
915
|
+
context = json.load(f)
|
|
916
|
+
else:
|
|
917
|
+
# 如果没有提供上下文,则使用默认示例
|
|
918
|
+
context = {
|
|
919
|
+
"business_scenario": "示例业务场景",
|
|
920
|
+
"company_name": "示例公司",
|
|
921
|
+
"industry": "制造业",
|
|
922
|
+
"transformation_objectives": ["数字化", "在线化", "智能化"]
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
try:
|
|
926
|
+
# 执行分析
|
|
927
|
+
analysis_type = AnalysisType(args.analysis_type)
|
|
928
|
+
print(f"\n{'='*70}")
|
|
929
|
+
print(f"开始执行分析: {analysis_type.value}")
|
|
930
|
+
print(f"LLM提供商: {args.llm_provider}")
|
|
931
|
+
print(f"LLM模型: {args.llm_model or '默认'}")
|
|
932
|
+
print(f"{'='*70}\n")
|
|
933
|
+
|
|
934
|
+
result = analyzer.execute_analysis(analysis_type, context)
|
|
935
|
+
|
|
936
|
+
# 输出结果
|
|
937
|
+
if args.output_file:
|
|
938
|
+
with open(args.output_file, 'w', encoding='utf-8') as f:
|
|
939
|
+
json.dump(result, f, ensure_ascii=False, indent=2)
|
|
940
|
+
print(f"\n分析结果已保存到: {args.output_file}")
|
|
941
|
+
else:
|
|
942
|
+
print("\n分析结果:")
|
|
943
|
+
print(json.dumps(result, ensure_ascii=False, indent=2))
|
|
944
|
+
|
|
945
|
+
except ValueError as e:
|
|
946
|
+
print(f"\n错误: {e}")
|
|
947
|
+
print("\n支持的分析类型:")
|
|
948
|
+
for analysis_type in AnalysisType:
|
|
949
|
+
print(f" - {analysis_type.value}")
|
|
950
|
+
except Exception as e:
|
|
951
|
+
print(f"\n执行分析时发生错误: {e}")
|
|
952
|
+
import traceback
|
|
953
|
+
traceback.print_exc()
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
if __name__ == "__main__":
|
|
957
|
+
main()
|