Add product-manager-impersonator and refactor-opportunist workflows#360
Add product-manager-impersonator and refactor-opportunist workflows#360
Conversation
Add two new continuous improvement workflows: - ideas-man: Proposes well-researched new feature ideas as GitHub issues. Reviews the codebase and recent activity to propose customer-aligned, grounded, tractable features. Runs weekdays on schedule. - refactor-proposal: Senior architect that identifies structural improvements, partially implements them to prove viability, then pitches via an issue with proof-of-concept and incremental rollout plan. Runs weekly. Both workflows follow the scheduled-audit pattern and include: - Source .md workflow definitions - example.yml triggers - README.md documentation - Compiled .lock.yml files - Auto-generated trigger files Also updates quick-setup.sh and gh-agent-workflows/README.md to include both workflows in the continuous-improvement set. Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
📝 WalkthroughWalkthroughThis PR introduces two new continuous improvement GitHub Actions workflows—Ideas Man and Refactor Proposal—with complete job definitions, trigger schedules, documentation, and examples. Both workflows integrate Copilot CLI, MCP servers, safe outputs handling, and threat detection. Updates include setup scripts and documentation to include these workflows in the default automation suite. Changes
Sequence Diagram(s)sequenceDiagram
participant GH as GitHub<br/>Actions
participant Act as Activation<br/>Job
participant Agent as Copilot<br/>Agent Job
participant Detect as Threat<br/>Detection
participant SafeOut as Safe<br/>Outputs Job
participant Conclude as Conclusion<br/>Job
GH->>Act: Trigger workflow
activate Act
Act->>Act: Validate context<br/>Create prompt<br/>Setup environment
Act-->>GH: Artifacts created
deactivate Act
Act->>Agent: Pre-activation check<br/>passed
activate Agent
Agent->>Agent: Install Copilot CLI<br/>Start MCP servers<br/>Configure gateway
Agent->>Agent: Run Copilot with<br/>sandboxed commands
Agent-->>GH: Agent logs & outputs
deactivate Agent
Agent->>Detect: Threat detection<br/>trigger
activate Detect
Detect->>Detect: Download artifacts<br/>Parse output types<br/>Run detection analysis
Detect-->>GH: Threat report
deactivate Detect
Detect->>SafeOut: Process safe outputs
activate SafeOut
SafeOut->>SafeOut: MCP server init<br/>Tool validation<br/>Policy enforcement
SafeOut->>SafeOut: Handle create_issue,<br/>noop, missing_data
SafeOut-->>GH: Safe outputs report
deactivate SafeOut
SafeOut->>Conclude: Finalize results
activate Conclude
Conclude->>Conclude: Aggregate results<br/>Process no-ops<br/>Redact secrets
Conclude-->>GH: Final summary
deactivate Conclude
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
@copilot maybe rename to product-manager-impersonator and refactor-opportunist? |
…l to refactor-opportunist Renames both workflows per review feedback: - ideas-man → product-manager-impersonator - refactor-proposal → refactor-opportunist Updates all source files, examples, READMEs, triggers, lock files, gh-agent-workflows/README.md, and scripts/quick-setup.sh. Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Renamed in Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Adds two continuous-improvement detector workflows for downstream repos:
product-manager-impersonatorandrefactor-opportunist.New workflows
product-manager-impersonatorcreate-issue(max 1, closes older reports); otherwise emitsnoop.0 10 * * 1-5) and supports manual dispatch.refactor-opportunistcreate-issue(max 1, closes older reports); otherwise emitsnoop.0 14 * * 1) and supports manual dispatch.Additional changes
gh-agent-workflows/product-manager-impersonator/example.ymlgh-agent-workflows/refactor-opportunist/example.yml.github/workflows/trigger-product-manager-impersonator.yml.github/workflows/trigger-refactor-opportunist.ymlgh-agent-workflows/README.md(detectors list and--continuous-improvementset)gh-agent-workflows/product-manager-impersonator/README.mdgh-agent-workflows/refactor-opportunist/README.mdscripts/quick-setup.shto include both workflows incontinuous_improvement_workflows.Consumer usage
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.