跳到正文
Skillpedia
通用编程280k · #423

terminal-ops

它能做什么

这个工具可以帮你在代码仓库中运行命令、检查其状态并修复问题。它会确保修改精确,并在提交前经过验证。

适用场景

  • ✓当你需要在代码中运行某个特定命令时。
  • ✓当你想查看代码项目的当前状态时。
  • ✓当修复测试或构建过程中的错误时。

技能链接

https://github.com/affaan-m/ECC/blob/main/skills/terminal-ops/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/terminal-ops/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-loop for exact proving steps after changes
  • tdd-workflow when the right fix needs regression coverage
  • security-review when secrets, auth, or external inputs are involved
  • github-ops when the task depends on CI runs, PR state, or release status
  • knowledge-ops when 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能