/hoangsa:memory-reflectfrom hoangsa
Drives a structured reflection pass at session end to persist preferences, facts, or lessons to hoangsa-memory's long-term memory. Triggers on wrap-up phrases like "we're done" or "reflect".
Ships in hoangsa. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Drive a deliberate reflection pass over the session that just ended. The goal is to extract durable memory — not chat noise. hoangsa-memory already captured the raw episodic log; your job is to decide what deserves to survive after the TTL sweeps the log clean.
Call the hoangsa-memory MCP server:
memory_show — current USER.md + MEMORY.md + LESSONS.md
contents, so you know what's already there and don't duplicate it.resources/read hoangsa-memory://memory/MEMORY.md (same data, different wire
shape — use whichever your client supports).If the session had enough tool calls to make a summary expensive, ask the user for a one-paragraph recap instead of reading the full log.
Walk the session and ask three questions in order:
when X → do Y.
Save as a lesson → LESSONS.md.If none of the three apply, reply no memory needed and stop.
For each decision from step 2, call the matching tool.
Preference (first-person, cross-project):
memory_remember_preference {
"text": "User prefers concise Vietnamese responses in code review
contexts, with commit messages in English.",
"tags": ["style", "language"]
}
Fact (project-specific invariant):
memory_remember_fact {
"text": "The HTTP client in crates/net uses its own retry wrapper; the
reqwest defaults are overridden in src/client.rs:42.",
"tags": ["net", "retry"]
}
Keep the first line crisp — it becomes the MEMORY.md heading. Don't restate things already visible from the file tree (e.g. "this repo is a Rust workspace" is not a fact worth persisting).
Lesson (action-triggered advice):
memory_remember_lesson {
"trigger": "adding a retry to an HTTP call in this repo",
"advice": "Use the existing RetryPolicy in crates/net/retry.rs; do not
add reqwest middleware directly or it double-retries."
}
Lessons fire when their trigger matches a future intent, so write the
trigger as a situation description, not a command.
cap_exceededIf any of the three tools returns a structured cap_exceeded error, do
NOT silently drop the entry. The error payload includes a preview list
— pick a stale entry from it, then call memory_replace (to
consolidate) or memory_remove (to drop), and retry the remember
call. Reflection is exactly when the memory store is most likely to be
near its cap, so you MUST know this path.
See the memory-discipline skill for the full cap-exceeded flow.
Write a two-line summary to the user:
Saved to memory:
- preference: "Vietnamese responses, English commits"
- fact: "HTTP retry lives in crates/net/retry.rs"
- lesson: "trigger → advice"
(or) no durable memory this session.
Don't dump the full USER.md/MEMORY.md back — the user can open the files.
A memory entry is worth persisting only if it clears the bar for its surface:
Preference (USER.md) — YES only if:
Fact (MEMORY.md) — YES only if:
Lesson (LESSONS.md) — YES only if:
If none of those clear the bar, emit no memory needed and stop. False
positives pollute the store faster than missing entries hurt.
memory_remember_lesson on an existing trigger is rejected outright.
If your advice supersedes it, use memory_replace; otherwise leave the
existing lesson alone.memory_replace (consolidate into an existing heading) over
adding a new entry that will push the file over the cap.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/fe-testingThis skill should be used when the user is building, changing, or trying to verify a frontend feature on web (React/Vite) or React Native/Expo, and is unsure how to prove it actually works. Triggers on phrases like 'how do I test this component/screen', 'verify this feature', 'make sure this works on web/mobile', 'is this covered by tests', 'my tests pass but the feature is broken', 'no tests yet', or before shipping any FE change. Guides the full loop: define verifiable success criteria before coding, write tests at the correct layer (logic/component/E2E/visual), and confirm behavior by running the real app./git-flowThis skill should be used when the user wants to start a new task, switch between tasks, park or resume work, finish a task (push + PR), clean up merged branches, or sync with upstream. Triggers on phrases like 'start task', 'new task', 'work on', 'switch to', 'park this', 'resume', 'continue where I left off', 'done with this', 'finish task', 'create PR', 'clean branches', 'delete merged', 'rebase', 'pull latest', or 'sync with main'./memory-cliUse when the user needs to run hoangsa-memory CLI commands — init / index / query / watch / memory / archive / impact / context / changes / graph / projects. Examples: "index this repo", "show memory", "trace the graph", "find taint paths", "consolidate memory".
/memory-debuggingUse when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "why is X failing?", "where does this error come from?", "trace this bug", "who calls this method?", "this endpoint returns 500".
/memory-disciplineThis skill should be used before any non-trivial coding action — editing code, writing new files, running migrations, deploying, or answering a question that involves factual claims about this codebase. It forces the agent to consult hoangsa-memory's persistent memory (USER.md, MEMORY.md, LESSONS.md, the indexed code graph) and acknowledge relevant lessons before acting. Trigger phrases: "edit", "refactor", "implement", "fix the bug in", "add a feature", "deploy", "why does this do", "how does X work".
/memory-exploringUse when the user asks how code works, wants to understand architecture, trace execution flows, or explore unfamiliar parts of the codebase. Examples: "how does X work?", "what calls this function?", "show me the auth flow", "where is the DB logic?".
npx claudepluginhub unknown-studio-dev/hoangsa --plugin hoangsaOther plugins' skills for the same job