Person/Zachary Zezhou Huang/GitHub/Tutorial-Codebase-Knowledge
Properties
- tags
- Tutorial
The-Pocket/Tutorial-Codebase-Knowledge: Turns Codebase into Easy Tutorial with AI
My Notes
- 2025-04-21 Mon
- uses PocketFlowAI and builds a tutorial from any codebase
- For example, Graph & StateGraph | Codebase2Tutorial is a #Tutorial for langgraph generated by this application
- 2025-04-21 Mon
Resources
- Design Doc
- has very clear #Prompts - don't quite
- Flow Code
- very little code! also, some interesting use of Py/Operator/Dunder/Right-shift
- python
from pocketflow import Flow # Import all node classes from nodes.py from nodes import ( FetchRepo, IdentifyAbstractions, AnalyzeRelationships, OrderChapters, WriteChapters, CombineTutorial ) def create_tutorial_flow(): """Creates and returns the codebase tutorial generation flow.""" # Instantiate nodes fetch_repo = FetchRepo() identify_abstractions = IdentifyAbstractions(max_retries=3, wait=10) analyze_relationships = AnalyzeRelationships(max_retries=3, wait=10) order_chapters = OrderChapters(max_retries=3, wait=10) write_chapters = WriteChapters(max_retries=3, wait=10) # This is a BatchNode combine_tutorial = CombineTutorial() # Connect nodes in sequence based on the design fetch_repo >> identify_abstractions identify_abstractions >> analyze_relationships analyze_relationships >> order_chapters order_chapters >> write_chapters write_chapters >> combine_tutorial # Create the flow starting with FetchRepo tutorial_flow = Flow(start=fetch_repo) return tutorial_flow
- Check out the YouTube Development Tutorial for more! #YouTube
- Check out the Substack Post Tutorial for more! #Substack
- Design Doc