terminal-ops
它能做什么
这个工具可以帮你在代码仓库中运行命令、检查其状态并修复问题。它会确保修改精确,并在提交前经过验证。
适用场景
- ✓当你需要在代码中运行某个特定命令时。
- ✓当你想查看代码项目的当前状态时。
- ✓当修复测试或构建过程中的错误时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/terminal-ops/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我的项目中运行 'npm install' 命令,并确认它是否正确安装了所有依赖。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先弄清代码在哪里,以及你想要执行什么操作(检查、修复等)。然后,它会分析问题,做出尽可能小的改动,并在报告结果之前确认修复是否有效。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Terminal Ops
Use this when the user wants real repo execution: run commands, inspect git state, debug CI or builds, make a narrow fix, and report exactly what changed and what was verified.
This skill is intentionally narrower than general coding guidance. It is an operator workflow for evidence-first terminal execution.
Skill Stack
Pull these ECC-native skills into the workflow when relevant:
verification-loopfor exact proving steps after changestdd-workflowwhen the right fix needs regression coveragesecurity-reviewwhen secrets, auth, or external inputs are involvedgithub-opswhen the task depends on CI runs, PR state, or release statusknowledge-opswhen the verified outcome needs to be captured into durable project context
When to Use
- user says "fix", "debug", "run this", "check the repo", or "push it"
- the task depends on command output, git state, test results, or a verified local fix
- the answer must distinguish changed locally, verified locally, committed, and pushed
Guardrails
- inspect before editing
- stay read-only if the user asked for audit/review only
- prefer repo-local scripts and helpers over improvised ad hoc wrappers
- do not claim fixed until the proving command was rerun
- do not claim pushed unless the branch actually moved upstream
Workflow
1. Resolve the working surface
Settle:
- exact repo path
- branch
- local diff state
- requested mode:
- inspect
- fix
- verify
- push
2. Read the failing surface first
Before changing anything:
- inspect the error
- inspect the file or test
- inspect git state
- use any already-supplied logs or context before re-reading blindly
3. Keep the fix narrow
Solve one dominant failure at a time:
- use the smallest useful proving command first
- only escalate to a bigger build/test pass after the local failure is addressed
- if a command keeps failing with the same signature, stop broad retries and narrow scope
4. Report exact execution state
Use exact status words:
- inspected
- changed locally
- verified locally
- committed
- pushed
- blocked
Output Format
SURFACE
- repo
- branch
- requested mode
EVIDENCE
- failing command / diff / test
ACTION
- what changed
STATUS
- inspected / changed locally / verified locally / committed / pushed / blocked
Pitfalls
- do not work from stale memory when the live repo state can be read
- do not widen a narrow fix into repo-wide churn
- do not use destructive git commands
- do not ignore unrelated local work
Verification
- the response names the proving command or test
- git-related work names the repo path and branch
- any push claim includes the target branch and exact result
常见问题
“evidence-first”是什么意思?
意思是这个工具在认为任务完成之前,总会先展示做过什么、验证过什么的证明,比如命令输出或测试结果。
我能把它用于大规模的代码修改吗?
不能,这个工具适合小而具体的修复。它专注于精准地一次解决一个问题。
如果修复没有效果怎么办?
工具会把该操作标记为“blocked”(受阻),并且在修复被证明有效之前,不会假装问题已经解决或已经推送。
详情
作者的原始描述
Evidence-first repo execution workflow for ECC. Use when the user wants a command run, a repo checked, a CI failure debugged, or a narrow fix pushed with exact proof of what was executed and verified.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #423
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。