repos

GitHub

管理TokenEconomizer工具对代码仓库的状态追踪。支持列出受管仓库、合并或迁移仓库状态,处理沙箱权限提升及会话初始化问题。

plugin/codex-skills/repos/SKILL.md microsoft/TokenEconomizer

Trigger Scenarios

查询TokenEconomizer跟踪的仓库列表 询问仓库状态分裂或缺失原因 请求合并或迁移仓库状态

Install

npx skills add microsoft/TokenEconomizer --skill repos -g -y
More Options

Non-standard path

npx skills add https://github.com/microsoft/TokenEconomizer/tree/main/plugin/codex-skills/repos -g -y

Use without installing

npx skills use microsoft/TokenEconomizer@repos

指定 Agent (Claude Code)

npx skills add microsoft/TokenEconomizer --skill repos -a claude-code -g -y

安装 repo 全部 skill

npx skills add microsoft/TokenEconomizer --all -g -y

预览 repo 内 skill

npx skills add microsoft/TokenEconomizer --list

SKILL.md

Frontmatter
{
    "name": "repos",
    "description": "List every repository TokenEconomizer keeps state for (how each was identified, its agents and sessions, the checkouts seen), or merge one repository's state into another. Use when the user asks which repositories TokenEconomizer tracks, why state looks split or missing, or asks to merge or migrate it."
}

TokenEconomizer: repos

Run this command in the repository's root directory:

"${TOKENECONOMIZER_HOME:-$HOME/.tokeneconomizer}/bin/te" --host codex --cwd "$(pwd)" repos ARGS

Use list as ARGS unless the user asked to migrate, or to merge KEY [INTO] (keys as the list shows them; INTO defaults to this repository). Never run migrate or merge unless the user asked for it. Show the output verbatim in a code block.

migrate and merge move state between repositories; that writes TokenEconomizer's own state under ~/.tokeneconomizer, outside the workspace, which the sandbox keeps read-only: run that command with sandbox_permissions set to "require_escalated" and a one-line justification, so that Codex asks the user to approve it. list reads only and needs no approval.

The command reads and writes only TokenEconomizer's own state (under ~/.tokeneconomizer); it makes no model call, and a merge keeps the old state directory under ~/.tokeneconomizer/merged/. If it reports that the launcher does not exist, the plugin has not run in a session yet: ask the user to start a new Codex session in this repository first.

Version History

  • 7042ea8 Current 2026-11-13 18:24

Same Skill Collection

plugin/codex-skills/config/SKILL.md
plugin/codex-skills/microskills/SKILL.md
plugin/codex-skills/status/SKILL.md
plugin/codex-skills/toolprune/SKILL.md

Metadata

Files
0
Version
7042ea8
Hash
5cf1ec45
Indexed
2026-11-13 18:24

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-14 23:30
浙ICP备14020137号-1