Save recent work as a reusable workflow
Saves recent work as a reusable workflow command for future execution.
/plugin marketplace add h315uk3/as_you/plugin install as-you@as-you[workflow-name]Save a sequence of recent work as a reusable workflow command.
Review the last 10-20 tool uses from conversation history:
Extract:
If $ARGUMENTS is empty:
If $ARGUMENTS is provided:
Then ask about abstraction level:
Then ask about scope:
If "Let me select":
Use AskUserQuestion:
Get current directory with pwd using Bash tool.
Create {pwd}/commands/{workflow-name}.md using Write tool with absolute path:
---
description: "{user-provided-description}"
allowed-tools: [Bash, Read, Write, Edit, Grep, Glob]
---
# {Workflow Name}
{Description}
## Execution Steps
1. [Step 1 description]
- Specific operations
- Expected outcome
2. [Step 2 description]
- Specific operations
- Expected outcome
...
## Error Handling
If errors occur:
- Report details
- Ask for confirmation before proceeding to next step
## Related Commands
- `/as-you:workflows` - Manage workflows
Display generated workflow to user.
Use AskUserQuestion:
If "Yes":
{pwd}/commands/{workflow-name}.md using absolute pathSaved workflow: /as-you:{name}
To use this workflow, restart the session:
- Type /exit and press Enter
- Resume or start new session
The workflow will be available after restart.
If "Modify first":
If "Cancel":
Before saving:
Recent work:
npm run formatnpm run lintnpm testGenerated workflow (commands/qa-check.md):
Run quality checks on the project.
1. Identify project type and package manager
2. Run formatter (npm run format or equivalent)
3. Run linter with strict settings
4. Execute test suite
5. Report results (show errors or success message)
Usage: /as-you:qa-check
/as-you:workflows - Manage saved workflows