Token导航 LogoToken导航TokenDH.com
开发权限需确认github未标认证来源可访问许可证需确认审计通过

tcrTCR 命令行

Agent Skill

tcr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

245

周安装

10

GitHub Stars

公开资料未说明

下载量

79
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tcr(TCR 命令行)
来源仓库:https://github.com/andresnator/agents-orchestrator
仓库路径:skills/tcr
安装命令:
npx skills add https://github.com/andresnator/agents-orchestrator --skill tcr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/andresnator/agents-orchestrator --skill tcr

简介

tcr 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在开发环境中进行项目状态跟踪。

  • 适用于围绕仓库状态、代码变更或协作事项进行信息整理。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 安装前建议确认权限范围、维护状态及是否会触发联网或文件读写操作。
  • 可结合来源仓库和原始 README 继续核验具体用法和功能细节。

SKILL.md

TCR Commit Skill

TCR = Test && Commit || Revert

The core loop is simple: run the tests. If they pass, commit immediately. If they fail, revert the change. This forces small, safe steps and makes every commit a known-good state.

The TCR Loop

1. Make a small change (test or production code)
2. Run the relevant tests
3. GREEN? → git add <specific-files> + git commit (Conventional Commit message)
4. RED?   → git checkout -- <changed-files> (revert to last green state)

The discipline is in the size of the step. If reverting feels painful, the step was too big.

Commit Format

Use the git-commit skill conventions for message format: BRANCH-ID <type>: brief description with Co-Authored-By trailer via HEREDOC.

Types by TCR context:

ContextTypeExample
New test (characterization or unit)testCOMPANY-1234 test: add characterization test for calculateTotal
Test passes after refactor steprefactorCOMPANY-1234 refactor: extract calculateDiscount method
Bug fix confirmed by testfixCOMPANY-1234 fix: correct null handling in getItems
New functionality via Sprout/WrapfeatCOMPANY-1234 feat: add loyalty discount calculation

TCR During Refactoring

When refactoring, the commit order matters. Follow this sequence:

Phase 1: Commit the safety net first

Before touching production code, ensure tests exist and are committed:

  1. Write or verify characterization/unit tests for the code you will refactor
  2. Run tests → GREEN
  3. Commit the tests separately: BRANCH-ID test: add tests for <behavior>
  4. This commit is your safety net. If anything goes wrong later, you can always return here.

Phase 2: Refactor in micro-steps

Each refactoring technique becomes one or more TCR cycles:

  1. Apply one small mechanical step (e.g., extract a method, rename a variable, move a field)
  2. Run tests → GREEN → BRANCH-ID refactor: <what you did>
  3. RED → revert immediately, try a smaller step
  4. Repeat until the technique is fully applied

Example — Extract Method in 3 TCR cycles:

COMPANY-1234 refactor: extract calculateSubtotal method signature
COMPANY-1234 refactor: move subtotal logic into calculateSubtotal
COMPANY-1234 refactor: inline temp variable after extraction

Phase 3: Harden

After refactoring is complete:

  1. Add new unit tests for the refactored structure
  2. Run tests → GREEN → BRANCH-ID test: add tests for <new structure>

When to Revert vs. When to Fix

  • Revert when the change was a refactoring step and tests fail — the refactoring introduced a behavioral change, which means it was wrong. Start over with a smaller step.
  • Fix forward only when you are writing a new test and the test itself has a bug (typo in assertion, wrong setup). In this case, fix the test, not the production code.

Integration with Refactoring Agents

When used inside a refactoring workflow (e.g., the java-refactoring-expert agent):

Workflow StepTCR Behavior
Cover (Step 3)Write tests → run → GREEN → commit with BRANCH-ID test:...
Refactor (Step 4)Each micro-step → run → GREEN → commit with BRANCH-ID refactor:...
Harden (Step 5)New tests → run → GREEN → commit with BRANCH-ID test:...
Any REDRevert the last uncommitted change immediately

The agent should announce each commit to the user so they can see the trail of safe steps.

Key Principles

  1. Every commit is green — no broken commits, ever
  2. Tests before production code — always commit the safety net first
  3. Revert is not failure — it means you tried a step that was too big, try smaller
  4. One concern per commit — a test commit and a refactor commit are separate
  5. Specific file staging — never use git add., always name the files
  6. Never skip hooks — no --no-verify, no amending published commits unless explicitly asked

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.56%
按下载量换算29

Claude

25.69%
按下载量换算20

Cursor

18.73%
按下载量换算15

Gemini CLI

9.22%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills