Promote frequent task pattern to agent
Converts frequently used task patterns into reusable agents. Use when you've repeated the same workflow multiple times and want to automate it with a specialized agent.
/plugin marketplace add h315uk3/as_you/plugin install h315uk3-as-you@h315uk3/as_you<pattern-name>Analyze frequent task patterns and promote them to knowledge base (Agent).
Retrieve promotion candidates using Bash tool:
python3 ./scripts/promotion_analyzer.py | python3 -c "import sys, json; print(json.dumps([s for s in json.load(sys.stdin) if s['type'] == 'agent'], indent=2))"
If 0 candidates:
/as-you:promote-to-skillPresent candidates using AskUserQuestion tool:
{pattern} [{score}%] - {reason} (e.g., deployment [100%] - High score: TF-IDF=58.22, Recently used)For selected pattern:
Organize context information:
python3 -c "import json; data = json.load(open('.claude/as_you/pattern_tracker.json')); print('\n'.join(data['patterns']['selected_pattern'].get('contexts', [])))"
Infer required tools from task pattern:
Generate draft using plugin-dev:agent-development skill:
User confirmation:
Execute creation:
agents/{suggested_name}.mdUpdate pattern_tracker.json:
# Mark promotion status (also record promoted_to, promoted_at, promoted_path)
python3 scripts/promotion_marker.py "selected_pattern" agent "agents/{agent-name}.md"
✅ Agent created: {agent-name}
File: agents/{agent-name}.md
The agent will automatically activate when this task is needed.
Related commands:
- /as-you:memory-stats - View statistics
- /as-you:promote-to-agent - Promote other patterns
agents/*.md using Glob tool)