|
| 1 | +{ |
| 2 | + "package_name": "codeflash-skills", |
| 3 | + "total_capabilities": 14, |
| 4 | + "capabilities": [ |
| 5 | + { |
| 6 | + "id": 0, |
| 7 | + "name": "sequential-pipeline-debugging", |
| 8 | + "description": "Debug optimization failures by walking through pipeline stages sequentially and stopping at the first failure found", |
| 9 | + "complexity": "intermediate", |
| 10 | + "api_elements": ["discovery", "ranking", "context", "AI service", "verification", "deduplication", "repair"] |
| 11 | + }, |
| 12 | + { |
| 13 | + "id": 1, |
| 14 | + "name": "token-limit-awareness", |
| 15 | + "description": "Know that OPTIMIZATION_CONTEXT_TOKEN_LIMIT and TESTGEN_CONTEXT_TOKEN_LIMIT are both 16000 tokens and that exceeding them causes function rejection", |
| 16 | + "complexity": "basic", |
| 17 | + "api_elements": ["OPTIMIZATION_CONTEXT_TOKEN_LIMIT", "TESTGEN_CONTEXT_TOKEN_LIMIT", "encoded_tokens_len()"] |
| 18 | + }, |
| 19 | + { |
| 20 | + "id": 2, |
| 21 | + "name": "improvement-threshold", |
| 22 | + "description": "Know that MIN_IMPROVEMENT_THRESHOLD is 0.05 (5%) and candidates below this speedup are rejected", |
| 23 | + "complexity": "basic", |
| 24 | + "api_elements": ["MIN_IMPROVEMENT_THRESHOLD", "STABILITY_WINDOW_SIZE"] |
| 25 | + }, |
| 26 | + { |
| 27 | + "id": 3, |
| 28 | + "name": "ast-deduplication", |
| 29 | + "description": "Know that candidates are deduplicated via AST normalization using normalize_code() and CandidateEvaluationContext.ast_code_to_id", |
| 30 | + "complexity": "intermediate", |
| 31 | + "api_elements": ["normalize_code()", "CandidateEvaluationContext.ast_code_to_id", "code_utils/deduplicate_code.py"] |
| 32 | + }, |
| 33 | + { |
| 34 | + "id": 4, |
| 35 | + "name": "repair-trigger-conditions", |
| 36 | + "description": "Know that repair only triggers when fewer than MIN_CORRECT_CANDIDATES=2 pass, and is skipped when REPAIR_UNMATCHED_PERCENTAGE_LIMIT is exceeded", |
| 37 | + "complexity": "advanced", |
| 38 | + "api_elements": ["MIN_CORRECT_CANDIDATES", "REPAIR_UNMATCHED_PERCENTAGE_LIMIT", "AIServiceCodeRepairRequest"] |
| 39 | + }, |
| 40 | + { |
| 41 | + "id": 5, |
| 42 | + "name": "ai-service-error-patterns", |
| 43 | + "description": "Know specific log patterns to search for when AI service fails: 'Error generating optimized candidates', 'cli-optimize-error-caught', 'cli-optimize-error-response'", |
| 44 | + "complexity": "intermediate", |
| 45 | + "api_elements": ["AiServiceClient", "api/aiservice.py"] |
| 46 | + }, |
| 47 | + { |
| 48 | + "id": 6, |
| 49 | + "name": "behavioral-vs-benchmark-failures", |
| 50 | + "description": "Distinguish between behavioral test failures (return value/stdout/pass-fail mismatches via TestDiffScope) and benchmark failures (speedup below threshold)", |
| 51 | + "complexity": "intermediate", |
| 52 | + "api_elements": ["TestDiffScope", "RETURN_VALUE", "STDOUT", "DID_PASS"] |
| 53 | + }, |
| 54 | + { |
| 55 | + "id": 7, |
| 56 | + "name": "result-type-pattern", |
| 57 | + "description": "Use Result[L, R] from either.py with Success/Failure constructors and is_successful() checks before unwrap()", |
| 58 | + "complexity": "basic", |
| 59 | + "api_elements": ["Result", "Success", "Failure", "is_successful", "unwrap()", "either.py"] |
| 60 | + }, |
| 61 | + { |
| 62 | + "id": 8, |
| 63 | + "name": "effort-config-pattern", |
| 64 | + "description": "Add effort-dependent config via EffortKeys enum, EFFORT_VALUES dict with LOW/MEDIUM/HIGH levels, and get_effort_value()", |
| 65 | + "complexity": "intermediate", |
| 66 | + "api_elements": ["EffortKeys", "EffortLevel", "EFFORT_VALUES", "get_effort_value()", "config_consts.py"] |
| 67 | + }, |
| 68 | + { |
| 69 | + "id": 9, |
| 70 | + "name": "module-to-feature-mapping", |
| 71 | + "description": "Know which codeflash module to modify for different feature types (optimization/ for strategies, api/ for endpoints, languages/ for language support, etc.)", |
| 72 | + "complexity": "basic", |
| 73 | + "api_elements": ["MODULE_REFERENCE.md"] |
| 74 | + }, |
| 75 | + { |
| 76 | + "id": 10, |
| 77 | + "name": "domain-type-conventions", |
| 78 | + "description": "Use @dataclass(frozen=True) for immutable data, BaseModel for serializable models, and keep function_types.py dependency-free", |
| 79 | + "complexity": "intermediate", |
| 80 | + "api_elements": ["@dataclass(frozen=True)", "BaseModel", "models/models.py", "models/function_types.py"] |
| 81 | + }, |
| 82 | + { |
| 83 | + "id": 11, |
| 84 | + "name": "test-patterns", |
| 85 | + "description": "Use tmp_path fixture, .resolve() on Paths, .as_posix() for string conversion, full string equality assertions, and awareness of deterministic patches", |
| 86 | + "complexity": "basic", |
| 87 | + "api_elements": ["tmp_path", ".resolve()", ".as_posix()", "pytest_plugin.py"] |
| 88 | + }, |
| 89 | + { |
| 90 | + "id": 12, |
| 91 | + "name": "quality-check-commands", |
| 92 | + "description": "Run uv run prek run for formatting/linting, uv run mypy for type checking, and uv run pytest for tests", |
| 93 | + "complexity": "basic", |
| 94 | + "api_elements": ["uv run prek run", "uv run mypy", "uv run pytest"] |
| 95 | + }, |
| 96 | + { |
| 97 | + "id": 13, |
| 98 | + "name": "language-support-patterns", |
| 99 | + "description": "Use @register_language decorator, get_language_support() for lookup, singleton pattern via set_current_language()/current_language(), and is_python()/is_javascript() guards", |
| 100 | + "complexity": "advanced", |
| 101 | + "api_elements": ["@register_language", "get_language_support()", "set_current_language()", "is_python()", "is_javascript()"] |
| 102 | + } |
| 103 | + ] |
| 104 | +} |
0 commit comments