ssci-subagent-skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +195 -0
- package/LICENSE +21 -0
- package/README.md +529 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_SUMMARY.md +618 -0
- package/agents/LITERATURE_EXPERT_INTEGRATION_UPDATE.md +284 -0
- package/agents/__pycache__/literature_expert_integration.cpython-312.pyc +0 -0
- package/agents/ant-expert-main.md +127 -0
- package/agents/ant-expert.md +301 -0
- package/agents/chinese-localization-expert.md +261 -0
- package/agents/core_engine.py +375 -0
- package/agents/digital-ecosystem-analyst/digital-ecosystem-analyst.py +507 -0
- package/agents/digital-marx-expert.md +373 -0
- package/agents/digital-transformation-ecosystem-analyst/digital-transformation-ecosystem-analyst.md +76 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_REALITY_VERIFIED.py +233 -0
- package/agents/digital-transformation-innovation-analyst/DATA_CONSTITUTION_SKILL_SPECIFICATION.md +357 -0
- package/agents/digital-transformation-innovation-analyst/README_AGENTSILLS_IO_STANDARD.md +418 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.md +469 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst.py +513 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.md +299 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION.py +342 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_DATA_CONSTITUTION_TDD.py +615 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_REAL_DATA_TDD.py +291 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_data_real_sources.py +468 -0
- package/agents/digital-transformation-innovation-analyst/digital-transformation-innovation-analyst_tdd.py +1126 -0
- package/agents/digital-transformation-innovation-analyst/digital_transformation_innovation-analyst.py +756 -0
- package/agents/digital-transformation-innovation-analyst/tdd_executor.py +203 -0
- package/agents/digital-transformation-innovation-analyst/tdd_runner.py +154 -0
- package/agents/field-analysis-expert-main.md +129 -0
- package/agents/field-analysis-expert.md +231 -0
- package/agents/grounded-theory-agent-implementation.md +431 -0
- package/agents/grounded-theory-expert-v2.md +202 -0
- package/agents/grounded-theory-expert.md +309 -0
- package/agents/literature-expert-v2.md +489 -0
- package/agents/literature-expert.md +639 -0
- package/agents/literature_expert_integration.py +384 -0
- package/agents/references/actor-network-analysis.html +598 -0
- package/agents/references/ant-actor-identification.md +155 -0
- package/agents/references/ant-network-analysis.md +266 -0
- package/agents/references/ant-power-analysis.md +323 -0
- package/agents/references/ant-translation-process.md +185 -0
- package/agents/references/bourdieu-field-analysis.html +805 -0
- package/agents/references/business-ecosystem-analysis.html +598 -0
- package/agents/references/business-model-analysis-implementation-plan.md +199 -0
- package/agents/references/business-model-analysis-plan.md +217 -0
- package/agents/references/business-model-analysis.html +620 -0
- package/agents/references/business-model-coordinator.js +356 -0
- package/agents/references/business-model-expert-agent.js +204 -0
- package/agents/references/data-analysis.html +397 -0
- package/agents/references/did-analysis.html +591 -0
- package/agents/references/digital-durkheim.html +725 -0
- package/agents/references/digital-marx.html +460 -0
- package/agents/references/digital-weber.html +591 -0
- package/agents/references/field-boundary-identification.md +232 -0
- package/agents/references/field-capital-analysis.md +268 -0
- package/agents/references/grounded-theory.html +731 -0
- package/agents/references/msqca-analysis.html +589 -0
- package/agents/references/research-design.html +394 -0
- package/agents/references/social-network-analysis.html +590 -0
- package/agents/references/survey-design.html +577 -0
- package/agents/sna-expert.md +348 -0
- package/common/dependency_config.py +96 -0
- package/common/dependency_manager.py +175 -0
- package/common/smart_dependency_manager.py +331 -0
- package/package.json +81 -0
- package/scripts/postinstall.js +147 -0
- package/scripts/validate-skills.js +209 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill +0 -0
- package/skills/2025_12_21_cnki-downloader.skill.install/cnki-downloader.skill.install.md +114 -0
- package/skills/COMPLIANCE_REPORT.md +122 -0
- package/skills/INTEGRATION_PLAN.md +405 -0
- package/skills/QWEN.md +230 -0
- package/skills/SKILLS_APPLICATION_MAPPING.md +155 -0
- package/skills/__init__.py +7 -0
- package/skills/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/SKILL.md +195 -0
- package/skills/alienation-analysis/__init__.py +8 -0
- package/skills/alienation-analysis/prompts/core-analysis-framework.md +88 -0
- package/skills/alienation-analysis/prompts/specialized-alienation-analysis.md +190 -0
- package/skills/alienation-analysis/pyproject.toml +36 -0
- package/skills/alienation-analysis/scripts/__init__.py +8 -0
- package/skills/alienation-analysis/scripts/__pycache__/alienation_analysis_engine.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/career_development_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/classify_alienation_types.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/consumer_behavior_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/core_analyzer.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/digital_wellbeing_evaluation.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/generate_intervention_plan.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/materialism_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/relationship_quality_assessment.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/social_network_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/technology_dependency_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/__pycache__/workplace_satisfaction_analysis.cpython-312.pyc +0 -0
- package/skills/alienation-analysis/scripts/alienation_analysis_engine.py +597 -0
- package/skills/alienation-analysis/scripts/career_development_evaluation.py +512 -0
- package/skills/alienation-analysis/scripts/classify_alienation_types.py +357 -0
- package/skills/alienation-analysis/scripts/consumer_behavior_analysis.py +643 -0
- package/skills/alienation-analysis/scripts/core_analyzer.py +571 -0
- package/skills/alienation-analysis/scripts/digital_wellbeing_evaluation.py +597 -0
- package/skills/alienation-analysis/scripts/generate_intervention_plan.py +358 -0
- package/skills/alienation-analysis/scripts/materialism_assessment.py +528 -0
- package/skills/alienation-analysis/scripts/relationship_quality_assessment.py +621 -0
- package/skills/alienation-analysis/scripts/social_network_analysis.py +802 -0
- package/skills/alienation-analysis/scripts/technology_dependency_analysis.py +534 -0
- package/skills/alienation-analysis/scripts/workplace_satisfaction_analysis.py +340 -0
- package/skills/alienation_analysis/SKILL.md +291 -0
- package/skills/alienation_analysis/__init__.py +1 -0
- package/skills/alienation_analysis/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/alienation_analysis/scripts/__init__.py +1 -0
- package/skills/alienation_analysis/scripts/__pycache__/__init__.cpython-312.pyc +0 -0
- package/skills/ant/SKILL.md +139 -0
- package/skills/ant/pyproject.toml +36 -0
- package/skills/ant/scripts/ant_analysis_with_fallback.py +383 -0
- package/skills/ant-expert/SKILL.md +182 -0
- package/skills/ant-expert/integration_with_trusted_scraper.md +115 -0
- package/skills/ant-expert/modules/__pycache__/network_analysis.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/participant_identification.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/__pycache__/translation_process.cpython-312.pyc +0 -0
- package/skills/ant-expert/modules/network_analysis.py +253 -0
- package/skills/ant-expert/modules/participant_identification.py +325 -0
- package/skills/ant-expert/modules/translation_process.py +283 -0
- package/skills/ant-expert/pyproject.toml +27 -0
- package/skills/ant-expert/scripts/ant_expert_analyzer.py +146 -0
- package/skills/ant-expert/test_input.json +82 -0
- package/skills/ant-expert/test_output.json +728 -0
- package/skills/ant-network-analysis/SKILL.md +132 -0
- package/skills/ant-participant-identification/SKILL.md +140 -0
- package/skills/ant-participant-identification/pyproject.toml +35 -0
- package/skills/ant-participant-identification/scripts/identify_participants.py +318 -0
- package/skills/ant-subagent/SKILL.md +60 -0
- package/skills/ant-subagent/modules/network_analysis.py +146 -0
- package/skills/ant-subagent/pyproject.toml +16 -0
- package/skills/ant-translation-process/SKILL.md +144 -0
- package/skills/ant-translation-process/pyproject.toml +35 -0
- package/skills/ant-translation-process/scripts/trace_translation.py +370 -0
- package/skills/ant_relationship_analysis.md +157 -0
- package/skills/arxiv-paper-search/ARXIV_SKILL_COMPLETION_REPORT.md +449 -0
- package/skills/arxiv-paper-search/DEPENDENCY_OPTIMIZATION.md +355 -0
- package/skills/arxiv-paper-search/OPTIMIZATION_SUMMARY.md +213 -0
- package/skills/arxiv-paper-search/README.md +90 -0
- package/skills/arxiv-paper-search/SKILL.md +321 -0
- package/skills/arxiv-paper-search/pyproject.toml +29 -0
- package/skills/arxiv-paper-search/references/ADVANCED_USAGE.md +587 -0
- package/skills/arxiv-paper-search/references/API_REFERENCE.md +350 -0
- package/skills/arxiv-paper-search/references/ARXIV_CATEGORIES.md +249 -0
- package/skills/arxiv-paper-search/references/USER_GUIDE.md +349 -0
- package/skills/arxiv-paper-search/requirements.txt +13 -0
- package/skills/arxiv-paper-search/scripts/__pycache__/arxiv_searcher.cpython-312.pyc +0 -0
- package/skills/arxiv-paper-search/scripts/arxiv_searcher.py +439 -0
- package/skills/arxiv-paper-search/scripts/test_arxiv_searcher.py +307 -0
- package/skills/arxiv-paper-search/test_abstracts.json +461 -0
- package/skills/arxiv-paper-search/test_batch_papers/2009.00804v2_Architectural_Implications_of_.pdf +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2201.00978v1_PyramidTNT +0 -0
- package/skills/arxiv-paper-search/test_batch_papers/2207.13219v4_Dalorex +0 -0
- package/skills/arxiv-paper-search/test_papers/1706.03762.pdf +0 -0
- package/skills/arxiv-paper-search/test_papers.csv +11 -0
- package/skills/best_practices.md +271 -0
- package/skills/business-ecosystem-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-ecosystem-data-collection/FreeDataCrawler.js +472 -0
- package/skills/business-ecosystem-data-collection/INFO.md +68 -0
- package/skills/business-ecosystem-data-collection/SKILL.md +118 -0
- package/skills/business-ecosystem-data-collection/algorithms/data_validation.py +44 -0
- package/skills/business-ecosystem-data-collection/algorithms/entity_recognition.py +53 -0
- package/skills/business-ecosystem-data-collection/algorithms/relationship_mapping.py +44 -0
- package/skills/business-ecosystem-data-collection/config.json +10 -0
- package/skills/business-ecosystem-data-collection/e2e-test.js +81 -0
- package/skills/business-ecosystem-data-collection/package-lock.json +433 -0
- package/skills/business-ecosystem-data-collection/package.json +21 -0
- package/skills/business-ecosystem-data-collection/references/data-collection-strategies.md +18 -0
- package/skills/business-ecosystem-data-collection/references/data-validation.md +22 -0
- package/skills/business-ecosystem-data-collection/references/entity-recognition.md +16 -0
- package/skills/business-ecosystem-data-collection/references/relationship-mapping.md +16 -0
- package/skills/business-ecosystem-data-collection/scripts/ecosystem_data_collector.py +103 -0
- package/skills/business-ecosystem-data-collection/skill.js +1383 -0
- package/skills/business-ecosystem-data-collection/skill.json +191 -0
- package/skills/business-ecosystem-data-collection/test.js +304 -0
- package/skills/business-ecosystem-data-collection/test_context.json +16 -0
- package/skills/business-model-analysis/INFO.md +65 -0
- package/skills/business-model-analysis/SKILL.md +208 -0
- package/skills/business-model-analysis/e2e-test.js +111 -0
- package/skills/business-model-analysis/integration_with_trusted_scraper.md +97 -0
- package/skills/business-model-analysis/package.json +23 -0
- package/skills/business-model-analysis/skill.js +1779 -0
- package/skills/business-model-analysis/skill.json +175 -0
- package/skills/business-model-analysis/test.js +202 -0
- package/skills/business-model-canvas-analysis/INFO.md +68 -0
- package/skills/business-model-canvas-analysis/README.md +53 -0
- package/skills/business-model-canvas-analysis/SKILL.md +215 -0
- package/skills/business-model-canvas-analysis/prompts.txt +70 -0
- package/skills/business-model-canvas-analysis/reference.md +101 -0
- package/skills/business-model-canvas-analysis/skill.js +675 -0
- package/skills/business-model-canvas-analysis/skill.json +47 -0
- package/skills/business-service-supply-analysis/INFO.md +28 -0
- package/skills/business-service-supply-analysis/SKILL.md +300 -0
- package/skills/business-service-supply-analysis/skill.js +1319 -0
- package/skills/business-service-supply-analysis/skill.json +233 -0
- package/skills/capital-analysis/INFO.md +80 -0
- package/skills/capital-analysis/README.md +65 -0
- package/skills/capital-analysis/SKILL.md +367 -0
- package/skills/capital-analysis/prompts.txt +103 -0
- package/skills/capital-analysis/reference.md +132 -0
- package/skills/capital-analysis/skill.js +739 -0
- package/skills/capital-analysis/skill.json +268 -0
- package/skills/checking-theory-saturation/SKILL.md +280 -0
- package/skills/checking-theory-saturation/pyproject.toml +17 -0
- package/skills/checking-theory-saturation/references/README.md +54 -0
- package/skills/checking-theory-saturation/scripts/__pycache__/assess_saturation.cpython-312.pyc +0 -0
- package/skills/checking-theory-saturation/scripts/assess_saturation.py +296 -0
- package/skills/checking-theory-saturation/tests/__pycache__/test_assess_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/checking-theory-saturation/tests/test_assess_saturation.py +194 -0
- package/skills/class-structure-analysis/SKILL.md +211 -0
- package/skills/competitive-analysis/INFO.md +77 -0
- package/skills/competitive-analysis/README.md +61 -0
- package/skills/competitive-analysis/SKILL.md +357 -0
- package/skills/competitive-analysis/prompts.txt +117 -0
- package/skills/competitive-analysis/reference.md +206 -0
- package/skills/competitive-analysis/skill.js +1166 -0
- package/skills/competitive-analysis/skill.json +219 -0
- package/skills/conflict-resolution/SKILL.md +124 -0
- package/skills/conflict-resolution/conflict-resolution-skill.md +628 -0
- package/skills/data-analysis/SKILL.md +73 -0
- package/skills/data-analysis/prompts/data-cleaning-outline.md +355 -0
- package/skills/data-analysis/prompts/data-cleaning.md +40 -0
- package/skills/data-analysis/prompts/data-understanding-outline.md +243 -0
- package/skills/data-analysis/prompts/data-understanding.md +43 -0
- package/skills/data-analysis/prompts/exploratory-analysis-outline.md +316 -0
- package/skills/data-analysis/prompts/exploratory-analysis.md +40 -0
- package/skills/data-analysis/prompts/modeling-strategy.md +40 -0
- package/skills/data-analysis/pyproject.toml +39 -0
- package/skills/dependency_management.md +46 -0
- package/skills/dialectical-quantitative-synthesis/SKILL.md +239 -0
- package/skills/did-analysis/SKILL.md +239 -0
- package/skills/did-analysis/prompts/causal-interpretation.md +245 -0
- package/skills/did-analysis/prompts/experimental-design.md +260 -0
- package/skills/did-analysis/prompts/model-specification.md +242 -0
- package/skills/did-analysis/prompts/policy-recommendation.md +253 -0
- package/skills/did-analysis/pyproject.toml +35 -0
- package/skills/did-analysis/references/BEST_PRACTICES.md +553 -0
- package/skills/did-analysis/scripts/__pycache__/did_estimator.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/integrated_did.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/parallel_trend.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/robustness_test.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/__pycache__/visualization.cpython-312.pyc +0 -0
- package/skills/did-analysis/scripts/did_estimator.py +553 -0
- package/skills/did-analysis/scripts/integrated_did.py +867 -0
- package/skills/did-analysis/scripts/parallel_trend.py +473 -0
- package/skills/did-analysis/scripts/parallel_trend_plot.png +0 -0
- package/skills/did-analysis/scripts/parallel_trend_test.png +0 -0
- package/skills/did-analysis/scripts/placebo_test_distribution.png +0 -0
- package/skills/did-analysis/scripts/robustness_test.py +633 -0
- package/skills/did-analysis/scripts/test_integration.py +253 -0
- package/skills/did-analysis/scripts/visualization.py +539 -0
- package/skills/digital-durkheim/SKILL.md +114 -0
- package/skills/digital-durkheim/prompts/collective-consciousness.md +127 -0
- package/skills/digital-durkheim/prompts/functional-analysis.md +127 -0
- package/skills/digital-durkheim/prompts/social-fact-identification.md +128 -0
- package/skills/digital-durkheim/prompts/social-solidarity.md +134 -0
- package/skills/digital-durkheim/pyproject.toml +36 -0
- package/skills/digital-durkheim/scripts/__pycache__/integrated_durkheim_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/__pycache__/social_fact_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-durkheim/scripts/durkheim_analysis_results.json +226 -0
- package/skills/digital-durkheim/scripts/integrated_durkheim_analyzer.py +540 -0
- package/skills/digital-durkheim/scripts/social_fact_analyzer.py +712 -0
- package/skills/digital-durkheim/test_integration.py +226 -0
- package/skills/digital-marx/README.md +215 -0
- package/skills/digital-marx/SHORT_TERM_IMPLEMENTATION_REPORT.md +183 -0
- package/skills/digital-marx/SKILL.md +189 -0
- package/skills/digital-marx/THEORETICAL_ACCURACY_ANALYSIS.md +278 -0
- package/skills/digital-marx/prompts/material-base-analysis.md +113 -0
- package/skills/digital-marx/prompts/production-relations-analysis.md +113 -0
- package/skills/digital-marx/prompts/social-change-prediction.md +112 -0
- package/skills/digital-marx/prompts/superstructure-analysis.md +112 -0
- package/skills/digital-marx/pyproject.toml +37 -0
- package/skills/digital-marx/scripts/__pycache__/dialectical_thinking_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/enhanced_historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/__pycache__/historical_materialism_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-marx/scripts/basic_quality_detector.py +760 -0
- package/skills/digital-marx/scripts/dialectical_thinking_analyzer.py +1601 -0
- package/skills/digital-marx/scripts/enhanced_historical_materialism_analyzer.py +1525 -0
- package/skills/digital-marx/scripts/historical_materialism_analyzer.py +963 -0
- package/skills/digital-marx/scripts/integrated_marx_analyzer.py +932 -0
- package/skills/digital-marx/scripts/marxist_theory_validator.py +1192 -0
- package/skills/digital-marx/scripts/quality_validator.py +890 -0
- package/skills/digital-marx-expert/SKILL.md +179 -0
- package/skills/digital-marx-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/class_analysis.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/__pycache__/historical_materialism.cpython-312.pyc +0 -0
- package/skills/digital-marx-expert/modules/capital_analysis.py +611 -0
- package/skills/digital-marx-expert/modules/class_analysis.py +836 -0
- package/skills/digital-marx-expert/modules/historical_materialism.py +435 -0
- package/skills/digital-marx-expert/pyproject.toml +29 -0
- package/skills/digital-marx-expert/scripts/digital_marx_expert_analyzer.py +189 -0
- package/skills/digital-marx-expert/test_input.json +100 -0
- package/skills/digital-marx-expert/test_output.json +588 -0
- package/skills/digital-transformation/business-innovation-pathway-planning.SKILL.md +102 -0
- package/skills/digital-transformation/business-model-reconstruction.SKILL.md +88 -0
- package/skills/digital-transformation/business-scene-deconstruction-analysis.SKILL.md +131 -0
- package/skills/digital-transformation/config.json +16 -0
- package/skills/digital-transformation/config_host_llm.json +311 -0
- package/skills/digital-transformation/config_llm.json +297 -0
- package/skills/digital-transformation/digitization-deconstruction-analysis.SKILL.md +84 -0
- package/skills/digital-transformation/innovation-niche-identification.SKILL.md +78 -0
- package/skills/digital-transformation/intelligent-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/online-transformation-deconstruction-analysis.SKILL.md +110 -0
- package/skills/digital-transformation/scripts/data_integrator.py +637 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer.py +800 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_agentskills_io.py +1677 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_cli.py +834 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_host_llm.py +1026 -0
- package/skills/digital-transformation/scripts/digital_transformation_analyzer_llm.py +957 -0
- package/skills/digital-transformation/scripts/host_cli_interface.py +531 -0
- package/skills/digital-transformation/scripts/llm_client.py +662 -0
- package/skills/digital-transformation/scripts/skill_executor.py +527 -0
- package/skills/digital-transformation/scripts/transformation_visualizer.py +946 -0
- package/skills/digital-transformation/test_context.json +6 -0
- package/skills/digital-transformation/tests/test_digital_transformation.py +844 -0
- package/skills/digital-weber/SKILL.md +88 -0
- package/skills/digital-weber/prompts/comparative-research.md +155 -0
- package/skills/digital-weber/prompts/institutional-analysis.md +147 -0
- package/skills/digital-weber/prompts/theoretical-interpretation.md +102 -0
- package/skills/digital-weber/prompts/understanding-analysis.md +129 -0
- package/skills/digital-weber/pyproject.toml +36 -0
- package/skills/digital-weber/scripts/__pycache__/integrated_weber_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/optimized_weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/__pycache__/weberian_analyzer.cpython-312.pyc +0 -0
- package/skills/digital-weber/scripts/enhanced_weberian_analyzer.py +531 -0
- package/skills/digital-weber/scripts/integrated_weber_analyzer.py +772 -0
- package/skills/digital-weber/scripts/optimized_weberian_analyzer.py +713 -0
- package/skills/digital-weber/scripts/weber_analysis_results.json +196 -0
- package/skills/digital-weber/scripts/weberian_analyzer.py +877 -0
- package/skills/digital-weber/simple_quality_test.py +204 -0
- package/skills/digital-weber/test_comprehensive.py +320 -0
- package/skills/digital-weber/test_quality_improvement.py +237 -0
- package/skills/dissent-resolution/SKILL.md +159 -0
- package/skills/ecosystem-analysis/analyzing-business-model-of-key-species.SKILL.md +31 -0
- package/skills/ecosystem-analysis/analyzing-digital-transformation-impact-on-business.SKILL.md +36 -0
- package/skills/ecosystem-analysis/assessing-ecosystem-impact-of-digital-transformation.SKILL.md +36 -0
- package/skills/ecosystem-analysis/config.json +15 -0
- package/skills/ecosystem-analysis/constructing-business-ecosystem-map.SKILL.md +31 -0
- package/skills/ecosystem-analysis/identifying-key-species-in-industry.SKILL.md +30 -0
- package/skills/ecosystem-analysis/performing-industry-ecosystem-analysis.SKILL.md +79 -0
- package/skills/ecosystem-analysis/references/industry-life-cycle.md +29 -0
- package/skills/ecosystem-analysis/references/value-chain-analysis.md +28 -0
- package/skills/ecosystem-analysis/scripts/business_ecosystem_analyzer.py +640 -0
- package/skills/ecosystem-analysis/scripts/data_collector.py +239 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_analysis.py +309 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_data_integrator.py +620 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_preprocessing.py +262 -0
- package/skills/ecosystem-analysis/scripts/ecosystem_visualizer.py +811 -0
- package/skills/ecosystem-analysis/test_context.json +6 -0
- package/skills/ecosystem-analysis/tests/test_ecosystem_analysis.py +1193 -0
- package/skills/ecosystem-relationship-analysis/INFO.md +28 -0
- package/skills/ecosystem-relationship-analysis/SKILL.md +147 -0
- package/skills/ecosystem-relationship-analysis/algorithms/community_detection.py +128 -0
- package/skills/ecosystem-relationship-analysis/algorithms/health_assessment.py +53 -0
- package/skills/ecosystem-relationship-analysis/algorithms/network_analysis.py +171 -0
- package/skills/ecosystem-relationship-analysis/config.json +10 -0
- package/skills/ecosystem-relationship-analysis/references/community-detection.md +24 -0
- package/skills/ecosystem-relationship-analysis/references/ecosystem-theory.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/health-assessment.md +23 -0
- package/skills/ecosystem-relationship-analysis/references/network-analysis-theory.md +19 -0
- package/skills/ecosystem-relationship-analysis/references/relationship-analysis.md +27 -0
- package/skills/ecosystem-relationship-analysis/scripts/ecosystem_relationship_analyzer.py +155 -0
- package/skills/ecosystem-relationship-analysis/skill.js +797 -0
- package/skills/ecosystem-relationship-analysis/skill.json +205 -0
- package/skills/field-analysis/SKILL.md +145 -0
- package/skills/field-boundary-identification/SKILL.md +156 -0
- package/skills/field-boundary-identification/pyproject.toml +36 -0
- package/skills/field-boundary-identification/scripts/identify_boundaries.py +326 -0
- package/skills/field-capital-analysis/SKILL.md +165 -0
- package/skills/field-expert/SKILL.md +409 -0
- package/skills/field-expert/WORKFLOW_SPEC.md +195 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/combined_input.json +247 -0
- package/skills/field-expert/field_analysis_workflow/input/processed/llm_input.json +76 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/01_boundary/boundary_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/02_capital/capital_results.json +5 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/03_habitus/habitus_results.json +120 -0
- package/skills/field-expert/field_analysis_workflow/intermediate/04_dynamics/dynamics_results.json +6 -0
- package/skills/field-expert/field_analysis_workflow/output/executive_summary.txt +35 -0
- package/skills/field-expert/field_analysis_workflow/output/json/comprehensive_analysis.json +180 -0
- package/skills/field-expert/field_analysis_workflow/output/reports/field_analysis_report.html +22 -0
- package/skills/field-expert/modules/__pycache__/boundary_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/capital_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/__pycache__/habitus_analysis.cpython-312.pyc +0 -0
- package/skills/field-expert/modules/boundary_analysis.py +234 -0
- package/skills/field-expert/modules/capital_analysis.py +407 -0
- package/skills/field-expert/modules/habitus_analysis.py +306 -0
- package/skills/field-expert/prompts/boundary_analysis.txt +56 -0
- package/skills/field-expert/prompts/boundary_analysis_simple.txt +17 -0
- package/skills/field-expert/prompts/capital_analysis.txt +87 -0
- package/skills/field-expert/prompts/dynamics_analysis.txt +89 -0
- package/skills/field-expert/prompts/habitus_analysis.txt +87 -0
- package/skills/field-expert/pyproject.toml +27 -0
- package/skills/field-expert/scripts/__pycache__/field_analysis_tool.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/__pycache__/prepare_data.cpython-312.pyc +0 -0
- package/skills/field-expert/scripts/debug_output.txt +4 -0
- package/skills/field-expert/scripts/debug_output_converted.txt +27 -0
- package/skills/field-expert/scripts/field_analysis_tool.py +536 -0
- package/skills/field-expert/scripts/field_expert_analyzer.py +136 -0
- package/skills/field-expert/scripts/generate_report.py +525 -0
- package/skills/field-expert/scripts/prepare_data.py +226 -0
- package/skills/field-expert/scripts/run_workflow.py +571 -0
- package/skills/field-expert/scripts/summarize_data.py +156 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213035_964505.txt +135 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213534_264265.txt +16 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_213932_601575.txt +22 -0
- package/skills/field-expert/scripts/temp_prompt_20260106_214330_241706.txt +15 -0
- package/skills/field-expert/scripts/test_host_llm.py +164 -0
- package/skills/field-expert/scripts/test_stigmergy_llm.py +91 -0
- package/skills/field-expert/test_input.json +168 -0
- package/skills/field-expert/test_output.json +724 -0
- package/skills/field-expert/workflow_spec.json +171 -0
- package/skills/field-habitus-analysis/SKILL.md +165 -0
- package/skills/fsqca-analysis/SKILL.md +71 -0
- package/skills/fsqca-analysis/assets/templates/report_template.md +122 -0
- package/skills/fsqca-analysis/comprehensive_test.py +573 -0
- package/skills/fsqca-analysis/comprehensive_test_report.json +207 -0
- package/skills/fsqca-analysis/comprehensive_test_report.md +35 -0
- package/skills/fsqca-analysis/fsqca_analysis_report.md +35 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance-outline.md +142 -0
- package/skills/fsqca-analysis/prompts/calibration-guidance.md +40 -0
- package/skills/fsqca-analysis/prompts/result-interpretation-outline.md +133 -0
- package/skills/fsqca-analysis/prompts/result-interpretation.md +45 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis-outline.md +75 -0
- package/skills/fsqca-analysis/prompts/theoretical-analysis.md +34 -0
- package/skills/fsqca-analysis/pyproject.toml +36 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES-outline.md +158 -0
- package/skills/fsqca-analysis/references/BEST_PRACTICES.md +39 -0
- package/skills/fsqca-analysis/references/METHODOLOGY-outline.md +103 -0
- package/skills/fsqca-analysis/references/METHODOLOGY.md +38 -0
- package/skills/fsqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/fsqca-analysis/scripts/calibration.py +540 -0
- package/skills/fsqca-analysis/scripts/integrated_analysis.py +651 -0
- package/skills/fsqca-analysis/scripts/minimization.py +536 -0
- package/skills/fsqca-analysis/scripts/truth_table.py +433 -0
- package/skills/fsqca-analysis/test_fsqca.py +199 -0
- package/skills/fusion_plan.md +232 -0
- package/skills/grounded-theory-expert/SKILL.md +180 -0
- package/skills/grounded-theory-expert/pyproject.toml +23 -0
- package/skills/grounded-theory-expert/scripts/gt_expert_analyzer.py +185 -0
- package/skills/grounded-theory-expert/stages/__pycache__/axial_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/open_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/__pycache__/selective_coding.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/stages/axial_coding.py +294 -0
- package/skills/grounded-theory-expert/stages/open_coding.py +245 -0
- package/skills/grounded-theory-expert/stages/selective_coding.py +410 -0
- package/skills/grounded-theory-expert/test_input.json +27 -0
- package/skills/grounded-theory-expert/test_output.json +874 -0
- package/skills/grounded-theory-expert/tests/sample-cases/hongloumeng.txt +91 -0
- package/skills/grounded-theory-expert/tests/sample-cases/sanguoyanyi_excerpts.txt +169 -0
- package/skills/grounded-theory-expert/tests/sample-cases/shuihuzhuan_excerpts.txt +216 -0
- package/skills/grounded-theory-expert/tests/sample-cases/xiyouji_excerpts.txt +100 -0
- package/skills/grounded-theory-expert/tests/sample-cases//345/233/233/345/244/247/345/220/215/350/221/227ANT/345/210/206/346/236/220/346/212/245/345/221/212.md +283 -0
- package/skills/grounded-theory-expert/tools/__pycache__/memo_writer.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/__pycache__/saturation_checker.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert/tools/memo_writer.py +512 -0
- package/skills/grounded-theory-expert/tools/saturation_checker.py +345 -0
- package/skills/grounded-theory-expert-enhanced/SKILL.md +218 -0
- package/skills/grounded-theory-expert-enhanced/docs/00_master_guide.md +276 -0
- package/skills/grounded-theory-expert-enhanced/docs/01_quick_start.md +59 -0
- package/skills/grounded-theory-expert-enhanced/docs/02_task_flow.md +464 -0
- package/skills/grounded-theory-expert-enhanced/docs/03_path/350/247/204/350/214/203.md +161 -0
- package/skills/grounded-theory-expert-enhanced/docs/04_html_report.md +340 -0
- package/skills/grounded-theory-expert-enhanced/docs/05_best_practices.md +322 -0
- package/skills/grounded-theory-expert-enhanced/docs/FLOW_GUIDE.md +280 -0
- package/skills/grounded-theory-expert-enhanced/docs/LLM/350/260/203/347/224/250/346/250/241/346/213/237/346/265/201/347/250/213.md +299 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/constructivist_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/localization_expert.md +66 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/phenomenological_expert.md +64 -0
- package/skills/grounded-theory-expert-enhanced/docs/experts/positivist_expert.md +67 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level1_prompts.md +174 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level2_prompts.md +176 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/level3_prompts.md +219 -0
- package/skills/grounded-theory-expert-enhanced/docs/prompts/preprocessing_prompts.md +120 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/quality_standards.md +166 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/reliability_methods.md +159 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/saturation_methods.md +193 -0
- package/skills/grounded-theory-expert-enhanced/docs/references/theory_construction.md +166 -0
- package/skills/grounded-theory-expert-enhanced/pyproject.toml +33 -0
- package/skills/grounded-theory-expert-enhanced/references/llm_integration_principles.md +56 -0
- package/skills/grounded-theory-expert-enhanced/scripts/preprocessing_script.py +191 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_axial_coding.py +146 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_open_coding.py +94 -0
- package/skills/grounded-theory-expert-enhanced/stages/enhanced_selective_coding.py +163 -0
- package/skills/grounded-theory-expert-enhanced/tools/.env.example +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/LLM_CONFIG_GUIDE.md +67 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/analysis_controller.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/host_cli_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/llm_expert_coder.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/project_structure.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/__pycache__/reliability_validator.cpython-312.pyc +0 -0
- package/skills/grounded-theory-expert-enhanced/tools/analysis_controller.py +2344 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_memo_writer.py +90 -0
- package/skills/grounded-theory-expert-enhanced/tools/enhanced_saturation_checker.py +216 -0
- package/skills/grounded-theory-expert-enhanced/tools/fix_dirs.py +48 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/00_raw_data/source_document.txt +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_cleaned/cleaned_text.txt +198 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/01_preprocessing/text_tokenized/tokenized_text.json +1099 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_1%/segment_text.txt +20 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_2%/segment_text.txt +21 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_10_3%/segment_text.txt +23 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segment_70%/segment_text.txt +135 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/hongloumeng_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/llm_expert_coder.py +469 -0
- package/skills/grounded-theory-expert-enhanced/tools/project_structure.py +1202 -0
- package/skills/grounded-theory-expert-enhanced/tools/reliability_validator.py +800 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/00_raw_data/source_document.txt +169 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_cleaned/cleaned_text.txt +200 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/01_preprocessing/text_tokenized/tokenized_text.json +1109 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_1%/segment_text.txt +22 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_2%/segment_text.txt +18 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_10_3%/segment_text.txt +24 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segment_70%/segment_text.txt +134 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/initial_concepts.json +242 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/open_coding_results.json +250 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_achievement/merged_concept_library.json +308 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/sanguoyanyi_project/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_claude.py +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_host_cli_coder.py +168 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/00_raw_data/source_document.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/preprocessing_report.json +15 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_cleaned/cleaned_text.txt +16 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/01_preprocessing/text_tokenized/tokenized_text.json +129 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_1%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_2%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_10_3%/segment_text.txt +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_info.json +8 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segment_70%/segment_text.txt +11 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/02_segmentation/segmentation_summary.json +34 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_constructivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_localization/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_phenomenological/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/initial_concepts.json +218 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/open_coding_results.json +226 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/expert_positivist/raw_quotes.json +1 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/03_level1_coding/level1_all_experts_summary.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/consensus_report.json +13 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_achievement/merged_concept_library.json +278 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/cohens_kappa.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/fleiss_kappa.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/04_level1_consensus/consensus_calculation/krippendorff_alpha.json +5 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_constructivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_localization/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_phenomenological/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/expert_positivist/axial_coding_results.json +14 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/05_level2_coding/level2_all_experts_summary.json +31 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/divergence_report.json +10 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/merged_category_library.json +7 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/06_level2_consensus/divergence_resolution/paradigm_model.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_constructivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_localization/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_phenomenological/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/expert_positivist/selective_coding_results.json +28 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/07_level3_coding/level3_all_experts_summary.json +30 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/consensus_calculation/core_category_comparison.json +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/final_theoretical_integration.json +52 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/08_level3_consensus/theoretical_integration/theory_description.md +40 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/final_saturation_verdict.json +32 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_100/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_70/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_80/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/09_saturation_test/iteration_90/saturation_indicators.json +6 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/codebook.md +84 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/comprehensive_analysis_report.md +360 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/project_summary.json +214 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/10_final_report/theory_description.md +91 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/config.json +68 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_project_3/project_manifest.json +9 -0
- package/skills/grounded-theory-expert-enhanced/tools/test_real_coding.py +135 -0
- package/skills/historical-materialist-analysis/SKILL.md +186 -0
- package/skills/information-verification/INFO.md +69 -0
- package/skills/information-verification/README.md +80 -0
- package/skills/information-verification/SKILL.md +305 -0
- package/skills/information-verification/prompts.txt +103 -0
- package/skills/information-verification/reference.md +212 -0
- package/skills/information-verification/skill.js +1056 -0
- package/skills/information-verification/skill.json +198 -0
- package/skills/management-theory-analysis/INFO.md +74 -0
- package/skills/management-theory-analysis/README.md +63 -0
- package/skills/management-theory-analysis/SKILL.md +361 -0
- package/skills/management-theory-analysis/prompts.txt +113 -0
- package/skills/management-theory-analysis/reference.md +167 -0
- package/skills/management-theory-analysis/skill.js +561 -0
- package/skills/management-theory-analysis/skill.json +223 -0
- package/skills/mathematical-statistics/SKILL.md +227 -0
- package/skills/mathematical-statistics/pyproject.toml +36 -0
- package/skills/mathematical-statistics/scripts/statistics_toolkit.py +270 -0
- package/skills/msqca-analysis/SKILL.md +261 -0
- package/skills/msqca-analysis/assets/templates/data_template.csv +11 -0
- package/skills/msqca-analysis/assets/templates/report_template.md +188 -0
- package/skills/msqca-analysis/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/prompts/calibration-guidance.md +251 -0
- package/skills/msqca-analysis/prompts/result-interpretation.md +253 -0
- package/skills/msqca-analysis/prompts/theoretical-analysis.md +172 -0
- package/skills/msqca-analysis/pyproject.toml +37 -0
- package/skills/msqca-analysis/references/BEST_PRACTICES.md +612 -0
- package/skills/msqca-analysis/references/METHODOLOGY.md +282 -0
- package/skills/msqca-analysis/scripts/__pycache__/calibration.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/minimization.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/__pycache__/truth_table.cpython-312.pyc +0 -0
- package/skills/msqca-analysis/scripts/calibration.py +341 -0
- package/skills/msqca-analysis/scripts/integrated_analysis.py +621 -0
- package/skills/msqca-analysis/scripts/integrated_analysis_report.md +35 -0
- package/skills/msqca-analysis/scripts/minimization.py +580 -0
- package/skills/msqca-analysis/scripts/truth_table.py +438 -0
- package/skills/network-computation/SKILL.md +270 -0
- package/skills/network-computation/pyproject.toml +34 -0
- package/skills/network-computation/scripts/calculate_centrality.py +213 -0
- package/skills/network-computation-expert/SKILL.md +183 -0
- package/skills/network-computation-expert/modules/__pycache__/centrality_analysis.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/community_detection.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/data_processing.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/__pycache__/network_construction.cpython-312.pyc +0 -0
- package/skills/network-computation-expert/modules/centrality_analysis.py +438 -0
- package/skills/network-computation-expert/modules/community_detection.py +467 -0
- package/skills/network-computation-expert/modules/data_processing.py +467 -0
- package/skills/network-computation-expert/modules/network_construction.py +460 -0
- package/skills/network-computation-expert/pyproject.toml +27 -0
- package/skills/network-computation-expert/scripts/network_computation_expert_analyzer.py +208 -0
- package/skills/network-computation-expert/test_input.json +140 -0
- package/skills/network-computation-expert/test_output.json +627 -0
- package/skills/operations-analysis/INFO.md +76 -0
- package/skills/operations-analysis/README.md +61 -0
- package/skills/operations-analysis/SKILL.md +365 -0
- package/skills/operations-analysis/prompts.txt +109 -0
- package/skills/operations-analysis/pyproject.toml +35 -0
- package/skills/operations-analysis/reference.md +178 -0
- package/skills/operations-analysis/skill.js +870 -0
- package/skills/operations-analysis/skill.json +219 -0
- package/skills/patent-downloader/README.md +358 -0
- package/skills/patent-downloader/SKILL.md +309 -0
- package/skills/patent-downloader/assets/README_TEMPLATE.md +140 -0
- package/skills/patent-downloader/assets/requirements.txt +5 -0
- package/skills/patent-downloader/references/google_patents.md +210 -0
- package/skills/patent-downloader/scripts/patent_server.py +279 -0
- package/skills/performing-axial-coding/SKILL.md +301 -0
- package/skills/performing-axial-coding/pyproject.toml +30 -0
- package/skills/performing-axial-coding/references/README.md +111 -0
- package/skills/performing-axial-coding/references/_BACKUP_paradigm-theory.md +375 -0
- package/skills/performing-axial-coding/references/_BACKUP_relationship-types.md +544 -0
- package/skills/performing-axial-coding/references/_BACKUP_troubleshooting.md +627 -0
- package/skills/performing-axial-coding/references/category-construction/INDEX.md +190 -0
- package/skills/performing-axial-coding/references/category-construction/complete-example.md +438 -0
- package/skills/performing-axial-coding/references/paradigm-theory/INDEX.md +181 -0
- package/skills/performing-axial-coding/references/paradigm-theory/chinese-adaptation.md +349 -0
- package/skills/performing-axial-coding/references/paradigm-theory/quality-standards.md +345 -0
- package/skills/performing-axial-coding/references/paradigm-theory/six-components.md +323 -0
- package/skills/performing-axial-coding/references/relationship-types/INDEX.md +126 -0
- package/skills/performing-axial-coding/references/relationship-types/causal.md +141 -0
- package/skills/performing-axial-coding/references/relationship-types/conditional.md +150 -0
- package/skills/performing-axial-coding/references/troubleshooting/INDEX.md +136 -0
- package/skills/performing-axial-coding/references/troubleshooting/category-issues.md +129 -0
- package/skills/performing-axial-coding/references/troubleshooting/relationship-issues.md +137 -0
- package/skills/performing-axial-coding/references/troubleshooting/technical-issues.md +184 -0
- package/skills/performing-axial-coding/scripts/__pycache__/build_relationships.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/construct_paradigm.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/__pycache__/identify_categories.cpython-312.pyc +0 -0
- package/skills/performing-axial-coding/scripts/build_relationships.py +314 -0
- package/skills/performing-axial-coding/scripts/categories_test.json +122 -0
- package/skills/performing-axial-coding/scripts/construct_paradigm.py +271 -0
- package/skills/performing-axial-coding/scripts/identify_categories.py +267 -0
- package/skills/performing-axial-coding/tests/test_integration.py +84 -0
- package/skills/performing-centrality-analysis/SKILL.md +210 -0
- package/skills/performing-centrality-analysis/pyproject.toml +21 -0
- package/skills/performing-centrality-analysis/references/README.md +60 -0
- package/skills/performing-centrality-analysis/references/centrality-theory/INDEX.md +136 -0
- package/skills/performing-centrality-analysis/references/chinese-context/INDEX.md +169 -0
- package/skills/performing-centrality-analysis/scripts/__pycache__/calculate_centrality.cpython-312.pyc +0 -0
- package/skills/performing-centrality-analysis/scripts/calculate_centrality.py +213 -0
- package/skills/performing-centrality-analysis/tests/__pycache__/test_calculate_centrality.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-centrality-analysis/tests/test_calculate_centrality.py +218 -0
- package/skills/performing-network-computation/SKILL.md +224 -0
- package/skills/performing-network-computation/pyproject.toml +34 -0
- package/skills/performing-network-computation/scripts/build_network.py +260 -0
- package/skills/performing-network-computation/scripts/calculate_metrics.py +236 -0
- package/skills/performing-network-computation/scripts/detect_communities.py +281 -0
- package/skills/performing-network-computation/scripts/visualize_network.py +272 -0
- package/skills/performing-open-coding/SKILL.md +299 -0
- package/skills/performing-open-coding/pyproject.toml +35 -0
- package/skills/performing-open-coding/references/chinese-context.md +270 -0
- package/skills/performing-open-coding/references/examples.md +338 -0
- package/skills/performing-open-coding/references/theory.md +215 -0
- package/skills/performing-open-coding/references/troubleshooting.md +491 -0
- package/skills/performing-open-coding/scripts/__pycache__/auto_loader.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/compare_codes.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/__pycache__/preprocess_text.cpython-312.pyc +0 -0
- package/skills/performing-open-coding/scripts/auto_loader.py +195 -0
- package/skills/performing-open-coding/scripts/cluster_concepts.py +294 -0
- package/skills/performing-open-coding/scripts/clusters_test.json +169 -0
- package/skills/performing-open-coding/scripts/compare_codes.py +257 -0
- package/skills/performing-open-coding/scripts/comparison_test.json +19 -0
- package/skills/performing-open-coding/scripts/concepts_test.json +135 -0
- package/skills/performing-open-coding/scripts/preprocess_text.py +218 -0
- package/skills/performing-open-coding/scripts/test_output.json +134 -0
- package/skills/performing-open-coding/scripts/validate_codes.py +302 -0
- package/skills/performing-open-coding/scripts/validation_test.json +95 -0
- package/skills/performing-open-coding/tests/__pycache__/test_auto_loader.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/__pycache__/test_preprocess.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-open-coding/tests/run_integration_tests.py +148 -0
- package/skills/performing-open-coding/tests/test_auto_loader.py +233 -0
- package/skills/performing-open-coding/tests/test_compare_codes.py +336 -0
- package/skills/performing-open-coding/tests/test_preprocess.py +187 -0
- package/skills/performing-selective-coding/SKILL.md +305 -0
- package/skills/performing-selective-coding/pyproject.toml +21 -0
- package/skills/performing-selective-coding/references/README.md +86 -0
- package/skills/performing-selective-coding/references/core-category/INDEX.md +132 -0
- package/skills/performing-selective-coding/references/saturation/INDEX.md +153 -0
- package/skills/performing-selective-coding/references/storyline/INDEX.md +166 -0
- package/skills/performing-selective-coding/references/theory-integration/INDEX.md +203 -0
- package/skills/performing-selective-coding/scripts/README.md +101 -0
- package/skills/performing-selective-coding/scripts/__pycache__/check_saturation.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/__pycache__/identify_core_category.cpython-312.pyc +0 -0
- package/skills/performing-selective-coding/scripts/check_saturation.py +236 -0
- package/skills/performing-selective-coding/scripts/construct_storyline.py +237 -0
- package/skills/performing-selective-coding/scripts/identify_core_category.py +265 -0
- package/skills/performing-selective-coding/scripts/integrate_theory.py +173 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_check_saturation.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/__pycache__/test_identify_core_category.cpython-312-pytest-7.4.3.pyc +0 -0
- package/skills/performing-selective-coding/tests/test_check_saturation.py +157 -0
- package/skills/performing-selective-coding/tests/test_identify_core_category.py +157 -0
- package/skills/practical-marxist-application/SKILL.md +230 -0
- package/skills/processing-network-data/SKILL.md +146 -0
- package/skills/processing-network-data/pyproject.toml +33 -0
- package/skills/processing-network-data/scripts/clean_survey_data.py +285 -0
- package/skills/processing-network-data/scripts/extract_network_data.py +286 -0
- package/skills/processing-network-data/scripts/transform_data_format.py +334 -0
- package/skills/processing-network-data/scripts/validate_network_data.py +322 -0
- package/skills/pubscholar-auto-search/AGENTSKILLS_OPTIMIZATION_REPORT.md +540 -0
- package/skills/pubscholar-auto-search/README.md +66 -0
- package/skills/pubscholar-auto-search/SKILL.md +242 -0
- package/skills/pubscholar-auto-search/references/API_REFERENCE.md +349 -0
- package/skills/pubscholar-auto-search/references/DEVELOPMENT.md +395 -0
- package/skills/pubscholar-auto-search/references/EXTENSION_STRATEGIES.md +415 -0
- package/skills/pubscholar-auto-search/references/USER_GUIDE.md +432 -0
- package/skills/pubscholar-auto-search/requirements.txt +17 -0
- package/skills/pubscholar-auto-search/scripts/__pycache__/pubscholar_searcher.cpython-312.pyc +0 -0
- package/skills/pubscholar-auto-search/scripts/pubscholar_searcher.py +602 -0
- package/skills/pubscholar-auto-search/scripts/test_pubscholar_search.py +205 -0
- package/skills/research-design/DEPENDENCY_MANAGEMENT.md +112 -0
- package/skills/research-design/README.md +158 -0
- package/skills/research-design/SKILL.md +82 -0
- package/skills/research-design/assets/templates/research_design_template.md +297 -0
- package/skills/research-design/prompts/analysis-strategy-outline.md +307 -0
- package/skills/research-design/prompts/analysis-strategy.md +37 -0
- package/skills/research-design/prompts/data-planning-outline.md +204 -0
- package/skills/research-design/prompts/data-planning.md +36 -0
- package/skills/research-design/prompts/ethics-review-outline.md +406 -0
- package/skills/research-design/prompts/ethics-review.md +36 -0
- package/skills/research-design/prompts/method-selection-outline.md +181 -0
- package/skills/research-design/prompts/method-selection.md +36 -0
- package/skills/research-design/prompts/problem-definition-outline.md +107 -0
- package/skills/research-design/prompts/problem-definition.md +30 -0
- package/skills/research-design/pyproject.toml +35 -0
- package/skills/research-design/references/best-practices.md +185 -0
- package/skills/research-design/references/methodology.md +162 -0
- package/skills/research-design/scripts/__pycache__/design_evaluation.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/integrated_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/literature_analysis.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/__pycache__/method_matching.cpython-312.pyc +0 -0
- package/skills/research-design/scripts/design_evaluation.py +670 -0
- package/skills/research-design/scripts/integrated_analysis.py +543 -0
- package/skills/research-design/scripts/literature_analysis.py +303 -0
- package/skills/research-design/scripts/method_matching.py +478 -0
- package/skills/research-design/test_research_design.py +281 -0
- package/skills/sna-analysis/integration_with_trusted_scraper.md +115 -0
- package/skills/spark-integration/INFO.md +64 -0
- package/skills/spark-integration/README.md +159 -0
- package/skills/spark-integration/SKILL.md +232 -0
- package/skills/spark-integration/skill.js +308 -0
- package/skills/spark-integration/skill.json +37 -0
- package/skills/trusted-web-scraper/CONFIG.yaml +60 -0
- package/skills/trusted-web-scraper/README.md +137 -0
- package/skills/trusted-web-scraper/SKILL.md +173 -0
- package/skills/trusted-web-scraper/final_test.json +240 -0
- package/skills/trusted-web-scraper/modules/__pycache__/core_trusted_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/modules/core_trusted_scraper.py +778 -0
- package/skills/trusted-web-scraper/modules/scraper_minimal.py +623 -0
- package/skills/trusted-web-scraper/pyproject.toml +46 -0
- package/skills/trusted-web-scraper/scripts/__pycache__/trusted_web_scraper.cpython-312.pyc +0 -0
- package/skills/trusted-web-scraper/scripts/trusted_web_scraper.py +109 -0
- package/skills/trusted-web-scraper/test_comprehensive.py +53 -0
- package/skills/trusted-web-scraper/test_full.py +154 -0
- package/skills/trusted-web-scraper/test_input.json +10 -0
- package/skills/trusted-web-scraper/test_output.json +162 -0
- package/skills/trusted-web-scraper/test_output2.json +240 -0
- package/skills/trusted-web-scraper/test_output3.json +240 -0
- package/skills/trusted-web-scraper/test_output4.json +240 -0
- package/skills/validity-reliability/SKILL.md +130 -0
- package/skills/validity-reliability/pyproject.toml +36 -0
- package/skills/validity-reliability/scripts/validity_reliability_toolkit.py +480 -0
- package/skills/verify_compliance.ps1 +40 -0
- package/skills/visualization-expert/INFO.md +77 -0
- package/skills/visualization-expert/README.md +78 -0
- package/skills/visualization-expert/SKILL.md +374 -0
- package/skills/visualization-expert/prompts.txt +92 -0
- package/skills/visualization-expert/reference.md +212 -0
- package/skills/visualization-expert/skill.js +904 -0
- package/skills/visualization-expert/skill.json +195 -0
- package/skills/writing-grounded-theory-memos/SKILL.md +301 -0
|
@@ -0,0 +1,760 @@
|
|
|
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 json
|
|
12
|
+
import os
|
|
13
|
+
import sys
|
|
14
|
+
from datetime import datetime
|
|
15
|
+
import unittest
|
|
16
|
+
from dataclasses import dataclass
|
|
17
|
+
from enum import Enum
|
|
18
|
+
|
|
19
|
+
# 导入分析器
|
|
20
|
+
from dialectical_thinking_analyzer import DialecticalThinkingAnalyzer
|
|
21
|
+
from enhanced_historical_materialism_analyzer import EnhancedHistoricalMaterialismAnalyzer
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class QualityLevel(Enum):
|
|
25
|
+
"""质量等级"""
|
|
26
|
+
EXCELLENT = "优秀"
|
|
27
|
+
GOOD = "良好"
|
|
28
|
+
AVERAGE = "一般"
|
|
29
|
+
POOR = "需要改进"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
@dataclass
|
|
33
|
+
class QualityMetrics:
|
|
34
|
+
"""质量指标"""
|
|
35
|
+
theoretical_accuracy: float
|
|
36
|
+
methodological_soundness: float
|
|
37
|
+
analytical_depth: float
|
|
38
|
+
logical_coherence: float
|
|
39
|
+
practical_relevance: float
|
|
40
|
+
overall_quality: float
|
|
41
|
+
quality_level: QualityLevel
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@dataclass
|
|
45
|
+
class QualityIssue:
|
|
46
|
+
"""质量问题"""
|
|
47
|
+
issue_type: str
|
|
48
|
+
description: str
|
|
49
|
+
severity: str
|
|
50
|
+
suggestion: str
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class BasicQualityDetector:
|
|
54
|
+
"""基础质量检测器"""
|
|
55
|
+
|
|
56
|
+
def __init__(self):
|
|
57
|
+
# 初始化分析器
|
|
58
|
+
self.dialectical_analyzer = DialecticalThinkingAnalyzer()
|
|
59
|
+
self.historical_analyzer = EnhancedHistoricalMaterialismAnalyzer()
|
|
60
|
+
|
|
61
|
+
# 质量标准定义
|
|
62
|
+
self.quality_standards = {
|
|
63
|
+
'theoretical_accuracy': {
|
|
64
|
+
'min_score': 7.0,
|
|
65
|
+
'weight': 0.3,
|
|
66
|
+
'description': '理论准确性检验'
|
|
67
|
+
},
|
|
68
|
+
'methodological_soundness': {
|
|
69
|
+
'min_score': 7.0,
|
|
70
|
+
'weight': 0.25,
|
|
71
|
+
'description': '方法论科学性检验'
|
|
72
|
+
},
|
|
73
|
+
'analytical_depth': {
|
|
74
|
+
'min_score': 6.0,
|
|
75
|
+
'weight': 0.2,
|
|
76
|
+
'description': '分析深度检验'
|
|
77
|
+
},
|
|
78
|
+
'logical_coherence': {
|
|
79
|
+
'min_score': 6.0,
|
|
80
|
+
'weight': 0.15,
|
|
81
|
+
'description': '逻辑连贯性检验'
|
|
82
|
+
},
|
|
83
|
+
'practical_relevance': {
|
|
84
|
+
'min_score': 6.0,
|
|
85
|
+
'weight': 0.1,
|
|
86
|
+
'description': '实践相关性检验'
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
# 检测历史
|
|
91
|
+
self.detection_history = []
|
|
92
|
+
|
|
93
|
+
def comprehensive_quality_detection(self, text_data: str) -> Dict:
|
|
94
|
+
"""综合质量检测"""
|
|
95
|
+
|
|
96
|
+
# 执行各项分析
|
|
97
|
+
dialectical_results = self.dialectical_analyzer.comprehensive_dialectical_analysis(text_data)
|
|
98
|
+
historical_results = self.historical_analyzer.comprehensive_historical_materialism_analysis(text_data)
|
|
99
|
+
|
|
100
|
+
# 计算各项质量指标
|
|
101
|
+
theoretical_accuracy = self._assess_theoretical_accuracy(dialectical_results, historical_results)
|
|
102
|
+
methodological_soundness = self._assess_methodological_soundness(dialectical_results, historical_results)
|
|
103
|
+
analytical_depth = self._assess_analytical_depth(dialectical_results, historical_results)
|
|
104
|
+
logical_coherence = self._assess_logical_coherence(dialectical_results, historical_results)
|
|
105
|
+
practical_relevance = self._assess_practical_relevance(text_data, dialectical_results, historical_results)
|
|
106
|
+
|
|
107
|
+
# 计算综合质量
|
|
108
|
+
overall_quality = self._calculate_overall_quality(
|
|
109
|
+
theoretical_accuracy, methodological_soundness,
|
|
110
|
+
analytical_depth, logical_coherence, practical_relevance
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
# 确定质量等级
|
|
114
|
+
quality_level = self._determine_quality_level(overall_quality)
|
|
115
|
+
|
|
116
|
+
# 识别质量问题
|
|
117
|
+
quality_issues = self._identify_quality_issues(
|
|
118
|
+
theoretical_accuracy, methodological_soundness, analytical_depth,
|
|
119
|
+
logical_coherence, practical_relevance
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
# 生成改进建议
|
|
123
|
+
improvement_suggestions = self._generate_improvement_suggestions(quality_issues)
|
|
124
|
+
|
|
125
|
+
# 构建质量指标对象
|
|
126
|
+
quality_metrics = QualityMetrics(
|
|
127
|
+
theoretical_accuracy=theoretical_accuracy,
|
|
128
|
+
methodological_soundness=methodological_soundness,
|
|
129
|
+
analytical_depth=analytical_depth,
|
|
130
|
+
logical_coherence=logical_coherence,
|
|
131
|
+
practical_relevance=practical_relevance,
|
|
132
|
+
overall_quality=overall_quality,
|
|
133
|
+
quality_level=quality_level
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
# 检测结果
|
|
137
|
+
detection_result = {
|
|
138
|
+
'quality_metrics': quality_metrics,
|
|
139
|
+
'quality_issues': quality_issues,
|
|
140
|
+
'improvement_suggestions': improvement_suggestions,
|
|
141
|
+
'dialectical_results': dialectical_results,
|
|
142
|
+
'historical_results': historical_results,
|
|
143
|
+
'detection_timestamp': datetime.now().isoformat()
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
# 记录检测历史
|
|
147
|
+
self._record_detection(detection_result)
|
|
148
|
+
|
|
149
|
+
return detection_result
|
|
150
|
+
|
|
151
|
+
def _assess_theoretical_accuracy(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
152
|
+
"""评估理论准确性"""
|
|
153
|
+
|
|
154
|
+
# 辩证思维理论准确性
|
|
155
|
+
dialectical_quality = dialectical_results.get('overall_dialectical_level', {}).get('overall_score', 0)
|
|
156
|
+
|
|
157
|
+
# 历史唯物主义理论准确性
|
|
158
|
+
historical_quality = historical_results.get('overall_theoretical_level', {}).get('overall_score', 0)
|
|
159
|
+
|
|
160
|
+
# 理论概念使用准确性
|
|
161
|
+
concept_accuracy = self._assess_concept_accuracy(dialectical_results, historical_results)
|
|
162
|
+
|
|
163
|
+
# 理论逻辑严密性
|
|
164
|
+
logic_accuracy = self._assess_theoretical_logic(dialectical_results, historical_results)
|
|
165
|
+
|
|
166
|
+
# 综合理论准确性分数
|
|
167
|
+
theoretical_accuracy = (dialectical_quality * 0.3 +
|
|
168
|
+
historical_quality * 0.3 +
|
|
169
|
+
concept_accuracy * 0.2 +
|
|
170
|
+
logic_accuracy * 0.2)
|
|
171
|
+
|
|
172
|
+
return min(theoretical_accuracy, 10.0)
|
|
173
|
+
|
|
174
|
+
def _assess_concept_accuracy(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
175
|
+
"""评估概念使用准确性"""
|
|
176
|
+
|
|
177
|
+
# 从辩证思维分析中提取概念使用情况
|
|
178
|
+
unity_analysis = dialectical_results.get('unity_of_opposites', {})
|
|
179
|
+
contradictions = unity_analysis.get('contradictions', [])
|
|
180
|
+
|
|
181
|
+
# 检查矛盾识别的准确性
|
|
182
|
+
contradiction_accuracy = 0
|
|
183
|
+
if contradictions:
|
|
184
|
+
# 检查是否识别了真正的对立统一关系
|
|
185
|
+
valid_contradictions = 0
|
|
186
|
+
for contradiction in contradictions:
|
|
187
|
+
if self._is_valid_contradiction(contradiction):
|
|
188
|
+
valid_contradictions += 1
|
|
189
|
+
|
|
190
|
+
contradiction_accuracy = (valid_contradictions / len(contradictions)) * 10
|
|
191
|
+
|
|
192
|
+
# 从历史唯物主义分析中提取概念使用情况
|
|
193
|
+
contradiction_analysis = historical_results.get('contradiction_analysis', {})
|
|
194
|
+
adaptation_level = contradiction_analysis.get('adaptation_level', {}).get('adaptation_quality', 0)
|
|
195
|
+
|
|
196
|
+
# 综合概念准确性
|
|
197
|
+
concept_accuracy = (contradiction_accuracy + adaptation_level) / 2
|
|
198
|
+
|
|
199
|
+
return concept_accuracy
|
|
200
|
+
|
|
201
|
+
def _is_valid_contradiction(self, contradiction) -> bool:
|
|
202
|
+
"""检查矛盾识别是否有效"""
|
|
203
|
+
# 这里应该有更复杂的逻辑来验证矛盾的有效性
|
|
204
|
+
# 简化处理,假设所有识别的矛盾都是有效的
|
|
205
|
+
return True
|
|
206
|
+
|
|
207
|
+
def _assess_theoretical_logic(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
208
|
+
"""评估理论逻辑严密性"""
|
|
209
|
+
|
|
210
|
+
# 辩证思维逻辑性
|
|
211
|
+
dialectical_coherence = dialectical_results.get('internal_connections', {}).get('overall_coherence_score', 0)
|
|
212
|
+
|
|
213
|
+
# 历史唯物主义逻辑性
|
|
214
|
+
historical_coherence = historical_results.get('internal_connections', {}).get('overall_coherence_score', 0)
|
|
215
|
+
|
|
216
|
+
# 理论逻辑综合分数
|
|
217
|
+
logic_accuracy = (dialectical_coherence + historical_coherence) / 2
|
|
218
|
+
|
|
219
|
+
return logic_accuracy
|
|
220
|
+
|
|
221
|
+
def _assess_methodological_soundness(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
222
|
+
"""评估方法论科学性"""
|
|
223
|
+
|
|
224
|
+
# 辩证思维方法论
|
|
225
|
+
dialectical_methodology = self._assess_dialectical_methodology(dialectical_results)
|
|
226
|
+
|
|
227
|
+
# 历史唯物主义方法论
|
|
228
|
+
historical_methodology = self._assess_historical_methodology(historical_results)
|
|
229
|
+
|
|
230
|
+
# 方法论科学性综合分数
|
|
231
|
+
methodological_soundness = (dialectical_methodology + historical_methodology) / 2
|
|
232
|
+
|
|
233
|
+
return methodological_soundness
|
|
234
|
+
|
|
235
|
+
def _assess_dialectical_methodology(self, dialectical_results: Dict) -> float:
|
|
236
|
+
"""评估辩证思维方法论"""
|
|
237
|
+
|
|
238
|
+
# 检查三大规律的运用
|
|
239
|
+
unity_quality = dialectical_results.get('unity_of_opposites', {}).get('dialectical_quality', {}).get('overall_quality', 0)
|
|
240
|
+
quantity_quality = dialectical_results.get('quantity_quality_change', {}).get('synthesis_quality', 0)
|
|
241
|
+
negation_quality = dialectical_results.get('negation_of_negation', {}).get('synthesis_level', 0)
|
|
242
|
+
|
|
243
|
+
# 将质量等级转换为分数
|
|
244
|
+
quality_mapping = {'优秀': 9.0, '良好': 7.0, '一般': 5.0, '需要改进': 3.0}
|
|
245
|
+
|
|
246
|
+
unity_score = quality_mapping.get(unity_quality, 5.0) if isinstance(unity_quality, str) else unity_quality
|
|
247
|
+
quantity_score = quality_mapping.get(quantity_quality, 5.0) if isinstance(quantity_quality, str) else quantity_quality
|
|
248
|
+
negation_score = quality_mapping.get(negation_quality, 5.0) if isinstance(negation_quality, str) else negation_quality
|
|
249
|
+
|
|
250
|
+
# 辩证方法论分数
|
|
251
|
+
dialectical_methodology = (unity_score + quantity_score + negation_score) / 3
|
|
252
|
+
|
|
253
|
+
return dialectical_methodology
|
|
254
|
+
|
|
255
|
+
def _assess_historical_methodology(self, historical_results: Dict) -> float:
|
|
256
|
+
"""评估历史唯物主义方法论"""
|
|
257
|
+
|
|
258
|
+
# 检查三大分析的运用
|
|
259
|
+
contradiction_quality = historical_results.get('contradiction_analysis', {}).get('contradiction_quality', {}).get('overall_quality', 0)
|
|
260
|
+
base_quality = historical_results.get('base_superstructure_analysis', {}).get('base_superstructure_quality', {}).get('overall_quality', 0)
|
|
261
|
+
formation_quality = historical_results.get('formation_analysis', {}).get('formation_quality', {}).get('overall_quality', 0)
|
|
262
|
+
|
|
263
|
+
# 历史唯物主义方法论分数
|
|
264
|
+
historical_methodology = (contradiction_quality + base_quality + formation_quality) / 3
|
|
265
|
+
|
|
266
|
+
return historical_methodology
|
|
267
|
+
|
|
268
|
+
def _assess_analytical_depth(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
269
|
+
"""评估分析深度"""
|
|
270
|
+
|
|
271
|
+
# 辩证思维分析深度
|
|
272
|
+
dialectical_depth = self._assess_dialectical_depth(dialectical_results)
|
|
273
|
+
|
|
274
|
+
# 历史唯物主义分析深度
|
|
275
|
+
historical_depth = self._assess_historical_depth(historical_results)
|
|
276
|
+
|
|
277
|
+
# 综合分析深度
|
|
278
|
+
analytical_depth = (dialectical_depth + historical_depth) / 2
|
|
279
|
+
|
|
280
|
+
return analytical_depth
|
|
281
|
+
|
|
282
|
+
def _assess_dialectical_depth(self, dialectical_results: Dict) -> float:
|
|
283
|
+
"""评估辩证思维分析深度"""
|
|
284
|
+
|
|
285
|
+
# 检查分析的层次性
|
|
286
|
+
contradictions = dialectical_results.get('unity_of_opposites', {}).get('contradictions', [])
|
|
287
|
+
contradiction_depth = min(len(contradictions) * 2, 10) # 每个矛盾2分,最高10分
|
|
288
|
+
|
|
289
|
+
# 检查分析的全面性
|
|
290
|
+
unity_score = dialectical_results.get('unity_of_opposites', {}).get('dialectical_quality', {}).get('overall_quality', 0)
|
|
291
|
+
quantity_score = dialectical_results.get('quantity_quality_change', {}).get('synthesis_quality', 0)
|
|
292
|
+
negation_score = dialectical_results.get('negation_of_negation', {}).get('synthesis_level', 0)
|
|
293
|
+
|
|
294
|
+
# 深度分数
|
|
295
|
+
dialectical_depth = (contradiction_depth + unity_score + quantity_score + negation_score) / 4
|
|
296
|
+
|
|
297
|
+
return dialectical_depth
|
|
298
|
+
|
|
299
|
+
def _assess_historical_depth(self, historical_results: Dict) -> float:
|
|
300
|
+
"""评估历史唯物主义分析深度"""
|
|
301
|
+
|
|
302
|
+
# 检查社会形态识别的准确性
|
|
303
|
+
formation_confidence = historical_results.get('formation_analysis', {}).get('current_formation', {}).get('confidence', 0)
|
|
304
|
+
formation_depth = formation_confidence * 10
|
|
305
|
+
|
|
306
|
+
# 检查主要矛盾分析的深度
|
|
307
|
+
primary_contradiction = historical_results.get('formation_analysis', {}).get('primary_contradiction')
|
|
308
|
+
if primary_contradiction:
|
|
309
|
+
contradiction_intensity = getattr(primary_contradiction, 'contradiction_intensity', 0)
|
|
310
|
+
contradiction_depth = min(contradiction_intensity, 10)
|
|
311
|
+
else:
|
|
312
|
+
contradiction_depth = 0
|
|
313
|
+
|
|
314
|
+
# 深度分数
|
|
315
|
+
historical_depth = (formation_depth + contradiction_depth) / 2
|
|
316
|
+
|
|
317
|
+
return historical_depth
|
|
318
|
+
|
|
319
|
+
def _assess_logical_coherence(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
320
|
+
"""评估逻辑连贯性"""
|
|
321
|
+
|
|
322
|
+
# 内部逻辑连贯性
|
|
323
|
+
dialectical_coherence = dialectical_results.get('internal_connections', {}).get('overall_coherence_score', 0)
|
|
324
|
+
historical_coherence = historical_results.get('internal_connections', {}).get('overall_coherence_score', 0)
|
|
325
|
+
|
|
326
|
+
# 跨模块逻辑连贯性
|
|
327
|
+
cross_module_coherence = self._assess_cross_module_coherence(dialectical_results, historical_results)
|
|
328
|
+
|
|
329
|
+
# 综合逻辑连贯性
|
|
330
|
+
logical_coherence = (dialectical_coherence + historical_coherence + cross_module_coherence) / 3
|
|
331
|
+
|
|
332
|
+
return logical_coherence
|
|
333
|
+
|
|
334
|
+
def _assess_cross_module_coherence(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
335
|
+
"""评估跨模块逻辑连贯性"""
|
|
336
|
+
|
|
337
|
+
# 检查辩证思维与历史唯物主义的一致性
|
|
338
|
+
dialectical_level = dialectical_results.get('overall_dialectical_level', {}).get('overall_score', 0)
|
|
339
|
+
historical_level = historical_results.get('overall_theoretical_level', {}).get('overall_score', 0)
|
|
340
|
+
|
|
341
|
+
# 一致性分数
|
|
342
|
+
coherence_score = 10 - abs(dialectical_level - historical_level)
|
|
343
|
+
|
|
344
|
+
return max(coherence_score, 0)
|
|
345
|
+
|
|
346
|
+
def _assess_practical_relevance(self, text_data: str, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
347
|
+
"""评估实践相关性"""
|
|
348
|
+
|
|
349
|
+
# 问题针对性
|
|
350
|
+
problem_targeting = self._assess_problem_targeting(text_data)
|
|
351
|
+
|
|
352
|
+
# 现实意义
|
|
353
|
+
practical_significance = self._assess_practical_significance(text_data)
|
|
354
|
+
|
|
355
|
+
# 应用价值
|
|
356
|
+
application_value = self._assess_application_value(dialectical_results, historical_results)
|
|
357
|
+
|
|
358
|
+
# 综合实践相关性
|
|
359
|
+
practical_relevance = (problem_targeting + practical_significance + application_value) / 3
|
|
360
|
+
|
|
361
|
+
return practical_relevance
|
|
362
|
+
|
|
363
|
+
def _assess_problem_targeting(self, text_data: str) -> float:
|
|
364
|
+
"""评估问题针对性"""
|
|
365
|
+
|
|
366
|
+
# 检查是否涉及现实社会问题
|
|
367
|
+
problem_indicators = ['问题', '挑战', '困难', '矛盾', '冲突', '危机', '发展', '改革']
|
|
368
|
+
|
|
369
|
+
problem_count = 0
|
|
370
|
+
for indicator in problem_indicators:
|
|
371
|
+
if indicator in text_data:
|
|
372
|
+
problem_count += 1
|
|
373
|
+
|
|
374
|
+
# 针对性分数
|
|
375
|
+
targeting_score = min(problem_count * 2, 10)
|
|
376
|
+
|
|
377
|
+
return targeting_score
|
|
378
|
+
|
|
379
|
+
def _assess_practical_significance(self, text_data: str) -> float:
|
|
380
|
+
"""评估现实意义"""
|
|
381
|
+
|
|
382
|
+
# 检查是否涉及现实意义相关词汇
|
|
383
|
+
significance_indicators = ['现实', '实际', '实践', '应用', '指导', '意义', '价值']
|
|
384
|
+
|
|
385
|
+
significance_count = 0
|
|
386
|
+
for indicator in significance_indicators:
|
|
387
|
+
if indicator in text_data:
|
|
388
|
+
significance_count += 1
|
|
389
|
+
|
|
390
|
+
# 现实意义分数
|
|
391
|
+
significance_score = min(significance_count * 1.5, 10)
|
|
392
|
+
|
|
393
|
+
return significance_score
|
|
394
|
+
|
|
395
|
+
def _assess_application_value(self, dialectical_results: Dict, historical_results: Dict) -> float:
|
|
396
|
+
"""评估应用价值"""
|
|
397
|
+
|
|
398
|
+
# 检查是否提供了具体的分析结论
|
|
399
|
+
dialectical_conclusions = len(dialectical_results.get('overall_dialectical_level', {}).get('improvement_directions', []))
|
|
400
|
+
historical_conclusions = len(historical_results.get('overall_theoretical_level', {}).get('improvement_directions', []))
|
|
401
|
+
|
|
402
|
+
# 应用价值分数
|
|
403
|
+
application_score = min((dialectical_conclusions + historical_conclusions) * 1.5, 10)
|
|
404
|
+
|
|
405
|
+
return application_score
|
|
406
|
+
|
|
407
|
+
def _calculate_overall_quality(self, theoretical_accuracy: float,
|
|
408
|
+
methodological_soundness: float,
|
|
409
|
+
analytical_depth: float,
|
|
410
|
+
logical_coherence: float,
|
|
411
|
+
practical_relevance: float) -> float:
|
|
412
|
+
"""计算综合质量分数"""
|
|
413
|
+
|
|
414
|
+
# 根据权重计算综合分数
|
|
415
|
+
weights = self.quality_standards
|
|
416
|
+
|
|
417
|
+
overall_quality = (
|
|
418
|
+
theoretical_accuracy * weights['theoretical_accuracy']['weight'] +
|
|
419
|
+
methodological_soundness * weights['methodological_soundness']['weight'] +
|
|
420
|
+
analytical_depth * weights['analytical_depth']['weight'] +
|
|
421
|
+
logical_coherence * weights['logical_coherence']['weight'] +
|
|
422
|
+
practical_relevance * weights['practical_relevance']['weight']
|
|
423
|
+
)
|
|
424
|
+
|
|
425
|
+
return overall_quality
|
|
426
|
+
|
|
427
|
+
def _determine_quality_level(self, overall_quality: float) -> QualityLevel:
|
|
428
|
+
"""确定质量等级"""
|
|
429
|
+
|
|
430
|
+
if overall_quality >= 8.5:
|
|
431
|
+
return QualityLevel.EXCELLENT
|
|
432
|
+
elif overall_quality >= 7.0:
|
|
433
|
+
return QualityLevel.GOOD
|
|
434
|
+
elif overall_quality >= 5.5:
|
|
435
|
+
return QualityLevel.AVERAGE
|
|
436
|
+
else:
|
|
437
|
+
return QualityLevel.POOR
|
|
438
|
+
|
|
439
|
+
def _identify_quality_issues(self, theoretical_accuracy: float,
|
|
440
|
+
methodological_soundness: float,
|
|
441
|
+
analytical_depth: float,
|
|
442
|
+
logical_coherence: float,
|
|
443
|
+
practical_relevance: float) -> List[QualityIssue]:
|
|
444
|
+
"""识别质量问题"""
|
|
445
|
+
|
|
446
|
+
issues = []
|
|
447
|
+
|
|
448
|
+
# 检查各项指标是否达标
|
|
449
|
+
if theoretical_accuracy < self.quality_standards['theoretical_accuracy']['min_score']:
|
|
450
|
+
issues.append(QualityIssue(
|
|
451
|
+
issue_type="theoretical_accuracy",
|
|
452
|
+
description=f"理论准确性不足: {theoretical_accuracy:.2f} < {self.quality_standards['theoretical_accuracy']['min_score']}",
|
|
453
|
+
severity="high",
|
|
454
|
+
suggestion="加强马克思主义基本原理的学习和应用"
|
|
455
|
+
))
|
|
456
|
+
|
|
457
|
+
if methodological_soundness < self.quality_standards['methodological_soundness']['min_score']:
|
|
458
|
+
issues.append(QualityIssue(
|
|
459
|
+
issue_type="methodological_soundness",
|
|
460
|
+
description=f"方法论科学性不足: {methodological_soundness:.2f} < {self.quality_standards['methodological_soundness']['min_score']}",
|
|
461
|
+
severity="high",
|
|
462
|
+
suggestion="完善辩证思维和历史唯物主义方法论"
|
|
463
|
+
))
|
|
464
|
+
|
|
465
|
+
if analytical_depth < self.quality_standards['analytical_depth']['min_score']:
|
|
466
|
+
issues.append(QualityIssue(
|
|
467
|
+
issue_type="analytical_depth",
|
|
468
|
+
description=f"分析深度不足: {analytical_depth:.2f} < {self.quality_standards['analytical_depth']['min_score']}",
|
|
469
|
+
severity="medium",
|
|
470
|
+
suggestion="深化理论分析,增强层次性和全面性"
|
|
471
|
+
))
|
|
472
|
+
|
|
473
|
+
if logical_coherence < self.quality_standards['logical_coherence']['min_score']:
|
|
474
|
+
issues.append(QualityIssue(
|
|
475
|
+
issue_type="logical_coherence",
|
|
476
|
+
description=f"逻辑连贯性不足: {logical_coherence:.2f} < {self.quality_standards['logical_coherence']['min_score']}",
|
|
477
|
+
severity="medium",
|
|
478
|
+
suggestion="加强逻辑推理的严密性和一致性"
|
|
479
|
+
))
|
|
480
|
+
|
|
481
|
+
if practical_relevance < self.quality_standards['practical_relevance']['min_score']:
|
|
482
|
+
issues.append(QualityIssue(
|
|
483
|
+
issue_type="practical_relevance",
|
|
484
|
+
description=f"实践相关性不足: {practical_relevance:.2f} < {self.quality_standards['practical_relevance']['min_score']}",
|
|
485
|
+
severity="low",
|
|
486
|
+
suggestion="增强分析的现实针对性和应用价值"
|
|
487
|
+
))
|
|
488
|
+
|
|
489
|
+
return issues
|
|
490
|
+
|
|
491
|
+
def _generate_improvement_suggestions(self, quality_issues: List[QualityIssue]) -> List[str]:
|
|
492
|
+
"""生成改进建议"""
|
|
493
|
+
|
|
494
|
+
suggestions = []
|
|
495
|
+
|
|
496
|
+
# 根据问题类型生成具体建议
|
|
497
|
+
for issue in quality_issues:
|
|
498
|
+
if issue.issue_type == "theoretical_accuracy":
|
|
499
|
+
suggestions.extend([
|
|
500
|
+
"深入学习马克思主义基本原理",
|
|
501
|
+
"准确理解和运用核心概念",
|
|
502
|
+
"避免理论概念的误用和滥用"
|
|
503
|
+
])
|
|
504
|
+
elif issue.issue_type == "methodological_soundness":
|
|
505
|
+
suggestions.extend([
|
|
506
|
+
"掌握辩证思维的基本方法",
|
|
507
|
+
"熟练运用历史唯物主义分析框架",
|
|
508
|
+
"避免机械唯物主义和教条主义"
|
|
509
|
+
])
|
|
510
|
+
elif issue.issue_type == "analytical_depth":
|
|
511
|
+
suggestions.extend([
|
|
512
|
+
"深化理论分析的层次性",
|
|
513
|
+
"增强分析的全面性和系统性",
|
|
514
|
+
"避免表面化和简单化倾向"
|
|
515
|
+
])
|
|
516
|
+
elif issue.issue_type == "logical_coherence":
|
|
517
|
+
suggestions.extend([
|
|
518
|
+
"加强逻辑推理的严密性",
|
|
519
|
+
"确保分析结论的一致性",
|
|
520
|
+
"避免逻辑矛盾和混乱"
|
|
521
|
+
])
|
|
522
|
+
elif issue.issue_type == "practical_relevance":
|
|
523
|
+
suggestions.extend([
|
|
524
|
+
"增强分析的现实针对性",
|
|
525
|
+
"提高理论的应用价值",
|
|
526
|
+
"避免脱离实际的空泛分析"
|
|
527
|
+
])
|
|
528
|
+
|
|
529
|
+
# 去重并返回
|
|
530
|
+
return list(set(suggestions))
|
|
531
|
+
|
|
532
|
+
def _record_detection(self, detection_result: Dict):
|
|
533
|
+
"""记录检测历史"""
|
|
534
|
+
|
|
535
|
+
detection_record = {
|
|
536
|
+
'timestamp': detection_result['detection_timestamp'],
|
|
537
|
+
'overall_quality': detection_result['quality_metrics'].overall_quality,
|
|
538
|
+
'quality_level': detection_result['quality_metrics'].quality_level.value,
|
|
539
|
+
'issue_count': len(detection_result['quality_issues'])
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
self.detection_history.append(detection_record)
|
|
543
|
+
|
|
544
|
+
# 保持历史记录不超过100条
|
|
545
|
+
if len(self.detection_history) > 100:
|
|
546
|
+
self.detection_history = self.detection_history[-100:]
|
|
547
|
+
|
|
548
|
+
def generate_quality_report(self, detection_result: Dict) -> str:
|
|
549
|
+
"""生成质量检测报告"""
|
|
550
|
+
|
|
551
|
+
quality_metrics = detection_result['quality_metrics']
|
|
552
|
+
quality_issues = detection_result['quality_issues']
|
|
553
|
+
improvement_suggestions = detection_result['improvement_suggestions']
|
|
554
|
+
|
|
555
|
+
report = []
|
|
556
|
+
report.append("# 数字马克思质量检测报告")
|
|
557
|
+
report.append(f"检测时间: {detection_result['detection_timestamp']}")
|
|
558
|
+
report.append("")
|
|
559
|
+
|
|
560
|
+
# 总体评估
|
|
561
|
+
report.append("## 总体评估")
|
|
562
|
+
report.append(f"- 综合质量分数: {quality_metrics.overall_quality:.2f}/10")
|
|
563
|
+
report.append(f"- 质量等级: {quality_metrics.quality_level.value}")
|
|
564
|
+
report.append(f"- 检测结果: {'通过' if quality_metrics.quality_level != QualityLevel.POOR else '未通过'}")
|
|
565
|
+
report.append("")
|
|
566
|
+
|
|
567
|
+
# 各项指标
|
|
568
|
+
report.append("## 各项质量指标")
|
|
569
|
+
report.append(f"- 理论准确性: {quality_metrics.theoretical_accuracy:.2f}/10")
|
|
570
|
+
report.append(f"- 方法论科学性: {quality_metrics.methodological_soundness:.2f}/10")
|
|
571
|
+
report.append(f"- 分析深度: {quality_metrics.analytical_depth:.2f}/10")
|
|
572
|
+
report.append(f"- 逻辑连贯性: {quality_metrics.logical_coherence:.2f}/10")
|
|
573
|
+
report.append(f"- 实践相关性: {quality_metrics.practical_relevance:.2f}/10")
|
|
574
|
+
report.append("")
|
|
575
|
+
|
|
576
|
+
# 质量问题
|
|
577
|
+
if quality_issues:
|
|
578
|
+
report.append("## 质量问题")
|
|
579
|
+
for issue in quality_issues:
|
|
580
|
+
report.append(f"- **{issue.issue_type}**: {issue.description}")
|
|
581
|
+
report.append(f" - 严重程度: {issue.severity}")
|
|
582
|
+
report.append(f" - 改进建议: {issue.suggestion}")
|
|
583
|
+
report.append("")
|
|
584
|
+
|
|
585
|
+
# 改进建议
|
|
586
|
+
if improvement_suggestions:
|
|
587
|
+
report.append("## 改进建议")
|
|
588
|
+
for i, suggestion in enumerate(improvement_suggestions, 1):
|
|
589
|
+
report.append(f"{i}. {suggestion}")
|
|
590
|
+
report.append("")
|
|
591
|
+
|
|
592
|
+
# 质量趋势
|
|
593
|
+
if len(self.detection_history) > 1:
|
|
594
|
+
report.append("## 质量趋势")
|
|
595
|
+
recent_scores = [record['overall_quality'] for record in self.detection_history[-5:]]
|
|
596
|
+
trend = "上升" if recent_scores[-1] > recent_scores[0] else "下降" if recent_scores[-1] < recent_scores[0] else "稳定"
|
|
597
|
+
report.append(f"- 最近5次检测趋势: {trend}")
|
|
598
|
+
report.append(f"- 平均质量分数: {sum(recent_scores)/len(recent_scores):.2f}")
|
|
599
|
+
report.append("")
|
|
600
|
+
|
|
601
|
+
# 总结
|
|
602
|
+
report.append("## 总结")
|
|
603
|
+
if quality_metrics.quality_level == QualityLevel.EXCELLENT:
|
|
604
|
+
report.append("分析质量优秀,达到了专业理论水准。")
|
|
605
|
+
elif quality_metrics.quality_level == QualityLevel.GOOD:
|
|
606
|
+
report.append("分析质量良好,具有较好的理论水平。")
|
|
607
|
+
elif quality_metrics.quality_level == QualityLevel.AVERAGE:
|
|
608
|
+
report.append("分析质量一般,需要在理论深度和方法论方面进一步提升。")
|
|
609
|
+
else:
|
|
610
|
+
report.append("分析质量需要改进,建议系统学习马克思主义基本理论。")
|
|
611
|
+
|
|
612
|
+
return "\n".join(report)
|
|
613
|
+
|
|
614
|
+
def save_detection_result(self, detection_result: Dict, output_file: str = None) -> str:
|
|
615
|
+
"""保存检测结果"""
|
|
616
|
+
|
|
617
|
+
if output_file is None:
|
|
618
|
+
timestamp = datetime.now().strftime('%Y%m%d_%H%M%S')
|
|
619
|
+
output_file = f"marx_quality_detection_{timestamp}.json"
|
|
620
|
+
|
|
621
|
+
try:
|
|
622
|
+
# 转换QualityLevel为字符串以便JSON序列化
|
|
623
|
+
result_copy = detection_result.copy()
|
|
624
|
+
result_copy['quality_metrics'] = {
|
|
625
|
+
'theoretical_accuracy': result_copy['quality_metrics'].theoretical_accuracy,
|
|
626
|
+
'methodological_soundness': result_copy['quality_metrics'].methodological_soundness,
|
|
627
|
+
'analytical_depth': result_copy['quality_metrics'].analytical_depth,
|
|
628
|
+
'logical_coherence': result_copy['quality_metrics'].logical_coherence,
|
|
629
|
+
'practical_relevance': result_copy['quality_metrics'].practical_relevance,
|
|
630
|
+
'overall_quality': result_copy['quality_metrics'].overall_quality,
|
|
631
|
+
'quality_level': result_copy['quality_metrics'].quality_level.value
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
with open(output_file, 'w', encoding='utf-8') as f:
|
|
635
|
+
json.dump(result_copy, f, ensure_ascii=False, indent=2, default=str)
|
|
636
|
+
|
|
637
|
+
return output_file
|
|
638
|
+
|
|
639
|
+
except Exception as e:
|
|
640
|
+
print(f"保存检测结果失败: {str(e)}")
|
|
641
|
+
return ""
|
|
642
|
+
|
|
643
|
+
def get_quality_statistics(self) -> Dict:
|
|
644
|
+
"""获取质量统计信息"""
|
|
645
|
+
|
|
646
|
+
if not self.detection_history:
|
|
647
|
+
return {
|
|
648
|
+
'total_detections': 0,
|
|
649
|
+
'average_quality': 0,
|
|
650
|
+
'quality_distribution': {},
|
|
651
|
+
'improvement_trend': '无数据'
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
total_detections = len(self.detection_history)
|
|
655
|
+
average_quality = sum(record['overall_quality'] for record in self.detection_history) / total_detections
|
|
656
|
+
|
|
657
|
+
# 质量分布
|
|
658
|
+
quality_distribution = {}
|
|
659
|
+
for record in self.detection_history:
|
|
660
|
+
level = record['quality_level']
|
|
661
|
+
quality_distribution[level] = quality_distribution.get(level, 0) + 1
|
|
662
|
+
|
|
663
|
+
# 改进趋势
|
|
664
|
+
if total_detections >= 2:
|
|
665
|
+
recent_avg = sum(record['overall_quality'] for record in self.detection_history[-5:]) / min(5, total_detections)
|
|
666
|
+
earlier_avg = sum(record['overall_quality'] for record in self.detection_history[:-5]) / max(1, total_detections - 5)
|
|
667
|
+
|
|
668
|
+
if recent_avg > earlier_avg + 0.5:
|
|
669
|
+
improvement_trend = "明显改善"
|
|
670
|
+
elif recent_avg > earlier_avg:
|
|
671
|
+
improvement_trend = "有所改善"
|
|
672
|
+
elif recent_avg < earlier_avg - 0.5:
|
|
673
|
+
improvement_trend = "明显下降"
|
|
674
|
+
elif recent_avg < earlier_avg:
|
|
675
|
+
improvement_trend = "有所下降"
|
|
676
|
+
else:
|
|
677
|
+
improvement_trend = "保持稳定"
|
|
678
|
+
else:
|
|
679
|
+
improvement_trend = "数据不足"
|
|
680
|
+
|
|
681
|
+
return {
|
|
682
|
+
'total_detections': total_detections,
|
|
683
|
+
'average_quality': average_quality,
|
|
684
|
+
'quality_distribution': quality_distribution,
|
|
685
|
+
'improvement_trend': improvement_trend
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
def main():
|
|
690
|
+
"""测试基础质量检测系统"""
|
|
691
|
+
detector = BasicQualityDetector()
|
|
692
|
+
|
|
693
|
+
test_text = """
|
|
694
|
+
在当代中国特色社会主义发展中,生产力与生产关系的矛盾运动推动着社会进步。
|
|
695
|
+
数字技术的快速发展带来了生产力的显著提升,但传统的生产关系在一定程度上
|
|
696
|
+
制约了这种发展。这种对立统一的关系体现了马克思主义辩证法的基本原理。
|
|
697
|
+
|
|
698
|
+
经济基础的变革要求上层建筑的相应调整。社会主义民主政治不断完善,
|
|
699
|
+
法律体系日益健全,马克思主义指导地位更加巩固。上层建筑对经济基础
|
|
700
|
+
发挥着积极的反作用,推动了经济社会的协调发展。
|
|
701
|
+
|
|
702
|
+
当前社会主要矛盾已经转化为人民日益增长的美好生活需要和不平衡不充分的
|
|
703
|
+
发展之间的矛盾。这一矛盾的科学判断体现了历史唯物主义的基本原理,
|
|
704
|
+
为新时代的发展指明了方向。人民群众在历史发展中发挥着主体作用,
|
|
705
|
+
是推动社会进步的根本力量。
|
|
706
|
+
"""
|
|
707
|
+
|
|
708
|
+
print("=== 基础质量检测系统测试 ===")
|
|
709
|
+
|
|
710
|
+
# 执行质量检测
|
|
711
|
+
detection_result = detector.comprehensive_quality_detection(test_text)
|
|
712
|
+
|
|
713
|
+
# 显示检测结果
|
|
714
|
+
quality_metrics = detection_result['quality_metrics']
|
|
715
|
+
print(f"\n综合质量分数: {quality_metrics.overall_quality:.2f}/10")
|
|
716
|
+
print(f"质量等级: {quality_metrics.quality_level.value}")
|
|
717
|
+
|
|
718
|
+
# 显示各项指标
|
|
719
|
+
print(f"\n各项指标:")
|
|
720
|
+
print(f"- 理论准确性: {quality_metrics.theoretical_accuracy:.2f}/10")
|
|
721
|
+
print(f"- 方法论科学性: {quality_metrics.methodological_soundness:.2f}/10")
|
|
722
|
+
print(f"- 分析深度: {quality_metrics.analytical_depth:.2f}/10")
|
|
723
|
+
print(f"- 逻辑连贯性: {quality_metrics.logical_coherence:.2f}/10")
|
|
724
|
+
print(f"- 实践相关性: {quality_metrics.practical_relevance:.2f}/10")
|
|
725
|
+
|
|
726
|
+
# 显示质量问题
|
|
727
|
+
quality_issues = detection_result['quality_issues']
|
|
728
|
+
if quality_issues:
|
|
729
|
+
print(f"\n质量问题 ({len(quality_issues)}个):")
|
|
730
|
+
for issue in quality_issues:
|
|
731
|
+
print(f"- {issue.issue_type}: {issue.description}")
|
|
732
|
+
|
|
733
|
+
# 显示改进建议
|
|
734
|
+
improvement_suggestions = detection_result['improvement_suggestions']
|
|
735
|
+
if improvement_suggestions:
|
|
736
|
+
print(f"\n改进建议:")
|
|
737
|
+
for suggestion in improvement_suggestions:
|
|
738
|
+
print(f"- {suggestion}")
|
|
739
|
+
|
|
740
|
+
# 生成质量报告
|
|
741
|
+
quality_report = detector.generate_quality_report(detection_result)
|
|
742
|
+
|
|
743
|
+
# 保存检测结果
|
|
744
|
+
output_file = detector.save_detection_result(detection_result)
|
|
745
|
+
if output_file:
|
|
746
|
+
print(f"\n检测结果已保存到: {output_file}")
|
|
747
|
+
|
|
748
|
+
# 显示质量统计
|
|
749
|
+
statistics = detector.get_quality_statistics()
|
|
750
|
+
print(f"\n质量统计:")
|
|
751
|
+
print(f"- 总检测次数: {statistics['total_detections']}")
|
|
752
|
+
print(f"- 平均质量分数: {statistics['average_quality']:.2f}")
|
|
753
|
+
print(f"- 改进趋势: {statistics['improvement_trend']}")
|
|
754
|
+
|
|
755
|
+
# 显示报告
|
|
756
|
+
print(f"\n{quality_report}")
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
if __name__ == "__main__":
|
|
760
|
+
main()
|