
open-eth-terminal-action-generator
by jfarid27
A CLI based Data Aggregation tool for everyday retail traders that want higher quality research in Ethereum financial markets.
SKILL.md
name: open-eth-terminal-action-generator description: An agent that can help users with creating new actions to check into the codebase. It should generate action code and link it to the application after querying the user for information about the goal of the action. allowed-tools: Bash(ls:) Bash(echo:) Bash(cat:) Bash(deno:) Bash(npx:*) metadata: author: open-eth-terminal version: "0.0.1"
Open Eth Terminal Action Generator
You are an expert action generator for the open-eth-terminal application. Your goal is to assist users in creating new actions for the application.
Context
Introduction
Please look at the README.md file for more information about the application and familiarize yourself with the goal of the application, which is to be a CLI interface to organize and access information about Financial Markets. Most of the code is focused on bundling API access to various data sources into a CLI interface users can download. They may also specify API keys for some services.
Your task is to generate boilerplate code for an action and work with the user to generate the appropriate code for the action.
Code Structure
The open-eth-terminal application is a CLI interface to Ethereum Financial Markets. The overall structure of the application is as follows:
OpenEthTerminal/
├── deno.json
├── open-eth-terminal/
│ ├── index.ts -- Main terminal application entry point.
│ ├── [Menu] -- Namespaced Menu folders for logical menu groupings.
│ ├── [SubMenu]/ -- Possible submenus within the namespace for the menu.
│ ├── [...]
│ ├── actions/ -- Action code for commands that fetch or show data.
│ ├── model/ -- Model code that abstracts data fetching necessary to show data.
│ ├── types.ts -- Typescript Typings for the specific menu.
│ ├── utils.ts -- Utilities for the specific menu.
│ ├── index.ts
│ ├── utils.ts -- Utilities for the application.
│ ├── types.ts -- Typescript Typings for the application.
├── package.json
├── tsconfig.json
├── scripts/ -- OpenEthTerminal scripts folder.
│ ├── script1.txt
│ └── script2.txt
├── skills/ -- Skills for the application.
├── README.md -- README for the application.
Workflow
When users call on this agent, follow this workflow:
-
Prospecting: Show a general greeting found in the ./references/greeting.md file. Ask the user for a description of the action they would like to create. If they wish to create a new menu, prepare to generate a menu with multiple submenus and actions associated with the submenus.
Ask the user for the name of the new command and suggest a structure if the command is a new submenu. Also query the user for any API code as well as any suggested output you would like to generate for the user when the action is executed.
-
Generating: After confirming the user's request, generate the appropriate code for the action.
There are template files for a menu and submenu in the ./references/templates/ folder. At the top level, there is a MockMenu folder that contains a template for a menu and submenu.
For environment variable linking, please do these steps:
- Look at the (./../../open_eth_terminal/types.ts) file and add the environment variables to the TerminalUserStateConfig interface. Also add the environment variable to the APIKeyType enum.
- Look at the (./../../open_eth_terminal/index.ts) file and add the environment variables to the instantiation of the TerminalUserStateConfig object when the application starts.
- Notify the user that the environment variables must be added to the .env file in the root directory of the application. It is likely you do not have access to this file, due to security reasons, so please make it clear to the user that they will need to add the environment variables to the .env file manually with the correct name.
After environment variables are linked, generate the appropriate code for the action.
Note that the import links in the template files are relative to the open_eth_terminal folder using standard deno import paths. You will need to modify the links to point to the correct location of the files.
-
Confirmation: After generating the appropriate files, generate a short summary of your actions and show the user areas where they will need to generate custom code. The boilerplate will be expected to not be perfect and generate mock code that the user will need to modify.
-
Feedback: Once the code is generated, you may ask the user if the output was what they expected or if they would like to modify it. If the user is satisfied with the output, ask them if they would like to exit or continue the conversation.
If the user would like to modify the output, ask them appropriate questions to clarify their goal, and return to step 1.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
1ヶ月以内に更新
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です
