feat(cli): add the skill deletion command, and simultaneously improve the help information. #580
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the
skills deletecommand and improves the help information for the skills management CLI.Changes
1. New
skills deletecommandAdded a new subcommand to delete skills:
Features:
--force)--agentand--projectoptions2. Improved help information
Enhanced the
deepagents skillshelp output to include:deletecommand)--agentand--projectBefore:
After:
Testing
Added 11 new test cases in
tests/unit_tests/skills/test_commands.py:test_delete_existing_skill_with_forcetest_delete_nonexistent_skilltest_delete_with_confirmation_yestest_delete_with_confirmation_notest_delete_with_confirmation_empty_inputtest_delete_with_keyboard_interrupttest_delete_invalid_skill_nametest_delete_project_skilltest_delete_project_skill_not_in_projecttest_delete_skill_with_supporting_filestest_delete_skill_for_specific_agentAll tests pass
Checklist