Flash Framework Explorer Skill
When to Use
Use this skill when:
- Exploring the runpod-flash framework codebase
- Understanding class hierarchies and relationships
- Finding where methods or classes are defined
- Checking what decorators are used in the codebase
- Getting a quick overview of file structure
Workflow
Step 1: Query the Code Intelligence Database FIRST
Before reading any files, use the MCP code intelligence tools:
Finding a symbol:
- Use
find_symboltool with the symbol name
Understanding a class:
- Use
get_class_interfacetool with the class name
Exploring a file:
- Use
list_file_symbolstool with the file path
Finding decorated functions:
- Use
find_by_decoratortool (e.g., decorator="remote")
Listing all classes:
- Use
list_classestool
Step 1.5: NEVER Use Bash Commands for MCP Tool Tasks
PROHIBITED patterns - use MCP tools instead:
❌ DO NOT use tail, grep, or cat for test output analysis
✅ DO use parse_test_output MCP tool after running tests
❌ DO NOT use grep or find to search for symbols/classes/methods
✅ DO use find_symbol, list_classes, or find_by_decorator MCP tools
❌ DO NOT use Read tool to scan files for class definitions or interfaces
✅ DO use get_class_interface or list_file_symbols MCP tools
Step 2: Only Read Full Files When Necessary
After querying the code intelligence database, only use the Read tool if:
- You need to understand the implementation details
- The database doesn't have the specific information you need
- You need to see the full context around a symbol
Analyzing Test Results
After running tests (make test-unit, make test, pytest), ALWAYS use parse_test_output MCP tool to analyze results:
Good - Use MCP tool (~200 tokens):
- Run:
make test-unit - Pass output to
parse_test_outputMCP tool - Get structured failures, coverage, passed tests, summary
- No manual parsing needed
Bad - Using bash commands (~20,000+ tokens):
- Run:
make test-unit > output.txt - Use
tail,cat, orgrepon output file - Manually parse failures and coverage
- Excessive token usage, poor context extraction
Examples
Good - Query first:
- Use
find_symbolwith "ServerlessEndpoint" - Review the signatures and locations
- Only read the full file if you need implementation details
Bad - Reading files directly:
- Read entire
src/runpod_flash/core/resources/serverless.py(500+ tokens) - Search manually for ServerlessEndpoint
Good - Parse test output:
- User runs:
make test-unit - Get test output, use
parse_test_outputtool - Get structured result with failed tests, summary, coverage
Bad - Manual test output parsing:
- User runs:
make test-unit - Use
tail -50 output.txtto see failures - Use
grep "FAILED" output.txtto find test names - Manually parse coverage numbers
Benefits
- 85% token reduction for symbol exploration tasks (vs reading full files)
- 99% token reduction for test result analysis (200 tokens vs 20,000+ with bash)
- Faster responses - no need to parse large files or output
- Better context - see symbols across multiple files
- Focused reading - only read what you actually need
- Structured data - test failures, coverage, passed tests parsed automatically
Available MCP Tools
Code Intelligence Tools:
find_symbol- Search for any symbol by namelist_classes- List all classes with signaturesget_class_interface- Get methods and properties of a classlist_file_symbols- List all symbols in a filefind_by_decorator- Find symbols with specific decoratorsparse_test_output- Parse test results and extract failures, coverage, summary
Important Notes
- The code intelligence database is updated by running
make index - If you get unexpected results, the index might be stale
- Database contains: classes, functions, methods, decorators, type hints, docstrings
- Database does NOT contain: implementations, comments, full file content
- Always use
parse_test_outputfor test results - never use tail/grep/cat on test output - Always use symbol tools - never use Read to search for class definitions
Source: runpod/flash — distributed by TomeVault.