From rafayels-engineering
Detects emerging patterns in the memory case bank and proposes skill updates as reviewable draft PRs. Depends on the `memory` skill. Use when the user wants to surface recurring successful patterns and optionally encode them into skill files.
npx claudepluginhub rafayelgardishyan/rafayels-engineeringThis skill is limited to using the following tools:
Sibling skill to `memory`. Detects recurring patterns across successful cases
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Provides process, architecture, review, hiring, and testing guidelines for engineering teams relying on AI code generation.
Sibling skill to memory. Detects recurring patterns across successful cases
in the memory bank and generates draft PRs that append learned patterns to
skill files.
Architectural note: This is a genuine layering inversion (the memory
system edits its own plugin's source files). It lives in its own skill
— separate from memory — to make the inversion structurally visible
and isolable. The memory skill itself never edits agent or skill files.
# Detect pattern clusters in the memory bank
python3 ${CLAUDE_PLUGIN_ROOT}/skills/memory-proposer/scripts/memory_proposer.py detect
# List all detected patterns
python3 ${CLAUDE_PLUGIN_ROOT}/skills/memory-proposer/scripts/memory_proposer.py list
# Generate a draft PR for a specific pattern
python3 ${CLAUDE_PLUGIN_ROOT}/skills/memory-proposer/scripts/memory_proposer.py \
propose 42 --target-skill github
--draft flag enforced.automated,learned-pattern label + HTML
body comment <!-- generated-by: memory-pattern-detector v1 -->. Humans,
tooling, and PR filters all recognize the origin.## Learned Patterns sections in skills or references.
Creates the section if missing; never modifies existing content.agents/ — the edit function raises ProposeError if asked
to touch any file under agents/. System prompts stay human-authored.bot/learned-pattern/<skill>-<hash>.
Same content produces the same branch. Re-running detect+propose on the
same cluster is idempotent (no duplicate PRs)./tmp/memory-pr-*, not in
the user's working directory.status IN ('active', 'promoted') AND reward >= 0.6method='average' (UPGMA — correct for cosine)min_cluster_size = max(5, int(0.01 * N))| Command | Description |
|---|---|
memory-proposer detect [--min-cluster N] [--min-reward 0.6] | Detect clusters and persist as patterns |
memory-proposer list [--status detected|proposed|merged|ignored] | List persisted patterns |
memory-proposer propose <id> --target-skill <name> | Generate draft PR for a pattern |
All commands accept --json.
pip install -r ${CLAUDE_PLUGIN_ROOT}/skills/memory-proposer/scripts/requirements.txt
# Requires memory skill to be installed too:
pip install -r ${CLAUDE_PLUGIN_ROOT}/skills/memory/scripts/requirements.txt
memory-proposer detect periodically (e.g. via /re:memory-review)memory-proposer listmemory-proposer propose <id> --target-skill <skill>gh pr close --delete-branch)memory skill — source of cases the proposer operates on/re:memory-review command — interactive audit that includes this flow