From devflow
View or reset the PR/MR description strategy preference for the current project.
npx claudepluginhub andrejorgelopes/devflow --plugin devflowView or reset the PR/MR description strategy preference for the current project. ## Steps 1. **Detect project name.** Run: Store the result as `<project>` for use in all subsequent steps. 2. **Recall existing preference from Hindsight.** Use the `recall` tool: 3. **If a strategy is found:** Display the current strategy to the user and ask via `AskUserQuestion`: - **Keep** — Leave the current preference as-is (stop here) - **Change** — Pick a new strategy (continue to step 4) - **Clear** — Remove the preference entirely by calling the Hindsight `delete_memory` tool on...
View or reset the PR/MR description strategy preference for the current project.
Detect project name. Run:
basename "$(git rev-parse --show-toplevel)"
Store the result as <project> for use in all subsequent steps.
Recall existing preference from Hindsight. Use the recall tool:
recall("<project>: PR description strategy", tags=["pr-strategy"])
If a strategy is found: Display the current strategy to the user and ask via AskUserQuestion:
delete_memory tool on the matched memory, confirm deletion, and stopIf "Change" was chosen, or no existing strategy was found: Present the strategy selector via AskUserQuestion with these options:
If "Use repo template" is chosen: Search these locations in order using the Glob tool:
.github/PULL_REQUEST_TEMPLATE.md.github/PULL_REQUEST_TEMPLATE/*.md.gitlab/merge_request_templates/*.mdPULL_REQUEST_TEMPLATE.md (repo root)docs/pull_request_template.mdIf multiple templates are found, present them via AskUserQuestion and let the user pick one.
If none are found, inform the user and fall back to asking for a custom path or auto-generate.
If "Custom path" is chosen: Ask the user for the file path via AskUserQuestion. Verify the file exists by reading it. If it does not exist, report the error and ask again.
Retain the choice in Hindsight. Use retain with the appropriate value:
retain("<project>: PR description strategy = auto-generate", tags=["pr-strategy", "<project>"])retain("<project>: PR description strategy = repo-template:<relative-path>", tags=["pr-strategy", "<project>"])retain("<project>: PR description strategy = custom:<path>", tags=["pr-strategy", "<project>"])If an old memory was found in step 2, delete it first with the Hindsight delete_memory tool before retaining the new one.
Confirm the saved preference to the user. State which strategy was stored and for which project.
$ARGUMENTS