Update an existing slash command with recent work or modifications
Update existing slash commands by analyzing your recent work and intelligently merging new patterns. Appends, prepends, replaces, or refines workflow steps based on your last 10-20 tool uses.
/plugin marketplace add h315uk3/as_you/plugin install h315uk3-as-you@h315uk3/as_you[command-name]Update an existing slash command with recent work or modifications.
List Existing Commands
commands/*.md for available slash commandsRead Current Command
Analyze Recent Work
Update Options Ask the user how to update:
Preview Changes
Confirmation
commands/{command-name}.mdSession Restart Required After successfully updating the command, output the following message:
✅ Updated command: /{command-name}
⚠️ To use the updated command, you must restart the session:
- Type `/exit` and press Enter
- Then resume the session or start a new one
The updated command will be available after restart.
Scenario: You have /qa-check that runs formatter and linter, but you want to add test execution and build verification.
/update-workflow
Output:
Available commands:
1. qa-check - Run quality checks on the current project
2. save-workflow - Save recent work as a slash command
3. update-workflow - Update an existing slash command
Which command to update? > 1
Current workflow in qa-check:
1. Identify project type and verify project structure
2. Run formatter according to project conventions
3. Run linter with strict settings
Recent work detected:
- Executed test suite
- Ran build process
How to update?
1. Append - Add test & build steps at the end
2. Prepend - Add before formatting
3. Replace - Replace specific step
4. Merge - Intelligently integrate
5. Cancel
> 1
Preview:
──────────────────────────────────────────────
BEFORE AFTER
──────────────────────────────────────────────
1. Identify project 1. Identify project
2. Run formatter 2. Run formatter
3. Run linter 3. Run linter
4. Execute test suite
5. Run build process
──────────────────────────────────────────────
Apply changes? (y/n) > y
✅ Updated /qa-check
commands/.backup/{command-name}.{timestamp}.md/restore-workflow