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,932 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""
|
|
4
|
+
数字马克思集成分析引擎 - 协调AI理论分析与脚本定量计算
|
|
5
|
+
实现四阶段分析流程的智能协调和结果整合
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import pandas as pd
|
|
9
|
+
import numpy as np
|
|
10
|
+
from typing import Dict, List, Optional, Any
|
|
11
|
+
import json
|
|
12
|
+
import os
|
|
13
|
+
import sys
|
|
14
|
+
from datetime import datetime
|
|
15
|
+
|
|
16
|
+
# 添加脚本路径
|
|
17
|
+
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|
18
|
+
|
|
19
|
+
from historical_materialism_analyzer import HistoricalMaterialismAnalyzer
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DigitalMarxIntegratedAnalyzer:
|
|
23
|
+
"""数字马克思集成分析引擎"""
|
|
24
|
+
|
|
25
|
+
def __init__(self):
|
|
26
|
+
self.analyzer = HistoricalMaterialismAnalyzer()
|
|
27
|
+
self.analysis_state = {}
|
|
28
|
+
self.analysis_history = []
|
|
29
|
+
|
|
30
|
+
# 提示词文件路径
|
|
31
|
+
self.prompts_path = {
|
|
32
|
+
'material_base': '../prompts/material-base-analysis.md',
|
|
33
|
+
'production_relations': '../prompts/production-relations-analysis.md',
|
|
34
|
+
'superstructure': '../prompts/superstructure-analysis.md',
|
|
35
|
+
'social_change': '../prompts/social-change-prediction.md'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
# 分析阶段配置
|
|
39
|
+
self.analysis_phases = {
|
|
40
|
+
'material_base': {
|
|
41
|
+
'name': '物质基础分析',
|
|
42
|
+
'prompt_file': 'material-base-analysis.md',
|
|
43
|
+
'script_function': 'analyze_productivity_level',
|
|
44
|
+
'description': '分析社会发展的物质技术基础'
|
|
45
|
+
},
|
|
46
|
+
'production_relations': {
|
|
47
|
+
'name': '生产关系分析',
|
|
48
|
+
'prompt_file': 'production-relations-analysis.md',
|
|
49
|
+
'script_function': 'analyze_production_relations',
|
|
50
|
+
'description': '分析社会生产关系结构'
|
|
51
|
+
},
|
|
52
|
+
'superstructure': {
|
|
53
|
+
'name': '上层建筑分析',
|
|
54
|
+
'prompt_file': 'superstructure-analysis.md',
|
|
55
|
+
'script_function': 'analyze_superstructure',
|
|
56
|
+
'description': '分析政治法律制度和意识形态'
|
|
57
|
+
},
|
|
58
|
+
'social_change': {
|
|
59
|
+
'name': '社会变革预测',
|
|
60
|
+
'prompt_file': 'social-change-prediction.md',
|
|
61
|
+
'script_function': 'analyze_social_change',
|
|
62
|
+
'description': '分析社会发展趋势和变革可能'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
def execute_comprehensive_analysis(self, text_data: str, context: Dict = None) -> Dict:
|
|
67
|
+
"""执行完整的四阶段分析"""
|
|
68
|
+
|
|
69
|
+
# 初始化分析状态
|
|
70
|
+
self._initialize_analysis_state(text_data, context)
|
|
71
|
+
|
|
72
|
+
# 执行四阶段分析
|
|
73
|
+
analysis_results = {}
|
|
74
|
+
|
|
75
|
+
# 阶段1: 物质基础分析
|
|
76
|
+
print("执行阶段1: 物质基础分析")
|
|
77
|
+
material_base_results = self._execute_material_base_analysis(text_data, context)
|
|
78
|
+
analysis_results['material_base'] = material_base_results
|
|
79
|
+
|
|
80
|
+
# 阶段2: 生产关系分析
|
|
81
|
+
print("执行阶段2: 生产关系分析")
|
|
82
|
+
production_relations_results = self._execute_production_relations_analysis(text_data, context)
|
|
83
|
+
analysis_results['production_relations'] = production_relations_results
|
|
84
|
+
|
|
85
|
+
# 阶段3: 上层建筑分析
|
|
86
|
+
print("执行阶段3: 上层建筑分析")
|
|
87
|
+
superstructure_results = self._execute_superstructure_analysis(text_data, context)
|
|
88
|
+
analysis_results['superstructure'] = superstructure_results
|
|
89
|
+
|
|
90
|
+
# 阶段4: 社会变革预测
|
|
91
|
+
print("执行阶段4: 社会变革预测")
|
|
92
|
+
social_change_results = self._execute_social_change_analysis(text_data, context)
|
|
93
|
+
analysis_results['social_change'] = social_change_results
|
|
94
|
+
|
|
95
|
+
# 整合分析结果
|
|
96
|
+
integrated_results = self._integrate_analysis_results(analysis_results)
|
|
97
|
+
|
|
98
|
+
# 生成综合报告
|
|
99
|
+
comprehensive_report = self._generate_comprehensive_report(integrated_results)
|
|
100
|
+
|
|
101
|
+
# 更新分析历史
|
|
102
|
+
self._update_analysis_history(integrated_results)
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
'analysis_results': analysis_results,
|
|
106
|
+
'integrated_results': integrated_results,
|
|
107
|
+
'comprehensive_report': comprehensive_report,
|
|
108
|
+
'analysis_metadata': self._get_analysis_metadata()
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
def _initialize_analysis_state(self, text_data: str, context: Dict = None):
|
|
112
|
+
"""初始化分析状态"""
|
|
113
|
+
self.analysis_state = {
|
|
114
|
+
'start_time': datetime.now(),
|
|
115
|
+
'text_data': text_data,
|
|
116
|
+
'context': context or {},
|
|
117
|
+
'current_phase': None,
|
|
118
|
+
'completed_phases': [],
|
|
119
|
+
'quality_scores': {},
|
|
120
|
+
'warnings': [],
|
|
121
|
+
'errors': []
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
def _execute_material_base_analysis(self, text_data: str, context: Dict = None) -> Dict:
|
|
125
|
+
"""执行物质基础分析"""
|
|
126
|
+
self.analysis_state['current_phase'] = 'material_base'
|
|
127
|
+
|
|
128
|
+
try:
|
|
129
|
+
# 调用脚本进行定量分析
|
|
130
|
+
quantitative_results = self.analyzer.analyze_productivity_level(text_data, context)
|
|
131
|
+
|
|
132
|
+
# 生成AI理论分析建议
|
|
133
|
+
theoretical_guidance = self._generate_theoretical_guidance(
|
|
134
|
+
'material_base', quantitative_results
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
# 质量评估
|
|
138
|
+
quality_assessment = self._assess_phase_quality(
|
|
139
|
+
'material_base', quantitative_results
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
results = {
|
|
143
|
+
'quantitative_results': quantitative_results,
|
|
144
|
+
'theoretical_guidance': theoretical_guidance,
|
|
145
|
+
'quality_assessment': quality_assessment,
|
|
146
|
+
'phase_completed': True
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
self.analysis_state['completed_phases'].append('material_base')
|
|
150
|
+
self.analysis_state['quality_scores']['material_base'] = quality_assessment['overall_quality']
|
|
151
|
+
|
|
152
|
+
return results
|
|
153
|
+
|
|
154
|
+
except Exception as e:
|
|
155
|
+
error_info = f"物质基础分析阶段出错: {str(e)}"
|
|
156
|
+
self.analysis_state['errors'].append(error_info)
|
|
157
|
+
return {
|
|
158
|
+
'error': error_info,
|
|
159
|
+
'phase_completed': False
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
def _execute_production_relations_analysis(self, text_data: str, context: Dict = None) -> Dict:
|
|
163
|
+
"""执行生产关系分析"""
|
|
164
|
+
self.analysis_state['current_phase'] = 'production_relations'
|
|
165
|
+
|
|
166
|
+
try:
|
|
167
|
+
# 调用脚本进行定量分析
|
|
168
|
+
quantitative_results = self.analyzer.analyze_production_relations(text_data, context)
|
|
169
|
+
|
|
170
|
+
# 生成AI理论分析建议
|
|
171
|
+
theoretical_guidance = self._generate_theoretical_guidance(
|
|
172
|
+
'production_relations', quantitative_results
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
# 质量评估
|
|
176
|
+
quality_assessment = self._assess_phase_quality(
|
|
177
|
+
'production_relations', quantitative_results
|
|
178
|
+
)
|
|
179
|
+
|
|
180
|
+
results = {
|
|
181
|
+
'quantitative_results': quantitative_results,
|
|
182
|
+
'theoretical_guidance': theoretical_guidance,
|
|
183
|
+
'quality_assessment': quality_assessment,
|
|
184
|
+
'phase_completed': True
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
self.analysis_state['completed_phases'].append('production_relations')
|
|
188
|
+
self.analysis_state['quality_scores']['production_relations'] = quality_assessment['overall_quality']
|
|
189
|
+
|
|
190
|
+
return results
|
|
191
|
+
|
|
192
|
+
except Exception as e:
|
|
193
|
+
error_info = f"生产关系分析阶段出错: {str(e)}"
|
|
194
|
+
self.analysis_state['errors'].append(error_info)
|
|
195
|
+
return {
|
|
196
|
+
'error': error_info,
|
|
197
|
+
'phase_completed': False
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
def _execute_superstructure_analysis(self, text_data: str, context: Dict = None) -> Dict:
|
|
201
|
+
"""执行上层建筑分析"""
|
|
202
|
+
self.analysis_state['current_phase'] = 'superstructure'
|
|
203
|
+
|
|
204
|
+
try:
|
|
205
|
+
# 调用脚本进行定量分析
|
|
206
|
+
quantitative_results = self.analyzer.analyze_superstructure(text_data, context)
|
|
207
|
+
|
|
208
|
+
# 生成AI理论分析建议
|
|
209
|
+
theoretical_guidance = self._generate_theoretical_guidance(
|
|
210
|
+
'superstructure', quantitative_results
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
# 质量评估
|
|
214
|
+
quality_assessment = self._assess_phase_quality(
|
|
215
|
+
'superstructure', quantitative_results
|
|
216
|
+
)
|
|
217
|
+
|
|
218
|
+
results = {
|
|
219
|
+
'quantitative_results': quantitative_results,
|
|
220
|
+
'theoretical_guidance': theoretical_guidance,
|
|
221
|
+
'quality_assessment': quality_assessment,
|
|
222
|
+
'phase_completed': True
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
self.analysis_state['completed_phases'].append('superstructure')
|
|
226
|
+
self.analysis_state['quality_scores']['superstructure'] = quality_assessment['overall_quality']
|
|
227
|
+
|
|
228
|
+
return results
|
|
229
|
+
|
|
230
|
+
except Exception as e:
|
|
231
|
+
error_info = f"上层建筑分析阶段出错: {str(e)}"
|
|
232
|
+
self.analysis_state['errors'].append(error_info)
|
|
233
|
+
return {
|
|
234
|
+
'error': error_info,
|
|
235
|
+
'phase_completed': False
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
def _execute_social_change_analysis(self, text_data: str, context: Dict = None) -> Dict:
|
|
239
|
+
"""执行社会变革预测"""
|
|
240
|
+
self.analysis_state['current_phase'] = 'social_change'
|
|
241
|
+
|
|
242
|
+
try:
|
|
243
|
+
# 调用脚本进行定量分析
|
|
244
|
+
quantitative_results = self.analyzer.analyze_social_change(text_data, context)
|
|
245
|
+
|
|
246
|
+
# 生成AI理论分析建议
|
|
247
|
+
theoretical_guidance = self._generate_theoretical_guidance(
|
|
248
|
+
'social_change', quantitative_results
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
# 质量评估
|
|
252
|
+
quality_assessment = self._assess_phase_quality(
|
|
253
|
+
'social_change', quantitative_results
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
results = {
|
|
257
|
+
'quantitative_results': quantitative_results,
|
|
258
|
+
'theoretical_guidance': theoretical_guidance,
|
|
259
|
+
'quality_assessment': quality_assessment,
|
|
260
|
+
'phase_completed': True
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
self.analysis_state['completed_phases'].append('social_change')
|
|
264
|
+
self.analysis_state['quality_scores']['social_change'] = quality_assessment['overall_quality']
|
|
265
|
+
|
|
266
|
+
return results
|
|
267
|
+
|
|
268
|
+
except Exception as e:
|
|
269
|
+
error_info = f"社会变革预测阶段出错: {str(e)}"
|
|
270
|
+
self.analysis_state['errors'].append(error_info)
|
|
271
|
+
return {
|
|
272
|
+
'error': error_info,
|
|
273
|
+
'phase_completed': False
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
def _generate_theoretical_guidance(self, phase: str, quantitative_results: Dict) -> Dict:
|
|
277
|
+
"""生成理论分析指导"""
|
|
278
|
+
|
|
279
|
+
guidance_templates = {
|
|
280
|
+
'material_base': {
|
|
281
|
+
'focus_areas': [
|
|
282
|
+
'生产力发展水平的客观评估',
|
|
283
|
+
'生产工具和技术形态的历史分析',
|
|
284
|
+
'劳动效率的社会意义',
|
|
285
|
+
'生产力与生产关系的适应性'
|
|
286
|
+
],
|
|
287
|
+
'key_questions': [
|
|
288
|
+
'当前生产力处于哪个历史阶段?',
|
|
289
|
+
'技术发展对社会结构的影响如何?',
|
|
290
|
+
'劳动效率变化体现了什么社会规律?',
|
|
291
|
+
'生产力发展面临哪些瓶颈?'
|
|
292
|
+
],
|
|
293
|
+
'analysis_depth': '深入分析生产力发展的内在规律和历史必然性'
|
|
294
|
+
},
|
|
295
|
+
'production_relations': {
|
|
296
|
+
'focus_areas': [
|
|
297
|
+
'生产资料所有制的性质和特征',
|
|
298
|
+
'人们在生产中的地位和相互关系',
|
|
299
|
+
'产品分配方式的公平性和效率性',
|
|
300
|
+
'阶级结构的形成和演变'
|
|
301
|
+
],
|
|
302
|
+
'key_questions': [
|
|
303
|
+
'当前生产关系的本质特征是什么?',
|
|
304
|
+
'所有制形式如何影响社会发展?',
|
|
305
|
+
'分配方式体现了什么样的价值取向?',
|
|
306
|
+
'阶级矛盾的主要表现是什么?'
|
|
307
|
+
],
|
|
308
|
+
'analysis_depth': '深入分析生产关系的阶级本质和历史作用'
|
|
309
|
+
},
|
|
310
|
+
'superstructure': {
|
|
311
|
+
'focus_areas': [
|
|
312
|
+
'政治制度的阶级性质和服务对象',
|
|
313
|
+
'意识形态的社会功能和历史作用',
|
|
314
|
+
'文化传统与现代文明的融合',
|
|
315
|
+
'上层建筑与经济基础的辩证关系'
|
|
316
|
+
],
|
|
317
|
+
'key_questions': [
|
|
318
|
+
'政治制度为哪个阶级服务?',
|
|
319
|
+
'主流意识形态如何维护现有秩序?',
|
|
320
|
+
'文化发展反映了什么样的社会变迁?',
|
|
321
|
+
'上层建筑如何反作用于经济基础?'
|
|
322
|
+
],
|
|
323
|
+
'analysis_depth': '深入分析上层建筑的阶级属性和相对独立性'
|
|
324
|
+
},
|
|
325
|
+
'social_change': {
|
|
326
|
+
'focus_areas': [
|
|
327
|
+
'社会基本矛盾的激化程度',
|
|
328
|
+
'社会变革的主客观条件',
|
|
329
|
+
'社会变革的动力和阻力',
|
|
330
|
+
'社会发展的可能路径和趋势'
|
|
331
|
+
],
|
|
332
|
+
'key_questions': [
|
|
333
|
+
'当前社会的主要矛盾是什么?',
|
|
334
|
+
'社会变革的条件是否成熟?',
|
|
335
|
+
'推动社会变革的主要力量有哪些?',
|
|
336
|
+
'社会发展的历史趋势如何?'
|
|
337
|
+
],
|
|
338
|
+
'analysis_depth': '深入分析社会变革的客观规律和历史必然性'
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
template = guidance_templates.get(phase, {})
|
|
343
|
+
|
|
344
|
+
# 基于定量结果生成具体建议
|
|
345
|
+
specific_suggestions = self._generate_specific_suggestions(phase, quantitative_results)
|
|
346
|
+
|
|
347
|
+
return {
|
|
348
|
+
'phase': phase,
|
|
349
|
+
'focus_areas': template.get('focus_areas', []),
|
|
350
|
+
'key_questions': template.get('key_questions', []),
|
|
351
|
+
'analysis_depth': template.get('analysis_depth', ''),
|
|
352
|
+
'specific_suggestions': specific_suggestions,
|
|
353
|
+
'prompt_file': self.prompts_path.get(phase, ''),
|
|
354
|
+
'quantitative_summary': self._generate_quantitative_summary(quantitative_results)
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
def _generate_specific_suggestions(self, phase: str, quantitative_results: Dict) -> List[str]:
|
|
358
|
+
"""基于定量结果生成具体建议"""
|
|
359
|
+
suggestions = []
|
|
360
|
+
|
|
361
|
+
if phase == 'material_base':
|
|
362
|
+
productivity_stage = quantitative_results.get('productivity_stage', '未知')
|
|
363
|
+
overall_score = quantitative_results.get('overall_productivity', 0)
|
|
364
|
+
|
|
365
|
+
suggestions.append(f"重点关注生产力阶段: {productivity_stage}")
|
|
366
|
+
if overall_score < 5.0:
|
|
367
|
+
suggestions.append("生产力水平较低,需要深入分析制约因素")
|
|
368
|
+
else:
|
|
369
|
+
suggestions.append("生产力发展较好,关注其对生产关系的影响")
|
|
370
|
+
|
|
371
|
+
elif phase == 'production_relations':
|
|
372
|
+
overall_score = quantitative_results.get('overall_production_relations', 0)
|
|
373
|
+
class_structure = quantitative_results.get('class_structure', {})
|
|
374
|
+
conflict_intensity = class_structure.get('class_conflict_intensity', 0)
|
|
375
|
+
|
|
376
|
+
suggestions.append(f"生产关系综合评分: {overall_score:.2f}")
|
|
377
|
+
if conflict_intensity > 3.0:
|
|
378
|
+
suggestions.append("阶级矛盾较为突出,需要重点分析")
|
|
379
|
+
else:
|
|
380
|
+
suggestions.append("阶级关系相对缓和,关注其他社会矛盾")
|
|
381
|
+
|
|
382
|
+
elif phase == 'superstructure':
|
|
383
|
+
overall_score = quantitative_results.get('overall_superstructure', 0)
|
|
384
|
+
economic_relation = quantitative_results.get('economic_base_relation', {})
|
|
385
|
+
dominant_relation = economic_relation.get('dominant_relation', '未知')
|
|
386
|
+
|
|
387
|
+
suggestions.append(f"上层建筑综合评分: {overall_score:.2f}")
|
|
388
|
+
suggestions.append(f"与经济基础关系: {dominant_relation}")
|
|
389
|
+
if dominant_relation == 'determined':
|
|
390
|
+
suggestions.append("强调经济基础的决定作用")
|
|
391
|
+
else:
|
|
392
|
+
suggestions.append("关注上层建筑的相对独立性")
|
|
393
|
+
|
|
394
|
+
elif phase == 'social_change':
|
|
395
|
+
contradictions = quantitative_results.get('basic_contradictions', {})
|
|
396
|
+
primary_contradiction = contradictions.get('primary_contradiction', '未知')
|
|
397
|
+
conditions = quantitative_results.get('change_conditions', {})
|
|
398
|
+
maturity = conditions.get('maturity_level', '未知')
|
|
399
|
+
|
|
400
|
+
suggestions.append(f"主要矛盾: {primary_contradiction}")
|
|
401
|
+
suggestions.append(f"变革条件成熟度: {maturity}")
|
|
402
|
+
if maturity in ['高度成熟', '比较成熟']:
|
|
403
|
+
suggestions.append("社会变革条件较为成熟,关注实践路径")
|
|
404
|
+
else:
|
|
405
|
+
suggestions.append("变革条件尚未完全成熟,关注条件培育")
|
|
406
|
+
|
|
407
|
+
return suggestions
|
|
408
|
+
|
|
409
|
+
def _generate_quantitative_summary(self, quantitative_results: Dict) -> Dict:
|
|
410
|
+
"""生成定量结果摘要"""
|
|
411
|
+
summary = {}
|
|
412
|
+
|
|
413
|
+
# 提取关键指标
|
|
414
|
+
for key, value in quantitative_results.items():
|
|
415
|
+
if isinstance(value, dict) and 'score' in value:
|
|
416
|
+
summary[key] = value['score']
|
|
417
|
+
elif isinstance(value, (int, float)):
|
|
418
|
+
summary[key] = value
|
|
419
|
+
|
|
420
|
+
return summary
|
|
421
|
+
|
|
422
|
+
def _assess_phase_quality(self, phase: str, quantitative_results: Dict) -> Dict:
|
|
423
|
+
"""评估阶段分析质量"""
|
|
424
|
+
|
|
425
|
+
quality_metrics = quantitative_results.get('quality_metrics', {})
|
|
426
|
+
|
|
427
|
+
# 基础质量分数
|
|
428
|
+
base_quality = quality_metrics.get('overall_quality', 0)
|
|
429
|
+
|
|
430
|
+
# 数据完整性评估
|
|
431
|
+
completeness = self._assess_data_completeness(quantitative_results)
|
|
432
|
+
|
|
433
|
+
# 逻辑一致性评估
|
|
434
|
+
consistency = self._assess_logical_consistency(phase, quantitative_results)
|
|
435
|
+
|
|
436
|
+
# 理论相关性评估
|
|
437
|
+
theoretical_relevance = self._assess_theoretical_relevance(phase, quantitative_results)
|
|
438
|
+
|
|
439
|
+
# 综合质量分数
|
|
440
|
+
overall_quality = (
|
|
441
|
+
base_quality * 0.4 +
|
|
442
|
+
completeness * 0.2 +
|
|
443
|
+
consistency * 0.2 +
|
|
444
|
+
theoretical_relevance * 0.2
|
|
445
|
+
)
|
|
446
|
+
|
|
447
|
+
return {
|
|
448
|
+
'base_quality': base_quality,
|
|
449
|
+
'completeness': completeness,
|
|
450
|
+
'consistency': consistency,
|
|
451
|
+
'theoretical_relevance': theoretical_relevance,
|
|
452
|
+
'overall_quality': overall_quality,
|
|
453
|
+
'quality_level': self._determine_quality_level(overall_quality),
|
|
454
|
+
'improvement_suggestions': self._generate_improvement_suggestions(phase, overall_quality)
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
def _assess_data_completeness(self, quantitative_results: Dict) -> float:
|
|
458
|
+
"""评估数据完整性"""
|
|
459
|
+
required_fields = {
|
|
460
|
+
'productivity_analysis': ['tool_level', 'technology_complexity', 'labor_efficiency'],
|
|
461
|
+
'production_relations_analysis': ['ownership_form', 'labor_relations', 'distribution_method'],
|
|
462
|
+
'superstructure_analysis': ['political_system', 'ideology', 'culture'],
|
|
463
|
+
'social_change_analysis': ['basic_contradictions', 'change_conditions', 'change_drivers']
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
# 根据不同的分析类型确定必需字段
|
|
467
|
+
missing_fields = 0
|
|
468
|
+
total_fields = 0
|
|
469
|
+
|
|
470
|
+
for analysis_type, fields in required_fields.items():
|
|
471
|
+
for field in fields:
|
|
472
|
+
total_fields += 1
|
|
473
|
+
if field not in quantitative_results:
|
|
474
|
+
missing_fields += 1
|
|
475
|
+
|
|
476
|
+
completeness = 1.0 - (missing_fields / total_fields) if total_fields > 0 else 0
|
|
477
|
+
return completeness * 10 # 转换为10分制
|
|
478
|
+
|
|
479
|
+
def _assess_logical_consistency(self, phase: str, quantitative_results: Dict) -> float:
|
|
480
|
+
"""评估逻辑一致性"""
|
|
481
|
+
consistency_score = 8.0 # 基础分数
|
|
482
|
+
|
|
483
|
+
# 检查不同部分之间的逻辑关系
|
|
484
|
+
if phase == 'material_base':
|
|
485
|
+
# 检查工具水平与技术复杂度的一致性
|
|
486
|
+
tool_score = quantitative_results.get('tool_level', {}).get('confidence', 0)
|
|
487
|
+
tech_score = quantitative_results.get('technology_complexity', {}).get('confidence', 0)
|
|
488
|
+
|
|
489
|
+
if abs(tool_score - tech_score) > 5.0:
|
|
490
|
+
consistency_score -= 2.0
|
|
491
|
+
|
|
492
|
+
elif phase == 'production_relations':
|
|
493
|
+
# 检查所有制与劳动关系的一致性
|
|
494
|
+
ownership_score = quantitative_results.get('ownership_form', {}).get('confidence', 0)
|
|
495
|
+
relation_score = quantitative_results.get('labor_relations', {}).get('confidence', 0)
|
|
496
|
+
|
|
497
|
+
if abs(ownership_score - relation_score) > 5.0:
|
|
498
|
+
consistency_score -= 2.0
|
|
499
|
+
|
|
500
|
+
return max(consistency_score, 0)
|
|
501
|
+
|
|
502
|
+
def _assess_theoretical_relevance(self, phase: str, quantitative_results: Dict) -> float:
|
|
503
|
+
"""评估理论相关性"""
|
|
504
|
+
relevance_score = 8.0 # 基础分数
|
|
505
|
+
|
|
506
|
+
# 检查是否包含马克思主义理论的核心要素
|
|
507
|
+
key_concepts = {
|
|
508
|
+
'material_base': ['生产力', '工具', '技术', '劳动'],
|
|
509
|
+
'production_relations': ['所有制', '阶级', '分配', '剥削'],
|
|
510
|
+
'superstructure': ['政治', '意识形态', '文化', '国家'],
|
|
511
|
+
'social_change': ['矛盾', '变革', '发展', '革命']
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
phase_concepts = key_concepts.get(phase, [])
|
|
515
|
+
concept_coverage = 0
|
|
516
|
+
|
|
517
|
+
# 这里简化处理,实际应该检查文本中是否包含这些概念
|
|
518
|
+
concept_coverage = len(phase_concepts) * 0.8 # 假设80%的概念被覆盖
|
|
519
|
+
|
|
520
|
+
relevance_score = min(concept_coverage * 2, 10)
|
|
521
|
+
|
|
522
|
+
return relevance_score
|
|
523
|
+
|
|
524
|
+
def _determine_quality_level(self, overall_quality: float) -> str:
|
|
525
|
+
"""确定质量等级"""
|
|
526
|
+
if overall_quality >= 8.0:
|
|
527
|
+
return "优秀"
|
|
528
|
+
elif overall_quality >= 6.0:
|
|
529
|
+
return "良好"
|
|
530
|
+
elif overall_quality >= 4.0:
|
|
531
|
+
return "一般"
|
|
532
|
+
else:
|
|
533
|
+
return "需要改进"
|
|
534
|
+
|
|
535
|
+
def _generate_improvement_suggestions(self, phase: str, overall_quality: float) -> List[str]:
|
|
536
|
+
"""生成改进建议"""
|
|
537
|
+
suggestions = []
|
|
538
|
+
|
|
539
|
+
if overall_quality < 4.0:
|
|
540
|
+
suggestions.append("分析质量较低,建议重新审视理论基础")
|
|
541
|
+
suggestions.append("加强数据收集和分析的系统性")
|
|
542
|
+
elif overall_quality < 6.0:
|
|
543
|
+
suggestions.append("分析质量一般,建议深化理论分析")
|
|
544
|
+
suggestions.append("关注不同分析维度的平衡性")
|
|
545
|
+
elif overall_quality < 8.0:
|
|
546
|
+
suggestions.append("分析质量良好,可进一步优化")
|
|
547
|
+
suggestions.append("加强理论与实践的结合")
|
|
548
|
+
else:
|
|
549
|
+
suggestions.append("分析质量优秀,保持现有水平")
|
|
550
|
+
|
|
551
|
+
return suggestions
|
|
552
|
+
|
|
553
|
+
def _integrate_analysis_results(self, analysis_results: Dict) -> Dict:
|
|
554
|
+
"""整合分析结果"""
|
|
555
|
+
|
|
556
|
+
# 提取各阶段的关键指标
|
|
557
|
+
phase_summary = {}
|
|
558
|
+
for phase, results in analysis_results.items():
|
|
559
|
+
if results.get('phase_completed', False):
|
|
560
|
+
quantitative = results.get('quantitative_results', {})
|
|
561
|
+
quality = results.get('quality_assessment', {})
|
|
562
|
+
|
|
563
|
+
phase_summary[phase] = {
|
|
564
|
+
'overall_score': quality.get('overall_quality', 0),
|
|
565
|
+
'key_indicators': self._extract_key_indicators(phase, quantitative),
|
|
566
|
+
'quality_level': quality.get('quality_level', '未知'),
|
|
567
|
+
'main_findings': self._extract_main_findings(phase, quantitative)
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
# 计算整体分析质量
|
|
571
|
+
overall_quality = self._calculate_overall_quality(phase_summary)
|
|
572
|
+
|
|
573
|
+
# 识别主要矛盾和趋势
|
|
574
|
+
major_contradictions = self._identify_major_contradictions(analysis_results)
|
|
575
|
+
development_trends = self._identify_development_trends(analysis_results)
|
|
576
|
+
|
|
577
|
+
# 生成综合结论
|
|
578
|
+
comprehensive_conclusions = self._generate_comprehensive_conclusions(
|
|
579
|
+
phase_summary, major_contradictions, development_trends
|
|
580
|
+
)
|
|
581
|
+
|
|
582
|
+
return {
|
|
583
|
+
'phase_summary': phase_summary,
|
|
584
|
+
'overall_quality': overall_quality,
|
|
585
|
+
'major_contradictions': major_contradictions,
|
|
586
|
+
'development_trends': development_trends,
|
|
587
|
+
'comprehensive_conclusions': comprehensive_conclusions,
|
|
588
|
+
'integration_timestamp': datetime.now().isoformat()
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
def _extract_key_indicators(self, phase: str, quantitative_results: Dict) -> Dict:
|
|
592
|
+
"""提取关键指标"""
|
|
593
|
+
indicators = {}
|
|
594
|
+
|
|
595
|
+
if phase == 'material_base':
|
|
596
|
+
indicators['productivity_stage'] = quantitative_results.get('productivity_stage', '未知')
|
|
597
|
+
indicators['overall_productivity'] = quantitative_results.get('overall_productivity', 0)
|
|
598
|
+
|
|
599
|
+
elif phase == 'production_relations':
|
|
600
|
+
indicators['overall_relations'] = quantitative_results.get('overall_production_relations', 0)
|
|
601
|
+
class_structure = quantitative_results.get('class_structure', {})
|
|
602
|
+
indicators['class_conflict_intensity'] = class_structure.get('class_conflict_intensity', 0)
|
|
603
|
+
|
|
604
|
+
elif phase == 'superstructure':
|
|
605
|
+
indicators['overall_superstructure'] = quantitative_results.get('overall_superstructure', 0)
|
|
606
|
+
economic_relation = quantitative_results.get('economic_base_relation', {})
|
|
607
|
+
indicators['dominant_relation'] = economic_relation.get('dominant_relation', '未知')
|
|
608
|
+
|
|
609
|
+
elif phase == 'social_change':
|
|
610
|
+
contradictions = quantitative_results.get('basic_contradictions', {})
|
|
611
|
+
indicators['primary_contradiction'] = contradictions.get('primary_contradiction', '未知')
|
|
612
|
+
conditions = quantitative_results.get('change_conditions', {})
|
|
613
|
+
indicators['condition_maturity'] = conditions.get('maturity_level', '未知')
|
|
614
|
+
|
|
615
|
+
return indicators
|
|
616
|
+
|
|
617
|
+
def _extract_main_findings(self, phase: str, quantitative_results: Dict) -> List[str]:
|
|
618
|
+
"""提取主要发现"""
|
|
619
|
+
findings = []
|
|
620
|
+
|
|
621
|
+
if phase == 'material_base':
|
|
622
|
+
productivity_stage = quantitative_results.get('productivity_stage', '未知')
|
|
623
|
+
findings.append(f"生产力处于{productivity_stage}阶段")
|
|
624
|
+
|
|
625
|
+
elif phase == 'production_relations':
|
|
626
|
+
class_structure = quantitative_results.get('class_structure', {})
|
|
627
|
+
major_classes = class_structure.get('major_classes', [])
|
|
628
|
+
if major_classes:
|
|
629
|
+
findings.append(f"主要阶级包括: {', '.join(major_classes)}")
|
|
630
|
+
|
|
631
|
+
elif phase == 'superstructure':
|
|
632
|
+
political_system = quantitative_results.get('political_system', {})
|
|
633
|
+
dominant_system = political_system.get('dominant_system', '未知')
|
|
634
|
+
findings.append(f"政治制度以{dominant_system}为主导")
|
|
635
|
+
|
|
636
|
+
elif phase == 'social_change':
|
|
637
|
+
contradictions = quantitative_results.get('basic_contradictions', {})
|
|
638
|
+
primary_contradiction = contradictions.get('primary_contradiction', '未知')
|
|
639
|
+
findings.append(f"主要矛盾是{primary_contradiction}")
|
|
640
|
+
|
|
641
|
+
return findings
|
|
642
|
+
|
|
643
|
+
def _calculate_overall_quality(self, phase_summary: Dict) -> Dict:
|
|
644
|
+
"""计算整体分析质量"""
|
|
645
|
+
quality_scores = [summary.get('overall_score', 0) for summary in phase_summary.values()]
|
|
646
|
+
|
|
647
|
+
if not quality_scores:
|
|
648
|
+
return {'average_quality': 0, 'quality_level': '未知'}
|
|
649
|
+
|
|
650
|
+
average_quality = sum(quality_scores) / len(quality_scores)
|
|
651
|
+
|
|
652
|
+
# 质量等级
|
|
653
|
+
if average_quality >= 8.0:
|
|
654
|
+
quality_level = "优秀"
|
|
655
|
+
elif average_quality >= 6.0:
|
|
656
|
+
quality_level = "良好"
|
|
657
|
+
elif average_quality >= 4.0:
|
|
658
|
+
quality_level = "一般"
|
|
659
|
+
else:
|
|
660
|
+
quality_level = "需要改进"
|
|
661
|
+
|
|
662
|
+
return {
|
|
663
|
+
'average_quality': average_quality,
|
|
664
|
+
'quality_level': quality_level,
|
|
665
|
+
'phase_scores': dict(zip(phase_summary.keys(), quality_scores)),
|
|
666
|
+
'completed_phases': len(phase_summary),
|
|
667
|
+
'total_phases': 4
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
def _identify_major_contradictions(self, analysis_results: Dict) -> List[str]:
|
|
671
|
+
"""识别主要矛盾"""
|
|
672
|
+
contradictions = []
|
|
673
|
+
|
|
674
|
+
# 从社会变革分析中提取矛盾信息
|
|
675
|
+
social_change_results = analysis_results.get('social_change', {})
|
|
676
|
+
quantitative_results = social_change_results.get('quantitative_results', {})
|
|
677
|
+
|
|
678
|
+
basic_contradictions = quantitative_results.get('basic_contradictions', {})
|
|
679
|
+
primary_contradiction = basic_contradictions.get('primary_contradiction', '未知')
|
|
680
|
+
|
|
681
|
+
if primary_contradiction != '未知':
|
|
682
|
+
contradictions.append(f"主要矛盾: {primary_contradiction}")
|
|
683
|
+
|
|
684
|
+
# 从生产关系分析中提取阶级矛盾
|
|
685
|
+
production_relations_results = analysis_results.get('production_relations', {})
|
|
686
|
+
pr_quantitative = production_relations_results.get('quantitative_results', {})
|
|
687
|
+
|
|
688
|
+
class_structure = pr_quantitative.get('class_structure', {})
|
|
689
|
+
conflict_intensity = class_structure.get('class_conflict_intensity', 0)
|
|
690
|
+
|
|
691
|
+
if conflict_intensity > 3.0:
|
|
692
|
+
contradictions.append("阶级矛盾较为突出")
|
|
693
|
+
|
|
694
|
+
return contradictions
|
|
695
|
+
|
|
696
|
+
def _identify_development_trends(self, analysis_results: Dict) -> List[str]:
|
|
697
|
+
"""识别发展趋势"""
|
|
698
|
+
trends = []
|
|
699
|
+
|
|
700
|
+
# 从社会变革分析中提取趋势
|
|
701
|
+
social_change_results = analysis_results.get('social_change', {})
|
|
702
|
+
quantitative_results = social_change_results.get('quantitative_results', {})
|
|
703
|
+
|
|
704
|
+
development_trends = quantitative_results.get('development_trends', {})
|
|
705
|
+
primary_trend = development_trends.get('primary_trend', '未知')
|
|
706
|
+
|
|
707
|
+
if primary_trend != '未知':
|
|
708
|
+
trends.append(f"主要发展趋势: {primary_trend}")
|
|
709
|
+
|
|
710
|
+
# 从生产力分析中提取发展趋势
|
|
711
|
+
material_base_results = analysis_results.get('material_base', {})
|
|
712
|
+
mb_quantitative = material_base_results.get('quantitative_results', {})
|
|
713
|
+
|
|
714
|
+
productivity_stage = mb_quantitative.get('productivity_stage', '未知')
|
|
715
|
+
trends.append(f"生产力发展趋势: {productivity_stage}")
|
|
716
|
+
|
|
717
|
+
return trends
|
|
718
|
+
|
|
719
|
+
def _generate_comprehensive_conclusions(self, phase_summary: Dict, major_contradictions: List[str], development_trends: List[str]) -> List[str]:
|
|
720
|
+
"""生成综合结论"""
|
|
721
|
+
conclusions = []
|
|
722
|
+
|
|
723
|
+
# 基于各阶段分析生成结论
|
|
724
|
+
material_base = phase_summary.get('material_base', {})
|
|
725
|
+
if material_base:
|
|
726
|
+
productivity_stage = material_base.get('key_indicators', {}).get('productivity_stage', '未知')
|
|
727
|
+
conclusions.append(f"社会生产力处于{productivity_stage}阶段")
|
|
728
|
+
|
|
729
|
+
production_relations = phase_summary.get('production_relations', {})
|
|
730
|
+
if production_relations:
|
|
731
|
+
conflict_intensity = production_relations.get('key_indicators', {}).get('class_conflict_intensity', 0)
|
|
732
|
+
if conflict_intensity > 3.0:
|
|
733
|
+
conclusions.append("阶级矛盾是社会发展的主要动力")
|
|
734
|
+
|
|
735
|
+
superstructure = phase_summary.get('superstructure', {})
|
|
736
|
+
if superstructure:
|
|
737
|
+
dominant_relation = superstructure.get('key_indicators', {}).get('dominant_relation', '未知')
|
|
738
|
+
conclusions.append(f"上层建筑与经济基础呈现{dominant_relation}关系")
|
|
739
|
+
|
|
740
|
+
# 添加主要矛盾和发展趋势结论
|
|
741
|
+
conclusions.extend(major_contradictions)
|
|
742
|
+
conclusions.extend(development_trends)
|
|
743
|
+
|
|
744
|
+
return conclusions
|
|
745
|
+
|
|
746
|
+
def _generate_comprehensive_report(self, integrated_results: Dict) -> str:
|
|
747
|
+
"""生成综合报告"""
|
|
748
|
+
report = []
|
|
749
|
+
report.append("# 数字马克思社会学分析综合报告\n")
|
|
750
|
+
|
|
751
|
+
# 总体质量评估
|
|
752
|
+
overall_quality = integrated_results.get('overall_quality', {})
|
|
753
|
+
report.append("## 总体评估")
|
|
754
|
+
report.append(f"- 整体质量分数: {overall_quality.get('average_quality', 0):.2f}/10")
|
|
755
|
+
report.append(f"- 质量等级: {overall_quality.get('quality_level', '未知')}")
|
|
756
|
+
report.append(f"- 完成阶段: {overall_quality.get('completed_phases', 0)}/{overall_quality.get('total_phases', 4)}")
|
|
757
|
+
report.append("")
|
|
758
|
+
|
|
759
|
+
# 各阶段分析结果
|
|
760
|
+
phase_summary = integrated_results.get('phase_summary', {})
|
|
761
|
+
report.append("## 各阶段分析结果")
|
|
762
|
+
|
|
763
|
+
for phase, summary in phase_summary.items():
|
|
764
|
+
phase_name = self.analysis_phases.get(phase, {}).get('name', phase)
|
|
765
|
+
report.append(f"### {phase_name}")
|
|
766
|
+
report.append(f"- 质量分数: {summary.get('overall_score', 0):.2f}/10")
|
|
767
|
+
report.append(f"- 质量等级: {summary.get('quality_level', '未知')}")
|
|
768
|
+
|
|
769
|
+
# 关键指标
|
|
770
|
+
key_indicators = summary.get('key_indicators', {})
|
|
771
|
+
if key_indicators:
|
|
772
|
+
report.append("- 关键指标:")
|
|
773
|
+
for indicator, value in key_indicators.items():
|
|
774
|
+
report.append(f" - {indicator}: {value}")
|
|
775
|
+
|
|
776
|
+
# 主要发现
|
|
777
|
+
main_findings = summary.get('main_findings', [])
|
|
778
|
+
if main_findings:
|
|
779
|
+
report.append("- 主要发现:")
|
|
780
|
+
for finding in main_findings:
|
|
781
|
+
report.append(f" - {finding}")
|
|
782
|
+
|
|
783
|
+
report.append("")
|
|
784
|
+
|
|
785
|
+
# 主要矛盾和发展趋势
|
|
786
|
+
major_contradictions = integrated_results.get('major_contradictions', [])
|
|
787
|
+
if major_contradictions:
|
|
788
|
+
report.append("## 主要矛盾")
|
|
789
|
+
for contradiction in major_contradictions:
|
|
790
|
+
report.append(f"- {contradiction}")
|
|
791
|
+
report.append("")
|
|
792
|
+
|
|
793
|
+
development_trends = integrated_results.get('development_trends', [])
|
|
794
|
+
if development_trends:
|
|
795
|
+
report.append("## 发展趋势")
|
|
796
|
+
for trend in development_trends:
|
|
797
|
+
report.append(f"- {trend}")
|
|
798
|
+
report.append("")
|
|
799
|
+
|
|
800
|
+
# 综合结论
|
|
801
|
+
comprehensive_conclusions = integrated_results.get('comprehensive_conclusions', [])
|
|
802
|
+
if comprehensive_conclusions:
|
|
803
|
+
report.append("## 综合结论")
|
|
804
|
+
for conclusion in comprehensive_conclusions:
|
|
805
|
+
report.append(f"- {conclusion}")
|
|
806
|
+
report.append("")
|
|
807
|
+
|
|
808
|
+
# 分析时间戳
|
|
809
|
+
integration_timestamp = integrated_results.get('integration_timestamp', '')
|
|
810
|
+
if integration_timestamp:
|
|
811
|
+
report.append("## 分析时间")
|
|
812
|
+
report.append(f"- 完成时间: {integration_timestamp}")
|
|
813
|
+
|
|
814
|
+
return "\n".join(report)
|
|
815
|
+
|
|
816
|
+
def _update_analysis_history(self, integrated_results: Dict):
|
|
817
|
+
"""更新分析历史"""
|
|
818
|
+
history_entry = {
|
|
819
|
+
'timestamp': datetime.now().isoformat(),
|
|
820
|
+
'overall_quality': integrated_results.get('overall_quality', {}),
|
|
821
|
+
'completed_phases': len(integrated_results.get('phase_summary', {})),
|
|
822
|
+
'major_contradictions': integrated_results.get('major_contradictions', []),
|
|
823
|
+
'development_trends': integrated_results.get('development_trends', [])
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
self.analysis_history.append(history_entry)
|
|
827
|
+
|
|
828
|
+
def _get_analysis_metadata(self) -> Dict:
|
|
829
|
+
"""获取分析元数据"""
|
|
830
|
+
return {
|
|
831
|
+
'analysis_id': f"marx_analysis_{datetime.now().strftime('%Y%m%d_%H%M%S')}",
|
|
832
|
+
'start_time': self.analysis_state.get('start_time', '').isoformat() if self.analysis_state.get('start_time') else '',
|
|
833
|
+
'end_time': datetime.now().isoformat(),
|
|
834
|
+
'completed_phases': self.analysis_state.get('completed_phases', []),
|
|
835
|
+
'quality_scores': self.analysis_state.get('quality_scores', {}),
|
|
836
|
+
'warnings': self.analysis_state.get('warnings', []),
|
|
837
|
+
'errors': self.analysis_state.get('errors', []),
|
|
838
|
+
'analysis_history_count': len(self.analysis_history)
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
def save_analysis_results(self, results: Dict, output_file: str = None) -> str:
|
|
842
|
+
"""保存分析结果"""
|
|
843
|
+
if output_file is None:
|
|
844
|
+
timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
|
|
845
|
+
output_file = f"marx_analysis_results_{timestamp}.json"
|
|
846
|
+
|
|
847
|
+
try:
|
|
848
|
+
with open(output_file, 'w', encoding='utf-8') as f:
|
|
849
|
+
json.dump(results, f, ensure_ascii=False, indent=2, default=str)
|
|
850
|
+
|
|
851
|
+
return output_file
|
|
852
|
+
|
|
853
|
+
except Exception as e:
|
|
854
|
+
error_msg = f"保存分析结果失败: {str(e)}"
|
|
855
|
+
self.analysis_state['errors'].append(error_msg)
|
|
856
|
+
return ""
|
|
857
|
+
|
|
858
|
+
def load_analysis_results(self, input_file: str) -> Dict:
|
|
859
|
+
"""加载分析结果"""
|
|
860
|
+
try:
|
|
861
|
+
with open(input_file, 'r', encoding='utf-8') as f:
|
|
862
|
+
results = json.load(f)
|
|
863
|
+
|
|
864
|
+
return results
|
|
865
|
+
|
|
866
|
+
except Exception as e:
|
|
867
|
+
error_msg = f"加载分析结果失败: {str(e)}"
|
|
868
|
+
self.analysis_state['errors'].append(error_msg)
|
|
869
|
+
return {}
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
def main():
|
|
873
|
+
"""测试集成分析引擎"""
|
|
874
|
+
analyzer = DigitalMarxIntegratedAnalyzer()
|
|
875
|
+
|
|
876
|
+
test_text = """
|
|
877
|
+
在当代中国社会,生产力发展迅速,特别是数字技术和人工智能的广泛应用,
|
|
878
|
+
推动了社会生产力的跨越式发展。智能制造、数字经济、平台经济等新业态
|
|
879
|
+
不断涌现,劳动生产率显著提升。
|
|
880
|
+
|
|
881
|
+
生产资料所有制坚持公有制为主体、多种所有制经济共同发展的基本经济制度。
|
|
882
|
+
国有经济发挥主导作用,民营经济蓬勃发展,形成了多元化的所有制结构。
|
|
883
|
+
劳动关系呈现出新的特点,传统的雇佣关系与新兴的平台经济、零工经济并存。
|
|
884
|
+
收入分配制度坚持按劳分配为主体、多种分配方式并存,效率与公平并重。
|
|
885
|
+
|
|
886
|
+
政治制度坚持中国特色社会主义政治发展道路,发展全过程人民民主。
|
|
887
|
+
意识形态领域坚持马克思主义指导地位,培育和践行社会主义核心价值观。
|
|
888
|
+
传统文化得到创造性转化和创新性发展,形成了开放包容的社会主义先进文化。
|
|
889
|
+
|
|
890
|
+
社会主要矛盾已经转化为人民日益增长的美好生活需要和不平衡不充分的发展之间的矛盾。
|
|
891
|
+
改革开放不断深化,国家治理体系和治理能力现代化稳步推进。
|
|
892
|
+
"""
|
|
893
|
+
|
|
894
|
+
print("=== 数字马克思集成分析引擎测试 ===")
|
|
895
|
+
|
|
896
|
+
# 执行完整分析
|
|
897
|
+
results = analyzer.execute_comprehensive_analysis(test_text)
|
|
898
|
+
|
|
899
|
+
# 显示结果摘要
|
|
900
|
+
integrated_results = results.get('integrated_results', {})
|
|
901
|
+
overall_quality = integrated_results.get('overall_quality', {})
|
|
902
|
+
|
|
903
|
+
print(f"\n整体质量分数: {overall_quality.get('average_quality', 0):.2f}/10")
|
|
904
|
+
print(f"质量等级: {overall_quality.get('quality_level', '未知')}")
|
|
905
|
+
print(f"完成阶段: {overall_quality.get('completed_phases', 0)}/4")
|
|
906
|
+
|
|
907
|
+
# 显示主要矛盾和发展趋势
|
|
908
|
+
major_contradictions = integrated_results.get('major_contradictions', [])
|
|
909
|
+
if major_contradictions:
|
|
910
|
+
print("\n主要矛盾:")
|
|
911
|
+
for contradiction in major_contradictions:
|
|
912
|
+
print(f"- {contradiction}")
|
|
913
|
+
|
|
914
|
+
development_trends = integrated_results.get('development_trends', [])
|
|
915
|
+
if development_trends:
|
|
916
|
+
print("\n发展趋势:")
|
|
917
|
+
for trend in development_trends:
|
|
918
|
+
print(f"- {trend}")
|
|
919
|
+
|
|
920
|
+
# 保存分析结果
|
|
921
|
+
output_file = analyzer.save_analysis_results(results)
|
|
922
|
+
if output_file:
|
|
923
|
+
print(f"\n分析结果已保存到: {output_file}")
|
|
924
|
+
|
|
925
|
+
# 显示综合报告
|
|
926
|
+
comprehensive_report = results.get('comprehensive_report', '')
|
|
927
|
+
if comprehensive_report:
|
|
928
|
+
print(f"\n{comprehensive_report}")
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
if __name__ == "__main__":
|
|
932
|
+
main()
|