Bd To Br Migration
Dicklesworthstone/beads_rust
Migrate docs from bd (beads) to br (beadsrust). An agent skill from Dicklesworthstone/beads_rust.
Manage Codex's native global memory (~/.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global…
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trim --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill .claude/skills/codex-memory-trim && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .claude/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trim --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skill .agents/skills/codex-memory-trim && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .agents/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trim --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skill .cursor/skills/codex-memory-trim && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .cursor/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git --path skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trim --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skill .gemini/skills/codex-memory-trim && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .gemini/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trimInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .github/skills && cp -r skills-src/skill .github/skills/codex-memory-trim && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .github/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Yu-Xiao-Sheng/codex-memory-trim codex-memory-trim --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Yu-Xiao-Sheng/codex-memory-trim.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skill .opencode/skills/codex-memory-trim && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "codex-memory-trim" agent skill from https://github.com/Yu-Xiao-Sheng/codex-memory-trim/tree/main/skill into .opencode/skills/codex-memory-trim/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "codex-memory-trim", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
codex-memory-trimManage Codex's native global memory (~/.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global…
Codex Memory Trim is an agent skill from Yu-Xiao-Sheng/codex-memory-trim. Manage Codex's native global memory (~/.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global (add a custom global rule/preference). Use when the user asks to 精简/清理/整理/压缩 Codex 记忆, 去重, 简化冗长记忆, 添加/写入/修改全局记忆 or a global rule.
Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `scripts/auto-trim.sh`, `scripts/collect.py` and `subskills/add-global.md`).
It sits in Agent Workflows. It works with Git and SQLite. The repository describes itself as: 给 Codex 全局记忆定期减负的 skill:检测重复、清理过期线程、压缩冗长表达、添加自定义全局规则 / A skill that puts Codex global memory on a periodic diet: dedupe, prune, compress, add global rules. The licence is MIT.
Read from SKILL.md and the folder at commit 3a5742a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Shell and Python), which the agent can run.
Shell commands in SKILL.md call:
gitcodexpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Codex Memory Trim loads about 453 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 98 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from Yu-Xiao-Sheng/codex-memory-trim at commit 3a5742a, republished under its MIT licence (© Yu-Xiao-Sheng). 98 words, ~453 tokens.
.claude/skills/codex-memory-trim/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.按用户需求只读取对应子技能文件执行,不要全量加载:
| 用户意图 | 读取 |
|---|---|
| 清理/去重/删除过期记忆 | subskills/trim.md |
| 压缩冗长表达、简化措辞 | subskills/compress.md |
| 添加自定义全局记忆/规则 | subskills/add-global.md |
sessions/*.jsonl(不可变原始证据)→ raw_memories.md / rollout_summaries/(整理输入,由 ~/.codex/memories_1.sqlite 表 stage1_outputs 重新渲染,手改会被还原)→ MEMORY.md(检索层)/ memory_summary.md(会话启动时注入的快照,文件头 v1)。usage_count(stage1_outputs 列)= 检索命中次数,是保留/删除的核心依据。~/.codex/memories/.git 是整理基线:Phase 2 以 HEAD→工作区 diff 决定巩固内容。任何手工修改必须以 git 提交收尾,且提交前工作区若不干净、或 git log 顶部是新的 "Initialize Codex git baseline"(刚跑过自动整理),必须先读 diff 合并新内容,禁止覆盖。python3 ~/.codex/skills/codex-memory-trim/scripts/collect.py。codex fork)生效。mkdir -p ~/.codex/backups && TS=$(date +%Y%m%d-%H%M%S) && tar czf ~/.codex/backups/memories-before-trim-$TS.tar.gz -C ~/.codex memories && cp ~/.codex/memories_1.sqlite ~/.codex/backups/memories_1-before-trim-$TS.sqlitesessions/*.jsonl、extensions/ad_hoc/notes/ 既有文件内容(note 只能新增或按用户原话修订)、.git 内部对象(正常 commit 除外)。codex debug clear-memories(全量重置)。整理任务(collect.py 中 consolidate_global)运行中不写文件。cd ~/.codex/memories && git add -A && git -c user.name="Codex" -c user.email="noreply@openai.com" commit -m "<一句话>",收尾 git status --short 必须为空。© Yu-Xiao-Sheng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 5 other files (scripts) in skill of Yu-Xiao-Sheng/codex-memory-trim.
Open the folder on GitHubat commit 3a5742a
Codex Memory Trim next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Codex Memory Trim this skillYu-Xiao-Sheng/codex-memory-trim | 100 | — | ~453 | Automated safety check: Pass | MIT | |
| Bd To Br MigrationDicklesworthstone/beads_rust | 1.1k | — | ~2.2k | Automated safety check: Pass | Custom licence | |
| Foremergenaw103/foremerge | 538 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Puppetmaster Agent Orchestrationprofessorpalmer/Puppetmaster | 467 | — | ~3.2k | Automated safety check: Pass | MIT | |
| BrDicklesworthstone/beads_rust | 1.1k | — | ~2.7k | Automated safety check: Pass | MIT | |
| SkillhoneTencent/SkillHone | 168 | — | ~3.4k | Automated safety check: Pass | Custom licence |
Dicklesworthstone/beads_rust
Migrate docs from bd (beads) to br (beadsrust). An agent skill from Dicklesworthstone/beads_rust.
naw103/foremerge
Coordinate parallel coding agents with Foremerge's local Git-compatible CLI and MCP server.
professorpalmer/Puppetmaster
Operates and supervises Puppetmaster, a multi-agent orchestrator, through its MCP tools or CLI, picking the right verb for edits, reviews, audits and long-running jobs.
Dicklesworthstone/beads_rust
Official skill for beadsrust (br), a local-first, dependency-aware issue tracker for AI agents.
Tencent/SkillHone
Local Issue, pull-request, and Wiki workbench for agent skills.
ar-io/ar-io-node
Drive the AR.IO Node release process end-to-end — preflight checks, prepare commit, finalize with image SHAs, test docker compose profiles, tag & publish, and post-release cleanup.
Categories
Manage Codex's native global memory (~/.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global…. Codex Memory Trim is an agent skill from Yu-Xiao-Sheng/codex-memory-trim.codex/memories) with three sub-procedures - trim (audit + dedupe + three-layer cleanup), compress (rewrite verbose memories into concise form), and add-global (add a custom global rule/preference).
Codex Memory Trim fits situations like: the user asks to 精简/清理/整理/压缩 Codex 记忆.
Run `npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a claude-code`. Or copy the skill folder (skill in Yu-Xiao-Sheng/codex-memory-trim) into .claude/skills/codex-memory-trim in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a codex`. Or copy the skill folder (skill in Yu-Xiao-Sheng/codex-memory-trim) into .agents/skills/codex-memory-trim in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Yu-Xiao-Sheng/codex-memory-trim --skill codex-memory-trim -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-memory-trim, .gemini/skills/codex-memory-trim, .github/skills/codex-memory-trim and .opencode/skills/codex-memory-trim in your project.
Going by SKILL.md and its folder, Codex Memory Trim needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (git, codex and python3). Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Codex Memory Trim is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 453 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Codex Memory Trim: Bd To Br Migration (Dicklesworthstone/beads_rust, 1.1k stars), Foremerge (naw103/foremerge, 538 stars), Puppetmaster Agent Orchestration (professorpalmer/Puppetmaster, 467 stars) and Br (Dicklesworthstone/beads_rust, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Yu-Xiao-Sheng (a GitHub user) maintains it in Yu-Xiao-Sheng/codex-memory-trim, which has 100 GitHub stars. The repository was last updated on August 25, 2026.
Source: Yu-Xiao-Sheng/codex-memory-trim on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.