[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KKV7EKCWEGCB5WA5X3VZMF":3,"skill-same:01M6KKV7EKCWEGCB5WA5X3VZMF":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6KKV7EKCWEGCB5WA5X3VZMF","brmem",null,"Branch-scoped durable memory via the `brmem` CLI: store, read, list, check, delete, or copy text context tied to a git branch, or resolve `.ns\u002Fprompts\u002F...` or XDG global prompt plugins. Use when the user mentions brmem, Branch Memory, stashing branch-scoped notes\u002Fcontext, carrying scratch state across sessions, or how an agent should call `brmem`.","nseng-ai\u002Fns","nseng-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F273792438?v=4","01M6KKN105A07WPV2TZKZXZGQF","nseng.ai","01M6KKN14MDSR9VF9739AWXG8M",2,"MIT","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Fincubating\u002Fbrmem\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"branch","scoped","across","call","use","context","list","read","prompt","cli","text","Bash","how","git","git branch","delete","notes","sessions","memory","2026-11-10 10:12:30",false,"---\nname: brmem\ndescription: \"Branch-scoped durable memory via the `brmem` CLI: store, read, list, check, delete, or copy text context tied to a git branch, or resolve `.ns\u002Fprompts\u002F...` or XDG global prompt plugins. Use when the user mentions brmem, Branch Memory, stashing branch-scoped notes\u002Fcontext, carrying scratch state across sessions, or how an agent should call `brmem`.\"\nallowed-tools:\n  - \"Bash(brmem *)\"\n  - \"Bash(git *)\"\n  - \"Read\"\n---\n\n\u003C!-- PUBLIC SKILL: Do not reference ns-internal module paths or class names in this file. Describe CLI operations, not implementation. -->\n\n# brmem\n\n`brmem` is the Branch Memory System for agents: small UTF-8 Entries that stay\nattached to a Git branch without becoming working-tree files, commits, PR\ncomments, or issues.\n\nThis skill is a CLI reference. Prefer higher-level skills when they match the\nwhole workflow — in particular, use the `branch-context` skill family for\nbranch-context saved or attached plans (do not store those as generic `brmem`\n`plans\u002F` keys) and the `handoff` skill family for durable resume\u002Fcontinuation\ncontext across sessions. Use this skill directly when you need to inspect,\nwrite, copy, delete, or explain Branch Memory.\n\n## Mental model\n\n- **Branch Memory**: Entries attached to one branch, either in the Base\n  Namespace or in a named Namespace.\n- **Entry**: a small text blob stored under an Entry Key such as `note.md` or\n  `notes\u002Ftable-filter.md`.\n- **Entry Key**: the path-like name for an Entry within Branch Memory.\n- **Namespace**: a branch-scoped Entry bucket. The Base Namespace has canonical\n  name `base` and is reserved by `brmem` for ad-hoc Entries when `--namespace`\n  is omitted. Named Namespaces are workflow-owned buckets such as `notes`.\n- **Entry Locator**: the copy-pastable `git show` locator printed by commands,\n  shaped like `\u003Csnapshot-ref>:\u003Centry-key>`.\n\n`brmem` is durable and inspectable, not secret. Do not store credentials,\nprivate tokens, binary assets, generated build output, or large datasets.\n\n## Install and runtime\n\nIf `brmem` is missing, run `just install-global-brmem` (or `just install-global-tools`) from\nan ns checkout; repair a broken checkout with `just ts-install`.\n\n## Choosing a command\n\n| Goal                                          | Command                                                         | Writes? |\n| --------------------------------------------- | --------------------------------------------------------------- | ------- |\n| Store or update text                          | `brmem put \u003Ckey> --file \u003Cpath>`                                 | Yes     |\n| Print one Entry's content                     | `brmem get \u003Ckey>`                                               | No      |\n| Probe one Entry and get Entry Locator\u002Fsize    | `brmem check \u003Ckey>`                                             | No      |\n| List Entries on one branch or all branches    | `brmem list [--all-branches]`                                   | No      |\n| Export Entries to files                       | `brmem export [--output-dir \u003Cdir>]`                             | Files   |\n| Remove one Entry                              | `brmem delete \u003Ckey>`                                            | Yes     |\n| Preview stale Snapshots for missing branches  | `brmem gc`                                                      | No      |\n| Delete stale Snapshots for missing branches   | `brmem gc --yes`                                                | Yes     |\n| Copy Base Entries between branches            | `brmem copy --base --from-branch \u003Ca> --to-branch \u003Cb>`           | Yes     |\n| Copy named Namespace Entries between branches | `brmem copy --namespace \u003Cns> --from-branch \u003Ca> --to-branch \u003Cb>` | Yes     |\n| Resolve a repo\u002Fglobal prompt plugin           | `brmem exec resolve-prompt \u003Cname>`                              | No      |\n\n## Cross-command rules\n\n- **Branches.** Commands default to the current branch. If the task names a\n  branch, pass `--branch \u003Cbranch>` (or `--from-branch` \u002F `--to-branch` for\n  `copy`) instead of relying on the checkout; if no branch is provided, confirm\n  the current Git branch before mutating memory. For read-only listing across\n  branches, pass `brmem list --all-branches`.\n- **Namespaces.** Add `--namespace \u003Cns>` to `put`, `get`, `check`, `delete`,\n  `list`, or `export` for named Namespace Entries; omit it for Base Namespace\n  Entries. Where `--namespace base` is accepted, it selects Base Namespace\n  Entries. Choose deliberately: the Base Namespace for ad-hoc scratch notes,\n  named Namespaces for workflow-owned state so unrelated workflows do not\n  collide. Namespaces are single path segments: no `\u002F`.\n- **Entry Keys.** Prefer POSIX-like relative paths such as `notes\u002Fadd-cache.md`\n  or `session\u002Fsummary.md`. Avoid spaces and punctuation. Entry Keys cannot be\n  empty, start\u002Fend with `\u002F`, contain `\u002F\u002F`, contain `:`, contain a `..` segment,\n  contain glob\u002Fref metacharacters, or end a segment with `.lock`.\n- **Output.** Add `--format json` when you need stable fields from `put`,\n  `list`, `check`, `export`, `copy`, `delete`, `gc`, or `resolve-prompt`. For\n  `get`, the human output is intentionally just the stored content; use that\n  when feeding the text directly into your workflow.\n\n## put — store an Entry\n\n`put` is an overwrite. If overwriting is not explicitly desired, preflight\nwith `brmem check \u003Ckey> ...` (see `check` below for result interpretation).\n\nAgents should prefer `--file \u003Cpath>` for prepared content; use `--stdin` for\npiped content.\n\n```text\nbrmem put notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --file \u002Ftmp\u002Fnote.md\nbrmem put notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache --file \u002Ftmp\u002Fnote.md\n```\n\n`put` accepts UTF-8 text, rejects likely binary content, and caps Entries at\n1 MiB unless `--force` is supplied. Use `--force` only when the user\nexplicitly accepts the storage cost\u002Frisk.\n\n## list and get — read Branch Memory\n\nList first when you do not already know the Entry Key, then read Entries by\nEntry Key:\n\n```text\nbrmem list --branch feature\u002Fadd-cache --format json\nbrmem list --base --branch feature\u002Fadd-cache\nbrmem list --namespace scratch --branch feature\u002Fadd-cache --format json\nbrmem list --namespace scratch --all-branches --format json\n\nbrmem get notes\u002Fadd-cache.md --branch feature\u002Fadd-cache\nbrmem get notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache\n```\n\n`get` prints only content in human mode. If a task asks you to load all Branch\nMemory for a branch, list with JSON and then `get` every returned Entry,\npreserving content verbatim in your working context before summarizing it for\nthe user.\n\nUse `--at \u003Ctreeish-or-commit>` with `get` or `check` only when you need a\nhistorical Branch Memory version rather than the current Branch Memory.\n\n## check — probe an Entry\n\nUse `check` to test existence or get the Entry Locator without printing the\nfull text:\n\n```text\nbrmem check notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --format json\nbrmem check notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache\nbrmem check notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --require\n```\n\nInterpret results carefully — default `check` remains a presence predicate and\nexits `0` for both present and absent Entries:\n\n- `0` with `Present: yes` or JSON `data.present: true`: Entry exists; metadata\n  is available.\n- `0` with `Present: no` or JSON `data.present: false`: Entry is absent; this\n  is a normal probe result, useful before `put`.\n- With `--require` \u002F `-r`, presence still exits `0`, while absence returns a\n  `negative` envelope with the complete `data.present: false` metadata and\n  exits `1`. Use this mode when later work requires the named Entry.\n- `2`: invalid Namespace\u002FEntry Key\u002FBranch, detached HEAD when branch was\n  omitted, or another command failure.\n\n## export — materialize Entries as files\n\nUse `export` when a workflow needs Branch Memory materialized as ordinary\nUTF-8 files in a chosen directory:\n\n```text\nbrmem export --branch feature\u002Fadd-cache\nbrmem export --branch feature\u002Fadd-cache --output-dir \u002Ftmp\u002Fbrmem-export\nbrmem export --namespace scratch --branch feature\u002Fadd-cache --output-dir \u002Ftmp\u002Fscratch-export\n```\n\n- Omitting `--output-dir` writes to a fresh temp directory whose path has a\n  unique random suffix (e.g. `$TMPDIR\u002Fbrmem-export-\u003Chash>`); the directory\n  outlives the process and the chosen path is printed in the command output.\n- Omitting `--namespace` exports **base Entries only**. It does not mean \"all\n  Namespaces.\"\n- Each key becomes a relative path under `--output-dir`; for example,\n  `notes\u002Fsession.md` writes `\u003Coutput-dir>\u002Fnotes\u002Fsession.md`.\n- Export returns a normal no-match result before writing if no Entries match.\n  It fails for output directories that are not directories, existing targets,\n  or unsafe target paths. Pass `--overwrite` only when replacing existing\n  files is intentional.\n- Use `--dry-run` to see planned writes without creating directories or files.\n  Add `--format json` when another tool needs the planned\u002Fexported paths and\n  sizes.\n\n## copy — move Branch Memory between branches\n\nUse `copy` when Branch Memory should travel from one branch to another. Choose\nexactly one scope: `--base` for the Base Namespace, or `--namespace \u003Cns>` for\na named Namespace (`--namespace base` targets the Base Namespace too). Do not\nomit the scope and do not pass both flags.\n\n```text\nbrmem copy --base --from-branch main --to-branch feature\u002Ftable-filter\nbrmem copy --namespace notes --from-branch main --to-branch feature\u002Ftable-filter\nbrmem copy --namespace notes --from-branch main --to-branch feature\u002Ftable-filter --dry-run --format json\n```\n\n- Preview with `--dry-run` first when replacement risk matters.\n- Without `--key-glob`, the whole chosen Namespace is copied. If `--overwrite`\n  is used, the destination Branch Memory for that Namespace is replaced.\n- With `--key-glob 'slug\u002F*'`, only matching Entry Keys are copied and\n  unrelated destination Entries are preserved. In this CLI, `*` matches `\u002F`,\n  so `slug\u002F*` covers nested Entry Keys too.\n- Existing matching destination Entries make `copy` abort unless `--overwrite`\n  is supplied. An empty destination Snapshot is not a conflict. Do not add\n  `--overwrite` unless replacement is intentional.\n\n## gc — clean up stale Snapshots\n\nUse `gc` only for explicit cleanup of Branch Memory for branches that no\nlonger exist as local `refs\u002Fheads\u002F*` branches; do not run it as part of a\nhigher-level workflow unless the user asked for cleanup. Higher-level\nworkflows should diagnose stale collisions and point here, not auto-run\ncleanup. `gc` scans Snapshots, not individual Entries, and remote branches do\nnot count as live.\n\nThe default is a dry-run; no refs are deleted without `--yes`. Inspect the\ndry-run output before passing `--yes`. `--base` and `--namespace \u003Cns>`\nrestrict the scan and are mutually exclusive. Deleting a Snapshot Ref removes\nall Entries in that Namespace for that branch.\n\n```text\nbrmem gc\nbrmem gc --namespace branch-context --format json\nbrmem gc --base\n\nbrmem gc --yes\nbrmem gc --namespace branch-context --yes\n```\n\n## delete — remove an Entry\n\nOnly delete one explicit Entry the user or workflow has identified:\n\n```text\nbrmem check stale-note.md --branch feature\u002Fadd-cache\nbrmem delete stale-note.md --branch feature\u002Fadd-cache\nbrmem delete stale-note.md --namespace scratch --branch feature\u002Fadd-cache\n```\n\n## exec resolve-prompt — skill-facing prompt plugins\n\nSome skills let a repo customize one narrow prompt file. This is for skills\nand automation, not a normal user-facing Branch Memory operation. Resolve\nprompts with:\n\n```text\nbrmem exec resolve-prompt \u003Cprompt-name> --format json\n```\n\nResolution checks the current repository's `.ns\u002Fprompts\u002F\u003Cprompt-name>.md`\nfirst, then `$XDG_CONFIG_HOME\u002Fns\u002Fbrmem\u002Fprompts\u002F\u003Cprompt-name>.md` (default\n`$HOME\u002F.config\u002Fns\u002Fbrmem\u002Fprompts\u002F\u003Cprompt-name>.md`). The JSON result gives\n`data.path` and `data.tier` (`project` or `global`). Read that file verbatim\nand follow the owning skill's rules for what the plugin is allowed to decide.\nIf resolution exits `2`, surface the CLI message and abort; do not invent an\ninline fallback or create the prompt file unless the user asked you to\nconfigure prompts.\n\n## Report what you did\n\nFor read-only work, summarize what you inspected and which Entries were\nloaded. After a mutation (`put`, `copy`, `delete`, or `gc --yes`), tell the\nuser the branch, Namespace\u002Fbase, Entry Key(s) or Snapshot Ref(s), Entry\nLocator, and commit(s) when the command prints them:\n\n```text\nBranch: \u003Cbranch>\nEntry: \u003Cnamespace-or-base>\u002F\u003Ckey>\nEntry Locator: \u003Clocator printed by brmem>\nCommit: \u003Ccommit printed by brmem>\n```\n\nIf an operation aborted because an Entry already exists, an Entry Key is\ninvalid, the branch is detached, or `copy` found conflicts, say exactly which\nCLI command was run and quote the relevant error message.\n","\u003C!-- PUBLIC SKILL: Do not reference ns-internal module paths or class names in this file. Describe CLI operations, not implementation. -->\n\n# brmem\n\n`brmem` is the Branch Memory System for agents: small UTF-8 Entries that stay\nattached to a Git branch without becoming working-tree files, commits, PR\ncomments, or issues.\n\nThis skill is a CLI reference. Prefer higher-level skills when they match the\nwhole workflow — in particular, use the `branch-context` skill family for\nbranch-context saved or attached plans (do not store those as generic `brmem`\n`plans\u002F` keys) and the `handoff` skill family for durable resume\u002Fcontinuation\ncontext across sessions. Use this skill directly when you need to inspect,\nwrite, copy, delete, or explain Branch Memory.\n\n## Mental model\n\n- **Branch Memory**: Entries attached to one branch, either in the Base\n  Namespace or in a named Namespace.\n- **Entry**: a small text blob stored under an Entry Key such as `note.md` or\n  `notes\u002Ftable-filter.md`.\n- **Entry Key**: the path-like name for an Entry within Branch Memory.\n- **Namespace**: a branch-scoped Entry bucket. The Base Namespace has canonical\n  name `base` and is reserved by `brmem` for ad-hoc Entries when `--namespace`\n  is omitted. Named Namespaces are workflow-owned buckets such as `notes`.\n- **Entry Locator**: the copy-pastable `git show` locator printed by commands,\n  shaped like `\u003Csnapshot-ref>:\u003Centry-key>`.\n\n`brmem` is durable and inspectable, not secret. Do not store credentials,\nprivate tokens, binary assets, generated build output, or large datasets.\n\n## Install and runtime\n\nIf `brmem` is missing, run `just install-global-brmem` (or `just install-global-tools`) from\nan ns checkout; repair a broken checkout with `just ts-install`.\n\n## Choosing a command\n\n| Goal                                          | Command                                                         | Writes? |\n| --------------------------------------------- | --------------------------------------------------------------- | ------- |\n| Store or update text                          | `brmem put \u003Ckey> --file \u003Cpath>`                                 | Yes     |\n| Print one Entry's content                     | `brmem get \u003Ckey>`                                               | No      |\n| Probe one Entry and get Entry Locator\u002Fsize    | `brmem check \u003Ckey>`                                             | No      |\n| List Entries on one branch or all branches    | `brmem list [--all-branches]`                                   | No      |\n| Export Entries to files                       | `brmem export [--output-dir \u003Cdir>]`                             | Files   |\n| Remove one Entry                              | `brmem delete \u003Ckey>`                                            | Yes     |\n| Preview stale Snapshots for missing branches  | `brmem gc`                                                      | No      |\n| Delete stale Snapshots for missing branches   | `brmem gc --yes`                                                | Yes     |\n| Copy Base Entries between branches            | `brmem copy --base --from-branch \u003Ca> --to-branch \u003Cb>`           | Yes     |\n| Copy named Namespace Entries between branches | `brmem copy --namespace \u003Cns> --from-branch \u003Ca> --to-branch \u003Cb>` | Yes     |\n| Resolve a repo\u002Fglobal prompt plugin           | `brmem exec resolve-prompt \u003Cname>`                              | No      |\n\n## Cross-command rules\n\n- **Branches.** Commands default to the current branch. If the task names a\n  branch, pass `--branch \u003Cbranch>` (or `--from-branch` \u002F `--to-branch` for\n  `copy`) instead of relying on the checkout; if no branch is provided, confirm\n  the current Git branch before mutating memory. For read-only listing across\n  branches, pass `brmem list --all-branches`.\n- **Namespaces.** Add `--namespace \u003Cns>` to `put`, `get`, `check`, `delete`,\n  `list`, or `export` for named Namespace Entries; omit it for Base Namespace\n  Entries. Where `--namespace base` is accepted, it selects Base Namespace\n  Entries. Choose deliberately: the Base Namespace for ad-hoc scratch notes,\n  named Namespaces for workflow-owned state so unrelated workflows do not\n  collide. Namespaces are single path segments: no `\u002F`.\n- **Entry Keys.** Prefer POSIX-like relative paths such as `notes\u002Fadd-cache.md`\n  or `session\u002Fsummary.md`. Avoid spaces and punctuation. Entry Keys cannot be\n  empty, start\u002Fend with `\u002F`, contain `\u002F\u002F`, contain `:`, contain a `..` segment,\n  contain glob\u002Fref metacharacters, or end a segment with `.lock`.\n- **Output.** Add `--format json` when you need stable fields from `put`,\n  `list`, `check`, `export`, `copy`, `delete`, `gc`, or `resolve-prompt`. For\n  `get`, the human output is intentionally just the stored content; use that\n  when feeding the text directly into your workflow.\n\n## put — store an Entry\n\n`put` is an overwrite. If overwriting is not explicitly desired, preflight\nwith `brmem check \u003Ckey> ...` (see `check` below for result interpretation).\n\nAgents should prefer `--file \u003Cpath>` for prepared content; use `--stdin` for\npiped content.\n\n```text\nbrmem put notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --file \u002Ftmp\u002Fnote.md\nbrmem put notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache --file \u002Ftmp\u002Fnote.md\n```\n\n`put` accepts UTF-8 text, rejects likely binary content, and caps Entries at\n1 MiB unless `--force` is supplied. Use `--force` only when the user\nexplicitly accepts the storage cost\u002Frisk.\n\n## list and get — read Branch Memory\n\nList first when you do not already know the Entry Key, then read Entries by\nEntry Key:\n\n```text\nbrmem list --branch feature\u002Fadd-cache --format json\nbrmem list --base --branch feature\u002Fadd-cache\nbrmem list --namespace scratch --branch feature\u002Fadd-cache --format json\nbrmem list --namespace scratch --all-branches --format json\n\nbrmem get notes\u002Fadd-cache.md --branch feature\u002Fadd-cache\nbrmem get notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache\n```\n\n`get` prints only content in human mode. If a task asks you to load all Branch\nMemory for a branch, list with JSON and then `get` every returned Entry,\npreserving content verbatim in your working context before summarizing it for\nthe user.\n\nUse `--at \u003Ctreeish-or-commit>` with `get` or `check` only when you need a\nhistorical Branch Memory version rather than the current Branch Memory.\n\n## check — probe an Entry\n\nUse `check` to test existence or get the Entry Locator without printing the\nfull text:\n\n```text\nbrmem check notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --format json\nbrmem check notes\u002Fadd-cache.md --namespace scratch --branch feature\u002Fadd-cache\nbrmem check notes\u002Fadd-cache.md --branch feature\u002Fadd-cache --require\n```\n\nInterpret results carefully — default `check` remains a presence predicate and\nexits `0` for both present and absent Entries:\n\n- `0` with `Present: yes` or JSON `data.present: true`: Entry exists; metadata\n  is available.\n- `0` with `Present: no` or JSON `data.present: false`: Entry is absent; this\n  is a normal probe result, useful before `put`.\n- With `--require` \u002F `-r`, presence still exits `0`, while absence returns a\n  `negative` envelope with the complete `data.present: false` metadata and\n  exits `1`. Use this mode when later work requires the named Entry.\n- `2`: invalid Namespace\u002FEntry Key\u002FBranch, detached HEAD when branch was\n  omitted, or another command failure.\n\n## export — materialize Entries as files\n\nUse `export` when a workflow needs Branch Memory materialized as ordinary\nUTF-8 files in a chosen directory:\n\n```text\nbrmem export --branch feature\u002Fadd-cache\nbrmem export --branch feature\u002Fadd-cache --output-dir \u002Ftmp\u002Fbrmem-export\nbrmem export --namespace scratch --branch feature\u002Fadd-cache --output-dir \u002Ftmp\u002Fscratch-export\n```\n\n- Omitting `--output-dir` writes to a fresh temp directory whose path has a\n  unique random suffix (e.g. `$TMPDIR\u002Fbrmem-export-\u003Chash>`); the directory\n  outlives the process and the chosen path is printed in the command output.\n- Omitting `--namespace` exports **base Entries only**. It does not mean \"all\n  Namespaces.\"\n- Each key becomes a relative path under `--output-dir`; for example,\n  `notes\u002Fsession.md` writes `\u003Coutput-dir>\u002Fnotes\u002Fsession.md`.\n- Export returns a normal no-match result before writing if no Entries match.\n  It fails for output directories that are not directories, existing targets,\n  or unsafe target paths. Pass `--overwrite` only when replacing existing\n  files is intentional.\n- Use `--dry-run` to see planned writes without creating directories or files.\n  Add `--format json` when another tool needs the planned\u002Fexported paths and\n  sizes.\n\n## copy — move Branch Memory between branches\n\nUse `copy` when Branch Memory should travel from one branch to another. Choose\nexactly one scope: `--base` for the Base Namespace, or `--namespace \u003Cns>` for\na named Namespace (`--namespace base` targets the Base Namespace too). Do not\nomit the scope and do not pass both flags.\n\n```text\nbrmem copy --base --from-branch main --to-branch feature\u002Ftable-filter\nbrmem copy --namespace notes --from-branch main --to-branch feature\u002Ftable-filter\nbrmem copy --namespace notes --from-branch main --to-branch feature\u002Ftable-filter --dry-run --format json\n```\n\n- Preview with `--dry-run` first when replacement risk matters.\n- Without `--key-glob`, the whole chosen Namespace is copied. If `--overwrite`\n  is used, the destination Branch Memory for that Namespace is replaced.\n- With `--key-glob 'slug\u002F*'`, only matching Entry Keys are copied and\n  unrelated destination Entries are preserved. In this CLI, `*` matches `\u002F`,\n  so `slug\u002F*` covers nested Entry Keys too.\n- Existing matching destination Entries make `copy` abort unless `--overwrite`\n  is supplied. An empty destination Snapshot is not a conflict. Do not add\n  `--overwrite` unless replacement is intentional.\n\n## gc — clean up stale Snapshots\n\nUse `gc` only for explicit cleanup of Branch Memory for branches that no\nlonger exist as local `refs\u002Fheads\u002F*` branches; do not run it as part of a\nhigher-level workflow unless the user asked for cleanup. Higher-level\nworkflows should diagnose stale collisions and point here, not auto-run\ncleanup. `gc` scans Snapshots, not individual Entries, and remote branches do\nnot count as live.\n\nThe default is a dry-run; no refs are deleted without `--yes`. Inspect the\ndry-run output before passing `--yes`. `--base` and `--namespace \u003Cns>`\nrestrict the scan and are mutually exclusive. Deleting a Snapshot Ref removes\nall Entries in that Namespace for that branch.\n\n```text\nbrmem gc\nbrmem gc --namespace branch-context --format json\nbrmem gc --base\n\nbrmem gc --yes\nbrmem gc --namespace branch-context --yes\n```\n\n## delete — remove an Entry\n\nOnly delete one explicit Entry the user or workflow has identified:\n\n```text\nbrmem check stale-note.md --branch feature\u002Fadd-cache\nbrmem delete stale-note.md --branch feature\u002Fadd-cache\nbrmem delete stale-note.md --namespace scratch --branch feature\u002Fadd-cache\n```\n\n## exec resolve-prompt — skill-facing prompt plugins\n\nSome skills let a repo customize one narrow prompt file. This is for skills\nand automation, not a normal user-facing Branch Memory operation. Resolve\nprompts with:\n\n```text\nbrmem exec resolve-prompt \u003Cprompt-name> --format json\n```\n\nResolution checks the current repository's `.ns\u002Fprompts\u002F\u003Cprompt-name>.md`\nfirst, then `$XDG_CONFIG_HOME\u002Fns\u002Fbrmem\u002Fprompts\u002F\u003Cprompt-name>.md` (default\n`$HOME\u002F.config\u002Fns\u002Fbrmem\u002Fprompts\u002F\u003Cprompt-name>.md`). The JSON result gives\n`data.path` and `data.tier` (`project` or `global`). Read that file verbatim\nand follow the owning skill's rules for what the plugin is allowed to decide.\nIf resolution exits `2`, surface the CLI message and abort; do not invent an\ninline fallback or create the prompt file unless the user asked you to\nconfigure prompts.\n\n## Report what you did\n\nFor read-only work, summarize what you inspected and which Entries were\nloaded. After a mutation (`put`, `copy`, `delete`, or `gc --yes`), tell the\nuser the branch, Namespace\u002Fbase, Entry Key(s) or Snapshot Ref(s), Entry\nLocator, and commit(s) when the command prints them:\n\n```text\nBranch: \u003Cbranch>\nEntry: \u003Cnamespace-or-base>\u002F\u003Ckey>\nEntry Locator: \u003Clocator printed by brmem>\nCommit: \u003Ccommit printed by brmem>\n```\n\nIf an operation aborted because an Entry already exists, an Entry Key is\ninvalid, the branch is detached, or `copy` found conflicts, say exactly which\nCLI command was run and quote the relevant error message.\n",{"name":5,"description":7,"allowed-tools":43},[44,45,46],"Bash(brmem *)","Bash(git *)","Read","master","44a56f0d543f274b42239091b35fe4d23855f6b3","skills\u002Fincubating\u002Fbrmem",0,"https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns","https:\u002F\u002Fgithub.com\u002Fnseng-ai","Keeping the clankers in check: Nonslop Engineering for AI","2026-10-02 12:48:53",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add nseng-ai\u002Fns --skill brmem",{"tool":61,"command":62},"bunx","bunx skills add nseng-ai\u002Fns --skill brmem",{"tool":64,"command":65},"pnpm","pnpm dlx skills add nseng-ai\u002Fns --skill brmem","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Fincubating\u002Fbrmem\u002FSKILL.md",true,[],[70,93,118,136,159,169],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":38},"01M6KM3VZ7JC4S6R4KATJ368EH","pr-make-accountable","Interview a PR author to establish shared understanding of intent and design decisions, then co-author the What \u002F Why \u002F Changes PR body with opt-in Requested reviewer focus.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Fpublic\u002Fprs\u002Fpr-make-accountable\u002FSKILL.md",[],[77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],"pr","make","pr make accountable","design","why","reviewer","decisions","interview","intent","focus","shared","co","with","true","changes","pr body",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":38},"01M6KM3NZCZ86VJ91RSVTRGTJW","typescript-style","Opinionated style guide for strict, portable TypeScript. Use when writing, designing, or reviewing TypeScript: type design, boundary validation, error handling, module architecture, and review discipline.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Finternal\u002Ftypescript\u002Ftypescript-style\u002FSKILL.md",[],[100,101,102,80,103,104,105,106,107,108,109,110,23,111,112,113,114,115,116,117],"typescript","style","typescript style","writing","review","architecture","core","error handling","system","Rules","README","error-handling","study","module","error","case-study","style guide","for",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":38},"01M6KM3HNY4WY42KMYRPS6KEJZ","typescript-fake-driven-testing","TypeScript fake-driven testing architecture. Use when writing or reviewing TS code with external dependencies, gateway interfaces, real adapters, in-memory fakes, or CLI scenario tests.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Finternal\u002Ftypescript\u002Ftypescript-fake-driven-testing\u002FSKILL.md",[],[125,100,126,127,128,103,28,37,105,129,130,23,131,132,133,134,89,135],"testing","driven","fake driven testing","typescript fake driven testing","code","gateway","dependencies","tests","scenario","Adapters","in-memory",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":38},"01M6KM3AXC2539PENYVZJYKCP9","ns-typescript","TypeScript overlay for ns-style projects. Use when editing or reviewing TS in this repo: tsconfig baseline, pnpm\u002FVitest\u002Foxlint\u002Foxfmt\u002Fnative tsc commands, relative .ts imports, workspace subpath exports, and the exactOptionalPropertyTypes spread idiom. Repo-specific enforcement (test lanes, time seams, style guard) lives in the host repo's AGENTS.md.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Finternal\u002Ftypescript\u002Fns-typescript\u002FSKILL.md",[],[100,143,144,145,146,147,148,149,23,150,151,152,153,101,154,155,156,117,157,158],"ns typescript","test","guard","vitest","projects","editing","repo","enforcement","references","time","host","oxlint","import","native","alternatives","imports",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6KM36Y5KZ5V48M58MT42AHM","ns-typescript-style-tripwire","Invoke the ns TypeScript style Tripwire against a supplied diff or current branch.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Finternal\u002Ftypescript\u002Fns-typescript-style-tripwire\u002FSKILL.md",[],[100,166,101,167,19,168,90],"tripwire","ns typescript style tripwire","diff",{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":38},"01M6KM313HANS0AV181X37ZM45","skill-management","Manage skills with `npx skills`: add, edit, remove, rename, update, or list skills (local or GitHub), and the nested `skills\u002F\u003Cdisposition>\u002F...\u002F\u003Cname>\u002F` \u002F flat `.agents\u002Fskills\u002F` layout conventions.","https:\u002F\u002Fgithub.com\u002Fnseng-ai\u002Fns\u002Fblob\u002Fmaster\u002Fskills\u002Finternal\u002Fskill-system\u002Fskill-management\u002FSKILL.md",[],[176,177,178,30,179,168,180,181,58,182,183,89,184,185,186,187,188,189,90,190],"management","skill management","github","remove","nested","manage","local","cat","ln","ls","mkdir","mv","readlink","rg","lock"]