/hoangsa:memory-clifrom hoangsa
Runs hoangsa-memory CLI commands for indexing, querying, impact analysis, and context graph traversal. Useful for managing project memory and tracing dependencies.
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.
Most hoangsa-memory MCP tools have a CLI equivalent, plus a few CLI-only
commands (init, watch, prefetch-embed). Run from the repo root unless
noted — the CLI defaults --root to ./.hoangsa/memory.
hoangsa-memory initCreate a bare ./.hoangsa/memory/: seeds MEMORY.md, LESSONS.md, and a
fully commented config.toml. Idempotent — existing files are preserved.
Higher-level install (hooks, MCP registration, skills) is hoangsa-cli install, not this.
hoangsa-memory prefetch-embedDownload the default embedding model (~118 MB) into the shared fastembed
cache so the first index / query doesn't stall. No-op once cached.
hoangsa-memory index [path]Parse + index a source tree. Populates chunks.db, the graph, and
(if --embedder is set) vectors.db.
hoangsa-memory index . # Mode::Zero — BM25 + symbol + graph
hoangsa-memory index . --embedder voyage # Mode::Full — adds semantic vectors
Embedders require their API key in the matching env var
(VOYAGE_API_KEY, OPENAI_API_KEY, COHERE_API_KEY) and the matching
Cargo feature at build time.
hoangsa-memory watch [path]Re-index on file save. Cheaper than re-running hoangsa-memory index manually
during an active session.
hoangsa-memory watch .
hoangsa-memory watch . --debounce-ms 500
hoangsa-memory query <text...>Hybrid recall. Joins extra args with spaces — no quoting needed for multi-word queries.
hoangsa-memory query authentication login session
hoangsa-memory query -k 16 retry pool exhausted # more hits
hoangsa-memory query --json error handler 500 # machine-readable
hoangsa-memory impact <fqn>Blast-radius analysis. Direction defaults to up (who calls this);
down is "what does this depend on"; both is the union.
hoangsa-memory impact server::dispatch_tool
hoangsa-memory impact auth::verify_token -d 5
hoangsa-memory impact util::fmt --direction down
hoangsa-memory context <fqn>360° view of a symbol: callers, callees, extends, extended_by, references, siblings, unresolved imports.
hoangsa-memory context server::dispatch_tool
hoangsa-memory context auth::Session --limit 64
hoangsa-memory changesChange-impact over a unified diff. With no --from, runs
git diff HEAD in the current tree.
hoangsa-memory changes # current working-tree diff
hoangsa-memory changes --from patch.diff # from a file
gh pr diff 123 | hoangsa-memory changes --from -
hoangsa-memory changes -d 3 # deeper upstream walk
Whole-shape queries over the code graph — reach for these instead of
grepping call chains by hand. All accept --json.
hoangsa-memory graph query <start...>Traverse callers/callees/refs/imports from seed symbol(s). Filter by direction / edge kinds / depth; export JSON or DOT.
hoangsa-memory graph query server::dispatch_tool --direction both -d 2
hoangsa-memory graph query auth::verify_token --edge-kinds calls --format dot
hoangsa-memory graph paths <from> <to>Shortest dependency/call path between two symbols.
hoangsa-memory graph paths router::handle_login db::users::find_by_email
hoangsa-memory graph communitiesArchitecture map — clusters of tightly-coupled symbols (largest first).
hoangsa-memory graph communities --min-size 5
hoangsa-memory graph processesExecution flows from entry points (::main or --entry-globs).
hoangsa-memory graph processes -d 8
hoangsa-memory graph taintSource→sink security dataflow. Requires an index built with
hoangsa-memory index . --pdg. Omit --source/--sink for built-in defaults.
hoangsa-memory index . --pdg
hoangsa-memory graph taint --source env::var --sink Command::new --json
hoangsa-memory memory showPrint MEMORY.md + LESSONS.md.
hoangsa-memory memory editOpen MEMORY.md in $EDITOR.
hoangsa-memory memory fact <text...>Append a fact. Tags are comma-separated.
hoangsa-memory memory fact "HTTP retry lives in crates/net/retry.rs"
hoangsa-memory memory fact --tags net,retry "HTTP retry lives in ..."
hoangsa-memory memory lesson --when <trigger> <advice...>Append a lesson.
hoangsa-memory memory lesson \
--when "adding a retry to an HTTP call" \
Use the existing RetryPolicy in crates/net/retry.rs.
hoangsa-memory memory lesson-feedback success|failure <trigger...>Bump a lesson's success / failure counter. The forget pass drops lessons
below lesson_floor and quarantines those past quarantine_failure_ratio,
so these counters are what eventually prunes bad advice.
hoangsa-memory memory lesson-feedback failure "when editing migrations"
hoangsa-memory memory dream [--force] [--dry-run]Run the consolidation pass now: hand MEMORY.md / LESSONS.md /
USER.md to a model that merges duplicates, rewrites stale entries, and
drops ones the code no longer supports. --dry-run reports its verdicts
without writing. --force ignores [dream].enabled and the
min_interval_hours floor. Normally the daemon runs this on its own when
the project goes idle.
hoangsa-memory memory dream --dry-run # see what it would change
hoangsa-memory memory dream --force # run it now regardless of config
hoangsa-memory archive <ingest|search|status|topics|purge>Verbatim conversation archive, separate from curated memory. ingest is
normally hook-driven (PreCompact / SessionEnd). purge takes either
--older-than 30d or --all. See hoangsa-memory archive --help.
hoangsa-memory projects <list|rename|remove|show>Manage the registry at ~/.hoangsa/projects.json. Every CLI invocation
auto-registers the cwd; these subcommands edit that.
--root PATH — defaults to ./.hoangsa/memory. Point at ~/.hoangsa/memory for
user-global memory.--json — machine-readable output (for subcommands that support it).-v / -vv / -vvv — tracing verbosity.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub unknown-studio-dev/hoangsa --plugin hoangsa11 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-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".
Other plugins' skills for the same job