D
debug-cli
Use when users need to debug, modify, or extend the code-forge application's CLI commands, argument parsing, or CLI behavior. This includes adding new commands, fixing CLI bugs, updating command options, or troubleshooting CLI-related issues.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Use when users need to debug, modify, or extend the code-forge application's CLI commands, argument parsing, or CLI behavior. This includes adding new commands, fixing CLI bugs, updating command options, or troubleshooting CLI-related issues.
How to use
- Zainstaluj umiejętność debug-cli w swoim projekcie forge, dodając ją do konfiguracji skills w pliku .forge.
- Po dokonaniu zmian w kodzie CLI zbuduj aplikację w trybie debug, uruchamiając polecenie cargo build w głównym katalogu projektu.
- Sprawdź aktualną dokumentację komend, uruchamiając ./target/debug/forge --help, aby zobaczyć dostępne komendy i opcje; dla konkretnej komendy użyj ./target/debug/forge [KOMENDA] --help.
- Testuj swoje zmiany flagą -p, podając forge'owi zadanie do wykonania bez trybu interaktywnego, na przykład ./target/debug/forge -p "create a hello world rust program" lub ./target/debug/forge -p "read the README.md file and summarize it".
- Jeśli debugujesz problemy związane z konwersacją, użyj polecenia conversation dump, aby wyeksportować rozmowę jako JSON; zawsze klonuj źródłową konwersację przed reprodukowaniem błędu.
- Pamiętaj, że ta umiejętność służy wyłącznie do debugowania i testowania — nigdy nie commituj zmian dokonanych podczas pracy z debug-cli.