{"id":21557809,"url":"https://github.com/showpune/windup-prompt","last_synced_at":"2025-03-18T03:27:06.778Z","repository":{"id":170484222,"uuid":"637606555","full_name":"showpune/windup-prompt","owner":"showpune","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T17:47:00.000Z","size":21,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T10:47:10.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/showpune.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-08T02:58:04.000Z","updated_at":"2023-05-10T22:27:32.000Z","dependencies_parsed_at":"2023-12-15T18:42:36.446Z","dependency_job_id":null,"html_url":"https://github.com/showpune/windup-prompt","commit_stats":null,"previous_names":["showpune/windup-prompt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fwindup-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fwindup-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fwindup-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fwindup-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showpune","download_url":"https://codeload.github.com/showpune/windup-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244149011,"owners_count":20406283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T08:13:15.638Z","updated_at":"2025-03-18T03:27:06.753Z","avatar_url":"https://github.com/showpune.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# windup-prompt: generate the windup rules by open AI\n## Introduce\nThree way to use OpenAI to generate windup rules\n1) By chat with system prompt\n2) A sequence of asks to get more context, make the result more precise\n3) Use sematical kernal to make the ask plan to generate the rule\n\n## Installation\n1. Configration the connection to open AI\n```\ncp .env-sample .env\n```\nConfig the connection string to azure open ai service, to create the azure open ai service and get the configuration, check [link](https://github.com/showpune/windup-prompt/blob/master/how-to.md)) \n\nInstall the requirements\n```\npython -m pip install -r requirements.txt\n```\n\n## Simple: Generate the rules directly\nRun the code \n```\npython simple-main.py\n```\nUse the [system prompt](https://github.com/showpune/windup-prompt/blob/master/prompt/system.txt) and [user prompt](https://github.com/showpune/windup-prompt/blob/master/prompt/chat/ask.txt) to generate the windup rules, input any platform you want to migration:\n![image](https://user-images.githubusercontent.com/1787505/236997115-126f8b89-ff2a-4410-90bf-c808ddedf41d.png)\n\n\n## Chat Sequence\n* Since the Open AI can't get all the context in one ask to generate the rules, you can use a sequence chat to get more information, like the service partern, API pattern and special concept, and then use the information as assist prompt to generate the rule\n* You can find the sequence of chat from [Chat Sequence](https://github.com/showpune/windup-prompt/tree/master/prompt/windup).\n* The chat will asked by the sequence of the folder name, we need the sequence since some ask is dependent. Like we have the special concept of a platform, then we can ask the API pattern\nTest the sequence ask by \n```\npython pipe-main.py\n```\nThe result looks like\n\n![image](https://user-images.githubusercontent.com/1787505/236998182-bef8aabd-8c6e-4215-9c8d-66623d086460.png)\n![image](https://user-images.githubusercontent.com/1787505/236998273-61187753-8f07-4ab3-add2-2f268f42753f.png)\n![image](https://user-images.githubusercontent.com/1787505/236998302-db6b8583-93d5-4e1c-882c-e2cadb06d1bf.png)\n\n## Semantical Kernal: Generate the rule by auto-gpt\nThere are more ask\n1) Should I care about the sequence in [Chat Sequence](https://github.com/showpune/windup-prompt/tree/master/prompt/windup)?\n2) Is there any more skills shared by others I can use to generate the windup rules?\n3) Is the skills I defined make sense?\nLet sematical kernal to handle it: It will read all the skills from  [Chat Sequence](https://github.com/showpune/windup-prompt/tree/master/prompt/windup), merge with system skills and make a plan to generate the windup rules\n```\npython pipe-main.py\n```\n![image](https://user-images.githubusercontent.com/1787505/236999884-8e9d14cc-2a97-4bec-ab98-e9913553c312.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowpune%2Fwindup-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowpune%2Fwindup-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowpune%2Fwindup-prompt/lists"}