tree-sitter-analyzer 1.7.5__tar.gz → 1.7.7__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.7.7/.roo/commands/release.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.analyze.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.checklist.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.clarify.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.constitution.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.implement.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.plan.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.specify.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/commands/speckit.tasks.md +3 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/release.md +143 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.analyze.md +184 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.checklist.md +287 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.clarify.md +176 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.constitution.md +77 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.implement.md +122 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.plan.md +80 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.specify.md +208 -0
- tree_sitter_analyzer-1.7.7/.roo/docs/speckit.tasks.md +111 -0
- tree_sitter_analyzer-1.7.7/.roo/rules/specify-rules.md +24 -0
- tree_sitter_analyzer-1.7.7/.specify/memory/constitution.md +80 -0
- tree_sitter_analyzer-1.7.7/.specify/scripts/powershell/check-prerequisites.ps1 +148 -0
- tree_sitter_analyzer-1.7.7/.specify/scripts/powershell/common.ps1 +136 -0
- tree_sitter_analyzer-1.7.7/.specify/scripts/powershell/create-new-feature.ps1 +117 -0
- tree_sitter_analyzer-1.7.7/.specify/scripts/powershell/setup-plan.ps1 +61 -0
- tree_sitter_analyzer-1.7.7/.specify/scripts/powershell/update-agent-context.ps1 +436 -0
- tree_sitter_analyzer-1.7.7/.specify/templates/agent-file-template.md +23 -0
- tree_sitter_analyzer-1.7.7/.specify/templates/checklist-template.md +40 -0
- tree_sitter_analyzer-1.7.7/.specify/templates/plan-template.md +123 -0
- tree_sitter_analyzer-1.7.7/.specify/templates/spec-template.md +115 -0
- tree_sitter_analyzer-1.7.7/.specify/templates/tasks-template.md +250 -0
- tree_sitter_analyzer-1.7.5/.roo/rules/rules.md → tree_sitter_analyzer-1.7.7/AGENTS.md +1 -1
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/GITFLOW.md +8 -8
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/GITFLOW_ja.md +4 -4
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/GITFLOW_zh.md +8 -8
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/PKG-INFO +21 -5
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/README.md +4 -4
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/README_ja.md +4 -4
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/README_zh.md +4 -4
- tree_sitter_analyzer-1.7.7/RELEASE_NOTES_v1.7.5.md +240 -0
- tree_sitter_analyzer-1.7.7/RELEASE_NOTES_v1.7.6.md +240 -0
- tree_sitter_analyzer-1.7.7/docs/api/mcp_tools_specification.md +1206 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/pyproject.toml +20 -1
- tree_sitter_analyzer-1.7.7/pytest.ini +33 -0
- tree_sitter_analyzer-1.7.7/scripts/run_phase7_integration_tests.py +319 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/DEPLOYMENT_GUIDE.md +423 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/DOCUMENTATION_INDEX.md +243 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/ERROR_HANDLING_SPECIFICATION.md +382 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/GLOSSARY.md +115 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/PERFORMANCE_BENCHMARKS.md +240 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/README.md +124 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/checklists/requirements.md +38 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/contracts/mcp-resources-api.json +585 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/contracts/mcp-tools-api.json +981 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/data-model.md +223 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/implementation_status.md +117 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/plan.md +257 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/quickstart.md +385 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/research.md +232 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/resources/mcp_resources_specification.md +479 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/spec.md +143 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tasks.md +482 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/test_environment_status.md +161 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/analyze_code_structure_specification.md +431 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/check_code_scale_specification.md +333 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/extract_code_section_specification.md +262 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/find_and_grep_specification.md +424 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/list_files_specification.md +416 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/query_code_specification.md +296 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/search_content_specification.md +601 -0
- tree_sitter_analyzer-1.7.7/specs/001-mcp-tree-sitter/tools/set_project_path_specification.md +270 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/__init__.py +1 -1
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/api.py +3 -2
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/exceptions.py +334 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/file_handler.py +16 -1
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/interfaces/mcp_server.py +3 -1
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/language_detector.py +12 -1
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool.py +68 -3
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/fd_rg_utils.py +32 -7
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/find_and_grep_tool.py +10 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/list_files_tool.py +9 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/query_tool.py +9 -2
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/read_partial_tool.py +98 -14
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/search_content_tool.py +9 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/table_format_tool.py +13 -3
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/security/validator.py +168 -9
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/uv.lock +56 -2
- tree_sitter_analyzer-1.7.5/pytest.ini +0 -37
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.gitattributes +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.gitignore +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.kiro/steering/product.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.kiro/steering/structure.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.kiro/steering/tech.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.pre-commit-config.yaml +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/.pre-commit-hooks.yaml +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/CHANGELOG.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/build_standalone.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/check_quality.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/BigService.java +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/BigService.json +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/BigService.summary.json +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/ComprehensiveTypeScript.ts +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/JavaDocTest.java +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/ModernJavaScript.js +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/MultiClass.java +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/ReactComponent.jsx +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/ReactTypeScriptComponent.tsx +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/Sample.java +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/TypeScriptDeclarations.d.ts +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/cache_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/calculate_token_comparison.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/file_output_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/javascript_analysis_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/project_root_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/sample.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/security_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/security_integration_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/smart_cache_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/suppress_output_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/test_markdown.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/examples/total_only_optimization_demo.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/llm_code_checker.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/pypirc_example.txt +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/README.md +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/gitflow_helper.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/gitflow_release_automation.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/sync_version.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/sync_version_minimal.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/scripts/update_readme_stats.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/start_mcp_server.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/test_python_support.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/__main__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/__main__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/advanced_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/base_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/default_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/find_and_grep_cli.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/list_files_cli.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/partial_read_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/query_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/search_content_cli.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/structure_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/summary_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/commands/table_command.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli/info_commands.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/cli_main.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/constants.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/analysis_engine.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/cache_service.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/engine.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/parser.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/query.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/query_filter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/core/query_service.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/encoding_utils.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/base_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/formatter_factory.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/java_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/javascript_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/language_formatter_factory.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/markdown_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/python_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/formatters/typescript_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/interfaces/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/interfaces/cli.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/interfaces/cli_adapter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/interfaces/mcp_adapter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/language_loader.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/java_plugin.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/javascript_plugin.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/markdown_plugin.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/python_plugin.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/languages/typescript_plugin.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/resources/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/resources/code_file_resource.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/resources/project_stats_resource.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/server.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/analyze_scale_tool_cli_compatible.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/base_tool.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/tools/universal_analyze_tool.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/error_handler.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/file_output_manager.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/gitignore_detector.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/path_resolver.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/mcp/utils/search_cache.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/models.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/output_manager.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/plugins/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/plugins/base.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/plugins/manager.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/project_detector.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/java.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/javascript.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/markdown.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/python.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/queries/typescript.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/query_loader.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/security/__init__.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/security/boundary_manager.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/security/regex_checker.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/table_formatter.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/tree_sitter_analyzer/utils.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/upload_interactive.py +0 -0
- {tree_sitter_analyzer-1.7.5 → tree_sitter_analyzer-1.7.7}/upload_to_pypi.py +0 -0
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
- Release分岐削除
|
|
107
|
+
- 完了報告
|
|
108
|
+
|
|
109
|
+
## エラーハンドリング
|
|
110
|
+
|
|
111
|
+
### 前提条件エラー
|
|
112
|
+
- 現在のブランチがdevelopでない → 指示とともに停止
|
|
113
|
+
- 未コミット変更あり → コミットまたはstash指示
|
|
114
|
+
- リモート非同期 → fetch/pull指示
|
|
115
|
+
|
|
116
|
+
### PyPI発布エラー
|
|
117
|
+
- GitHub Actions失敗 → ログ確認指示
|
|
118
|
+
- PyPI発布失敗 → 手動対応手順提示
|
|
119
|
+
- タイムアウト → 状況確認と次ステップ提示
|
|
120
|
+
|
|
121
|
+
### マージエラー
|
|
122
|
+
- コンフリクト発生 → 解決手順提示
|
|
123
|
+
- プッシュ失敗 → 権限確認指示
|
|
124
|
+
|
|
125
|
+
## 成功基準
|
|
126
|
+
|
|
127
|
+
1. ✅ Release分岐が正常に作成された
|
|
128
|
+
2. ✅ バージョンファイルが正しく更新された
|
|
129
|
+
3. ✅ PyPI発布が成功した
|
|
130
|
+
4. ✅ Main分岐にマージされタグが作成された
|
|
131
|
+
5. ✅ Develop分岐にマージされた
|
|
132
|
+
6. ✅ GitHub Releaseが作成された
|
|
133
|
+
7. ✅ Release分岐が削除された
|
|
134
|
+
|
|
135
|
+
## 注意事項
|
|
136
|
+
|
|
137
|
+
- **PyPI優先戦略**: パッケージ発布成功後にmain分岐を更新
|
|
138
|
+
- **自動化依存**: GitHub Actionsのrelease-automation.ymlに依存
|
|
139
|
+
- **品質保証**: テスト実行とカバレッジ確認が必須
|
|
140
|
+
- **文書同期**: 多言語README更新が必要
|
|
141
|
+
- **タグ管理**: セマンティックバージョニング準拠
|
|
142
|
+
|
|
143
|
+
このコマンドは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
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Generate a custom checklist for the current feature based on user requirements.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Checklist Purpose: "Unit Tests for English"
|
|
6
|
+
|
|
7
|
+
**CRITICAL CONCEPT**: Checklists are **UNIT TESTS FOR REQUIREMENTS WRITING** - they validate the quality, clarity, and completeness of requirements in a given domain.
|
|
8
|
+
|
|
9
|
+
**NOT for verification/testing**:
|
|
10
|
+
- ❌ NOT "Verify the button clicks correctly"
|
|
11
|
+
- ❌ NOT "Test error handling works"
|
|
12
|
+
- ❌ NOT "Confirm the API returns 200"
|
|
13
|
+
- ❌ NOT checking if code/implementation matches the spec
|
|
14
|
+
|
|
15
|
+
**FOR requirements quality validation**:
|
|
16
|
+
- ✅ "Are visual hierarchy requirements defined for all card types?" (completeness)
|
|
17
|
+
- ✅ "Is 'prominent display' quantified with specific sizing/positioning?" (clarity)
|
|
18
|
+
- ✅ "Are hover state requirements consistent across all interactive elements?" (consistency)
|
|
19
|
+
- ✅ "Are accessibility requirements defined for keyboard navigation?" (coverage)
|
|
20
|
+
- ✅ "Does the spec define what happens when logo image fails to load?" (edge cases)
|
|
21
|
+
|
|
22
|
+
**Metaphor**: If your spec is code written in English, the checklist is its unit test suite. You're testing whether the requirements are well-written, complete, unambiguous, and ready for implementation - NOT whether the implementation works.
|
|
23
|
+
|
|
24
|
+
## User Input
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
$ARGUMENTS
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
You **MUST** consider the user input before proceeding (if not empty).
|
|
31
|
+
|
|
32
|
+
## Execution Steps
|
|
33
|
+
|
|
34
|
+
1. **Setup**: Run `.specify/scripts/powershell/check-prerequisites.ps1 -Json` from repo root and parse JSON for FEATURE_DIR and AVAILABLE_DOCS list.
|
|
35
|
+
- All file paths must be absolute.
|
|
36
|
+
- 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").
|
|
37
|
+
|
|
38
|
+
2. **Clarify intent (dynamic)**: Derive up to THREE initial contextual clarifying questions (no pre-baked catalog). They MUST:
|
|
39
|
+
- Be generated from the user's phrasing + extracted signals from spec/plan/tasks
|
|
40
|
+
- Only ask about information that materially changes checklist content
|
|
41
|
+
- Be skipped individually if already unambiguous in `$ARGUMENTS`
|
|
42
|
+
- Prefer precision over breadth
|
|
43
|
+
|
|
44
|
+
Generation algorithm:
|
|
45
|
+
1. Extract signals: feature domain keywords (e.g., auth, latency, UX, API), risk indicators ("critical", "must", "compliance"), stakeholder hints ("QA", "review", "security team"), and explicit deliverables ("a11y", "rollback", "contracts").
|
|
46
|
+
2. Cluster signals into candidate focus areas (max 4) ranked by relevance.
|
|
47
|
+
3. Identify probable audience & timing (author, reviewer, QA, release) if not explicit.
|
|
48
|
+
4. Detect missing dimensions: scope breadth, depth/rigor, risk emphasis, exclusion boundaries, measurable acceptance criteria.
|
|
49
|
+
5. Formulate questions chosen from these archetypes:
|
|
50
|
+
- Scope refinement (e.g., "Should this include integration touchpoints with X and Y or stay limited to local module correctness?")
|
|
51
|
+
- Risk prioritization (e.g., "Which of these potential risk areas should receive mandatory gating checks?")
|
|
52
|
+
- Depth calibration (e.g., "Is this a lightweight pre-commit sanity list or a formal release gate?")
|
|
53
|
+
- Audience framing (e.g., "Will this be used by the author only or peers during PR review?")
|
|
54
|
+
- Boundary exclusion (e.g., "Should we explicitly exclude performance tuning items this round?")
|
|
55
|
+
- Scenario class gap (e.g., "No recovery flows detected—are rollback / partial failure paths in scope?")
|
|
56
|
+
|
|
57
|
+
Question formatting rules:
|
|
58
|
+
- If presenting options, generate a compact table with columns: Option | Candidate | Why It Matters
|
|
59
|
+
- Limit to A–E options maximum; omit table if a free-form answer is clearer
|
|
60
|
+
- Never ask the user to restate what they already said
|
|
61
|
+
- Avoid speculative categories (no hallucination). If uncertain, ask explicitly: "Confirm whether X belongs in scope."
|
|
62
|
+
|
|
63
|
+
Defaults when interaction impossible:
|
|
64
|
+
- Depth: Standard
|
|
65
|
+
- Audience: Reviewer (PR) if code-related; Author otherwise
|
|
66
|
+
- Focus: Top 2 relevance clusters
|
|
67
|
+
|
|
68
|
+
Output the questions (label Q1/Q2/Q3). After answers: if ≥2 scenario classes (Alternate / Exception / Recovery / Non-Functional domain) remain unclear, you MAY ask up to TWO more targeted follow‑ups (Q4/Q5) with a one-line justification each (e.g., "Unresolved recovery path risk"). Do not exceed five total questions. Skip escalation if user explicitly declines more.
|
|
69
|
+
|
|
70
|
+
3. **Understand user request**: Combine `$ARGUMENTS` + clarifying answers:
|
|
71
|
+
- Derive checklist theme (e.g., security, review, deploy, ux)
|
|
72
|
+
- Consolidate explicit must-have items mentioned by user
|
|
73
|
+
- Map focus selections to category scaffolding
|
|
74
|
+
- Infer any missing context from spec/plan/tasks (do NOT hallucinate)
|
|
75
|
+
|
|
76
|
+
4. **Load feature context**: Read from FEATURE_DIR:
|
|
77
|
+
- spec.md: Feature requirements and scope
|
|
78
|
+
- plan.md (if exists): Technical details, dependencies
|
|
79
|
+
- tasks.md (if exists): Implementation tasks
|
|
80
|
+
|
|
81
|
+
**Context Loading Strategy**:
|
|
82
|
+
- Load only necessary portions relevant to active focus areas (avoid full-file dumping)
|
|
83
|
+
- Prefer summarizing long sections into concise scenario/requirement bullets
|
|
84
|
+
- Use progressive disclosure: add follow-on retrieval only if gaps detected
|
|
85
|
+
- If source docs are large, generate interim summary items instead of embedding raw text
|
|
86
|
+
|
|
87
|
+
5. **Generate checklist** - Create "Unit Tests for Requirements":
|
|
88
|
+
- Create `FEATURE_DIR/checklists/` directory if it doesn't exist
|
|
89
|
+
- Generate unique checklist filename:
|
|
90
|
+
- Use short, descriptive name based on domain (e.g., `ux.md`, `api.md`, `security.md`)
|
|
91
|
+
- Format: `[domain].md`
|
|
92
|
+
- If file exists, append to existing file
|
|
93
|
+
- Number items sequentially starting from CHK001
|
|
94
|
+
- Each `/speckit.checklist` run creates a NEW file (never overwrites existing checklists)
|
|
95
|
+
|
|
96
|
+
**CORE PRINCIPLE - Test the Requirements, Not the Implementation**:
|
|
97
|
+
Every checklist item MUST evaluate the REQUIREMENTS THEMSELVES for:
|
|
98
|
+
- **Completeness**: Are all necessary requirements present?
|
|
99
|
+
- **Clarity**: Are requirements unambiguous and specific?
|
|
100
|
+
- **Consistency**: Do requirements align with each other?
|
|
101
|
+
- **Measurability**: Can requirements be objectively verified?
|
|
102
|
+
- **Coverage**: Are all scenarios/edge cases addressed?
|
|
103
|
+
|
|
104
|
+
**Category Structure** - Group items by requirement quality dimensions:
|
|
105
|
+
- **Requirement Completeness** (Are all necessary requirements documented?)
|
|
106
|
+
- **Requirement Clarity** (Are requirements specific and unambiguous?)
|
|
107
|
+
- **Requirement Consistency** (Do requirements align without conflicts?)
|
|
108
|
+
- **Acceptance Criteria Quality** (Are success criteria measurable?)
|
|
109
|
+
- **Scenario Coverage** (Are all flows/cases addressed?)
|
|
110
|
+
- **Edge Case Coverage** (Are boundary conditions defined?)
|
|
111
|
+
- **Non-Functional Requirements** (Performance, Security, Accessibility, etc. - are they specified?)
|
|
112
|
+
- **Dependencies & Assumptions** (Are they documented and validated?)
|
|
113
|
+
- **Ambiguities & Conflicts** (What needs clarification?)
|
|
114
|
+
|
|
115
|
+
**HOW TO WRITE CHECKLIST ITEMS - "Unit Tests for English"**:
|
|
116
|
+
|
|
117
|
+
❌ **WRONG** (Testing implementation):
|
|
118
|
+
- "Verify landing page displays 3 episode cards"
|
|
119
|
+
- "Test hover states work on desktop"
|
|
120
|
+
- "Confirm logo click navigates home"
|
|
121
|
+
|
|
122
|
+
✅ **CORRECT** (Testing requirements quality):
|
|
123
|
+
- "Are the exact number and layout of featured episodes specified?" [Completeness]
|
|
124
|
+
- "Is 'prominent display' quantified with specific sizing/positioning?" [Clarity]
|
|
125
|
+
- "Are hover state requirements consistent across all interactive elements?" [Consistency]
|
|
126
|
+
- "Are keyboard navigation requirements defined for all interactive UI?" [Coverage]
|
|
127
|
+
- "Is the fallback behavior specified when logo image fails to load?" [Edge Cases]
|
|
128
|
+
- "Are loading states defined for asynchronous episode data?" [Completeness]
|
|
129
|
+
- "Does the spec define visual hierarchy for competing UI elements?" [Clarity]
|
|
130
|
+
|
|
131
|
+
**ITEM STRUCTURE**:
|
|
132
|
+
Each item should follow this pattern:
|
|
133
|
+
- Question format asking about requirement quality
|
|
134
|
+
- Focus on what's WRITTEN (or not written) in the spec/plan
|
|
135
|
+
- Include quality dimension in brackets [Completeness/Clarity/Consistency/etc.]
|
|
136
|
+
- Reference spec section `[Spec §X.Y]` when checking existing requirements
|
|
137
|
+
- Use `[Gap]` marker when checking for missing requirements
|
|
138
|
+
|
|
139
|
+
**EXAMPLES BY QUALITY DIMENSION**:
|
|
140
|
+
|
|
141
|
+
Completeness:
|
|
142
|
+
- "Are error handling requirements defined for all API failure modes? [Gap]"
|
|
143
|
+
- "Are accessibility requirements specified for all interactive elements? [Completeness]"
|
|
144
|
+
- "Are mobile breakpoint requirements defined for responsive layouts? [Gap]"
|
|
145
|
+
|
|
146
|
+
Clarity:
|
|
147
|
+
- "Is 'fast loading' quantified with specific timing thresholds? [Clarity, Spec §NFR-2]"
|
|
148
|
+
- "Are 'related episodes' selection criteria explicitly defined? [Clarity, Spec §FR-5]"
|
|
149
|
+
- "Is 'prominent' defined with measurable visual properties? [Ambiguity, Spec §FR-4]"
|
|
150
|
+
|
|
151
|
+
Consistency:
|
|
152
|
+
- "Do navigation requirements align across all pages? [Consistency, Spec §FR-10]"
|
|
153
|
+
- "Are card component requirements consistent between landing and detail pages? [Consistency]"
|
|
154
|
+
|
|
155
|
+
Coverage:
|
|
156
|
+
- "Are requirements defined for zero-state scenarios (no episodes)? [Coverage, Edge Case]"
|
|
157
|
+
- "Are concurrent user interaction scenarios addressed? [Coverage, Gap]"
|
|
158
|
+
- "Are requirements specified for partial data loading failures? [Coverage, Exception Flow]"
|
|
159
|
+
|
|
160
|
+
Measurability:
|
|
161
|
+
- "Are visual hierarchy requirements measurable/testable? [Acceptance Criteria, Spec §FR-1]"
|
|
162
|
+
- "Can 'balanced visual weight' be objectively verified? [Measurability, Spec §FR-2]"
|
|
163
|
+
|
|
164
|
+
**Scenario Classification & Coverage** (Requirements Quality Focus):
|
|
165
|
+
- Check if requirements exist for: Primary, Alternate, Exception/Error, Recovery, Non-Functional scenarios
|
|
166
|
+
- For each scenario class, ask: "Are [scenario type] requirements complete, clear, and consistent?"
|
|
167
|
+
- If scenario class missing: "Are [scenario type] requirements intentionally excluded or missing? [Gap]"
|
|
168
|
+
- Include resilience/rollback when state mutation occurs: "Are rollback requirements defined for migration failures? [Gap]"
|
|
169
|
+
|
|
170
|
+
**Traceability Requirements**:
|
|
171
|
+
- MINIMUM: ≥80% of items MUST include at least one traceability reference
|
|
172
|
+
- Each item should reference: spec section `[Spec §X.Y]`, or use markers: `[Gap]`, `[Ambiguity]`, `[Conflict]`, `[Assumption]`
|
|
173
|
+
- If no ID system exists: "Is a requirement & acceptance criteria ID scheme established? [Traceability]"
|
|
174
|
+
|
|
175
|
+
**Surface & Resolve Issues** (Requirements Quality Problems):
|
|
176
|
+
Ask questions about the requirements themselves:
|
|
177
|
+
- Ambiguities: "Is the term 'fast' quantified with specific metrics? [Ambiguity, Spec §NFR-1]"
|
|
178
|
+
- Conflicts: "Do navigation requirements conflict between §FR-10 and §FR-10a? [Conflict]"
|
|
179
|
+
- Assumptions: "Is the assumption of 'always available podcast API' validated? [Assumption]"
|
|
180
|
+
- Dependencies: "Are external podcast API requirements documented? [Dependency, Gap]"
|
|
181
|
+
- Missing definitions: "Is 'visual hierarchy' defined with measurable criteria? [Gap]"
|
|
182
|
+
|
|
183
|
+
**Content Consolidation**:
|
|
184
|
+
- Soft cap: If raw candidate items > 40, prioritize by risk/impact
|
|
185
|
+
- Merge near-duplicates checking the same requirement aspect
|
|
186
|
+
- If >5 low-impact edge cases, create one item: "Are edge cases X, Y, Z addressed in requirements? [Coverage]"
|
|
187
|
+
|
|
188
|
+
**🚫 ABSOLUTELY PROHIBITED** - These make it an implementation test, not a requirements test:
|
|
189
|
+
- ❌ Any item starting with "Verify", "Test", "Confirm", "Check" + implementation behavior
|
|
190
|
+
- ❌ References to code execution, user actions, system behavior
|
|
191
|
+
- ❌ "Displays correctly", "works properly", "functions as expected"
|
|
192
|
+
- ❌ "Click", "navigate", "render", "load", "execute"
|
|
193
|
+
- ❌ Test cases, test plans, QA procedures
|
|
194
|
+
- ❌ Implementation details (frameworks, APIs, algorithms)
|
|
195
|
+
|
|
196
|
+
**✅ REQUIRED PATTERNS** - These test requirements quality:
|
|
197
|
+
- ✅ "Are [requirement type] defined/specified/documented for [scenario]?"
|
|
198
|
+
- ✅ "Is [vague term] quantified/clarified with specific criteria?"
|
|
199
|
+
- ✅ "Are requirements consistent between [section A] and [section B]?"
|
|
200
|
+
- ✅ "Can [requirement] be objectively measured/verified?"
|
|
201
|
+
- ✅ "Are [edge cases/scenarios] addressed in requirements?"
|
|
202
|
+
- ✅ "Does the spec define [missing aspect]?"
|
|
203
|
+
|
|
204
|
+
6. **Structure Reference**: Generate the checklist following the canonical template in `.specify/templates/checklist-template.md` for title, meta section, category headings, and ID formatting. If template is unavailable, use: H1 title, purpose/created meta lines, `##` category sections containing `- [ ] CHK### <requirement item>` lines with globally incrementing IDs starting at CHK001.
|
|
205
|
+
|
|
206
|
+
7. **Report**: Output full path to created checklist, item count, and remind user that each run creates a new file. Summarize:
|
|
207
|
+
- Focus areas selected
|
|
208
|
+
- Depth level
|
|
209
|
+
- Actor/timing
|
|
210
|
+
- Any explicit user-specified must-have items incorporated
|
|
211
|
+
|
|
212
|
+
**Important**: Each `/speckit.checklist` command invocation creates a checklist file using short, descriptive names unless file already exists. This allows:
|
|
213
|
+
|
|
214
|
+
- Multiple checklists of different types (e.g., `ux.md`, `test.md`, `security.md`)
|
|
215
|
+
- Simple, memorable filenames that indicate checklist purpose
|
|
216
|
+
- Easy identification and navigation in the `checklists/` folder
|
|
217
|
+
|
|
218
|
+
To avoid clutter, use descriptive types and clean up obsolete checklists when done.
|
|
219
|
+
|
|
220
|
+
## Example Checklist Types & Sample Items
|
|
221
|
+
|
|
222
|
+
**UX Requirements Quality:** `ux.md`
|
|
223
|
+
|
|
224
|
+
Sample items (testing the requirements, NOT the implementation):
|
|
225
|
+
- "Are visual hierarchy requirements defined with measurable criteria? [Clarity, Spec §FR-1]"
|
|
226
|
+
- "Is the number and positioning of UI elements explicitly specified? [Completeness, Spec §FR-1]"
|
|
227
|
+
- "Are interaction state requirements (hover, focus, active) consistently defined? [Consistency]"
|
|
228
|
+
- "Are accessibility requirements specified for all interactive elements? [Coverage, Gap]"
|
|
229
|
+
- "Is fallback behavior defined when images fail to load? [Edge Case, Gap]"
|
|
230
|
+
- "Can 'prominent display' be objectively measured? [Measurability, Spec §FR-4]"
|
|
231
|
+
|
|
232
|
+
**API Requirements Quality:** `api.md`
|
|
233
|
+
|
|
234
|
+
Sample items:
|
|
235
|
+
- "Are error response formats specified for all failure scenarios? [Completeness]"
|
|
236
|
+
- "Are rate limiting requirements quantified with specific thresholds? [Clarity]"
|
|
237
|
+
- "Are authentication requirements consistent across all endpoints? [Consistency]"
|
|
238
|
+
- "Are retry/timeout requirements defined for external dependencies? [Coverage, Gap]"
|
|
239
|
+
- "Is versioning strategy documented in requirements? [Gap]"
|
|
240
|
+
|
|
241
|
+
**Performance Requirements Quality:** `performance.md`
|
|
242
|
+
|
|
243
|
+
Sample items:
|
|
244
|
+
- "Are performance requirements quantified with specific metrics? [Clarity]"
|
|
245
|
+
- "Are performance targets defined for all critical user journeys? [Coverage]"
|
|
246
|
+
- "Are performance requirements under different load conditions specified? [Completeness]"
|
|
247
|
+
- "Can performance requirements be objectively measured? [Measurability]"
|
|
248
|
+
- "Are degradation requirements defined for high-load scenarios? [Edge Case, Gap]"
|
|
249
|
+
|
|
250
|
+
**Security Requirements Quality:** `security.md`
|
|
251
|
+
|
|
252
|
+
Sample items:
|
|
253
|
+
- "Are authentication requirements specified for all protected resources? [Coverage]"
|
|
254
|
+
- "Are data protection requirements defined for sensitive information? [Completeness]"
|
|
255
|
+
- "Is the threat model documented and requirements aligned to it? [Traceability]"
|
|
256
|
+
- "Are security requirements consistent with compliance obligations? [Consistency]"
|
|
257
|
+
- "Are security failure/breach response requirements defined? [Gap, Exception Flow]"
|
|
258
|
+
|
|
259
|
+
## Anti-Examples: What NOT To Do
|
|
260
|
+
|
|
261
|
+
**❌ WRONG - These test implementation, not requirements:**
|
|
262
|
+
|
|
263
|
+
```markdown
|
|
264
|
+
- [ ] CHK001 - Verify landing page displays 3 episode cards [Spec §FR-001]
|
|
265
|
+
- [ ] CHK002 - Test hover states work correctly on desktop [Spec §FR-003]
|
|
266
|
+
- [ ] CHK003 - Confirm logo click navigates to home page [Spec §FR-010]
|
|
267
|
+
- [ ] CHK004 - Check that related episodes section shows 3-5 items [Spec §FR-005]
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**✅ CORRECT - These test requirements quality:**
|
|
271
|
+
|
|
272
|
+
```markdown
|
|
273
|
+
- [ ] CHK001 - Are the number and layout of featured episodes explicitly specified? [Completeness, Spec §FR-001]
|
|
274
|
+
- [ ] CHK002 - Are hover state requirements consistently defined for all interactive elements? [Consistency, Spec §FR-003]
|
|
275
|
+
- [ ] CHK003 - Are navigation requirements clear for all clickable brand elements? [Clarity, Spec §FR-010]
|
|
276
|
+
- [ ] CHK004 - Is the selection criteria for related episodes documented? [Gap, Spec §FR-005]
|
|
277
|
+
- [ ] CHK005 - Are loading state requirements defined for asynchronous episode data? [Gap]
|
|
278
|
+
- [ ] CHK006 - Can "visual hierarchy" requirements be objectively measured? [Measurability, Spec §FR-001]
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**Key Differences:**
|
|
282
|
+
- Wrong: Tests if the system works correctly
|
|
283
|
+
- Correct: Tests if the requirements are written correctly
|
|
284
|
+
- Wrong: Verification of behavior
|
|
285
|
+
- Correct: Validation of requirement quality
|
|
286
|
+
- Wrong: "Does it do X?"
|
|
287
|
+
- Correct: "Is X clearly specified?"
|