Fixes several categories of test failures to achieve a clean test suite:
**Python 3.14 / chromadb compatibility**
- chroma.py: broaden except clause to catch pydantic ConfigError on Python 3.14
- test_adaptors_e2e.py, test_integration_adaptors.py: skip on (ImportError, Exception)
**sys.modules corruption (test isolation)**
- test_swift_detection.py: save/restore all skill_seekers.cli modules AND parent
package attributes in test_empty_swift_patterns_handled_gracefully; prevents
@patch decorators in downstream test files from targeting stale module objects
**Removed unnecessary @unittest.skip decorators**
- test_claude_adaptor.py, test_gemini_adaptor.py, test_openai_adaptor.py: remove
skip from tests that already had pass-body or were compatible once deps installed
**Fixed openai import guard for installed package**
- test_openai_adaptor.py: use patch.dict(sys.modules, {"openai": None}) for
test_upload_missing_library since openai is now a transitive dep
**langchain import path update**
- test_rag_chunker.py: fix from langchain.schema → langchain_core.documents
**config_extractor tomllib fallback**
- config_extractor.py: use stdlib tomllib (Python 3.11+) as fallback when
tomli/toml packages are not installed
**Remove redundant sys.path.insert() calls**
- codebase_scraper.py, doc_scraper.py, enhance_skill.py, enhance_skill_local.py,
estimate_pages.py, install_skill.py: remove legacy path manipulation no longer
needed with pip install -e . (src/ layout)
**Test fixes: removed @requires_github from fully-mocked tests**
- test_unified_analyzer.py: 5 tests that mock GitHubThreeStreamFetcher don't
need a real token; remove decorator so they always run
**macOS-specific test improvements**
- test_terminal_detection.py: use @patch(sys.platform, "darwin") instead of
runtime skipTest() so tests run on all platforms
**Dependency updates**
- pyproject.toml, uv.lock: add langchain and llama-index as core dependencies
**New workflow presets and tests**
- src/skill_seekers/workflows/: add 60 new domain-specific workflow YAML presets
- tests/test_mcp_workflow_tools.py: tests for MCP workflow tool implementations
- tests/test_unified_scraper_orchestration.py: tests for UnifiedScraper methods
Result: 2115 passed, 158 skipped (external services/long-running), 0 failures
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
167 lines
4.1 KiB
YAML
167 lines
4.1 KiB
YAML
name: grpc-services
|
|
description: Document gRPC service implementation with Protocol Buffers
|
|
version: "1.0"
|
|
applies_to:
|
|
- codebase_analysis
|
|
- github_analysis
|
|
variables:
|
|
depth: comprehensive
|
|
stages:
|
|
- name: base_patterns
|
|
type: builtin
|
|
target: patterns
|
|
enabled: true
|
|
uses_history: false
|
|
|
|
- name: protobuf_schema
|
|
type: custom
|
|
target: protobuf
|
|
uses_history: false
|
|
enabled: true
|
|
prompt: >
|
|
Analyze Protocol Buffers schema design.
|
|
|
|
Identify:
|
|
1. Proto file organization
|
|
2. Message structure and naming
|
|
3. Field numbering and reservation
|
|
4. Enum definitions
|
|
5. Oneof usage
|
|
6. Import dependencies
|
|
7. Package structure
|
|
|
|
Output JSON with:
|
|
- "organization": proto file layout
|
|
- "messages": message design
|
|
- "field_numbers": numbering strategy
|
|
- "enums": enum patterns
|
|
- "oneof": oneof usage
|
|
- "dependencies": import management
|
|
- "packages": package structure
|
|
|
|
- name: service_definitions
|
|
type: custom
|
|
target: services
|
|
uses_history: true
|
|
enabled: true
|
|
prompt: >
|
|
Document gRPC service definitions.
|
|
|
|
Cover:
|
|
1. Service and RPC naming
|
|
2. Unary vs streaming RPCs
|
|
3. Request/response patterns
|
|
4. Error handling with status codes
|
|
5. Deadlines and timeouts
|
|
6. Metadata and headers
|
|
|
|
Output JSON with:
|
|
- "naming": service naming
|
|
- "rpc_types": unary/streaming
|
|
- "patterns": request/response
|
|
- "errors": error handling
|
|
- "deadlines": timeout config
|
|
- "metadata": header usage
|
|
|
|
- name: code_generation
|
|
type: custom
|
|
target: codegen
|
|
uses_history: true
|
|
enabled: true
|
|
prompt: >
|
|
Document protobuf code generation.
|
|
|
|
Include:
|
|
1. Protobuf compiler setup
|
|
2. Language-specific plugins
|
|
3. Generated code organization
|
|
4. Version compatibility
|
|
5. Build integration
|
|
6. CI/CD for proto changes
|
|
|
|
Output JSON with:
|
|
- "compiler": protoc setup
|
|
- "plugins": language plugins
|
|
- "code_org": generated file layout
|
|
- "versioning": proto versioning
|
|
- "build": build integration
|
|
- "cicd": proto CI/CD
|
|
|
|
- name: server_implementation
|
|
type: custom
|
|
target: server
|
|
uses_history: true
|
|
enabled: true
|
|
prompt: >
|
|
Document gRPC server implementation.
|
|
|
|
Cover:
|
|
1. Server setup and configuration
|
|
2. Interceptor/middleware patterns
|
|
3. Authentication and authorization
|
|
4. TLS configuration
|
|
5. Health checking
|
|
6. Graceful shutdown
|
|
|
|
Output JSON with:
|
|
- "setup": server configuration
|
|
- "interceptors": middleware
|
|
- "auth": authentication
|
|
- "tls": encryption setup
|
|
- "health": health checks
|
|
- "shutdown": graceful stop
|
|
|
|
- name: client_patterns
|
|
type: custom
|
|
target: client
|
|
uses_history: true
|
|
enabled: true
|
|
prompt: >
|
|
Document gRPC client patterns.
|
|
|
|
Include:
|
|
1. Client connection management
|
|
2. Load balancing
|
|
3. Retry policies
|
|
4. Circuit breaker integration
|
|
5. Client-side streaming
|
|
6. Connection pooling
|
|
|
|
Output JSON with:
|
|
- "connection_mgmt": connection handling
|
|
- "load_balancing": LB strategies
|
|
- "retries": retry config
|
|
- "circuit_breaker": failure handling
|
|
- "streaming": client streaming
|
|
- "pooling": connection pools
|
|
|
|
- name: grpc_web_gateway
|
|
type: custom
|
|
target: web
|
|
uses_history: true
|
|
enabled: true
|
|
prompt: >
|
|
Document gRPC-Web and gateway patterns.
|
|
|
|
Cover:
|
|
1. gRPC-Web proxy setup
|
|
2. REST gateway (grpc-gateway)
|
|
3. Transcoding configuration
|
|
4. Browser client support
|
|
5. Streaming limitations
|
|
|
|
Output JSON with:
|
|
- "grpc_web": web proxy
|
|
- "rest_gateway": HTTP gateway
|
|
- "transcoding": HTTP mapping
|
|
- "browser": browser support
|
|
- "limitations": web constraints
|
|
|
|
post_process:
|
|
reorder_sections: []
|
|
add_metadata:
|
|
enhanced: true
|
|
workflow: grpc-services
|
|
domain: backend
|
|
has_grpc_docs: true
|