-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EARLY DRAFT] Create an xstate v5 gpt #4917
base: main
Are you sure you want to change the base?
Conversation
|
https://chatgpt.com/gpts/editor/g-NrB3SjyV8
https://chatgpt.com/g/g-NrB3SjyV8-xstate-assistant
Draft Pull Request: Custom GPT for XState v5
Overview
This draft PR introduces the initial implementation of a custom GPT designed to assist users with XState v5. The primary goal of this draft is to explore creating a custom GPT for helping users use XState and create state charts, state machines, and actor systems, etc.
Changes Introduced
Benchmark Documentation
funkycountbenchmark.md
to describe the desired functionality and benchmarks.Tests for GPT Output
issues.test.ts
containing the output of the GPT for validation purposes.prompt.test.ts
, which includes the prompt as a TypeScript comment followed by example code and associated tests.Documentation and Cheat Sheets
todo.md
for tracking tasks and future improvements.kitchen_sink.actors
andkitchen_sink.guards
, which serve as detailed cheat sheets attempting to consolidate functionality into a single machine. While these are not yet optimized, they represent an effort to provide comprehensive reference material.Current Limitations
cond
instead ofguard
and not fully understanding XState v5 semantics.Potential Workarounds
A potential workaround for the character limit involves storing prompts locally within the project and allowing the custom GPT to access these prompts via ngrok using custom actions. This method would enable the GPT to dynamically decide which files to pull in for a given task, potentially including longer prompts for XState.
Future Plans
Additional Links
This is an initial draft aimed at kickstarting the integration of a custom GPT for XState v5. Feedback and suggestions are welcome as we continue to refine and improve this functionality.
To test this, you can copy the prompt into the custom GPT creation tool and run it yourself. Currently, access to editors is not open, but this approach should help in verifying the changes.