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.
Files changed (911) hide show
  1. package/CHANGELOG.md +195 -0
  2. package/LICENSE +21 -0
  3. package/README.md +529 -0
  4. package/agents/LITERATURE_EXPERT_INTEGRATION_SUMMARY.md +618 -0
  5. package/agents/LITERATURE_EXPERT_INTEGRATION_UPDATE.md +284 -0
  6. package/agents/__pycache__/literature_expert_integration.cpython-312.pyc +0 -0
  7. package/agents/ant-expert-main.md +127 -0
  8. package/agents/ant-expert.md +301 -0
  9. package/agents/chinese-localization-expert.md +261 -0
  10. package/agents/core_engine.py +375 -0
  11. package/agents/digital-ecosystem-analyst/digital-ecosystem-analyst.py +507 -0
  12. package/agents/digital-marx-expert.md +373 -0
  13. package/agents/digital-transformation-ecosystem-analyst/digital-transformation-ecosystem-analyst.md +76 -0
  14. package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_REALITY_VERIFIED.py +233 -0
  15. package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_SKILL_SPECIFICATION.md +357 -0
  16. package/agents/digital-transformation-innovation-analyst/README_AGENTSILLS_IO_STANDARD.md +418 -0
  17. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.md +469 -0
  18. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.py +513 -0
  19. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.md +299 -0
  20. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.py +342 -0
  21. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION_TDD.py +615 -0
  22. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_REAL_DATA_TDD.py +291 -0
  23. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_data_real_sources.py +468 -0
  24. package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_tdd.py +1126 -0
  25. package/agents/digital-transformation-innovation-analyst/digital_transformation_innovation-analyst.py +756 -0
  26. package/agents/digital-transformation-innovation-analyst/tdd_executor.py +203 -0
  27. package/agents/digital-transformation-innovation-analyst/tdd_runner.py +154 -0
  28. package/agents/field-analysis-expert-main.md +129 -0
  29. package/agents/field-analysis-expert.md +231 -0
  30. package/agents/grounded-theory-agent-implementation.md +431 -0
  31. package/agents/grounded-theory-expert-v2.md +202 -0
  32. package/agents/grounded-theory-expert.md +309 -0
  33. package/agents/literature-expert-v2.md +489 -0
  34. package/agents/literature-expert.md +639 -0
  35. package/agents/literature_expert_integration.py +384 -0
  36. package/agents/references/actor-network-analysis.html +598 -0
  37. package/agents/references/ant-actor-identification.md +155 -0
  38. package/agents/references/ant-network-analysis.md +266 -0
  39. package/agents/references/ant-power-analysis.md +323 -0
  40. package/agents/references/ant-translation-process.md +185 -0
  41. package/agents/references/bourdieu-field-analysis.html +805 -0
  42. package/agents/references/business-ecosystem-analysis.html +598 -0
  43. package/agents/references/business-model-analysis-implementation-plan.md +199 -0
  44. package/agents/references/business-model-analysis-plan.md +217 -0
  45. package/agents/references/business-model-analysis.html +620 -0
  46. package/agents/references/business-model-coordinator.js +356 -0
  47. package/agents/references/business-model-expert-agent.js +204 -0
  48. package/agents/references/data-analysis.html +397 -0
  49. package/agents/references/did-analysis.html +591 -0
  50. package/agents/references/digital-durkheim.html +725 -0
  51. package/agents/references/digital-marx.html +460 -0
  52. package/agents/references/digital-weber.html +591 -0
  53. package/agents/references/field-boundary-identification.md +232 -0
  54. package/agents/references/field-capital-analysis.md +268 -0
  55. package/agents/references/grounded-theory.html +731 -0
  56. package/agents/references/msqca-analysis.html +589 -0
  57. package/agents/references/research-design.html +394 -0
  58. package/agents/references/social-network-analysis.html +590 -0
  59. package/agents/references/survey-design.html +577 -0
  60. package/agents/sna-expert.md +348 -0
  61. package/common/dependency_config.py +96 -0
  62. package/common/dependency_manager.py +175 -0
  63. package/common/smart_dependency_manager.py +331 -0
  64. package/package.json +81 -0
  65. package/scripts/postinstall.js +147 -0
  66. package/scripts/validate-skills.js +209 -0
  67. package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill +0 -0
  68. package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill.install.md +114 -0
  69. package/skills/COMPLIANCE_REPORT.md +122 -0
  70. package/skills/INTEGRATION_PLAN.md +405 -0
  71. package/skills/QWEN.md +230 -0
  72. package/skills/SKILLS_APPLICATION_MAPPING.md +155 -0
  73. package/skills/__init__.py +7 -0
  74. package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
  75. package/skills/alienation-analysis/SKILL.md +195 -0
  76. package/skills/alienation-analysis/__init__.py +8 -0
  77. package/skills/alienation-analysis/prompts/core-analysis-framework.md +88 -0
  78. package/skills/alienation-analysis/prompts/specialized-alienation-analysis.md +190 -0
  79. package/skills/alienation-analysis/pyproject.toml +36 -0
  80. package/skills/alienation-analysis/scripts/__init__.py +8 -0
  81. package/skills/alienation-analysis/scripts/__pycache__/alienation_analysis_engine.cpython-312.pyc +0 -0
  82. package/skills/alienation-analysis/scripts/__pycache__/career_development_evaluation.cpython-312.pyc +0 -0
  83. package/skills/alienation-analysis/scripts/__pycache__/classify_alienation_types.cpython-312.pyc +0 -0
  84. package/skills/alienation-analysis/scripts/__pycache__/consumer_behavior_analysis.cpython-312.pyc +0 -0
  85. package/skills/alienation-analysis/scripts/__pycache__/core_analyzer.cpython-312.pyc +0 -0
  86. package/skills/alienation-analysis/scripts/__pycache__/digital_wellbeing_evaluation.cpython-312.pyc +0 -0
  87. package/skills/alienation-analysis/scripts/__pycache__/generate_intervention_plan.cpython-312.pyc +0 -0
  88. package/skills/alienation-analysis/scripts/__pycache__/materialism_assessment.cpython-312.pyc +0 -0
  89. package/skills/alienation-analysis/scripts/__pycache__/relationship_quality_assessment.cpython-312.pyc +0 -0
  90. package/skills/alienation-analysis/scripts/__pycache__/social_network_analysis.cpython-312.pyc +0 -0
  91. package/skills/alienation-analysis/scripts/__pycache__/technology_dependency_analysis.cpython-312.pyc +0 -0
  92. package/skills/alienation-analysis/scripts/__pycache__/workplace_satisfaction_analysis.cpython-312.pyc +0 -0
  93. package/skills/alienation-analysis/scripts/alienation_analysis_engine.py +597 -0
  94. package/skills/alienation-analysis/scripts/career_development_evaluation.py +512 -0
  95. package/skills/alienation-analysis/scripts/classify_alienation_types.py +357 -0
  96. package/skills/alienation-analysis/scripts/consumer_behavior_analysis.py +643 -0
  97. package/skills/alienation-analysis/scripts/core_analyzer.py +571 -0
  98. package/skills/alienation-analysis/scripts/digital_wellbeing_evaluation.py +597 -0
  99. package/skills/alienation-analysis/scripts/generate_intervention_plan.py +358 -0
  100. package/skills/alienation-analysis/scripts/materialism_assessment.py +528 -0
  101. package/skills/alienation-analysis/scripts/relationship_quality_assessment.py +621 -0
  102. package/skills/alienation-analysis/scripts/social_network_analysis.py +802 -0
  103. package/skills/alienation-analysis/scripts/technology_dependency_analysis.py +534 -0
  104. package/skills/alienation-analysis/scripts/workplace_satisfaction_analysis.py +340 -0
  105. package/skills/alienation_analysis/SKILL.md +291 -0
  106. package/skills/alienation_analysis/__init__.py +1 -0
  107. package/skills/alienation_analysis/__pycache__/__init__.cpython-312.pyc +0 -0
  108. package/skills/alienation_analysis/scripts/__init__.py +1 -0
  109. package/skills/alienation_analysis/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
  110. package/skills/ant/SKILL.md +139 -0
  111. package/skills/ant/pyproject.toml +36 -0
  112. package/skills/ant/scripts/ant_analysis_with_fallback.py +383 -0
  113. package/skills/ant-expert/SKILL.md +182 -0
  114. package/skills/ant-expert/integration_with_trusted_scraper.md +115 -0
  115. package/skills/ant-expert/modules/__pycache__/network_analysis.cpython-312.pyc +0 -0
  116. package/skills/ant-expert/modules/__pycache__/participant_identification.cpython-312.pyc +0 -0
  117. package/skills/ant-expert/modules/__pycache__/translation_process.cpython-312.pyc +0 -0
  118. package/skills/ant-expert/modules/network_analysis.py +253 -0
  119. package/skills/ant-expert/modules/participant_identification.py +325 -0
  120. package/skills/ant-expert/modules/translation_process.py +283 -0
  121. package/skills/ant-expert/pyproject.toml +27 -0
  122. package/skills/ant-expert/scripts/ant_expert_analyzer.py +146 -0
  123. package/skills/ant-expert/test_input.json +82 -0
  124. package/skills/ant-expert/test_output.json +728 -0
  125. package/skills/ant-network-analysis/SKILL.md +132 -0
  126. package/skills/ant-participant-identification/SKILL.md +140 -0
  127. package/skills/ant-participant-identification/pyproject.toml +35 -0
  128. package/skills/ant-participant-identification/scripts/identify_participants.py +318 -0
  129. package/skills/ant-subagent/SKILL.md +60 -0
  130. package/skills/ant-subagent/modules/network_analysis.py +146 -0
  131. package/skills/ant-subagent/pyproject.toml +16 -0
  132. package/skills/ant-translation-process/SKILL.md +144 -0
  133. package/skills/ant-translation-process/pyproject.toml +35 -0
  134. package/skills/ant-translation-process/scripts/trace_translation.py +370 -0
  135. package/skills/ant_relationship_analysis.md +157 -0
  136. package/skills/arxiv-paper-search/ARXIV_SKILL_COMPLETION_REPORT.md +449 -0
  137. package/skills/arxiv-paper-search/DEPENDENCY_OPTIMIZATION.md +355 -0
  138. package/skills/arxiv-paper-search/OPTIMIZATION_SUMMARY.md +213 -0
  139. package/skills/arxiv-paper-search/README.md +90 -0
  140. package/skills/arxiv-paper-search/SKILL.md +321 -0
  141. package/skills/arxiv-paper-search/pyproject.toml +29 -0
  142. package/skills/arxiv-paper-search/references/ADVANCED_USAGE.md +587 -0
  143. package/skills/arxiv-paper-search/references/API_REFERENCE.md +350 -0
  144. package/skills/arxiv-paper-search/references/ARXIV_CATEGORIES.md +249 -0
  145. package/skills/arxiv-paper-search/references/USER_GUIDE.md +349 -0
  146. package/skills/arxiv-paper-search/requirements.txt +13 -0
  147. package/skills/arxiv-paper-search/scripts/__pycache__/arxiv_searcher.cpython-312.pyc +0 -0
  148. package/skills/arxiv-paper-search/scripts/arxiv_searcher.py +439 -0
  149. package/skills/arxiv-paper-search/scripts/test_arxiv_searcher.py +307 -0
  150. package/skills/arxiv-paper-search/test_abstracts.json +461 -0
  151. package/skills/arxiv-paper-search/test_batch_papers/2009.00804v2_Architectural_Implications_of_.pdf +0 -0
  152. package/skills/arxiv-paper-search/test_batch_papers/2201.00978v1_PyramidTNT +0 -0
  153. package/skills/arxiv-paper-search/test_batch_papers/2207.13219v4_Dalorex +0 -0
  154. package/skills/arxiv-paper-search/test_papers/1706.03762.pdf +0 -0
  155. package/skills/arxiv-paper-search/test_papers.csv +11 -0
  156. package/skills/best_practices.md +271 -0
  157. package/skills/business-ecosystem-analysis/integration_with_trusted_scraper.md +97 -0
  158. package/skills/business-ecosystem-data-collection/FreeDataCrawler.js +472 -0
  159. package/skills/business-ecosystem-data-collection/INFO.md +68 -0
  160. package/skills/business-ecosystem-data-collection/SKILL.md +118 -0
  161. package/skills/business-ecosystem-data-collection/algorithms/data_validation.py +44 -0
  162. package/skills/business-ecosystem-data-collection/algorithms/entity_recognition.py +53 -0
  163. package/skills/business-ecosystem-data-collection/algorithms/relationship_mapping.py +44 -0
  164. package/skills/business-ecosystem-data-collection/config.json +10 -0
  165. package/skills/business-ecosystem-data-collection/e2e-test.js +81 -0
  166. package/skills/business-ecosystem-data-collection/package-lock.json +433 -0
  167. package/skills/business-ecosystem-data-collection/package.json +21 -0
  168. package/skills/business-ecosystem-data-collection/references/data-collection-strategies.md +18 -0
  169. package/skills/business-ecosystem-data-collection/references/data-validation.md +22 -0
  170. package/skills/business-ecosystem-data-collection/references/entity-recognition.md +16 -0
  171. package/skills/business-ecosystem-data-collection/references/relationship-mapping.md +16 -0
  172. package/skills/business-ecosystem-data-collection/scripts/ecosystem_data_collector.py +103 -0
  173. package/skills/business-ecosystem-data-collection/skill.js +1383 -0
  174. package/skills/business-ecosystem-data-collection/skill.json +191 -0
  175. package/skills/business-ecosystem-data-collection/test.js +304 -0
  176. package/skills/business-ecosystem-data-collection/test_context.json +16 -0
  177. package/skills/business-model-analysis/INFO.md +65 -0
  178. package/skills/business-model-analysis/SKILL.md +208 -0
  179. package/skills/business-model-analysis/e2e-test.js +111 -0
  180. package/skills/business-model-analysis/integration_with_trusted_scraper.md +97 -0
  181. package/skills/business-model-analysis/package.json +23 -0
  182. package/skills/business-model-analysis/skill.js +1779 -0
  183. package/skills/business-model-analysis/skill.json +175 -0
  184. package/skills/business-model-analysis/test.js +202 -0
  185. package/skills/business-model-canvas-analysis/INFO.md +68 -0
  186. package/skills/business-model-canvas-analysis/README.md +53 -0
  187. package/skills/business-model-canvas-analysis/SKILL.md +215 -0
  188. package/skills/business-model-canvas-analysis/prompts.txt +70 -0
  189. package/skills/business-model-canvas-analysis/reference.md +101 -0
  190. package/skills/business-model-canvas-analysis/skill.js +675 -0
  191. package/skills/business-model-canvas-analysis/skill.json +47 -0
  192. package/skills/business-service-supply-analysis/INFO.md +28 -0
  193. package/skills/business-service-supply-analysis/SKILL.md +300 -0
  194. package/skills/business-service-supply-analysis/skill.js +1319 -0
  195. package/skills/business-service-supply-analysis/skill.json +233 -0
  196. package/skills/capital-analysis/INFO.md +80 -0
  197. package/skills/capital-analysis/README.md +65 -0
  198. package/skills/capital-analysis/SKILL.md +367 -0
  199. package/skills/capital-analysis/prompts.txt +103 -0
  200. package/skills/capital-analysis/reference.md +132 -0
  201. package/skills/capital-analysis/skill.js +739 -0
  202. package/skills/capital-analysis/skill.json +268 -0
  203. package/skills/checking-theory-saturation/SKILL.md +280 -0
  204. package/skills/checking-theory-saturation/pyproject.toml +17 -0
  205. package/skills/checking-theory-saturation/references/README.md +54 -0
  206. package/skills/checking-theory-saturation/scripts/__pycache__/assess_saturation.cpython-312.pyc +0 -0
  207. package/skills/checking-theory-saturation/scripts/assess_saturation.py +296 -0
  208. package/skills/checking-theory-saturation/tests/__pycache__/test_assess_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
  209. package/skills/checking-theory-saturation/tests/test_assess_saturation.py +194 -0
  210. package/skills/class-structure-analysis/SKILL.md +211 -0
  211. package/skills/competitive-analysis/INFO.md +77 -0
  212. package/skills/competitive-analysis/README.md +61 -0
  213. package/skills/competitive-analysis/SKILL.md +357 -0
  214. package/skills/competitive-analysis/prompts.txt +117 -0
  215. package/skills/competitive-analysis/reference.md +206 -0
  216. package/skills/competitive-analysis/skill.js +1166 -0
  217. package/skills/competitive-analysis/skill.json +219 -0
  218. package/skills/conflict-resolution/SKILL.md +124 -0
  219. package/skills/conflict-resolution/conflict-resolution-skill.md +628 -0
  220. package/skills/data-analysis/SKILL.md +73 -0
  221. package/skills/data-analysis/prompts/data-cleaning-outline.md +355 -0
  222. package/skills/data-analysis/prompts/data-cleaning.md +40 -0
  223. package/skills/data-analysis/prompts/data-understanding-outline.md +243 -0
  224. package/skills/data-analysis/prompts/data-understanding.md +43 -0
  225. package/skills/data-analysis/prompts/exploratory-analysis-outline.md +316 -0
  226. package/skills/data-analysis/prompts/exploratory-analysis.md +40 -0
  227. package/skills/data-analysis/prompts/modeling-strategy.md +40 -0
  228. package/skills/data-analysis/pyproject.toml +39 -0
  229. package/skills/dependency_management.md +46 -0
  230. package/skills/dialectical-quantitative-synthesis/SKILL.md +239 -0
  231. package/skills/did-analysis/SKILL.md +239 -0
  232. package/skills/did-analysis/prompts/causal-interpretation.md +245 -0
  233. package/skills/did-analysis/prompts/experimental-design.md +260 -0
  234. package/skills/did-analysis/prompts/model-specification.md +242 -0
  235. package/skills/did-analysis/prompts/policy-recommendation.md +253 -0
  236. package/skills/did-analysis/pyproject.toml +35 -0
  237. package/skills/did-analysis/references/BEST_PRACTICES.md +553 -0
  238. package/skills/did-analysis/scripts/__pycache__/did_estimator.cpython-312.pyc +0 -0
  239. package/skills/did-analysis/scripts/__pycache__/integrated_did.cpython-312.pyc +0 -0
  240. package/skills/did-analysis/scripts/__pycache__/parallel_trend.cpython-312.pyc +0 -0
  241. package/skills/did-analysis/scripts/__pycache__/robustness_test.cpython-312.pyc +0 -0
  242. package/skills/did-analysis/scripts/__pycache__/visualization.cpython-312.pyc +0 -0
  243. package/skills/did-analysis/scripts/did_estimator.py +553 -0
  244. package/skills/did-analysis/scripts/integrated_did.py +867 -0
  245. package/skills/did-analysis/scripts/parallel_trend.py +473 -0
  246. package/skills/did-analysis/scripts/parallel_trend_plot.png +0 -0
  247. package/skills/did-analysis/scripts/parallel_trend_test.png +0 -0
  248. package/skills/did-analysis/scripts/placebo_test_distribution.png +0 -0
  249. package/skills/did-analysis/scripts/robustness_test.py +633 -0
  250. package/skills/did-analysis/scripts/test_integration.py +253 -0
  251. package/skills/did-analysis/scripts/visualization.py +539 -0
  252. package/skills/digital-durkheim/SKILL.md +114 -0
  253. package/skills/digital-durkheim/prompts/collective-consciousness.md +127 -0
  254. package/skills/digital-durkheim/prompts/functional-analysis.md +127 -0
  255. package/skills/digital-durkheim/prompts/social-fact-identification.md +128 -0
  256. package/skills/digital-durkheim/prompts/social-solidarity.md +134 -0
  257. package/skills/digital-durkheim/pyproject.toml +36 -0
  258. package/skills/digital-durkheim/scripts/__pycache__/integrated_durkheim_analyzer.cpython-312.pyc +0 -0
  259. package/skills/digital-durkheim/scripts/__pycache__/social_fact_analyzer.cpython-312.pyc +0 -0
  260. package/skills/digital-durkheim/scripts/durkheim_analysis_results.json +226 -0
  261. package/skills/digital-durkheim/scripts/integrated_durkheim_analyzer.py +540 -0
  262. package/skills/digital-durkheim/scripts/social_fact_analyzer.py +712 -0
  263. package/skills/digital-durkheim/test_integration.py +226 -0
  264. package/skills/digital-marx/README.md +215 -0
  265. package/skills/digital-marx/SHORT_TERM_IMPLEMENTATION_REPORT.md +183 -0
  266. package/skills/digital-marx/SKILL.md +189 -0
  267. package/skills/digital-marx/THEORETICAL_ACCURACY_ANALYSIS.md +278 -0
  268. package/skills/digital-marx/prompts/material-base-analysis.md +113 -0
  269. package/skills/digital-marx/prompts/production-relations-analysis.md +113 -0
  270. package/skills/digital-marx/prompts/social-change-prediction.md +112 -0
  271. package/skills/digital-marx/prompts/superstructure-analysis.md +112 -0
  272. package/skills/digital-marx/pyproject.toml +37 -0
  273. package/skills/digital-marx/scripts/__pycache__/dialectical_thinking_analyzer.cpython-312.pyc +0 -0
  274. package/skills/digital-marx/scripts/__pycache__/enhanced_historical_materialism_analyzer.cpython-312.pyc +0 -0
  275. package/skills/digital-marx/scripts/__pycache__/historical_materialism_analyzer.cpython-312.pyc +0 -0
  276. package/skills/digital-marx/scripts/basic_quality_detector.py +760 -0
  277. package/skills/digital-marx/scripts/dialectical_thinking_analyzer.py +1601 -0
  278. package/skills/digital-marx/scripts/enhanced_historical_materialism_analyzer.py +1525 -0
  279. package/skills/digital-marx/scripts/historical_materialism_analyzer.py +963 -0
  280. package/skills/digital-marx/scripts/integrated_marx_analyzer.py +932 -0
  281. package/skills/digital-marx/scripts/marxist_theory_validator.py +1192 -0
  282. package/skills/digital-marx/scripts/quality_validator.py +890 -0
  283. package/skills/digital-marx-expert/SKILL.md +179 -0
  284. package/skills/digital-marx-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
  285. package/skills/digital-marx-expert/modules/__pycache__/class_analysis.cpython-312.pyc +0 -0
  286. package/skills/digital-marx-expert/modules/__pycache__/historical_materialism.cpython-312.pyc +0 -0
  287. package/skills/digital-marx-expert/modules/capital_analysis.py +611 -0
  288. package/skills/digital-marx-expert/modules/class_analysis.py +836 -0
  289. package/skills/digital-marx-expert/modules/historical_materialism.py +435 -0
  290. package/skills/digital-marx-expert/pyproject.toml +29 -0
  291. package/skills/digital-marx-expert/scripts/digital_marx_expert_analyzer.py +189 -0
  292. package/skills/digital-marx-expert/test_input.json +100 -0
  293. package/skills/digital-marx-expert/test_output.json +588 -0
  294. package/skills/digital-transformation/business-innovation-pathway-planning.SKILL.md +102 -0
  295. package/skills/digital-transformation/business-model-reconstruction.SKILL.md +88 -0
  296. package/skills/digital-transformation/business-scene-deconstruction-analysis.SKILL.md +131 -0
  297. package/skills/digital-transformation/config.json +16 -0
  298. package/skills/digital-transformation/config_host_llm.json +311 -0
  299. package/skills/digital-transformation/config_llm.json +297 -0
  300. package/skills/digital-transformation/digitization-deconstruction-analysis.SKILL.md +84 -0
  301. package/skills/digital-transformation/innovation-niche-identification.SKILL.md +78 -0
  302. package/skills/digital-transformation/intelligent-transformation-deconstruction-analysis.SKILL.md +110 -0
  303. package/skills/digital-transformation/online-transformation-deconstruction-analysis.SKILL.md +110 -0
  304. package/skills/digital-transformation/scripts/data_integrator.py +637 -0
  305. package/skills/digital-transformation/scripts/digital_transformation_analyzer.py +800 -0
  306. package/skills/digital-transformation/scripts/digital_transformation_analyzer_agentskills_io.py +1677 -0
  307. package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_cli.py +834 -0
  308. package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_llm.py +1026 -0
  309. package/skills/digital-transformation/scripts/digital_transformation_analyzer_llm.py +957 -0
  310. package/skills/digital-transformation/scripts/host_cli_interface.py +531 -0
  311. package/skills/digital-transformation/scripts/llm_client.py +662 -0
  312. package/skills/digital-transformation/scripts/skill_executor.py +527 -0
  313. package/skills/digital-transformation/scripts/transformation_visualizer.py +946 -0
  314. package/skills/digital-transformation/test_context.json +6 -0
  315. package/skills/digital-transformation/tests/test_digital_transformation.py +844 -0
  316. package/skills/digital-weber/SKILL.md +88 -0
  317. package/skills/digital-weber/prompts/comparative-research.md +155 -0
  318. package/skills/digital-weber/prompts/institutional-analysis.md +147 -0
  319. package/skills/digital-weber/prompts/theoretical-interpretation.md +102 -0
  320. package/skills/digital-weber/prompts/understanding-analysis.md +129 -0
  321. package/skills/digital-weber/pyproject.toml +36 -0
  322. package/skills/digital-weber/scripts/__pycache__/integrated_weber_analyzer.cpython-312.pyc +0 -0
  323. package/skills/digital-weber/scripts/__pycache__/optimized_weberian_analyzer.cpython-312.pyc +0 -0
  324. package/skills/digital-weber/scripts/__pycache__/weberian_analyzer.cpython-312.pyc +0 -0
  325. package/skills/digital-weber/scripts/enhanced_weberian_analyzer.py +531 -0
  326. package/skills/digital-weber/scripts/integrated_weber_analyzer.py +772 -0
  327. package/skills/digital-weber/scripts/optimized_weberian_analyzer.py +713 -0
  328. package/skills/digital-weber/scripts/weber_analysis_results.json +196 -0
  329. package/skills/digital-weber/scripts/weberian_analyzer.py +877 -0
  330. package/skills/digital-weber/simple_quality_test.py +204 -0
  331. package/skills/digital-weber/test_comprehensive.py +320 -0
  332. package/skills/digital-weber/test_quality_improvement.py +237 -0
  333. package/skills/dissent-resolution/SKILL.md +159 -0
  334. package/skills/ecosystem-analysis/analyzing-business-model-of-key-species.SKILL.md +31 -0
  335. package/skills/ecosystem-analysis/analyzing-digital-transformation-impact-on-business.SKILL.md +36 -0
  336. package/skills/ecosystem-analysis/assessing-ecosystem-impact-of-digital-transformation.SKILL.md +36 -0
  337. package/skills/ecosystem-analysis/config.json +15 -0
  338. package/skills/ecosystem-analysis/constructing-business-ecosystem-map.SKILL.md +31 -0
  339. package/skills/ecosystem-analysis/identifying-key-species-in-industry.SKILL.md +30 -0
  340. package/skills/ecosystem-analysis/performing-industry-ecosystem-analysis.SKILL.md +79 -0
  341. package/skills/ecosystem-analysis/references/industry-life-cycle.md +29 -0
  342. package/skills/ecosystem-analysis/references/value-chain-analysis.md +28 -0
  343. package/skills/ecosystem-analysis/scripts/business_ecosystem_analyzer.py +640 -0
  344. package/skills/ecosystem-analysis/scripts/data_collector.py +239 -0
  345. package/skills/ecosystem-analysis/scripts/ecosystem_analysis.py +309 -0
  346. package/skills/ecosystem-analysis/scripts/ecosystem_data_integrator.py +620 -0
  347. package/skills/ecosystem-analysis/scripts/ecosystem_preprocessing.py +262 -0
  348. package/skills/ecosystem-analysis/scripts/ecosystem_visualizer.py +811 -0
  349. package/skills/ecosystem-analysis/test_context.json +6 -0
  350. package/skills/ecosystem-analysis/tests/test_ecosystem_analysis.py +1193 -0
  351. package/skills/ecosystem-relationship-analysis/INFO.md +28 -0
  352. package/skills/ecosystem-relationship-analysis/SKILL.md +147 -0
  353. package/skills/ecosystem-relationship-analysis/algorithms/community_detection.py +128 -0
  354. package/skills/ecosystem-relationship-analysis/algorithms/health_assessment.py +53 -0
  355. package/skills/ecosystem-relationship-analysis/algorithms/network_analysis.py +171 -0
  356. package/skills/ecosystem-relationship-analysis/config.json +10 -0
  357. package/skills/ecosystem-relationship-analysis/references/community-detection.md +24 -0
  358. package/skills/ecosystem-relationship-analysis/references/ecosystem-theory.md +23 -0
  359. package/skills/ecosystem-relationship-analysis/references/health-assessment.md +23 -0
  360. package/skills/ecosystem-relationship-analysis/references/network-analysis-theory.md +19 -0
  361. package/skills/ecosystem-relationship-analysis/references/relationship-analysis.md +27 -0
  362. package/skills/ecosystem-relationship-analysis/scripts/ecosystem_relationship_analyzer.py +155 -0
  363. package/skills/ecosystem-relationship-analysis/skill.js +797 -0
  364. package/skills/ecosystem-relationship-analysis/skill.json +205 -0
  365. package/skills/field-analysis/SKILL.md +145 -0
  366. package/skills/field-boundary-identification/SKILL.md +156 -0
  367. package/skills/field-boundary-identification/pyproject.toml +36 -0
  368. package/skills/field-boundary-identification/scripts/identify_boundaries.py +326 -0
  369. package/skills/field-capital-analysis/SKILL.md +165 -0
  370. package/skills/field-expert/SKILL.md +409 -0
  371. package/skills/field-expert/WORKFLOW_SPEC.md +195 -0
  372. package/skills/field-expert/field_analysis_workflow/input/processed/combined_input.json +247 -0
  373. package/skills/field-expert/field_analysis_workflow/input/processed/llm_input.json +76 -0
  374. package/skills/field-expert/field_analysis_workflow/intermediate/01_boundary/boundary_results.json +6 -0
  375. package/skills/field-expert/field_analysis_workflow/intermediate/02_capital/capital_results.json +5 -0
  376. package/skills/field-expert/field_analysis_workflow/intermediate/03_habitus/habitus_results.json +120 -0
  377. package/skills/field-expert/field_analysis_workflow/intermediate/04_dynamics/dynamics_results.json +6 -0
  378. package/skills/field-expert/field_analysis_workflow/output/executive_summary.txt +35 -0
  379. package/skills/field-expert/field_analysis_workflow/output/json/comprehensive_analysis.json +180 -0
  380. package/skills/field-expert/field_analysis_workflow/output/reports/field_analysis_report.html +22 -0
  381. package/skills/field-expert/modules/__pycache__/boundary_analysis.cpython-312.pyc +0 -0
  382. package/skills/field-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
  383. package/skills/field-expert/modules/__pycache__/habitus_analysis.cpython-312.pyc +0 -0
  384. package/skills/field-expert/modules/boundary_analysis.py +234 -0
  385. package/skills/field-expert/modules/capital_analysis.py +407 -0
  386. package/skills/field-expert/modules/habitus_analysis.py +306 -0
  387. package/skills/field-expert/prompts/boundary_analysis.txt +56 -0
  388. package/skills/field-expert/prompts/boundary_analysis_simple.txt +17 -0
  389. package/skills/field-expert/prompts/capital_analysis.txt +87 -0
  390. package/skills/field-expert/prompts/dynamics_analysis.txt +89 -0
  391. package/skills/field-expert/prompts/habitus_analysis.txt +87 -0
  392. package/skills/field-expert/pyproject.toml +27 -0
  393. package/skills/field-expert/scripts/__pycache__/field_analysis_tool.cpython-312.pyc +0 -0
  394. package/skills/field-expert/scripts/__pycache__/prepare_data.cpython-312.pyc +0 -0
  395. package/skills/field-expert/scripts/debug_output.txt +4 -0
  396. package/skills/field-expert/scripts/debug_output_converted.txt +27 -0
  397. package/skills/field-expert/scripts/field_analysis_tool.py +536 -0
  398. package/skills/field-expert/scripts/field_expert_analyzer.py +136 -0
  399. package/skills/field-expert/scripts/generate_report.py +525 -0
  400. package/skills/field-expert/scripts/prepare_data.py +226 -0
  401. package/skills/field-expert/scripts/run_workflow.py +571 -0
  402. package/skills/field-expert/scripts/summarize_data.py +156 -0
  403. package/skills/field-expert/scripts/temp_prompt_20260106_213035_964505.txt +135 -0
  404. package/skills/field-expert/scripts/temp_prompt_20260106_213534_264265.txt +16 -0
  405. package/skills/field-expert/scripts/temp_prompt_20260106_213932_601575.txt +22 -0
  406. package/skills/field-expert/scripts/temp_prompt_20260106_214330_241706.txt +15 -0
  407. package/skills/field-expert/scripts/test_host_llm.py +164 -0
  408. package/skills/field-expert/scripts/test_stigmergy_llm.py +91 -0
  409. package/skills/field-expert/test_input.json +168 -0
  410. package/skills/field-expert/test_output.json +724 -0
  411. package/skills/field-expert/workflow_spec.json +171 -0
  412. package/skills/field-habitus-analysis/SKILL.md +165 -0
  413. package/skills/fsqca-analysis/SKILL.md +71 -0
  414. package/skills/fsqca-analysis/assets/templates/report_template.md +122 -0
  415. package/skills/fsqca-analysis/comprehensive_test.py +573 -0
  416. package/skills/fsqca-analysis/comprehensive_test_report.json +207 -0
  417. package/skills/fsqca-analysis/comprehensive_test_report.md +35 -0
  418. package/skills/fsqca-analysis/fsqca_analysis_report.md +35 -0
  419. package/skills/fsqca-analysis/prompts/calibration-guidance-outline.md +142 -0
  420. package/skills/fsqca-analysis/prompts/calibration-guidance.md +40 -0
  421. package/skills/fsqca-analysis/prompts/result-interpretation-outline.md +133 -0
  422. package/skills/fsqca-analysis/prompts/result-interpretation.md +45 -0
  423. package/skills/fsqca-analysis/prompts/theoretical-analysis-outline.md +75 -0
  424. package/skills/fsqca-analysis/prompts/theoretical-analysis.md +34 -0
  425. package/skills/fsqca-analysis/pyproject.toml +36 -0
  426. package/skills/fsqca-analysis/references/BEST_PRACTICES-outline.md +158 -0
  427. package/skills/fsqca-analysis/references/BEST_PRACTICES.md +39 -0
  428. package/skills/fsqca-analysis/references/METHODOLOGY-outline.md +103 -0
  429. package/skills/fsqca-analysis/references/METHODOLOGY.md +38 -0
  430. package/skills/fsqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
  431. package/skills/fsqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
  432. package/skills/fsqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
  433. package/skills/fsqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
  434. package/skills/fsqca-analysis/scripts/calibration.py +540 -0
  435. package/skills/fsqca-analysis/scripts/integrated_analysis.py +651 -0
  436. package/skills/fsqca-analysis/scripts/minimization.py +536 -0
  437. package/skills/fsqca-analysis/scripts/truth_table.py +433 -0
  438. package/skills/fsqca-analysis/test_fsqca.py +199 -0
  439. package/skills/fusion_plan.md +232 -0
  440. package/skills/grounded-theory-expert/SKILL.md +180 -0
  441. package/skills/grounded-theory-expert/pyproject.toml +23 -0
  442. package/skills/grounded-theory-expert/scripts/gt_expert_analyzer.py +185 -0
  443. package/skills/grounded-theory-expert/stages/__pycache__/axial_coding.cpython-312.pyc +0 -0
  444. package/skills/grounded-theory-expert/stages/__pycache__/open_coding.cpython-312.pyc +0 -0
  445. package/skills/grounded-theory-expert/stages/__pycache__/selective_coding.cpython-312.pyc +0 -0
  446. package/skills/grounded-theory-expert/stages/axial_coding.py +294 -0
  447. package/skills/grounded-theory-expert/stages/open_coding.py +245 -0
  448. package/skills/grounded-theory-expert/stages/selective_coding.py +410 -0
  449. package/skills/grounded-theory-expert/test_input.json +27 -0
  450. package/skills/grounded-theory-expert/test_output.json +874 -0
  451. package/skills/grounded-theory-expert/tests/sample-cases/hongloumeng.txt +91 -0
  452. package/skills/grounded-theory-expert/tests/sample-cases/sanguoyanyi_excerpts.txt +169 -0
  453. package/skills/grounded-theory-expert/tests/sample-cases/shuihuzhuan_excerpts.txt +216 -0
  454. package/skills/grounded-theory-expert/tests/sample-cases/xiyouji_excerpts.txt +100 -0
  455. 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
  456. package/skills/grounded-theory-expert/tools/__pycache__/memo_writer.cpython-312.pyc +0 -0
  457. package/skills/grounded-theory-expert/tools/__pycache__/saturation_checker.cpython-312.pyc +0 -0
  458. package/skills/grounded-theory-expert/tools/memo_writer.py +512 -0
  459. package/skills/grounded-theory-expert/tools/saturation_checker.py +345 -0
  460. package/skills/grounded-theory-expert-enhanced/SKILL.md +218 -0
  461. package/skills/grounded-theory-expert-enhanced/docs/00_master_guide.md +276 -0
  462. package/skills/grounded-theory-expert-enhanced/docs/01_quick_start.md +59 -0
  463. package/skills/grounded-theory-expert-enhanced/docs/02_task_flow.md +464 -0
  464. package/skills/grounded-theory-expert-enhanced/docs/03_path/350/247/204/350/214/203.md +161 -0
  465. package/skills/grounded-theory-expert-enhanced/docs/04_html_report.md +340 -0
  466. package/skills/grounded-theory-expert-enhanced/docs/05_best_practices.md +322 -0
  467. package/skills/grounded-theory-expert-enhanced/docs/FLOW_GUIDE.md +280 -0
  468. 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
  469. package/skills/grounded-theory-expert-enhanced/docs/experts/constructivist_expert.md +64 -0
  470. package/skills/grounded-theory-expert-enhanced/docs/experts/localization_expert.md +66 -0
  471. package/skills/grounded-theory-expert-enhanced/docs/experts/phenomenological_expert.md +64 -0
  472. package/skills/grounded-theory-expert-enhanced/docs/experts/positivist_expert.md +67 -0
  473. package/skills/grounded-theory-expert-enhanced/docs/prompts/level1_prompts.md +174 -0
  474. package/skills/grounded-theory-expert-enhanced/docs/prompts/level2_prompts.md +176 -0
  475. package/skills/grounded-theory-expert-enhanced/docs/prompts/level3_prompts.md +219 -0
  476. package/skills/grounded-theory-expert-enhanced/docs/prompts/preprocessing_prompts.md +120 -0
  477. package/skills/grounded-theory-expert-enhanced/docs/references/quality_standards.md +166 -0
  478. package/skills/grounded-theory-expert-enhanced/docs/references/reliability_methods.md +159 -0
  479. package/skills/grounded-theory-expert-enhanced/docs/references/saturation_methods.md +193 -0
  480. package/skills/grounded-theory-expert-enhanced/docs/references/theory_construction.md +166 -0
  481. package/skills/grounded-theory-expert-enhanced/pyproject.toml +33 -0
  482. package/skills/grounded-theory-expert-enhanced/references/llm_integration_principles.md +56 -0
  483. package/skills/grounded-theory-expert-enhanced/scripts/preprocessing_script.py +191 -0
  484. package/skills/grounded-theory-expert-enhanced/stages/enhanced_axial_coding.py +146 -0
  485. package/skills/grounded-theory-expert-enhanced/stages/enhanced_open_coding.py +94 -0
  486. package/skills/grounded-theory-expert-enhanced/stages/enhanced_selective_coding.py +163 -0
  487. package/skills/grounded-theory-expert-enhanced/tools/.env.example +34 -0
  488. package/skills/grounded-theory-expert-enhanced/tools/LLM_CONFIG_GUIDE.md +67 -0
  489. package/skills/grounded-theory-expert-enhanced/tools/__pycache__/analysis_controller.cpython-312.pyc +0 -0
  490. package/skills/grounded-theory-expert-enhanced/tools/__pycache__/host_cli_coder.cpython-312.pyc +0 -0
  491. package/skills/grounded-theory-expert-enhanced/tools/__pycache__/llm_expert_coder.cpython-312.pyc +0 -0
  492. package/skills/grounded-theory-expert-enhanced/tools/__pycache__/project_structure.cpython-312.pyc +0 -0
  493. package/skills/grounded-theory-expert-enhanced/tools/__pycache__/reliability_validator.cpython-312.pyc +0 -0
  494. package/skills/grounded-theory-expert-enhanced/tools/analysis_controller.py +2344 -0
  495. package/skills/grounded-theory-expert-enhanced/tools/enhanced_memo_writer.py +90 -0
  496. package/skills/grounded-theory-expert-enhanced/tools/enhanced_saturation_checker.py +216 -0
  497. package/skills/grounded-theory-expert-enhanced/tools/fix_dirs.py +48 -0
  498. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/00_raw_data/source_document.txt +91 -0
  499. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/preprocessing_report.json +15 -0
  500. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_cleaned/cleaned_text.txt +198 -0
  501. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_tokenized/tokenized_text.json +1099 -0
  502. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
  503. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_text.txt +20 -0
  504. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
  505. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_text.txt +21 -0
  506. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
  507. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_text.txt +23 -0
  508. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_info.json +8 -0
  509. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_text.txt +135 -0
  510. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segmentation_summary.json +34 -0
  511. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
  512. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
  513. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
  514. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
  515. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
  516. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
  517. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
  518. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
  519. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
  520. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
  521. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
  522. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
  523. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/level1_all_experts_summary.json +28 -0
  524. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
  525. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
  526. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
  527. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
  528. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
  529. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
  530. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
  531. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
  532. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
  533. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/level2_all_experts_summary.json +31 -0
  534. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
  535. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
  536. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
  537. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
  538. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
  539. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
  540. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
  541. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/level3_all_experts_summary.json +30 -0
  542. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
  543. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
  544. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
  545. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/final_saturation_verdict.json +32 -0
  546. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
  547. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
  548. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
  549. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
  550. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/codebook.md +84 -0
  551. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/comprehensive_analysis_report.md +360 -0
  552. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/project_summary.json +214 -0
  553. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/theory_description.md +91 -0
  554. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/config.json +68 -0
  555. package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/project_manifest.json +9 -0
  556. package/skills/grounded-theory-expert-enhanced/tools/host_cli_coder.py +168 -0
  557. package/skills/grounded-theory-expert-enhanced/tools/llm_expert_coder.py +469 -0
  558. package/skills/grounded-theory-expert-enhanced/tools/project_structure.py +1202 -0
  559. package/skills/grounded-theory-expert-enhanced/tools/reliability_validator.py +800 -0
  560. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/00_raw_data/source_document.txt +169 -0
  561. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/preprocessing_report.json +15 -0
  562. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_cleaned/cleaned_text.txt +200 -0
  563. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_tokenized/tokenized_text.json +1109 -0
  564. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
  565. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_text.txt +22 -0
  566. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
  567. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_text.txt +18 -0
  568. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
  569. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_text.txt +24 -0
  570. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_info.json +8 -0
  571. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_text.txt +134 -0
  572. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segmentation_summary.json +34 -0
  573. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
  574. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
  575. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
  576. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
  577. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
  578. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
  579. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
  580. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
  581. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
  582. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
  583. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
  584. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
  585. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/level1_all_experts_summary.json +28 -0
  586. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
  587. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
  588. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
  589. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
  590. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
  591. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
  592. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
  593. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
  594. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
  595. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/level2_all_experts_summary.json +31 -0
  596. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
  597. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
  598. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
  599. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
  600. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
  601. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
  602. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
  603. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/level3_all_experts_summary.json +30 -0
  604. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
  605. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
  606. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
  607. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/final_saturation_verdict.json +32 -0
  608. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
  609. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
  610. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
  611. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
  612. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/codebook.md +84 -0
  613. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/comprehensive_analysis_report.md +360 -0
  614. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/project_summary.json +214 -0
  615. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/theory_description.md +91 -0
  616. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/config.json +68 -0
  617. package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/project_manifest.json +9 -0
  618. package/skills/grounded-theory-expert-enhanced/tools/test_claude.py +40 -0
  619. package/skills/grounded-theory-expert-enhanced/tools/test_host_cli_coder.py +168 -0
  620. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/00_raw_data/source_document.txt +11 -0
  621. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/preprocessing_report.json +15 -0
  622. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_cleaned/cleaned_text.txt +16 -0
  623. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_tokenized/tokenized_text.json +129 -0
  624. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_info.json +8 -0
  625. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_text.txt +1 -0
  626. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_info.json +8 -0
  627. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_text.txt +1 -0
  628. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_info.json +8 -0
  629. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_text.txt +1 -0
  630. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_info.json +8 -0
  631. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_text.txt +11 -0
  632. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segmentation_summary.json +34 -0
  633. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/initial_concepts.json +218 -0
  634. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/open_coding_results.json +226 -0
  635. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
  636. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/initial_concepts.json +218 -0
  637. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/open_coding_results.json +226 -0
  638. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/raw_quotes.json +1 -0
  639. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/initial_concepts.json +218 -0
  640. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/open_coding_results.json +226 -0
  641. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
  642. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/initial_concepts.json +218 -0
  643. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/open_coding_results.json +226 -0
  644. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
  645. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/level1_all_experts_summary.json +28 -0
  646. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
  647. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/merged_concept_library.json +278 -0
  648. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
  649. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
  650. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
  651. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
  652. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
  653. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
  654. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
  655. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/level2_all_experts_summary.json +31 -0
  656. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
  657. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
  658. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
  659. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
  660. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
  661. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
  662. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
  663. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/level3_all_experts_summary.json +30 -0
  664. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
  665. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
  666. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
  667. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/final_saturation_verdict.json +32 -0
  668. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
  669. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
  670. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
  671. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
  672. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/codebook.md +84 -0
  673. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/comprehensive_analysis_report.md +360 -0
  674. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/project_summary.json +214 -0
  675. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/theory_description.md +91 -0
  676. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/config.json +68 -0
  677. package/skills/grounded-theory-expert-enhanced/tools/test_project_3/project_manifest.json +9 -0
  678. package/skills/grounded-theory-expert-enhanced/tools/test_real_coding.py +135 -0
  679. package/skills/historical-materialist-analysis/SKILL.md +186 -0
  680. package/skills/information-verification/INFO.md +69 -0
  681. package/skills/information-verification/README.md +80 -0
  682. package/skills/information-verification/SKILL.md +305 -0
  683. package/skills/information-verification/prompts.txt +103 -0
  684. package/skills/information-verification/reference.md +212 -0
  685. package/skills/information-verification/skill.js +1056 -0
  686. package/skills/information-verification/skill.json +198 -0
  687. package/skills/management-theory-analysis/INFO.md +74 -0
  688. package/skills/management-theory-analysis/README.md +63 -0
  689. package/skills/management-theory-analysis/SKILL.md +361 -0
  690. package/skills/management-theory-analysis/prompts.txt +113 -0
  691. package/skills/management-theory-analysis/reference.md +167 -0
  692. package/skills/management-theory-analysis/skill.js +561 -0
  693. package/skills/management-theory-analysis/skill.json +223 -0
  694. package/skills/mathematical-statistics/SKILL.md +227 -0
  695. package/skills/mathematical-statistics/pyproject.toml +36 -0
  696. package/skills/mathematical-statistics/scripts/statistics_toolkit.py +270 -0
  697. package/skills/msqca-analysis/SKILL.md +261 -0
  698. package/skills/msqca-analysis/assets/templates/data_template.csv +11 -0
  699. package/skills/msqca-analysis/assets/templates/report_template.md +188 -0
  700. package/skills/msqca-analysis/integrated_analysis_report.md +35 -0
  701. package/skills/msqca-analysis/prompts/calibration-guidance.md +251 -0
  702. package/skills/msqca-analysis/prompts/result-interpretation.md +253 -0
  703. package/skills/msqca-analysis/prompts/theoretical-analysis.md +172 -0
  704. package/skills/msqca-analysis/pyproject.toml +37 -0
  705. package/skills/msqca-analysis/references/BEST_PRACTICES.md +612 -0
  706. package/skills/msqca-analysis/references/METHODOLOGY.md +282 -0
  707. package/skills/msqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
  708. package/skills/msqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
  709. package/skills/msqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
  710. package/skills/msqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
  711. package/skills/msqca-analysis/scripts/calibration.py +341 -0
  712. package/skills/msqca-analysis/scripts/integrated_analysis.py +621 -0
  713. package/skills/msqca-analysis/scripts/integrated_analysis_report.md +35 -0
  714. package/skills/msqca-analysis/scripts/minimization.py +580 -0
  715. package/skills/msqca-analysis/scripts/truth_table.py +438 -0
  716. package/skills/network-computation/SKILL.md +270 -0
  717. package/skills/network-computation/pyproject.toml +34 -0
  718. package/skills/network-computation/scripts/calculate_centrality.py +213 -0
  719. package/skills/network-computation-expert/SKILL.md +183 -0
  720. package/skills/network-computation-expert/modules/__pycache__/centrality_analysis.cpython-312.pyc +0 -0
  721. package/skills/network-computation-expert/modules/__pycache__/community_detection.cpython-312.pyc +0 -0
  722. package/skills/network-computation-expert/modules/__pycache__/data_processing.cpython-312.pyc +0 -0
  723. package/skills/network-computation-expert/modules/__pycache__/network_construction.cpython-312.pyc +0 -0
  724. package/skills/network-computation-expert/modules/centrality_analysis.py +438 -0
  725. package/skills/network-computation-expert/modules/community_detection.py +467 -0
  726. package/skills/network-computation-expert/modules/data_processing.py +467 -0
  727. package/skills/network-computation-expert/modules/network_construction.py +460 -0
  728. package/skills/network-computation-expert/pyproject.toml +27 -0
  729. package/skills/network-computation-expert/scripts/network_computation_expert_analyzer.py +208 -0
  730. package/skills/network-computation-expert/test_input.json +140 -0
  731. package/skills/network-computation-expert/test_output.json +627 -0
  732. package/skills/operations-analysis/INFO.md +76 -0
  733. package/skills/operations-analysis/README.md +61 -0
  734. package/skills/operations-analysis/SKILL.md +365 -0
  735. package/skills/operations-analysis/prompts.txt +109 -0
  736. package/skills/operations-analysis/pyproject.toml +35 -0
  737. package/skills/operations-analysis/reference.md +178 -0
  738. package/skills/operations-analysis/skill.js +870 -0
  739. package/skills/operations-analysis/skill.json +219 -0
  740. package/skills/patent-downloader/README.md +358 -0
  741. package/skills/patent-downloader/SKILL.md +309 -0
  742. package/skills/patent-downloader/assets/README_TEMPLATE.md +140 -0
  743. package/skills/patent-downloader/assets/requirements.txt +5 -0
  744. package/skills/patent-downloader/references/google_patents.md +210 -0
  745. package/skills/patent-downloader/scripts/patent_server.py +279 -0
  746. package/skills/performing-axial-coding/SKILL.md +301 -0
  747. package/skills/performing-axial-coding/pyproject.toml +30 -0
  748. package/skills/performing-axial-coding/references/README.md +111 -0
  749. package/skills/performing-axial-coding/references/_BACKUP_paradigm-theory.md +375 -0
  750. package/skills/performing-axial-coding/references/_BACKUP_relationship-types.md +544 -0
  751. package/skills/performing-axial-coding/references/_BACKUP_troubleshooting.md +627 -0
  752. package/skills/performing-axial-coding/references/category-construction/INDEX.md +190 -0
  753. package/skills/performing-axial-coding/references/category-construction/complete-example.md +438 -0
  754. package/skills/performing-axial-coding/references/paradigm-theory/INDEX.md +181 -0
  755. package/skills/performing-axial-coding/references/paradigm-theory/chinese-adaptation.md +349 -0
  756. package/skills/performing-axial-coding/references/paradigm-theory/quality-standards.md +345 -0
  757. package/skills/performing-axial-coding/references/paradigm-theory/six-components.md +323 -0
  758. package/skills/performing-axial-coding/references/relationship-types/INDEX.md +126 -0
  759. package/skills/performing-axial-coding/references/relationship-types/causal.md +141 -0
  760. package/skills/performing-axial-coding/references/relationship-types/conditional.md +150 -0
  761. package/skills/performing-axial-coding/references/troubleshooting/INDEX.md +136 -0
  762. package/skills/performing-axial-coding/references/troubleshooting/category-issues.md +129 -0
  763. package/skills/performing-axial-coding/references/troubleshooting/relationship-issues.md +137 -0
  764. package/skills/performing-axial-coding/references/troubleshooting/technical-issues.md +184 -0
  765. package/skills/performing-axial-coding/scripts/__pycache__/build_relationships.cpython-312.pyc +0 -0
  766. package/skills/performing-axial-coding/scripts/__pycache__/construct_paradigm.cpython-312.pyc +0 -0
  767. package/skills/performing-axial-coding/scripts/__pycache__/identify_categories.cpython-312.pyc +0 -0
  768. package/skills/performing-axial-coding/scripts/build_relationships.py +314 -0
  769. package/skills/performing-axial-coding/scripts/categories_test.json +122 -0
  770. package/skills/performing-axial-coding/scripts/construct_paradigm.py +271 -0
  771. package/skills/performing-axial-coding/scripts/identify_categories.py +267 -0
  772. package/skills/performing-axial-coding/tests/test_integration.py +84 -0
  773. package/skills/performing-centrality-analysis/SKILL.md +210 -0
  774. package/skills/performing-centrality-analysis/pyproject.toml +21 -0
  775. package/skills/performing-centrality-analysis/references/README.md +60 -0
  776. package/skills/performing-centrality-analysis/references/centrality-theory/INDEX.md +136 -0
  777. package/skills/performing-centrality-analysis/references/chinese-context/INDEX.md +169 -0
  778. package/skills/performing-centrality-analysis/scripts/__pycache__/calculate_centrality.cpython-312.pyc +0 -0
  779. package/skills/performing-centrality-analysis/scripts/calculate_centrality.py +213 -0
  780. package/skills/performing-centrality-analysis/tests/__pycache__/test_calculate_centrality.cpython-312-pytest-7.4.3.pyc +0 -0
  781. package/skills/performing-centrality-analysis/tests/test_calculate_centrality.py +218 -0
  782. package/skills/performing-network-computation/SKILL.md +224 -0
  783. package/skills/performing-network-computation/pyproject.toml +34 -0
  784. package/skills/performing-network-computation/scripts/build_network.py +260 -0
  785. package/skills/performing-network-computation/scripts/calculate_metrics.py +236 -0
  786. package/skills/performing-network-computation/scripts/detect_communities.py +281 -0
  787. package/skills/performing-network-computation/scripts/visualize_network.py +272 -0
  788. package/skills/performing-open-coding/SKILL.md +299 -0
  789. package/skills/performing-open-coding/pyproject.toml +35 -0
  790. package/skills/performing-open-coding/references/chinese-context.md +270 -0
  791. package/skills/performing-open-coding/references/examples.md +338 -0
  792. package/skills/performing-open-coding/references/theory.md +215 -0
  793. package/skills/performing-open-coding/references/troubleshooting.md +491 -0
  794. package/skills/performing-open-coding/scripts/__pycache__/auto_loader.cpython-312.pyc +0 -0
  795. package/skills/performing-open-coding/scripts/__pycache__/compare_codes.cpython-312.pyc +0 -0
  796. package/skills/performing-open-coding/scripts/__pycache__/preprocess_text.cpython-312.pyc +0 -0
  797. package/skills/performing-open-coding/scripts/auto_loader.py +195 -0
  798. package/skills/performing-open-coding/scripts/cluster_concepts.py +294 -0
  799. package/skills/performing-open-coding/scripts/clusters_test.json +169 -0
  800. package/skills/performing-open-coding/scripts/compare_codes.py +257 -0
  801. package/skills/performing-open-coding/scripts/comparison_test.json +19 -0
  802. package/skills/performing-open-coding/scripts/concepts_test.json +135 -0
  803. package/skills/performing-open-coding/scripts/preprocess_text.py +218 -0
  804. package/skills/performing-open-coding/scripts/test_output.json +134 -0
  805. package/skills/performing-open-coding/scripts/validate_codes.py +302 -0
  806. package/skills/performing-open-coding/scripts/validation_test.json +95 -0
  807. package/skills/performing-open-coding/tests/__pycache__/test_auto_loader.cpython-312-pytest-7.4.3.pyc +0 -0
  808. package/skills/performing-open-coding/tests/__pycache__/test_preprocess.cpython-312-pytest-7.4.3.pyc +0 -0
  809. package/skills/performing-open-coding/tests/run_integration_tests.py +148 -0
  810. package/skills/performing-open-coding/tests/test_auto_loader.py +233 -0
  811. package/skills/performing-open-coding/tests/test_compare_codes.py +336 -0
  812. package/skills/performing-open-coding/tests/test_preprocess.py +187 -0
  813. package/skills/performing-selective-coding/SKILL.md +305 -0
  814. package/skills/performing-selective-coding/pyproject.toml +21 -0
  815. package/skills/performing-selective-coding/references/README.md +86 -0
  816. package/skills/performing-selective-coding/references/core-category/INDEX.md +132 -0
  817. package/skills/performing-selective-coding/references/saturation/INDEX.md +153 -0
  818. package/skills/performing-selective-coding/references/storyline/INDEX.md +166 -0
  819. package/skills/performing-selective-coding/references/theory-integration/INDEX.md +203 -0
  820. package/skills/performing-selective-coding/scripts/README.md +101 -0
  821. package/skills/performing-selective-coding/scripts/__pycache__/check_saturation.cpython-312.pyc +0 -0
  822. package/skills/performing-selective-coding/scripts/__pycache__/identify_core_category.cpython-312.pyc +0 -0
  823. package/skills/performing-selective-coding/scripts/check_saturation.py +236 -0
  824. package/skills/performing-selective-coding/scripts/construct_storyline.py +237 -0
  825. package/skills/performing-selective-coding/scripts/identify_core_category.py +265 -0
  826. package/skills/performing-selective-coding/scripts/integrate_theory.py +173 -0
  827. package/skills/performing-selective-coding/tests/__pycache__/test_check_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
  828. package/skills/performing-selective-coding/tests/__pycache__/test_identify_core_category.cpython-312-pytest-7.4.3.pyc +0 -0
  829. package/skills/performing-selective-coding/tests/test_check_saturation.py +157 -0
  830. package/skills/performing-selective-coding/tests/test_identify_core_category.py +157 -0
  831. package/skills/practical-marxist-application/SKILL.md +230 -0
  832. package/skills/processing-network-data/SKILL.md +146 -0
  833. package/skills/processing-network-data/pyproject.toml +33 -0
  834. package/skills/processing-network-data/scripts/clean_survey_data.py +285 -0
  835. package/skills/processing-network-data/scripts/extract_network_data.py +286 -0
  836. package/skills/processing-network-data/scripts/transform_data_format.py +334 -0
  837. package/skills/processing-network-data/scripts/validate_network_data.py +322 -0
  838. package/skills/pubscholar-auto-search/AGENTSKILLS_OPTIMIZATION_REPORT.md +540 -0
  839. package/skills/pubscholar-auto-search/README.md +66 -0
  840. package/skills/pubscholar-auto-search/SKILL.md +242 -0
  841. package/skills/pubscholar-auto-search/references/API_REFERENCE.md +349 -0
  842. package/skills/pubscholar-auto-search/references/DEVELOPMENT.md +395 -0
  843. package/skills/pubscholar-auto-search/references/EXTENSION_STRATEGIES.md +415 -0
  844. package/skills/pubscholar-auto-search/references/USER_GUIDE.md +432 -0
  845. package/skills/pubscholar-auto-search/requirements.txt +17 -0
  846. package/skills/pubscholar-auto-search/scripts/__pycache__/pubscholar_searcher.cpython-312.pyc +0 -0
  847. package/skills/pubscholar-auto-search/scripts/pubscholar_searcher.py +602 -0
  848. package/skills/pubscholar-auto-search/scripts/test_pubscholar_search.py +205 -0
  849. package/skills/research-design/DEPENDENCY_MANAGEMENT.md +112 -0
  850. package/skills/research-design/README.md +158 -0
  851. package/skills/research-design/SKILL.md +82 -0
  852. package/skills/research-design/assets/templates/research_design_template.md +297 -0
  853. package/skills/research-design/prompts/analysis-strategy-outline.md +307 -0
  854. package/skills/research-design/prompts/analysis-strategy.md +37 -0
  855. package/skills/research-design/prompts/data-planning-outline.md +204 -0
  856. package/skills/research-design/prompts/data-planning.md +36 -0
  857. package/skills/research-design/prompts/ethics-review-outline.md +406 -0
  858. package/skills/research-design/prompts/ethics-review.md +36 -0
  859. package/skills/research-design/prompts/method-selection-outline.md +181 -0
  860. package/skills/research-design/prompts/method-selection.md +36 -0
  861. package/skills/research-design/prompts/problem-definition-outline.md +107 -0
  862. package/skills/research-design/prompts/problem-definition.md +30 -0
  863. package/skills/research-design/pyproject.toml +35 -0
  864. package/skills/research-design/references/best-practices.md +185 -0
  865. package/skills/research-design/references/methodology.md +162 -0
  866. package/skills/research-design/scripts/__pycache__/design_evaluation.cpython-312.pyc +0 -0
  867. package/skills/research-design/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
  868. package/skills/research-design/scripts/__pycache__/literature_analysis.cpython-312.pyc +0 -0
  869. package/skills/research-design/scripts/__pycache__/method_matching.cpython-312.pyc +0 -0
  870. package/skills/research-design/scripts/design_evaluation.py +670 -0
  871. package/skills/research-design/scripts/integrated_analysis.py +543 -0
  872. package/skills/research-design/scripts/literature_analysis.py +303 -0
  873. package/skills/research-design/scripts/method_matching.py +478 -0
  874. package/skills/research-design/test_research_design.py +281 -0
  875. package/skills/sna-analysis/integration_with_trusted_scraper.md +115 -0
  876. package/skills/spark-integration/INFO.md +64 -0
  877. package/skills/spark-integration/README.md +159 -0
  878. package/skills/spark-integration/SKILL.md +232 -0
  879. package/skills/spark-integration/skill.js +308 -0
  880. package/skills/spark-integration/skill.json +37 -0
  881. package/skills/trusted-web-scraper/CONFIG.yaml +60 -0
  882. package/skills/trusted-web-scraper/README.md +137 -0
  883. package/skills/trusted-web-scraper/SKILL.md +173 -0
  884. package/skills/trusted-web-scraper/final_test.json +240 -0
  885. package/skills/trusted-web-scraper/modules/__pycache__/core_trusted_scraper.cpython-312.pyc +0 -0
  886. package/skills/trusted-web-scraper/modules/__pycache__/scraper.cpython-312.pyc +0 -0
  887. package/skills/trusted-web-scraper/modules/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
  888. package/skills/trusted-web-scraper/modules/core_trusted_scraper.py +778 -0
  889. package/skills/trusted-web-scraper/modules/scraper_minimal.py +623 -0
  890. package/skills/trusted-web-scraper/pyproject.toml +46 -0
  891. package/skills/trusted-web-scraper/scripts/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
  892. package/skills/trusted-web-scraper/scripts/trusted_web_scraper.py +109 -0
  893. package/skills/trusted-web-scraper/test_comprehensive.py +53 -0
  894. package/skills/trusted-web-scraper/test_full.py +154 -0
  895. package/skills/trusted-web-scraper/test_input.json +10 -0
  896. package/skills/trusted-web-scraper/test_output.json +162 -0
  897. package/skills/trusted-web-scraper/test_output2.json +240 -0
  898. package/skills/trusted-web-scraper/test_output3.json +240 -0
  899. package/skills/trusted-web-scraper/test_output4.json +240 -0
  900. package/skills/validity-reliability/SKILL.md +130 -0
  901. package/skills/validity-reliability/pyproject.toml +36 -0
  902. package/skills/validity-reliability/scripts/validity_reliability_toolkit.py +480 -0
  903. package/skills/verify_compliance.ps1 +40 -0
  904. package/skills/visualization-expert/INFO.md +77 -0
  905. package/skills/visualization-expert/README.md +78 -0
  906. package/skills/visualization-expert/SKILL.md +374 -0
  907. package/skills/visualization-expert/prompts.txt +92 -0
  908. package/skills/visualization-expert/reference.md +212 -0
  909. package/skills/visualization-expert/skill.js +904 -0
  910. package/skills/visualization-expert/skill.json +195 -0
  911. package/skills/writing-grounded-theory-memos/SKILL.md +301 -0
@@ -0,0 +1,1525 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ 增强版历史唯物主义分析器 - 基于马克思主义专家指导的深度优化
5
+ 包含生产力-生产关系矛盾运动、经济基础-上层建筑辩证关系、社会形态发展规律的专业化分析
6
+ """
7
+
8
+ import pandas as pd
9
+ import numpy as np
10
+ from typing import Dict, List, Optional, Any, Tuple
11
+ import re
12
+ from collections import Counter
13
+ import jieba
14
+ import jieba.analyse
15
+ from dataclasses import dataclass
16
+ from enum import Enum
17
+ import math
18
+
19
+ # 导入辩证思维分析器
20
+ from dialectical_thinking_analyzer import DialecticalThinkingAnalyzer
21
+
22
+
23
+ class SocialFormationType(Enum):
24
+ """社会形态类型"""
25
+ PRIMITIVE_COMMUNISM = "原始共产主义"
26
+ SLAVE_SOCIETY = "奴隶社会"
27
+ FEUDAL_SOCIETY = "封建社会"
28
+ CAPITALIST_SOCIETY = "资本主义社会"
29
+ SOCIALIST_SOCIETY = "社会主义社会"
30
+ COMMUNIST_SOCIETY = "共产主义社会"
31
+
32
+
33
+ class DevelopmentStage(Enum):
34
+ """发展阶段"""
35
+ EMERGENCE = "形成阶段"
36
+ DEVELOPMENT = "发展阶段"
37
+ MATURITY = "成熟阶段"
38
+ DECLINE = "衰落阶段"
39
+ TRANSFORMATION = "转型阶段"
40
+
41
+
42
+ @dataclass
43
+ class ProductiveForces:
44
+ """生产力结构"""
45
+ level: str
46
+ technology_level: float
47
+ labor_productivity: float
48
+ production_tools: List[str]
49
+ scientific_knowledge: float
50
+ development_potential: float
51
+
52
+
53
+ @dataclass
54
+ class RelationsOfProduction:
55
+ """生产关系结构"""
56
+ ownership_form: str
57
+ labor_relations: str
58
+ distribution_method: str
59
+ class_structure: Dict[str, float]
60
+ adaptation_level: float
61
+
62
+
63
+ @dataclass
64
+ class EconomicBase:
65
+ """经济基础结构"""
66
+ productive_forces: ProductiveForces
67
+ relations_of_production: RelationsOfProduction
68
+ base_superstructure_relation: str
69
+ economic_dynamics: str
70
+
71
+
72
+ @dataclass
73
+ class Superstructure:
74
+ """上层建筑结构"""
75
+ political_system: str
76
+ legal_system: str
77
+ ideology: str
78
+ culture: str
79
+ relative_independence: float
80
+ counter_effect: float
81
+
82
+
83
+ @dataclass
84
+ class SocialContradiction:
85
+ """社会矛盾结构"""
86
+ primary_contradiction: str
87
+ secondary_contradictions: List[str]
88
+ contradiction_intensity: float
89
+ development_stage: str
90
+ resolution_tendency: str
91
+
92
+
93
+ class EnhancedHistoricalMaterialismAnalyzer:
94
+ """增强版历史唯物主义分析器"""
95
+
96
+ def __init__(self):
97
+ # 初始化辩证思维分析器
98
+ self.dialectical_analyzer = DialecticalThinkingAnalyzer()
99
+
100
+ # 初始化jieba分词
101
+ jieba.initialize()
102
+
103
+ # 生产力发展水平词汇库(增强版)
104
+ self.productive_forces_vocabulary = {
105
+ 'primitive_indicators': [
106
+ '石器', '木器', '骨器', '原始工具', '狩猎', '采集', '原始',
107
+ '部落', '氏族', '原始公社', '自然经济', '自给自足'
108
+ ],
109
+ 'agricultural_indicators': [
110
+ '金属工具', '铁器', '青铜器', '犁', '耕具', '农业', '畜牧业',
111
+ '手工业', '土地', '农作物', '灌溉', '封建', '庄园', '自给自足'
112
+ ],
113
+ 'industrial_indicators': [
114
+ '机器', '蒸汽机', '内燃机', '电力', '工厂', '工业化', '大规模生产',
115
+ '资本主义', '商品经济', '市场经济', '城市化', '无产阶级', '资产阶级'
116
+ ],
117
+ 'information_indicators': [
118
+ '计算机', '互联网', '信息技术', '数字经济', '知识经济', '网络',
119
+ '自动化', '智能化', '全球化', '后工业', '信息社会'
120
+ ],
121
+ 'intelligent_indicators': [
122
+ '人工智能', 'AI', '机器人', '大数据', '云计算', '物联网',
123
+ '智能制造', '智能社会', '数字孪生', '元宇宙'
124
+ ]
125
+ }
126
+
127
+ # 生产关系词汇库(增强版)
128
+ self.relations_of_production_vocabulary = {
129
+ 'ownership_indicators': {
130
+ 'public': ['公有制', '国有', '集体', '公共', '共享', '共同所有'],
131
+ 'private': ['私有制', '私人', '个体', '私营', '个人所有', '私有'],
132
+ 'mixed': ['混合所有制', '多元', '多种所有制', '股份制', '混合经济']
133
+ },
134
+ 'labor_relations_indicators': {
135
+ 'exploitation': ['剥削', '压迫', '奴役', '强制', '不等价交换', '剩余价值'],
136
+ 'cooperation': ['合作', '协作', '互助', '联合', '平等', '互助合作'],
137
+ 'hierarchy': ['等级', '层级', '上下级', '主从', '支配', '等级制'],
138
+ 'autonomy': ['自主', '独立', '自由', '自愿', '民主', '自主管理']
139
+ },
140
+ 'distribution_indicators': {
141
+ 'equal': ['平均', '平等', '公平', '均衡', '均等', '按需分配'],
142
+ 'unequal': ['不平等', '差距', '悬殊', '分化', '不均', '贫富差距'],
143
+ 'merit': ['按劳', '绩效', '贡献', '能力', '业绩', '按劳分配'],
144
+ 'need': ['按需', '需求', '保障', '福利', '救助', '按需分配']
145
+ }
146
+ }
147
+
148
+ # 上层建筑词汇库(增强版)
149
+ self.superstructure_vocabulary = {
150
+ 'political_indicators': {
151
+ 'democracy': ['民主', '选举', '投票', '参与', '议会', '民主政治'],
152
+ 'autocracy': ['专制', '独裁', '集权', '威权', '统治', '专制政治'],
153
+ 'republic': ['共和', '宪政', '法治', '制衡', '分权', '共和制'],
154
+ 'people': ['人民', '群众', '民主', '共和', '社会主义', '人民民主']
155
+ },
156
+ 'legal_indicators': [
157
+ '法律', '法规', '法治', '司法', '立法', '执法', '法律体系',
158
+ '宪法', '民法', '刑法', '经济法', '依法治国'
159
+ ],
160
+ 'ideology_indicators': {
161
+ 'liberalism': ['自由', '个人', '权利', '市场', '竞争', '自由主义'],
162
+ 'conservatism': ['传统', '秩序', '权威', '稳定', '保守', '保守主义'],
163
+ 'socialism': ['社会主义', '集体', '平等', '公平', '公益', '马克思主义'],
164
+ 'nationalism': ['民族', '国家', '爱国', '统一', '独立', '民族主义']
165
+ },
166
+ 'culture_indicators': [
167
+ '文化', '文明', '传统', '现代', '先进', '精神文明',
168
+ '价值观', '道德', '伦理', '信仰', '文化自信'
169
+ ]
170
+ }
171
+
172
+ # 社会形态发展规律词汇库
173
+ self.social_development_vocabulary = {
174
+ 'transformation_indicators': [
175
+ '变革', '革命', '转型', '更替', '过渡', '演变', '发展',
176
+ '社会变革', '历史变革', '制度变迁'
177
+ ],
178
+ 'necessity_indicators': [
179
+ '必然', '客观规律', '历史必然', '客观必然', '不可避免',
180
+ '历史趋势', '发展规律', '客观必然性'
181
+ ],
182
+ 'diversity_indicators': [
183
+ '多样性', '多道路', '特色', '具体', '特殊', '个别',
184
+ '多样性统一', '普遍性与特殊性'
185
+ ],
186
+ 'people_role_indicators': [
187
+ '人民', '群众', '人民群众', '历史创造者', '主体',
188
+ '人民主体', '群众路线', '人民历史作用'
189
+ ]
190
+ }
191
+
192
+ # 分析结果存储
193
+ self.analysis_results = {}
194
+
195
+ def analyze_productive_forces_relations_contradiction(self, text_data: str) -> Dict:
196
+ """分析生产力-生产关系矛盾运动"""
197
+
198
+ processed_text = self._preprocess_text(text_data)
199
+ keywords = jieba.analyse.extract_tags(processed_text, topK=150, withWeight=True)
200
+
201
+ # 深度分析生产力发展水平
202
+ productive_forces = self._deep_analyze_productive_forces(processed_text, keywords)
203
+
204
+ # 深度分析生产关系结构
205
+ relations_of_production = self._deep_analyze_relations_of_production(processed_text, keywords)
206
+
207
+ # 分析矛盾运动状态
208
+ contradiction_movement = self._analyze_contradiction_movement(
209
+ productive_forces, relations_of_production
210
+ )
211
+
212
+ # 评估适应性水平
213
+ adaptation_level = self._assess_adaptation_level(
214
+ productive_forces, relations_of_production
215
+ )
216
+
217
+ # 预测发展趋势
218
+ development_tendency = self._predict_development_tendency(
219
+ productive_forces, relations_of_production, contradiction_movement
220
+ )
221
+
222
+ # 辩证分析
223
+ dialectical_analysis = self.dialectical_analyzer.analyze_unity_of_opposites(text_data)
224
+
225
+ # 综合分析结果
226
+ analysis_result = {
227
+ 'productive_forces': productive_forces,
228
+ 'relations_of_production': relations_of_production,
229
+ 'contradiction_movement': contradiction_movement,
230
+ 'adaptation_level': adaptation_level,
231
+ 'development_tendency': development_tendency,
232
+ 'dialectical_analysis': dialectical_analysis,
233
+ 'contradiction_quality': self._assess_contradiction_quality(
234
+ productive_forces, relations_of_production, adaptation_level
235
+ )
236
+ }
237
+
238
+ self.analysis_results['productive_forces_relations'] = analysis_result
239
+ return analysis_result
240
+
241
+ def analyze_economic_base_superstructure_relation(self, text_data: str) -> Dict:
242
+ """分析经济基础-上层建筑辩证关系"""
243
+
244
+ processed_text = self._preprocess_text(text_data)
245
+ keywords = jieba.analyse.extract_tags(processed_text, topK=150, withWeight=True)
246
+
247
+ # 构建经济基础结构
248
+ economic_base = self._construct_economic_base(processed_text, keywords)
249
+
250
+ # 构建上层建筑结构
251
+ superstructure = self._construct_superstructure(processed_text, keywords)
252
+
253
+ # 分析决定作用
254
+ determining_role = self._analyze_determining_role(economic_base, superstructure)
255
+
256
+ # 分析相对独立性
257
+ relative_independence = self._analyze_relative_independence(
258
+ economic_base, superstructure, processed_text
259
+ )
260
+
261
+ # 分析反作用
262
+ counter_effect = self._analyze_counter_effect(
263
+ economic_base, superstructure, processed_text
264
+ )
265
+
266
+ # 评估辩证统一关系
267
+ dialectical_unity = self._assess_dialectical_unity(
268
+ determining_role, relative_independence, counter_effect
269
+ )
270
+
271
+ # 辩证分析
272
+ dialectical_analysis = self.dialectical_analyzer.analyze_unity_of_opposites(text_data)
273
+
274
+ # 综合分析结果
275
+ analysis_result = {
276
+ 'economic_base': economic_base,
277
+ 'superstructure': superstructure,
278
+ 'determining_role': determining_role,
279
+ 'relative_independence': relative_independence,
280
+ 'counter_effect': counter_effect,
281
+ 'dialectical_unity': dialectical_unity,
282
+ 'dialectical_analysis': dialectical_analysis,
283
+ 'base_superstructure_quality': self._assess_base_superstructure_quality(
284
+ economic_base, superstructure, dialectical_unity
285
+ )
286
+ }
287
+
288
+ self.analysis_results['economic_base_superstructure'] = analysis_result
289
+ return analysis_result
290
+
291
+ def analyze_social_formation_development(self, text_data: str) -> Dict:
292
+ """分析社会形态发展规律"""
293
+
294
+ processed_text = self._preprocess_text(text_data)
295
+ keywords = jieba.analyse.extract_tags(processed_text, topK=150, withWeight=True)
296
+
297
+ # 识别当前社会形态
298
+ current_formation = self._identify_social_formation(processed_text, keywords)
299
+
300
+ # 分析发展阶段
301
+ development_stage = self._analyze_development_stage(processed_text, keywords)
302
+
303
+ # 识别主要矛盾
304
+ primary_contradiction = self._identify_primary_contradiction(processed_text, keywords)
305
+
306
+ # 分析历史必然性
307
+ historical_necessity = self._analyze_historical_necessity(processed_text, keywords)
308
+
309
+ # 分析发展道路多样性
310
+ development_diversity = self._analyze_development_diversity(processed_text, keywords)
311
+
312
+ # 分析人民群众历史作用
313
+ people_role = self._analyze_people_historical_role(processed_text, keywords)
314
+
315
+ # 量变质变分析
316
+ quantity_quality_analysis = self.dialectical_analyzer.analyze_quantity_quality_change(text_data)
317
+
318
+ # 否定之否定分析
319
+ negation_analysis = self.dialectical_analyzer.analyze_negation_of_negation(text_data)
320
+
321
+ # 综合分析结果
322
+ analysis_result = {
323
+ 'current_formation': current_formation,
324
+ 'development_stage': development_stage,
325
+ 'primary_contradiction': primary_contradiction,
326
+ 'historical_necessity': historical_necessity,
327
+ 'development_diversity': development_diversity,
328
+ 'people_role': people_role,
329
+ 'quantity_quality_analysis': quantity_quality_analysis,
330
+ 'negation_analysis': negation_analysis,
331
+ 'formation_quality': self._assess_formation_quality(
332
+ current_formation, development_stage, historical_necessity
333
+ )
334
+ }
335
+
336
+ self.analysis_results['social_formation_development'] = analysis_result
337
+ return analysis_result
338
+
339
+ def comprehensive_historical_materialism_analysis(self, text_data: str) -> Dict:
340
+ """综合历史唯物主义分析"""
341
+
342
+ # 执行三大核心分析
343
+ contradiction_analysis = self.analyze_productive_forces_relations_contradiction(text_data)
344
+ base_superstructure_analysis = self.analyze_economic_base_superstructure_relation(text_data)
345
+ formation_analysis = self.analyze_social_formation_development(text_data)
346
+
347
+ # 综合辩证分析
348
+ comprehensive_dialectical = self.dialectical_analyzer.comprehensive_dialectical_analysis(text_data)
349
+
350
+ # 分析内在联系
351
+ internal_connections = self._analyze_historical_materialism_connections(
352
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
353
+ )
354
+
355
+ # 评估整体理论水平
356
+ overall_theoretical_level = self._assess_overall_theoretical_level(
357
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
358
+ )
359
+
360
+ # 生成专业建议
361
+ professional_recommendations = self._generate_professional_recommendations(
362
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
363
+ )
364
+
365
+ # 综合结果
366
+ comprehensive_result = {
367
+ 'contradiction_analysis': contradiction_analysis,
368
+ 'base_superstructure_analysis': base_superstructure_analysis,
369
+ 'formation_analysis': formation_analysis,
370
+ 'comprehensive_dialectical': comprehensive_dialectical,
371
+ 'internal_connections': internal_connections,
372
+ 'overall_theoretical_level': overall_theoretical_level,
373
+ 'professional_recommendations': professional_recommendations,
374
+ 'analysis_timestamp': pd.Timestamp.now().isoformat()
375
+ }
376
+
377
+ return comprehensive_result
378
+
379
+ def _preprocess_text(self, text_data: str) -> str:
380
+ """文本预处理"""
381
+ text = re.sub(r'\s+', ' ', text_data.strip())
382
+ return text
383
+
384
+ def _deep_analyze_productive_forces(self, text_data: str, keywords: List[Tuple]) -> ProductiveForces:
385
+ """深度分析生产力发展水平"""
386
+
387
+ # 计算各阶段指标分数
388
+ stage_scores = {}
389
+ for stage, indicators in self.productive_forces_vocabulary.items():
390
+ score = sum(weight for word, weight in keywords if word in indicators)
391
+ stage_scores[stage] = score
392
+
393
+ # 确定生产力水平
394
+ max_stage = max(stage_scores.items(), key=lambda x: x[1])[0]
395
+ level_mapping = {
396
+ 'primitive_indicators': '原始生产力',
397
+ 'agricultural_indicators': '农业生产力',
398
+ 'industrial_indicators': '工业生产力',
399
+ 'information_indicators': '信息生产力',
400
+ 'intelligent_indicators': '智能生产力'
401
+ }
402
+ level = level_mapping.get(max_stage, '未知生产力')
403
+
404
+ # 计算技术水平
405
+ technology_indicators = ['技术', '科技', '科学', '创新', '发明', '进步']
406
+ technology_level = sum(weight for word, weight in keywords
407
+ if word in technology_indicators)
408
+ technology_level = min(technology_level, 10.0)
409
+
410
+ # 计算劳动生产率
411
+ productivity_indicators = ['效率', '生产率', '产出', '效益', '产能']
412
+ labor_productivity = sum(weight for word, weight in keywords
413
+ if word in productivity_indicators)
414
+ labor_productivity = min(labor_productivity, 10.0)
415
+
416
+ # 识别生产工具
417
+ tools = []
418
+ tool_indicators = ['工具', '设备', '机器', '技术', '手段', '方法']
419
+ for word, weight in keywords:
420
+ if any(indicator in word for indicator in tool_indicators) and weight > 1.0:
421
+ tools.append(word)
422
+
423
+ # 计算科学知识水平
424
+ knowledge_indicators = ['知识', '科学', '理论', '学问', '教育', '研究']
425
+ scientific_knowledge = sum(weight for word, weight in keywords
426
+ if word in knowledge_indicators)
427
+ scientific_knowledge = min(scientific_knowledge, 10.0)
428
+
429
+ # 评估发展潜力
430
+ potential_indicators = ['潜力', '前景', '发展', '未来', '空间', '可能']
431
+ development_potential = sum(weight for word, weight in keywords
432
+ if word in potential_indicators)
433
+ development_potential = min(development_potential, 10.0)
434
+
435
+ return ProductiveForces(
436
+ level=level,
437
+ technology_level=technology_level,
438
+ labor_productivity=labor_productivity,
439
+ production_tools=tools[:5], # 取前5个
440
+ scientific_knowledge=scientific_knowledge,
441
+ development_potential=development_potential
442
+ )
443
+
444
+ def _deep_analyze_relations_of_production(self, text_data: str, keywords: List[Tuple]) -> RelationsOfProduction:
445
+ """深度分析生产关系结构"""
446
+
447
+ # 分析所有制形式
448
+ ownership_scores = {}
449
+ for ownership_type, indicators in self.relations_of_production_vocabulary['ownership_indicators'].items():
450
+ score = sum(weight for word, weight in keywords if word in indicators)
451
+ ownership_scores[ownership_type] = score
452
+
453
+ ownership_form = max(ownership_scores.items(), key=lambda x: x[1])[0]
454
+
455
+ # 分析劳动关系
456
+ labor_relations_scores = {}
457
+ for relation_type, indicators in self.relations_of_production_vocabulary['labor_relations_indicators'].items():
458
+ score = sum(weight for word, weight in keywords if word in indicators)
459
+ labor_relations_scores[relation_type] = score
460
+
461
+ labor_relations = max(labor_relations_scores.items(), key=lambda x: x[1])[0]
462
+
463
+ # 分析分配方式
464
+ distribution_scores = {}
465
+ for distribution_type, indicators in self.relations_of_production_vocabulary['distribution_indicators'].items():
466
+ score = sum(weight for word, weight in keywords if word in indicators)
467
+ distribution_scores[distribution_type] = score
468
+
469
+ distribution_method = max(distribution_scores.items(), key=lambda x: x[1])[0]
470
+
471
+ # 分析阶级结构
472
+ class_indicators = {
473
+ '资产阶级': ['资产阶级', '资本家', '剥削阶级', '统治阶级', '富人'],
474
+ '无产阶级': ['无产阶级', '工人', '劳动者', '被剥削阶级', '穷人'],
475
+ '中产阶级': ['中产阶级', '中间阶层', '白领', '小资产阶级'],
476
+ '农民阶级': ['农民', '农民阶级', '小农', '农业劳动者']
477
+ }
478
+
479
+ class_structure = {}
480
+ total_class_score = 0
481
+ for class_name, indicators in class_indicators.items():
482
+ score = sum(weight for word, weight in keywords if word in indicators)
483
+ class_structure[class_name] = score
484
+ total_class_score += score
485
+
486
+ # 归一化阶级结构分数
487
+ if total_class_score > 0:
488
+ for class_name in class_structure:
489
+ class_structure[class_name] = class_structure[class_name] / total_class_score * 10
490
+
491
+ # 评估适应性水平
492
+ adaptation_indicators = ['适应', '协调', '匹配', '适合', '一致', '和谐']
493
+ adaptation_level = sum(weight for word, weight in keywords if word in adaptation_indicators)
494
+ adaptation_level = min(adaptation_level, 10.0)
495
+
496
+ return RelationsOfProduction(
497
+ ownership_form=ownership_form,
498
+ labor_relations=labor_relations,
499
+ distribution_method=distribution_method,
500
+ class_structure=class_structure,
501
+ adaptation_level=adaptation_level
502
+ )
503
+
504
+ def _analyze_contradiction_movement(self, productive_forces: ProductiveForces,
505
+ relations_of_production: RelationsOfProduction) -> Dict:
506
+ """分析矛盾运动状态"""
507
+
508
+ # 计算生产力发展水平分数
509
+ forces_score = (productive_forces.technology_level +
510
+ productive_forces.labor_productivity +
511
+ productive_forces.scientific_knowledge) / 3
512
+
513
+ # 计算生产关系适应性分数
514
+ relations_score = relations_of_production.adaptation_level
515
+
516
+ # 判断矛盾状态
517
+ if forces_score >= 7.0 and relations_score >= 7.0:
518
+ contradiction_state = "基本适应"
519
+ elif forces_score >= 7.0 and relations_score < 5.0:
520
+ contradiction_state = "生产力超前,生产关系滞后"
521
+ elif forces_score < 5.0 and relations_score >= 7.0:
522
+ contradiction_state = "生产关系超前,生产力滞后"
523
+ else:
524
+ contradiction_state = "低水平平衡"
525
+
526
+ # 计算矛盾强度
527
+ contradiction_intensity = abs(forces_score - relations_score)
528
+
529
+ # 判断运动趋势
530
+ if forces_score > relations_score:
531
+ movement_tendency = "要求变革生产关系"
532
+ elif forces_score < relations_score:
533
+ movement_tendency = "要求发展生产力"
534
+ else:
535
+ movement_tendency = "相对稳定发展"
536
+
537
+ return {
538
+ 'contradiction_state': contradiction_state,
539
+ 'contradiction_intensity': contradiction_intensity,
540
+ 'movement_tendency': movement_tendency,
541
+ 'forces_score': forces_score,
542
+ 'relations_score': relations_score
543
+ }
544
+
545
+ def _assess_adaptation_level(self, productive_forces: ProductiveForces,
546
+ relations_of_production: RelationsOfProduction) -> Dict:
547
+ """评估适应性水平"""
548
+
549
+ # 计算适应性分数
550
+ forces_score = (productive_forces.technology_level +
551
+ productive_forces.labor_productivity +
552
+ productive_forces.scientific_knowledge) / 3
553
+
554
+ relations_score = relations_of_production.adaptation_level
555
+
556
+ # 适应性水平
557
+ adaptation_gap = abs(forces_score - relations_score)
558
+
559
+ if adaptation_gap <= 1.0:
560
+ adaptation_level = "高度适应"
561
+ elif adaptation_gap <= 3.0:
562
+ adaptation_level = "基本适应"
563
+ elif adaptation_gap <= 5.0:
564
+ adaptation_level = "部分不适应"
565
+ else:
566
+ adaptation_level = "严重不适应"
567
+
568
+ # 适应性质量
569
+ adaptation_quality = max(0, 10 - adaptation_gap)
570
+
571
+ return {
572
+ 'adaptation_level': adaptation_level,
573
+ 'adaptation_quality': adaptation_quality,
574
+ 'adaptation_gap': adaptation_gap,
575
+ 'forces_score': forces_score,
576
+ 'relations_score': relations_score
577
+ }
578
+
579
+ def _predict_development_tendency(self, productive_forces: ProductiveForces,
580
+ relations_of_production: RelationsOfProduction,
581
+ contradiction_movement: Dict) -> Dict:
582
+ """预测发展趋势"""
583
+
584
+ forces_score = (productive_forces.technology_level +
585
+ productive_forces.labor_productivity +
586
+ productive_forces.scientific_knowledge) / 3
587
+
588
+ relations_score = relations_of_production.adaptation_level
589
+
590
+ # 发展方向预测
591
+ if forces_score > relations_score + 2.0:
592
+ development_direction = "生产关系变革"
593
+ urgency_level = "紧迫"
594
+ elif forces_score > relations_score:
595
+ development_direction = "生产关系调整"
596
+ urgency_level = "较紧迫"
597
+ elif relations_score > forces_score + 2.0:
598
+ development_direction = "生产力发展"
599
+ urgency_level = "紧迫"
600
+ elif relations_score > forces_score:
601
+ development_direction = "生产力提升"
602
+ urgency_level = "较紧迫"
603
+ else:
604
+ development_direction = "协调发展"
605
+ urgency_level = "一般"
606
+
607
+ # 变革方式预测
608
+ if contradiction_movement['contradiction_intensity'] >= 6.0:
609
+ transformation_method = "革命性变革"
610
+ elif contradiction_movement['contradiction_intensity'] >= 3.0:
611
+ transformation_method = "改革性调整"
612
+ else:
613
+ transformation_method = "渐进性改进"
614
+
615
+ return {
616
+ 'development_direction': development_direction,
617
+ 'urgency_level': urgency_level,
618
+ 'transformation_method': transformation_method,
619
+ 'development_potential': productive_forces.development_potential
620
+ }
621
+
622
+ def _assess_contradiction_quality(self, productive_forces: ProductiveForces,
623
+ relations_of_production: RelationsOfProduction,
624
+ adaptation_level: Dict) -> Dict:
625
+ """评估矛盾分析质量"""
626
+
627
+ # 矛盾识别质量
628
+ contradiction_quality = adaptation_level.get('adaptation_quality', 0)
629
+
630
+ # 发展潜力评估
631
+ potential_quality = productive_forces.development_potential
632
+
633
+ # 综合质量分数
634
+ overall_quality = (contradiction_quality + potential_quality) / 2
635
+
636
+ return {
637
+ 'contradiction_quality': contradiction_quality,
638
+ 'potential_quality': potential_quality,
639
+ 'overall_quality': overall_quality,
640
+ 'quality_level': self._determine_quality_level(overall_quality)
641
+ }
642
+
643
+ def _construct_economic_base(self, text_data: str, keywords: List[Tuple]) -> EconomicBase:
644
+ """构建经济基础结构"""
645
+
646
+ # 分析生产力(复用之前的方法)
647
+ productive_forces = self._deep_analyze_productive_forces(text_data, keywords)
648
+
649
+ # 分析生产关系(复用之前的方法)
650
+ relations_of_production = self._deep_analyze_relations_of_production(text_data, keywords)
651
+
652
+ # 分析经济基础与上层建筑关系
653
+ base_superstructure_indicators = {
654
+ 'determining': ['决定', '基础', '根本', '决定性', '基础性'],
655
+ 'relatively_independent': ['相对独立', '自主', '独立性', '自身规律'],
656
+ 'counter_effect': ['反作用', '影响', '作用', '促进', '阻碍']
657
+ }
658
+
659
+ relation_scores = {}
660
+ for relation_type, indicators in base_superstructure_indicators.items():
661
+ score = sum(weight for word, weight in keywords if word in indicators)
662
+ relation_scores[relation_type] = score
663
+
664
+ base_superstructure_relation = max(relation_scores.items(), key=lambda x: x[1])[0]
665
+
666
+ # 分析经济动态
667
+ economic_dynamics = self._analyze_economic_dynamics(text_data, keywords)
668
+
669
+ return EconomicBase(
670
+ productive_forces=productive_forces,
671
+ relations_of_production=relations_of_production,
672
+ base_superstructure_relation=base_superstructure_relation,
673
+ economic_dynamics=economic_dynamics
674
+ )
675
+
676
+ def _construct_superstructure(self, text_data: str, keywords: List[Tuple]) -> Superstructure:
677
+ """构建上层建筑结构"""
678
+
679
+ # 分析政治制度
680
+ political_scores = {}
681
+ for system_type, indicators in self.superstructure_vocabulary['political_indicators'].items():
682
+ score = sum(weight for word, weight in keywords if word in indicators)
683
+ political_scores[system_type] = score
684
+
685
+ political_system = max(political_scores.items(), key=lambda x: x[1])[0]
686
+
687
+ # 分析法律体系
688
+ legal_score = sum(weight for word, weight in keywords
689
+ if word in self.superstructure_vocabulary['legal_indicators'])
690
+ legal_system = f"法律体系水平: {legal_score:.1f}/10"
691
+
692
+ # 分析意识形态
693
+ ideology_scores = {}
694
+ for ideology_type, indicators in self.superstructure_vocabulary['ideology_indicators'].items():
695
+ score = sum(weight for word, weight in keywords if word in indicators)
696
+ ideology_scores[ideology_type] = score
697
+
698
+ ideology = max(ideology_scores.items(), key=lambda x: x[1])[0]
699
+
700
+ # 分析文化
701
+ culture_score = sum(weight for word, weight in keywords
702
+ if word in self.superstructure_vocabulary['culture_indicators'])
703
+ culture = f"文化发展水平: {culture_score:.1f}/10"
704
+
705
+ # 计算相对独立性
706
+ independence_indicators = ['相对独立', '自主', '独立性', '自身规律', '独立发展']
707
+ relative_independence = sum(weight for word, weight in keywords
708
+ if word in independence_indicators)
709
+ relative_independence = min(relative_independence, 10.0)
710
+
711
+ # 计算反作用力
712
+ counter_effect_indicators = ['反作用', '影响', '作用', '促进', '阻碍', '制约']
713
+ counter_effect = sum(weight for word, weight in keywords
714
+ if word in counter_effect_indicators)
715
+ counter_effect = min(counter_effect, 10.0)
716
+
717
+ return Superstructure(
718
+ political_system=political_system,
719
+ legal_system=legal_system,
720
+ ideology=ideology,
721
+ culture=culture,
722
+ relative_independence=relative_independence,
723
+ counter_effect=counter_effect
724
+ )
725
+
726
+ def _analyze_economic_dynamics(self, text_data: str, keywords: List[Tuple]) -> str:
727
+ """分析经济动态"""
728
+
729
+ dynamics_indicators = {
730
+ 'growth': ['增长', '发展', '扩张', '上升', '进步'],
731
+ 'stagnation': ['停滞', '缓慢', '低迷', '萧条', '衰退'],
732
+ 'transformation': ['转型', '变革', '升级', '调整', '改革'],
733
+ 'stability': ['稳定', '平稳', '持续', '均衡', '协调']
734
+ }
735
+
736
+ dynamics_scores = {}
737
+ for dynamic_type, indicators in dynamics_indicators.items():
738
+ score = sum(weight for word, weight in keywords if word in indicators)
739
+ dynamics_scores[dynamic_type] = score
740
+
741
+ primary_dynamic = max(dynamics_scores.items(), key=lambda x: x[1])[0]
742
+
743
+ dynamic_mapping = {
744
+ 'growth': '经济增长态势',
745
+ 'stagnation': '经济停滞态势',
746
+ 'transformation': '经济转型态势',
747
+ 'stability': '经济稳定态势'
748
+ }
749
+
750
+ return dynamic_mapping.get(primary_dynamic, '经济动态不明')
751
+
752
+ def _analyze_determining_role(self, economic_base: EconomicBase,
753
+ superstructure: Superstructure) -> Dict:
754
+ """分析决定作用"""
755
+
756
+ # 经济基础的决定作用强度
757
+ forces_score = (economic_base.productive_forces.technology_level +
758
+ economic_base.productive_forces.labor_productivity) / 2
759
+
760
+ # 基础强度评估
761
+ if forces_score >= 8.0:
762
+ base_strength = "强经济基础"
763
+ elif forces_score >= 5.0:
764
+ base_strength = "中等经济基础"
765
+ else:
766
+ base_strength = "弱经济基础"
767
+
768
+ # 决定作用程度
769
+ determining_degree = min(forces_score / 10 * 8, 8.0) # 最高8分
770
+
771
+ return {
772
+ 'base_strength': base_strength,
773
+ 'determining_degree': determining_degree,
774
+ 'forces_score': forces_score
775
+ }
776
+
777
+ def _analyze_relative_independence(self, economic_base: EconomicBase,
778
+ superstructure: Superstructure,
779
+ text_data: str) -> Dict:
780
+ """分析相对独立性"""
781
+
782
+ independence_score = superstructure.relative_independence
783
+
784
+ # 独立性水平
785
+ if independence_score >= 7.0:
786
+ independence_level = "高度独立"
787
+ elif independence_score >= 5.0:
788
+ independence_level = "中等独立"
789
+ elif independence_score >= 3.0:
790
+ independence_level = "初步独立"
791
+ else:
792
+ independence_level = "独立性不足"
793
+
794
+ # 独立性特征
795
+ independence_features = []
796
+ if independence_score >= 5.0:
797
+ independence_features.append("具有自身发展规律")
798
+ if independence_score >= 7.0:
799
+ independence_features.append("对经济基础具有能动反作用")
800
+
801
+ return {
802
+ 'independence_level': independence_level,
803
+ 'independence_score': independence_score,
804
+ 'independence_features': independence_features
805
+ }
806
+
807
+ def _analyze_counter_effect(self, economic_base: EconomicBase,
808
+ superstructure: Superstructure,
809
+ text_data: str) -> Dict:
810
+ """分析反作用"""
811
+
812
+ counter_effect_score = superstructure.counter_effect
813
+
814
+ # 反作用强度
815
+ if counter_effect_score >= 7.0:
816
+ effect_intensity = "强反作用"
817
+ elif counter_effect_score >= 5.0:
818
+ effect_intensity = "中等反作用"
819
+ elif counter_effect_score >= 3.0:
820
+ effect_intensity = "弱反作用"
821
+ else:
822
+ effect_intensity = "反作用不明显"
823
+
824
+ # 反作用方向
825
+ positive_indicators = ['促进', '推动', '助力', '支持', '积极']
826
+ negative_indicators = ['阻碍', '制约', '限制', '束缚', '消极']
827
+
828
+ keywords = jieba.analyse.extract_tags(text_data, topK=100, withWeight=True)
829
+
830
+ positive_score = sum(weight for word, weight in keywords if word in positive_indicators)
831
+ negative_score = sum(weight for word, weight in keywords if word in negative_indicators)
832
+
833
+ if positive_score > negative_score:
834
+ effect_direction = "积极促进作用"
835
+ elif negative_score > positive_score:
836
+ effect_direction = "消极阻碍作用"
837
+ else:
838
+ effect_direction = "中性影响作用"
839
+
840
+ return {
841
+ 'effect_intensity': effect_intensity,
842
+ 'effect_direction': effect_direction,
843
+ 'effect_score': counter_effect_score,
844
+ 'positive_score': positive_score,
845
+ 'negative_score': negative_score
846
+ }
847
+
848
+ def _assess_dialectical_unity(self, determining_role: Dict,
849
+ relative_independence: Dict,
850
+ counter_effect: Dict) -> Dict:
851
+ """评估辩证统一关系"""
852
+
853
+ # 计算统一性分数
854
+ determining_score = determining_role.get('determining_degree', 0)
855
+ independence_score = relative_independence.get('independence_score', 0)
856
+ effect_score = counter_effect.get('effect_score', 0)
857
+
858
+ # 理想情况下:决定作用7分 + 相对独立6分 + 反作用5分 = 较好平衡
859
+ ideal_determining = 7.0
860
+ ideal_independence = 6.0
861
+ ideal_effect = 5.0
862
+
863
+ # 计算偏离度
864
+ determining_deviation = abs(determining_score - ideal_determining)
865
+ independence_deviation = abs(independence_score - ideal_independence)
866
+ effect_deviation = abs(effect_score - ideal_effect)
867
+
868
+ # 统一性质量(偏离度越小越好)
869
+ total_deviation = determining_deviation + independence_deviation + effect_deviation
870
+ unity_quality = max(0, 10 - total_deviation / 3)
871
+
872
+ # 统一性水平
873
+ if unity_quality >= 8.0:
874
+ unity_level = "高度辩证统一"
875
+ elif unity_quality >= 6.0:
876
+ unity_level = "较好辩证统一"
877
+ elif unity_quality >= 4.0:
878
+ unity_level = "一般辩证统一"
879
+ else:
880
+ unity_level = "辩证统一不足"
881
+
882
+ return {
883
+ 'unity_level': unity_level,
884
+ 'unity_quality': unity_quality,
885
+ 'determining_score': determining_score,
886
+ 'independence_score': independence_score,
887
+ 'effect_score': effect_score,
888
+ 'total_deviation': total_deviation
889
+ }
890
+
891
+ def _assess_base_superstructure_quality(self, economic_base: EconomicBase,
892
+ superstructure: Superstructure,
893
+ dialectical_unity: Dict) -> Dict:
894
+ """评估经济基础-上层建筑分析质量"""
895
+
896
+ # 基础分析质量
897
+ forces_quality = (economic_base.productive_forces.technology_level +
898
+ economic_base.productive_forces.labor_productivity) / 2
899
+
900
+ # 上层建筑分析质量
901
+ superstructure_quality = (superstructure.relative_independence +
902
+ superstructure.counter_effect) / 2
903
+
904
+ # 辩证统一质量
905
+ unity_quality = dialectical_unity.get('unity_quality', 0)
906
+
907
+ # 综合质量分数
908
+ overall_quality = (forces_quality + superstructure_quality + unity_quality) / 3
909
+
910
+ return {
911
+ 'forces_quality': forces_quality,
912
+ 'superstructure_quality': superstructure_quality,
913
+ 'unity_quality': unity_quality,
914
+ 'overall_quality': overall_quality,
915
+ 'quality_level': self._determine_quality_level(overall_quality)
916
+ }
917
+
918
+ def _identify_social_formation(self, text_data: str, keywords: List[Tuple]) -> Dict:
919
+ """识别当前社会形态"""
920
+
921
+ formation_indicators = {
922
+ 'primitive_communism': ['原始', '氏族', '部落', '原始公社', '公有制', '平均分配'],
923
+ 'slave_society': ['奴隶', '奴隶制', '奴隶主', '奴隶社会', '强迫劳动'],
924
+ 'feudal_society': ['封建', '地主', '农民', '土地', '农奴', '封建社会'],
925
+ 'capitalist_society': ['资本', '资本主义', '资产阶级', '无产阶级', '市场经济'],
926
+ 'socialist_society': ['社会主义', '公有制', '按劳分配', '人民民主', '计划经济'],
927
+ 'communist_society': ['共产主义', '按需分配', '各尽所能', '自由人联合体']
928
+ }
929
+
930
+ formation_scores = {}
931
+ for formation, indicators in formation_indicators.items():
932
+ score = sum(weight for word, weight in keywords if word in indicators)
933
+ formation_scores[formation] = score
934
+
935
+ # 确定主要社会形态
936
+ primary_formation = max(formation_scores.items(), key=lambda x: x[1])[0]
937
+
938
+ # 映射到中文社会形态名称
939
+ formation_mapping = {
940
+ 'primitive_communism': '原始共产主义社会',
941
+ 'slave_society': '奴隶社会',
942
+ 'feudal_society': '封建社会',
943
+ 'capitalist_society': '资本主义社会',
944
+ 'socialist_society': '社会主义社会',
945
+ 'communist_society': '共产主义社会'
946
+ }
947
+
948
+ current_formation = formation_mapping.get(primary_formation, '未知社会形态')
949
+
950
+ # 计算识别置信度
951
+ max_score = formation_scores[primary_formation]
952
+ total_score = sum(formation_scores.values())
953
+ confidence = max_score / total_score if total_score > 0 else 0
954
+
955
+ return {
956
+ 'current_formation': current_formation,
957
+ 'formation_type': primary_formation,
958
+ 'confidence': confidence,
959
+ 'formation_scores': formation_scores
960
+ }
961
+
962
+ def _analyze_development_stage(self, text_data: str, keywords: List[Tuple]) -> Dict:
963
+ """分析发展阶段"""
964
+
965
+ stage_indicators = {
966
+ 'emergence': ['形成', '产生', '出现', '兴起', '起步', '初期'],
967
+ 'development': ['发展', '成长', '壮大', '扩展', '深化', '中期'],
968
+ 'maturity': ['成熟', '完善', '稳定', '高峰', '鼎盛', '成熟期'],
969
+ 'decline': ['衰落', '退化', '衰退', '下降', '萎缩', '后期'],
970
+ 'transformation': ['转型', '变革', '转变', '过渡', '转换', '变革期']
971
+ }
972
+
973
+ stage_scores = {}
974
+ for stage, indicators in stage_indicators.items():
975
+ score = sum(weight for word, weight in keywords if word in indicators)
976
+ stage_scores[stage] = score
977
+
978
+ # 确定主要发展阶段
979
+ primary_stage = max(stage_scores.items(), key=lambda x: x[1])[0]
980
+
981
+ # 映射到中文阶段名称
982
+ stage_mapping = {
983
+ 'emergence': '形成阶段',
984
+ 'development': '发展阶段',
985
+ 'maturity': '成熟阶段',
986
+ 'decline': '衰落阶段',
987
+ 'transformation': '转型阶段'
988
+ }
989
+
990
+ current_stage = stage_mapping.get(primary_stage, '未知阶段')
991
+
992
+ return {
993
+ 'current_stage': current_stage,
994
+ 'stage_type': primary_stage,
995
+ 'stage_scores': stage_scores
996
+ }
997
+
998
+ def _identify_primary_contradiction(self, text_data: str, keywords: List[Tuple]) -> SocialContradiction:
999
+ """识别主要矛盾"""
1000
+
1001
+ contradiction_indicators = {
1002
+ 'productivity_relations': ['生产力', '生产关系', '矛盾', '冲突', '不适应'],
1003
+ 'economic_base_superstructure': ['经济基础', '上层建筑', '矛盾', '冲突', '不协调'],
1004
+ 'class_contradiction': ['阶级', '矛盾', '斗争', '对立', '冲突'],
1005
+ 'social_contradiction': ['社会', '矛盾', '问题', '挑战', '困境']
1006
+ }
1007
+
1008
+ contradiction_scores = {}
1009
+ for contradiction, indicators in contradiction_indicators.items():
1010
+ score = sum(weight for word, weight in keywords if word in indicators)
1011
+ contradiction_scores[contradiction] = score
1012
+
1013
+ # 确定主要矛盾
1014
+ primary_contradiction = max(contradiction_scores.items(), key=lambda x: x[1])[0]
1015
+
1016
+ # 识别次要矛盾
1017
+ secondary_contradictions = [contr for contr, score in contradiction_scores.items()
1018
+ if score > 0 and contr != primary_contradiction]
1019
+
1020
+ # 计算矛盾强度
1021
+ contradiction_intensity = contradiction_scores[primary_contradiction]
1022
+
1023
+ # 判断发展阶段
1024
+ if contradiction_intensity >= 8.0:
1025
+ development_stage = "激化阶段"
1026
+ elif contradiction_intensity >= 5.0:
1027
+ development_stage = "发展阶段"
1028
+ elif contradiction_intensity >= 2.0:
1029
+ development_stage = "显现阶段"
1030
+ else:
1031
+ development_stage = "潜在阶段"
1032
+
1033
+ # 判断解决趋势
1034
+ resolution_indicators = ['解决', '处理', '化解', '克服', '改革', '调整']
1035
+ resolution_score = sum(weight for word, weight in keywords if word in resolution_indicators)
1036
+
1037
+ if resolution_score >= 5.0:
1038
+ resolution_tendency = "有望解决"
1039
+ elif resolution_score >= 2.0:
1040
+ resolution_tendency = "正在解决"
1041
+ else:
1042
+ resolution_tendency = "亟待解决"
1043
+
1044
+ return SocialContradiction(
1045
+ primary_contradiction=primary_contradiction,
1046
+ secondary_contradictions=secondary_contradictions,
1047
+ contradiction_intensity=contradiction_intensity,
1048
+ development_stage=development_stage,
1049
+ resolution_tendency=resolution_tendency
1050
+ )
1051
+
1052
+ def _analyze_historical_necessity(self, text_data: str, keywords: List[Tuple]) -> Dict:
1053
+ """分析历史必然性"""
1054
+
1055
+ necessity_indicators = self.social_development_vocabulary['necessity_indicators']
1056
+
1057
+ necessity_score = sum(weight for word, weight in keywords if word in necessity_indicators)
1058
+
1059
+ # 必然性水平
1060
+ if necessity_score >= 8.0:
1061
+ necessity_level = "历史必然性强"
1062
+ elif necessity_score >= 5.0:
1063
+ necessity_level = "历史必然性较强"
1064
+ elif necessity_score >= 2.0:
1065
+ necessity_level = "具有一定历史必然性"
1066
+ else:
1067
+ necessity_level = "历史必然性不明显"
1068
+
1069
+ # 必然性特征
1070
+ necessity_features = []
1071
+ if necessity_score >= 5.0:
1072
+ necessity_features.append("符合客观规律")
1073
+ if necessity_score >= 7.0:
1074
+ necessity_features.append("具有历史趋势性")
1075
+
1076
+ return {
1077
+ 'necessity_level': necessity_level,
1078
+ 'necessity_score': necessity_score,
1079
+ 'necessity_features': necessity_features
1080
+ }
1081
+
1082
+ def _analyze_development_diversity(self, text_data: str, keywords: List[Tuple]) -> Dict:
1083
+ """分析发展道路多样性"""
1084
+
1085
+ diversity_indicators = self.social_development_vocabulary['diversity_indicators']
1086
+
1087
+ diversity_score = sum(weight for word, weight in keywords if word in diversity_indicators)
1088
+
1089
+ # 多样性水平
1090
+ if diversity_score >= 8.0:
1091
+ diversity_level = "高度多样性"
1092
+ elif diversity_score >= 5.0:
1093
+ diversity_level = "较高多样性"
1094
+ elif diversity_score >= 2.0:
1095
+ diversity_level = "一定多样性"
1096
+ else:
1097
+ diversity_level = "多样性不足"
1098
+
1099
+ # 多样性特征
1100
+ diversity_features = []
1101
+ if diversity_score >= 5.0:
1102
+ diversity_features.append("体现普遍性与特殊性统一")
1103
+ if diversity_score >= 7.0:
1104
+ diversity_features.append("具有本国特色")
1105
+
1106
+ return {
1107
+ 'diversity_level': diversity_level,
1108
+ 'diversity_score': diversity_score,
1109
+ 'diversity_features': diversity_features
1110
+ }
1111
+
1112
+ def _analyze_people_historical_role(self, text_data: str, keywords: List[Tuple]) -> Dict:
1113
+ """分析人民群众历史作用"""
1114
+
1115
+ people_role_indicators = self.social_development_vocabulary['people_role_indicators']
1116
+
1117
+ people_role_score = sum(weight for word, weight in keywords if word in people_role_indicators)
1118
+
1119
+ # 人民群众作用水平
1120
+ if people_role_score >= 8.0:
1121
+ role_level = "人民主体作用突出"
1122
+ elif people_role_score >= 5.0:
1123
+ role_level = "人民主体作用明显"
1124
+ elif people_role_score >= 2.0:
1125
+ role_level = "体现人民主体作用"
1126
+ else:
1127
+ role_level = "人民主体作用不明显"
1128
+
1129
+ # 作用特征
1130
+ role_features = []
1131
+ if people_role_score >= 5.0:
1132
+ role_features.append("人民群众是历史创造者")
1133
+ if people_role_score >= 7.0:
1134
+ role_features.append("发挥人民首创精神")
1135
+
1136
+ return {
1137
+ 'role_level': role_level,
1138
+ 'role_score': people_role_score,
1139
+ 'role_features': role_features
1140
+ }
1141
+
1142
+ def _assess_formation_quality(self, current_formation: Dict,
1143
+ development_stage: Dict,
1144
+ historical_necessity: Dict) -> Dict:
1145
+ """评估社会形态分析质量"""
1146
+
1147
+ # 形态识别质量
1148
+ formation_confidence = current_formation.get('confidence', 0)
1149
+ formation_quality = formation_confidence * 10
1150
+
1151
+ # 发展阶段分析质量
1152
+ stage_scores = development_stage.get('stage_scores', {})
1153
+ max_stage_score = max(stage_scores.values()) if stage_scores else 0
1154
+ stage_quality = min(max_stage_score, 10.0)
1155
+
1156
+ # 历史必然性分析质量
1157
+ necessity_quality = historical_necessity.get('necessity_score', 0)
1158
+ necessity_quality = min(necessity_quality, 10.0)
1159
+
1160
+ # 综合质量分数
1161
+ overall_quality = (formation_quality + stage_quality + necessity_quality) / 3
1162
+
1163
+ return {
1164
+ 'formation_quality': formation_quality,
1165
+ 'stage_quality': stage_quality,
1166
+ 'necessity_quality': necessity_quality,
1167
+ 'overall_quality': overall_quality,
1168
+ 'quality_level': self._determine_quality_level(overall_quality)
1169
+ }
1170
+
1171
+ def _analyze_historical_materialism_connections(self, contradiction_analysis: Dict,
1172
+ base_superstructure_analysis: Dict,
1173
+ formation_analysis: Dict) -> Dict:
1174
+ """分析历史唯物主义内在联系"""
1175
+
1176
+ # 生产力-生产关系矛盾与经济基础-上层建筑的关系
1177
+ contradiction_base_relation = self._analyze_contradiction_base_relation(
1178
+ contradiction_analysis, base_superstructure_analysis
1179
+ )
1180
+
1181
+ # 经济基础-上层建筑与社会形态发展的关系
1182
+ base_formation_relation = self._analyze_base_formation_relation(
1183
+ base_superstructure_analysis, formation_analysis
1184
+ )
1185
+
1186
+ # 矛盾运动与社会形态变革的关系
1187
+ contradiction_formation_relation = self._analyze_contradiction_formation_relation(
1188
+ contradiction_analysis, formation_analysis
1189
+ )
1190
+
1191
+ return {
1192
+ 'contradiction_base_relation': contradiction_base_relation,
1193
+ 'base_formation_relation': base_formation_relation,
1194
+ 'contradiction_formation_relation': contradiction_formation_relation,
1195
+ 'overall_coherence': self._assess_historical_coherence(
1196
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
1197
+ )
1198
+ }
1199
+
1200
+ def _analyze_contradiction_base_relation(self, contradiction_analysis: Dict,
1201
+ base_superstructure_analysis: Dict) -> Dict:
1202
+ """分析矛盾运动与基础-建筑关系"""
1203
+
1204
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1205
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1206
+
1207
+ relation_strength = (contradiction_quality + base_quality) / 2
1208
+
1209
+ return {
1210
+ 'relation_strength': relation_strength,
1211
+ 'relation_description': '生产力-生产关系矛盾决定经济基础-上层建筑关系',
1212
+ 'relation_quality': self._assess_relation_quality(relation_strength)
1213
+ }
1214
+
1215
+ def _analyze_base_formation_relation(self, base_superstructure_analysis: Dict,
1216
+ formation_analysis: Dict) -> Dict:
1217
+ """分析基础-建筑关系与社会形态发展"""
1218
+
1219
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1220
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1221
+
1222
+ relation_strength = (base_quality + formation_quality) / 2
1223
+
1224
+ return {
1225
+ 'relation_strength': relation_strength,
1226
+ 'relation_description': '经济基础-上层建筑关系决定社会形态性质',
1227
+ 'relation_quality': self._assess_relation_quality(relation_strength)
1228
+ }
1229
+
1230
+ def _analyze_contradiction_formation_relation(self, contradiction_analysis: Dict,
1231
+ formation_analysis: Dict) -> Dict:
1232
+ """分析矛盾运动与社会形态变革"""
1233
+
1234
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1235
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1236
+
1237
+ relation_strength = (contradiction_quality + formation_quality) / 2
1238
+
1239
+ return {
1240
+ 'relation_strength': relation_strength,
1241
+ 'relation_description': '矛盾运动推动社会形态变革发展',
1242
+ 'relation_quality': self._assess_relation_quality(relation_strength)
1243
+ }
1244
+
1245
+ def _assess_relation_quality(self, strength: float) -> str:
1246
+ """评估关系质量"""
1247
+ if strength >= 8.0:
1248
+ return "高度协调"
1249
+ elif strength >= 6.0:
1250
+ return "较好协调"
1251
+ elif strength >= 4.0:
1252
+ return "一般协调"
1253
+ else:
1254
+ return "协调不足"
1255
+
1256
+ def _assess_historical_coherence(self, contradiction_analysis: Dict,
1257
+ base_superstructure_analysis: Dict,
1258
+ formation_analysis: Dict) -> Dict:
1259
+ """评估历史唯物主义整体协调性"""
1260
+
1261
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1262
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1263
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1264
+
1265
+ overall_coherence = (contradiction_quality + base_quality + formation_quality) / 3
1266
+
1267
+ return {
1268
+ 'overall_coherence_score': overall_coherence,
1269
+ 'coherence_level': self._determine_coherence_level(overall_coherence),
1270
+ 'coherence_description': self._describe_historical_coherence(overall_coherence)
1271
+ }
1272
+
1273
+ def _determine_coherence_level(self, score: float) -> str:
1274
+ """确定协调性水平"""
1275
+ if score >= 8.0:
1276
+ return "高度协调"
1277
+ elif score >= 6.0:
1278
+ return "良好协调"
1279
+ elif score >= 4.0:
1280
+ return "一般协调"
1281
+ else:
1282
+ return "协调不足"
1283
+
1284
+ def _describe_historical_coherence(self, score: float) -> str:
1285
+ """描述历史唯物主义协调性"""
1286
+ if score >= 8.0:
1287
+ return "历史唯物主义三大分析高度统一,形成完整的理论分析体系"
1288
+ elif score >= 6.0:
1289
+ return "历史唯物主义三大分析基本协调,理论分析较为完整"
1290
+ elif score >= 4.0:
1291
+ return "历史唯物主义三大分析有一定协调,但需要进一步完善"
1292
+ else:
1293
+ return "历史唯物主义三大分析协调不足,理论分析需要系统性提升"
1294
+
1295
+ def _assess_overall_theoretical_level(self, contradiction_analysis: Dict,
1296
+ base_superstructure_analysis: Dict,
1297
+ formation_analysis: Dict) -> Dict:
1298
+ """评估整体理论水平"""
1299
+
1300
+ # 计算各分析模块的质量分数
1301
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1302
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1303
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1304
+
1305
+ # 计算整体水平
1306
+ overall_score = (contradiction_quality + base_quality + formation_quality) / 3
1307
+
1308
+ # 确定理论等级
1309
+ if overall_score >= 8.5:
1310
+ theoretical_level = "历史唯物主义理论大师级"
1311
+ elif overall_score >= 7.0:
1312
+ theoretical_level = "历史唯物主义理论专家级"
1313
+ elif overall_score >= 5.5:
1314
+ theoretical_level = "历史唯物主义理论熟练级"
1315
+ elif overall_score >= 4.0:
1316
+ theoretical_level = "历史唯物主义理论基础级"
1317
+ else:
1318
+ theoretical_level = "历史唯物主义理论入门级"
1319
+
1320
+ return {
1321
+ 'overall_score': overall_score,
1322
+ 'theoretical_level': theoretical_level,
1323
+ 'strengths': self._identify_theoretical_strengths(
1324
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
1325
+ ),
1326
+ 'weaknesses': self._identify_theoretical_weaknesses(
1327
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
1328
+ ),
1329
+ 'improvement_directions': self._suggest_theoretical_improvements(
1330
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
1331
+ )
1332
+ }
1333
+
1334
+ def _identify_theoretical_strengths(self, contradiction_analysis: Dict,
1335
+ base_superstructure_analysis: Dict,
1336
+ formation_analysis: Dict) -> List[str]:
1337
+ """识别理论分析优势"""
1338
+ strengths = []
1339
+
1340
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1341
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1342
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1343
+
1344
+ if contradiction_quality >= 7.0:
1345
+ strengths.append("生产力-生产关系矛盾分析能力强")
1346
+ if base_quality >= 7.0:
1347
+ strengths.append("经济基础-上层建筑关系分析能力强")
1348
+ if formation_quality >= 7.0:
1349
+ strengths.append("社会形态发展规律分析能力强")
1350
+
1351
+ return strengths
1352
+
1353
+ def _identify_theoretical_weaknesses(self, contradiction_analysis: Dict,
1354
+ base_superstructure_analysis: Dict,
1355
+ formation_analysis: Dict) -> List[str]:
1356
+ """识别理论分析不足"""
1357
+ weaknesses = []
1358
+
1359
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1360
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1361
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1362
+
1363
+ if contradiction_quality < 5.0:
1364
+ weaknesses.append("生产力-生产关系矛盾分析需要加强")
1365
+ if base_quality < 5.0:
1366
+ weaknesses.append("经济基础-上层建筑关系分析需要加强")
1367
+ if formation_quality < 5.0:
1368
+ weaknesses.append("社会形态发展规律分析需要加强")
1369
+
1370
+ return weaknesses
1371
+
1372
+ def _suggest_theoretical_improvements(self, contradiction_analysis: Dict,
1373
+ base_superstructure_analysis: Dict,
1374
+ formation_analysis: Dict) -> List[str]:
1375
+ """建议理论改进方向"""
1376
+ directions = []
1377
+
1378
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1379
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1380
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1381
+
1382
+ if contradiction_quality < 6.0:
1383
+ directions.append("深入学习生产力-生产关系矛盾运动规律")
1384
+ if base_quality < 6.0:
1385
+ directions.append("加强对经济基础-上层建筑辩证关系的理解")
1386
+ if formation_quality < 6.0:
1387
+ directions.append("提升对社会形态发展规律的认识")
1388
+
1389
+ # 综合建议
1390
+ avg_quality = (contradiction_quality + base_quality + formation_quality) / 3
1391
+ if avg_quality < 5.0:
1392
+ directions.append("系统学习历史唯物主义基本原理")
1393
+ elif avg_quality < 7.0:
1394
+ directions.append("加强历史唯物主义的实际应用训练")
1395
+
1396
+ return directions
1397
+
1398
+ def _generate_professional_recommendations(self, contradiction_analysis: Dict,
1399
+ base_superstructure_analysis: Dict,
1400
+ formation_analysis: Dict) -> List[str]:
1401
+ """生成专业建议"""
1402
+ recommendations = []
1403
+
1404
+ # 基于各分析模块结果生成建议
1405
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {}).get('overall_quality', 0)
1406
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {}).get('overall_quality', 0)
1407
+ formation_quality = formation_analysis.get('formation_quality', {}).get('overall_quality', 0)
1408
+
1409
+ if contradiction_quality >= 7.0:
1410
+ recommendations.append("生产力-生产关系矛盾分析能力优秀,继续保持理论深度")
1411
+ elif contradiction_quality >= 5.0:
1412
+ recommendations.append("生产力-生产关系矛盾分析能力良好,可加强矛盾转化分析")
1413
+ else:
1414
+ recommendations.append("重点加强对立统一规律在生产力-生产关系分析中的应用")
1415
+
1416
+ if base_quality >= 7.0:
1417
+ recommendations.append("经济基础-上层建筑关系分析能力优秀,继续保持")
1418
+ elif base_quality >= 5.0:
1419
+ recommendations.append("经济基础-上层建筑关系分析能力良好,可加强相对独立性分析")
1420
+ else:
1421
+ recommendations.append("重点学习经济基础决定作用和上层建筑相对独立性原理")
1422
+
1423
+ if formation_quality >= 7.0:
1424
+ recommendations.append("社会形态发展规律分析能力优秀,继续保持")
1425
+ elif formation_quality >= 5.0:
1426
+ recommendations.append("社会形态发展规律分析能力良好,可加强历史必然性分析")
1427
+ else:
1428
+ recommendations.append("重点学习社会形态更替的历史必然性和多样性统一")
1429
+
1430
+ # 综合建议
1431
+ overall_level = self._assess_overall_theoretical_level(
1432
+ contradiction_analysis, base_superstructure_analysis, formation_analysis
1433
+ )
1434
+ overall_score = overall_level.get('overall_score', 0)
1435
+
1436
+ if overall_score >= 7.0:
1437
+ recommendations.append("历史唯物主义理论整体水平较高,建议在复杂社会分析中进一步应用")
1438
+ elif overall_score >= 5.0:
1439
+ recommendations.append("历史唯物主义理论基础良好,建议加强系统性训练")
1440
+ else:
1441
+ recommendations.append("建议系统学习历史唯物主义基本原理,打好理论基础")
1442
+
1443
+ return recommendations
1444
+
1445
+ def _determine_quality_level(self, score: float) -> str:
1446
+ """确定质量等级"""
1447
+ if score >= 8.0:
1448
+ return "优秀"
1449
+ elif score >= 6.0:
1450
+ return "良好"
1451
+ elif score >= 4.0:
1452
+ return "一般"
1453
+ else:
1454
+ return "需要改进"
1455
+
1456
+
1457
+ def main():
1458
+ """测试增强版历史唯物主义分析器"""
1459
+ analyzer = EnhancedHistoricalMaterialismAnalyzer()
1460
+
1461
+ test_text = """
1462
+ 在当代中国特色社会主义发展中,生产力水平显著提升,特别是数字经济和智能技术的快速发展,
1463
+ 推动了社会生产力的跨越式发展。生产资料所有制坚持公有制为主体、多种所有制经济共同发展,
1464
+ 劳动关系呈现多元化特点,分配制度坚持按劳分配为主体。
1465
+
1466
+ 经济基础的快速发展为上层建筑的完善提供了坚实物质基础。政治制度坚持社会主义民主政治,
1467
+ 法律体系日益完善,意识形态领域坚持马克思主义指导地位,文化事业繁荣发展。
1468
+ 上层建筑对经济基础发挥着重要的反作用,推动了经济社会的协调发展。
1469
+
1470
+ 当前社会主要矛盾已经转化为人民日益增长的美好生活需要和不平衡不充分的发展之间的矛盾。
1471
+ 社会主义初级阶段的基本国情没有改变,但发展阶段进入了新时代。社会发展的历史必然性
1472
+ 体现在中国特色社会主义道路的正确性上,同时体现了发展道路的多样性。人民群众在历史发展中
1473
+ 发挥着主体作用,是历史的创造者。
1474
+ """
1475
+
1476
+ print("=== 增强版历史唯物主义分析器测试 ===")
1477
+
1478
+ # 执行综合历史唯物主义分析
1479
+ result = analyzer.comprehensive_historical_materialism_analysis(test_text)
1480
+
1481
+ # 显示主要结果
1482
+ print("\n=== 生产力-生产关系矛盾运动分析 ===")
1483
+ contradiction_analysis = result['contradiction_analysis']
1484
+ contradiction_quality = contradiction_analysis.get('contradiction_quality', {})
1485
+ print(f"矛盾分析质量: {contradiction_quality.get('overall_quality', 0):.2f}")
1486
+ print(f"质量等级: {contradiction_quality.get('quality_level', '未知')}")
1487
+
1488
+ print("\n=== 经济基础-上层建筑辩证关系分析 ===")
1489
+ base_superstructure_analysis = result['base_superstructure_analysis']
1490
+ base_quality = base_superstructure_analysis.get('base_superstructure_quality', {})
1491
+ print(f"基础-建筑分析质量: {base_quality.get('overall_quality', 0):.2f}")
1492
+ print(f"质量等级: {base_quality.get('quality_level', '未知')}")
1493
+
1494
+ print("\n=== 社会形态发展规律分析 ===")
1495
+ formation_analysis = result['formation_analysis']
1496
+ formation_quality = formation_analysis.get('formation_quality', {})
1497
+ print(f"社会形态分析质量: {formation_quality.get('overall_quality', 0):.2f}")
1498
+ print(f"质量等级: {formation_quality.get('quality_level', '未知')}")
1499
+
1500
+ print("\n=== 整体理论水平 ===")
1501
+ overall_level = result['overall_theoretical_level']
1502
+ print(f"整体分数: {overall_level.get('overall_score', 0):.2f}")
1503
+ print(f"理论等级: {overall_level.get('theoretical_level', '未知')}")
1504
+
1505
+ strengths = overall_level.get('strengths', [])
1506
+ if strengths:
1507
+ print("理论优势:")
1508
+ for strength in strengths:
1509
+ print(f" - {strength}")
1510
+
1511
+ weaknesses = overall_level.get('weaknesses', [])
1512
+ if weaknesses:
1513
+ print("理论不足:")
1514
+ for weakness in weaknesses:
1515
+ print(f" - {weakness}")
1516
+
1517
+ recommendations = overall_level.get('improvement_directions', [])
1518
+ if recommendations:
1519
+ print("改进建议:")
1520
+ for recommendation in recommendations:
1521
+ print(f" - {recommendation}")
1522
+
1523
+
1524
+ if __name__ == "__main__":
1525
+ main()