tree-sitter-analyzer 1.6.1__tar.gz → 1.6.1.1__tar.gz
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.
Potentially problematic release.
This version of tree-sitter-analyzer might be problematic. Click here for more details.
- tree_sitter_analyzer-1.6.1.1/.roo/AGENTS.md +74 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/release.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.analyze.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.checklist.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.clarify.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.constitution.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.implement.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.plan.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.specify.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/commands/speckit.tasks.md +3 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/release.md +141 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.analyze.md +184 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.checklist.md +287 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.clarify.md +176 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.constitution.md +77 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.implement.md +122 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.plan.md +80 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.specify.md +208 -0
- tree_sitter_analyzer-1.6.1.1/.roo/docs/speckit.tasks.md +111 -0
- tree_sitter_analyzer-1.6.1.1/.roo/rules/specify-rules.md +24 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/PKG-INFO +1 -1
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/pyproject.toml +2 -2
- tree_sitter_analyzer-1.6.1.1/test_results/BC-CLI-01_structure_analysis_complete.json +414 -0
- tree_sitter_analyzer-1.6.1.1/test_results/BC-CLI-02_query_code_complete.json +216 -0
- tree_sitter_analyzer-1.6.1.1/test_results/BC-CLI-03_help_command_complete.json +61 -0
- tree_sitter_analyzer-1.6.1.1/test_results/BC-MCP-01_analyze_code_structure_complete.json +72 -0
- tree_sitter_analyzer-1.6.1.1/test_results/BC-MCP-02_query_code_complete.json +83 -0
- tree_sitter_analyzer-1.6.1.1/test_results/BC-MCP-03_check_code_scale_complete.json +89 -0
- tree_sitter_analyzer-1.6.1.1/test_results/INT-LOG-01_combined_variables_complete.json +105 -0
- tree_sitter_analyzer-1.6.1.1/test_results/INT-LOG-02_log_content_verification_complete.json +139 -0
- tree_sitter_analyzer-1.6.1.1/test_results/INT-LOG-03_performance_impact_complete.json +119 -0
- tree_sitter_analyzer-1.6.1.1/test_results/INT-LOG-04_logger_level_separation_complete.json +115 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-01_default_behavior_complete.json +119 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-02_file_log_enablement_complete.json +86 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-03_custom_directory_complete.json +106 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-04_debug_level_complete.json +74 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-05_info_level_complete.json +85 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-06_warning_level_complete.json +87 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-07_error_level_complete.json +93 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-08_invalid_level_complete.json +94 -0
- tree_sitter_analyzer-1.6.1.1/test_results/LOG-CTL-09_no_permission_complete.json +87 -0
- tree_sitter_analyzer-1.6.1.1/test_results/analyze_logs.ps1 +45 -0
- tree_sitter_analyzer-1.6.1.1/test_results/performance_test.py +153 -0
- tree_sitter_analyzer-1.6.1.1/test_results/run_test.py +97 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_int_log_01.bat +15 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_int_log_02.bat +33 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_int_log_04.bat +43 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_log_ctl_05.bat +13 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_log_ctl_06.bat +13 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_log_ctl_07.bat +13 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_log_ctl_08.bat +13 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_log_ctl_09.bat +15 -0
- tree_sitter_analyzer-1.6.1.1/test_results/test_result_template.json +61 -0
- tree_sitter_analyzer-1.6.1.1/test_results/v1.6.1.1_test_cases.md +453 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/utils.py +161 -44
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/uv.lock +1 -1
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.gitattributes +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.gitignore +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.kiro/steering/product.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.kiro/steering/structure.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.kiro/steering/tech.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.pre-commit-config.yaml +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/.pre-commit-hooks.yaml +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/AI_COLLABORATION_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/CHANGELOG.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/CODE_STYLE_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/CONTRIBUTING.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/DEPLOYMENT_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/FILE_OUTPUT_FEATURE_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/GITFLOW.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/GITFLOW_ja.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/GITFLOW_zh.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/LANGUAGE_GUIDELINES.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/LLM_CODING_GUIDELINES.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/MCP_SETUP_DEVELOPERS.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/MCP_SETUP_USERS.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/PROJECT_ROOT_CONFIG.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/PYPI_RELEASE_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/PYTHON_SUPPORT_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/README.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/README_ja.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/README_zh.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/REFACTORING_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/build_standalone.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/check_quality.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/coverage.json +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/docs/GITFLOW_BEST_PRACTICES.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/docs/RELEASE_EXECUTION_GUIDE.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/docs/api.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/docs/mcp_fd_rg_design.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/BigService.java +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/BigService.json +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/BigService.summary.json +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/JavaDocTest.java +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/ModernJavaScript.js +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/MultiClass.java +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/ReactComponent.jsx +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/Sample.java +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/cache_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/calculate_token_comparison.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/file_output_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/javascript_analysis_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/project_root_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/sample.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/security_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/security_integration_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/smart_cache_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/examples/total_only_optimization_demo.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/llm_code_checker.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/pypirc_example.txt +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/pytest.ini +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/scripts/README.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/scripts/gitflow_helper.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/scripts/gitflow_release_automation.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/scripts/sync_version.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/scripts/sync_version_minimal.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/start_mcp_server.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/test_python_support.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/01_onboarding.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/02_architecture_map.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/03_cli_cheatsheet.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/04_mcp_cheatsheet.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/05_plugin_tutorial.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/06_quality_workflow.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/07_troubleshooting.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/08_prompt_library.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/09_tasks.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/10_glossary.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/11_takeover_plan.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/CLI_COMMAND_CORRECTIONS.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/IMPROVEMENT_SUMMARY.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/training/README.md +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/__main__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/api.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/__main__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/advanced_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/base_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/default_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/find_and_grep_cli.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/list_files_cli.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/partial_read_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/query_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/search_content_cli.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/structure_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/summary_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/commands/table_command.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli/info_commands.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/cli_main.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/constants.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/analysis_engine.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/cache_service.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/engine.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/parser.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/query.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/query_filter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/core/query_service.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/encoding_utils.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/exceptions.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/file_handler.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/base_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/formatter_factory.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/java_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/javascript_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/formatters/python_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/interfaces/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/interfaces/cli.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/interfaces/cli_adapter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/interfaces/mcp_adapter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/interfaces/mcp_server.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/language_detector.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/language_loader.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/languages/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/languages/java_plugin.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/languages/javascript_plugin.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/languages/python_plugin.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/resources/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/resources/code_file_resource.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/resources/project_stats_resource.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/server.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool_cli_compatible.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/base_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/fd_rg_utils.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/find_and_grep_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/list_files_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/query_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/read_partial_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/search_content_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/table_format_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/tools/universal_analyze_tool.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/error_handler.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/file_output_manager.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/gitignore_detector.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/path_resolver.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/mcp/utils/search_cache.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/models.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/output_manager.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/plugins/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/plugins/base.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/plugins/manager.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/project_detector.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/queries/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/queries/java.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/queries/javascript.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/queries/python.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/queries/typescript.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/query_loader.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/security/__init__.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/security/boundary_manager.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/security/regex_checker.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/security/validator.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/tree_sitter_analyzer/table_formatter.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/upload_interactive.py +0 -0
- {tree_sitter_analyzer-1.6.1 → tree_sitter_analyzer-1.6.1.1}/upload_to_pypi.py +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# ROO規則 - Tree-Sitter-Analyzer MCP最適化ガイド
|
|
2
|
+
|
|
3
|
+
## 🎯 核心原則
|
|
4
|
+
|
|
5
|
+
### 1. 言語サポート
|
|
6
|
+
**対応拡張子**: `.java`, `.js`, `.mjs`, `.jsx`, `.ts`, `.tsx`, `.py`, `.md`
|
|
7
|
+
**制限**: 上記以外は構造解析機能が制限されます
|
|
8
|
+
|
|
9
|
+
### 2. 基本規則
|
|
10
|
+
- **禁止**: 標準`read_file`での直接コードファイル読取
|
|
11
|
+
- **必須**: tree-sitter-analyzer MCPツール使用
|
|
12
|
+
- **推奨**: `check_code_scale`による事前評価
|
|
13
|
+
|
|
14
|
+
### 3. 効率化ワークフロー
|
|
15
|
+
```
|
|
16
|
+
search_content → check_code_scale → 推奨戦略に従う
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 📋 実践ガイド
|
|
20
|
+
|
|
21
|
+
### 小規模分析
|
|
22
|
+
```markdown
|
|
23
|
+
search_content → read_file
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### 大規模分析
|
|
27
|
+
```markdown
|
|
28
|
+
search_content → check_code_scale → analyze_code_structure
|
|
29
|
+
suppress_output=true + output_file
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 安全検索
|
|
33
|
+
```markdown
|
|
34
|
+
# Token爆発防止
|
|
35
|
+
search_content (total_only=true) → 数量確認 → 詳細検索
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## ⚡ 最適化テクニック
|
|
39
|
+
|
|
40
|
+
### Token節約
|
|
41
|
+
- 大量結果: `suppress_output=true + output_file`
|
|
42
|
+
- 検索: `total_only → summary_only → 詳細`の段階的アプローチ
|
|
43
|
+
- 日本語検索: 汎用語(「項目名」「データ」「処理」)回避
|
|
44
|
+
|
|
45
|
+
### システム対応
|
|
46
|
+
- **Windows**: Unixコマンド(`grep`, `find`等)禁止
|
|
47
|
+
- **Python実行**: 直接`python -c`禁止、テストファイル作成推奨
|
|
48
|
+
|
|
49
|
+
## 🚨 重要注意
|
|
50
|
+
|
|
51
|
+
### Token爆発防止
|
|
52
|
+
⚠️ **危険**: 汎用語検索での大量結果
|
|
53
|
+
✅ **対策**: 必ず`total_only=true`で事前確認
|
|
54
|
+
|
|
55
|
+
### 効率化パラメータ
|
|
56
|
+
```markdown
|
|
57
|
+
# 検索制限
|
|
58
|
+
max_count: 20
|
|
59
|
+
include_globs: ["*.py", "*.java", "*.js", "*.ts", "*.md"]
|
|
60
|
+
|
|
61
|
+
# 出力制御
|
|
62
|
+
suppress_output: true
|
|
63
|
+
output_file: "analysis_result.json"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## 🔧 クイックリファレンス
|
|
67
|
+
|
|
68
|
+
| 目的 | 手法 | パラメータ |
|
|
69
|
+
|------|------|------------|
|
|
70
|
+
| ファイル探索 | search_content → read_file | - |
|
|
71
|
+
| 大規模分析 | check_code_scale → analyze_code_structure | suppress_output=true |
|
|
72
|
+
| 安全検索 | search_content | total_only=true |
|
|
73
|
+
| 構造解析 | analyze_code_structure | format_type=full |
|
|
74
|
+
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: GitFlowリリースプロセスを自動化実行 - PyPI優先戦略でrelease分岐からmain/developへの安全なマージを実行
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## User Input
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
You **MUST** consider the user input before proceeding (if not empty).
|
|
12
|
+
|
|
13
|
+
## Outline
|
|
14
|
+
|
|
15
|
+
1. **前提条件確認**: 現在のブランチ状態とリリース準備状況を検証
|
|
16
|
+
- 現在のブランチが`develop`であることを確認
|
|
17
|
+
- 未コミットの変更がないことを確認
|
|
18
|
+
- リモートとの同期状態を確認
|
|
19
|
+
|
|
20
|
+
2. **バージョン情報取得**: ユーザー入力またはpyproject.tomlから次のバージョンを決定
|
|
21
|
+
- 引数でバージョンが指定された場合: そのバージョンを使用
|
|
22
|
+
- 引数が空の場合: pyproject.tomlから現在のバージョンを読み取り、パッチバージョンを自動インクリメント
|
|
23
|
+
- バージョン形式検証 (semantic versioning: x.y.z)
|
|
24
|
+
|
|
25
|
+
3. **Release分岐作成**: developからrelease/vX.Y.Z分岐を作成
|
|
26
|
+
```bash
|
|
27
|
+
git fetch origin
|
|
28
|
+
git checkout -b release/v{VERSION} origin/develop
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
4. **リリース準備作業**: バージョン更新と文書同期
|
|
32
|
+
- pyproject.tomlのバージョン更新
|
|
33
|
+
- server_versionの更新
|
|
34
|
+
- `uv run python scripts/sync_version_minimal.py`実行
|
|
35
|
+
- 品質指標取得:
|
|
36
|
+
* テスト数: `uv run python -m pytest --collect-only -q | findstr /C:"collected"`
|
|
37
|
+
* 注意:カバレッジはCodecov自動徽章を使用、手動更新不要
|
|
38
|
+
- 文書更新:
|
|
39
|
+
* README.md (バージョン、テスト数)
|
|
40
|
+
* README_zh.md, README_ja.md
|
|
41
|
+
* CHANGELOG.md
|
|
42
|
+
* バージョン徽章、テスト徽章更新(カバレッジ徽章はCodecov自動更新)
|
|
43
|
+
|
|
44
|
+
5. **Release分岐プッシュ**: PyPI自動発布トリガー
|
|
45
|
+
```bash
|
|
46
|
+
git add .
|
|
47
|
+
git commit -m "Release v{VERSION}: Update version and documentation"
|
|
48
|
+
git push origin release/v{VERSION}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
6. **PyPI発布待機**: 自動化ワークフローの完了を監視
|
|
52
|
+
- GitHub Actionsページでrelease-automation.ymlの実行状況を確認
|
|
53
|
+
- PyPI発布成功の確認
|
|
54
|
+
- 失敗時のエラーハンドリング
|
|
55
|
+
|
|
56
|
+
7. **Main分岐マージ**: PyPI発布成功後のmain分岐更新
|
|
57
|
+
```bash
|
|
58
|
+
git checkout main
|
|
59
|
+
git merge release/v{VERSION}
|
|
60
|
+
git tag -a v{VERSION} -m "Release v{VERSION}"
|
|
61
|
+
git push origin main --tags
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
8. **Develop分岐マージ**: 変更をdevelopに反映
|
|
65
|
+
```bash
|
|
66
|
+
git checkout develop
|
|
67
|
+
git merge release/v{VERSION}
|
|
68
|
+
git push origin develop
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
9. **GitHub Release作成**: 自動化されたリリースノート生成
|
|
72
|
+
- release_message.mdテンプレート作成
|
|
73
|
+
- gh CLIを使用したリリース作成
|
|
74
|
+
- リリースノートの品質指標含む
|
|
75
|
+
|
|
76
|
+
10. **クリーンアップ**: Release分岐削除
|
|
77
|
+
```bash
|
|
78
|
+
git branch -d release/v{VERSION}
|
|
79
|
+
git push origin --delete release/v{VERSION}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## 実行フロー
|
|
83
|
+
|
|
84
|
+
### Phase 1: 準備と検証
|
|
85
|
+
- 現在の状態確認 (ブランチ、未コミット変更、リモート同期)
|
|
86
|
+
- バージョン決定 (引数 or 自動インクリメント)
|
|
87
|
+
- Release分岐作成
|
|
88
|
+
|
|
89
|
+
### Phase 2: リリース準備
|
|
90
|
+
- バージョンファイル更新
|
|
91
|
+
- 品質指標取得
|
|
92
|
+
- 文書更新とコミット
|
|
93
|
+
- Release分岐プッシュ
|
|
94
|
+
|
|
95
|
+
### Phase 3: PyPI発布監視
|
|
96
|
+
- GitHub Actions監視
|
|
97
|
+
- 発布成功確認
|
|
98
|
+
- エラー時の対応指示
|
|
99
|
+
|
|
100
|
+
### Phase 4: 分岐マージ
|
|
101
|
+
- Main分岐マージとタグ作成
|
|
102
|
+
- Develop分岐マージ
|
|
103
|
+
- GitHub Release作成
|
|
104
|
+
|
|
105
|
+
### Phase 5: 後処理
|
|
106
|
+
- 完了報告
|
|
107
|
+
|
|
108
|
+
## エラーハンドリング
|
|
109
|
+
|
|
110
|
+
### 前提条件エラー
|
|
111
|
+
- 現在のブランチがdevelopでない → 指示とともに停止
|
|
112
|
+
- 未コミット変更あり → コミットまたはstash指示
|
|
113
|
+
- リモート非同期 → fetch/pull指示
|
|
114
|
+
|
|
115
|
+
### PyPI発布エラー
|
|
116
|
+
- GitHub Actions失敗 → ログ確認指示
|
|
117
|
+
- PyPI発布失敗 → 手動対応手順提示
|
|
118
|
+
- タイムアウト → 状況確認と次ステップ提示
|
|
119
|
+
|
|
120
|
+
### マージエラー
|
|
121
|
+
- コンフリクト発生 → 解決手順提示
|
|
122
|
+
- プッシュ失敗 → 権限確認指示
|
|
123
|
+
|
|
124
|
+
## 成功基準
|
|
125
|
+
|
|
126
|
+
1. ✅ Release分岐が正常に作成された
|
|
127
|
+
2. ✅ バージョンファイルが正しく更新された
|
|
128
|
+
3. ✅ PyPI発布が成功した
|
|
129
|
+
4. ✅ Main分岐にマージされタグが作成された
|
|
130
|
+
5. ✅ Develop分岐にマージされた
|
|
131
|
+
6. ✅ GitHub Releaseが作成された
|
|
132
|
+
|
|
133
|
+
## 注意事項
|
|
134
|
+
|
|
135
|
+
- **PyPI優先戦略**: パッケージ発布成功後にmain分岐を更新
|
|
136
|
+
- **自動化依存**: GitHub Actionsのrelease-automation.ymlに依存
|
|
137
|
+
- **品質保証**: テスト実行とカバレッジ確認が必須
|
|
138
|
+
- **文書同期**: 多言語README更新が必要
|
|
139
|
+
- **タグ管理**: セマンティックバージョニング準拠
|
|
140
|
+
|
|
141
|
+
このコマンドはGITFLOW_zh.mdで定義されたリリースプロセスを完全自動化し、PyPI優先戦略により安全で確実なリリースを実現します。
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## User Input
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
$ARGUMENTS
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
You **MUST** consider the user input before proceeding (if not empty).
|
|
12
|
+
|
|
13
|
+
## Goal
|
|
14
|
+
|
|
15
|
+
Identify inconsistencies, duplications, ambiguities, and underspecified items across the three core artifacts (`spec.md`, `plan.md`, `tasks.md`) before implementation. This command MUST run only after `/tasks` has successfully produced a complete `tasks.md`.
|
|
16
|
+
|
|
17
|
+
## Operating Constraints
|
|
18
|
+
|
|
19
|
+
**STRICTLY READ-ONLY**: Do **not** modify any files. Output a structured analysis report. Offer an optional remediation plan (user must explicitly approve before any follow-up editing commands would be invoked manually).
|
|
20
|
+
|
|
21
|
+
**Constitution Authority**: The project constitution (`.specify/memory/constitution.md`) is **non-negotiable** within this analysis scope. Constitution conflicts are automatically CRITICAL and require adjustment of the spec, plan, or tasks—not dilution, reinterpretation, or silent ignoring of the principle. If a principle itself needs to change, that must occur in a separate, explicit constitution update outside `/analyze`.
|
|
22
|
+
|
|
23
|
+
## Execution Steps
|
|
24
|
+
|
|
25
|
+
### 1. Initialize Analysis Context
|
|
26
|
+
|
|
27
|
+
Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks` once from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS. Derive absolute paths:
|
|
28
|
+
|
|
29
|
+
- SPEC = FEATURE_DIR/spec.md
|
|
30
|
+
- PLAN = FEATURE_DIR/plan.md
|
|
31
|
+
- TASKS = FEATURE_DIR/tasks.md
|
|
32
|
+
|
|
33
|
+
Abort with an error message if any required file is missing (instruct the user to run missing prerequisite command).
|
|
34
|
+
For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
|
|
35
|
+
|
|
36
|
+
### 2. Load Artifacts (Progressive Disclosure)
|
|
37
|
+
|
|
38
|
+
Load only the minimal necessary context from each artifact:
|
|
39
|
+
|
|
40
|
+
**From spec.md:**
|
|
41
|
+
|
|
42
|
+
- Overview/Context
|
|
43
|
+
- Functional Requirements
|
|
44
|
+
- Non-Functional Requirements
|
|
45
|
+
- User Stories
|
|
46
|
+
- Edge Cases (if present)
|
|
47
|
+
|
|
48
|
+
**From plan.md:**
|
|
49
|
+
|
|
50
|
+
- Architecture/stack choices
|
|
51
|
+
- Data Model references
|
|
52
|
+
- Phases
|
|
53
|
+
- Technical constraints
|
|
54
|
+
|
|
55
|
+
**From tasks.md:**
|
|
56
|
+
|
|
57
|
+
- Task IDs
|
|
58
|
+
- Descriptions
|
|
59
|
+
- Phase grouping
|
|
60
|
+
- Parallel markers [P]
|
|
61
|
+
- Referenced file paths
|
|
62
|
+
|
|
63
|
+
**From constitution:**
|
|
64
|
+
|
|
65
|
+
- Load `.specify/memory/constitution.md` for principle validation
|
|
66
|
+
|
|
67
|
+
### 3. Build Semantic Models
|
|
68
|
+
|
|
69
|
+
Create internal representations (do not include raw artifacts in output):
|
|
70
|
+
|
|
71
|
+
- **Requirements inventory**: Each functional + non-functional requirement with a stable key (derive slug based on imperative phrase; e.g., "User can upload file" → `user-can-upload-file`)
|
|
72
|
+
- **User story/action inventory**: Discrete user actions with acceptance criteria
|
|
73
|
+
- **Task coverage mapping**: Map each task to one or more requirements or stories (inference by keyword / explicit reference patterns like IDs or key phrases)
|
|
74
|
+
- **Constitution rule set**: Extract principle names and MUST/SHOULD normative statements
|
|
75
|
+
|
|
76
|
+
### 4. Detection Passes (Token-Efficient Analysis)
|
|
77
|
+
|
|
78
|
+
Focus on high-signal findings. Limit to 50 findings total; aggregate remainder in overflow summary.
|
|
79
|
+
|
|
80
|
+
#### A. Duplication Detection
|
|
81
|
+
|
|
82
|
+
- Identify near-duplicate requirements
|
|
83
|
+
- Mark lower-quality phrasing for consolidation
|
|
84
|
+
|
|
85
|
+
#### B. Ambiguity Detection
|
|
86
|
+
|
|
87
|
+
- Flag vague adjectives (fast, scalable, secure, intuitive, robust) lacking measurable criteria
|
|
88
|
+
- Flag unresolved placeholders (TODO, TKTK, ???, `<placeholder>`, etc.)
|
|
89
|
+
|
|
90
|
+
#### C. Underspecification
|
|
91
|
+
|
|
92
|
+
- Requirements with verbs but missing object or measurable outcome
|
|
93
|
+
- User stories missing acceptance criteria alignment
|
|
94
|
+
- Tasks referencing files or components not defined in spec/plan
|
|
95
|
+
|
|
96
|
+
#### D. Constitution Alignment
|
|
97
|
+
|
|
98
|
+
- Any requirement or plan element conflicting with a MUST principle
|
|
99
|
+
- Missing mandated sections or quality gates from constitution
|
|
100
|
+
|
|
101
|
+
#### E. Coverage Gaps
|
|
102
|
+
|
|
103
|
+
- Requirements with zero associated tasks
|
|
104
|
+
- Tasks with no mapped requirement/story
|
|
105
|
+
- Non-functional requirements not reflected in tasks (e.g., performance, security)
|
|
106
|
+
|
|
107
|
+
#### F. Inconsistency
|
|
108
|
+
|
|
109
|
+
- Terminology drift (same concept named differently across files)
|
|
110
|
+
- Data entities referenced in plan but absent in spec (or vice versa)
|
|
111
|
+
- Task ordering contradictions (e.g., integration tasks before foundational setup tasks without dependency note)
|
|
112
|
+
- Conflicting requirements (e.g., one requires Next.js while other specifies Vue)
|
|
113
|
+
|
|
114
|
+
### 5. Severity Assignment
|
|
115
|
+
|
|
116
|
+
Use this heuristic to prioritize findings:
|
|
117
|
+
|
|
118
|
+
- **CRITICAL**: Violates constitution MUST, missing core spec artifact, or requirement with zero coverage that blocks baseline functionality
|
|
119
|
+
- **HIGH**: Duplicate or conflicting requirement, ambiguous security/performance attribute, untestable acceptance criterion
|
|
120
|
+
- **MEDIUM**: Terminology drift, missing non-functional task coverage, underspecified edge case
|
|
121
|
+
- **LOW**: Style/wording improvements, minor redundancy not affecting execution order
|
|
122
|
+
|
|
123
|
+
### 6. Produce Compact Analysis Report
|
|
124
|
+
|
|
125
|
+
Output a Markdown report (no file writes) with the following structure:
|
|
126
|
+
|
|
127
|
+
## Specification Analysis Report
|
|
128
|
+
|
|
129
|
+
| ID | Category | Severity | Location(s) | Summary | Recommendation |
|
|
130
|
+
|----|----------|----------|-------------|---------|----------------|
|
|
131
|
+
| A1 | Duplication | HIGH | spec.md:L120-134 | Two similar requirements ... | Merge phrasing; keep clearer version |
|
|
132
|
+
|
|
133
|
+
(Add one row per finding; generate stable IDs prefixed by category initial.)
|
|
134
|
+
|
|
135
|
+
**Coverage Summary Table:**
|
|
136
|
+
|
|
137
|
+
| Requirement Key | Has Task? | Task IDs | Notes |
|
|
138
|
+
|-----------------|-----------|----------|-------|
|
|
139
|
+
|
|
140
|
+
**Constitution Alignment Issues:** (if any)
|
|
141
|
+
|
|
142
|
+
**Unmapped Tasks:** (if any)
|
|
143
|
+
|
|
144
|
+
**Metrics:**
|
|
145
|
+
|
|
146
|
+
- Total Requirements
|
|
147
|
+
- Total Tasks
|
|
148
|
+
- Coverage % (requirements with >=1 task)
|
|
149
|
+
- Ambiguity Count
|
|
150
|
+
- Duplication Count
|
|
151
|
+
- Critical Issues Count
|
|
152
|
+
|
|
153
|
+
### 7. Provide Next Actions
|
|
154
|
+
|
|
155
|
+
At end of report, output a concise Next Actions block:
|
|
156
|
+
|
|
157
|
+
- If CRITICAL issues exist: Recommend resolving before `/implement`
|
|
158
|
+
- If only LOW/MEDIUM: User may proceed, but provide improvement suggestions
|
|
159
|
+
- Provide explicit command suggestions: e.g., "Run /specify with refinement", "Run /plan to adjust architecture", "Manually edit tasks.md to add coverage for 'performance-metrics'"
|
|
160
|
+
|
|
161
|
+
### 8. Offer Remediation
|
|
162
|
+
|
|
163
|
+
Ask the user: "Would you like me to suggest concrete remediation edits for the top N issues?" (Do NOT apply them automatically.)
|
|
164
|
+
|
|
165
|
+
## Operating Principles
|
|
166
|
+
|
|
167
|
+
### Context Efficiency
|
|
168
|
+
|
|
169
|
+
- **Minimal high-signal tokens**: Focus on actionable findings, not exhaustive documentation
|
|
170
|
+
- **Progressive disclosure**: Load artifacts incrementally; don't dump all content into analysis
|
|
171
|
+
- **Token-efficient output**: Limit findings table to 50 rows; summarize overflow
|
|
172
|
+
- **Deterministic results**: Rerunning without changes should produce consistent IDs and counts
|
|
173
|
+
|
|
174
|
+
### Analysis Guidelines
|
|
175
|
+
|
|
176
|
+
- **NEVER modify files** (this is read-only analysis)
|
|
177
|
+
- **NEVER hallucinate missing sections** (if absent, report them accurately)
|
|
178
|
+
- **Prioritize constitution violations** (these are always CRITICAL)
|
|
179
|
+
- **Use examples over exhaustive rules** (cite specific instances, not generic patterns)
|
|
180
|
+
- **Report zero issues gracefully** (emit success report with coverage statistics)
|
|
181
|
+
|
|
182
|
+
## Context
|
|
183
|
+
|
|
184
|
+
$ARGUMENTS
|