Terminal Ops

affaan-m/ECC/skills/terminal-ops

作者 affaan-mef648e01899ba3e8dc6371642deaaf64b4477775无许可证275K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库4天前更新

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.

AI 生成的概览

以证据为先的终端工作流:执行命令、检查仓库、调试 CI 失败并做小范围且经验证的修复。

功能
定义了一套面向真实仓库操作的执行流程:先确定仓库路径、分支、本地差异状态和请求模式,再检查错误、文件、测试与 git 状态,之后才进行修改。它要求修复保持窄范围,在声称成功前重新运行验证命令,并按固定格式报告执行面、证据、操作和精确状态词,如已检查、本地已修改、本地已验证、已提交、已推送或受阻。它还列出可配合使用的 ECC 相关技能,用于验证、TDD、安全审查、GitHub 操作或知识沉淀。
适用场景
适用于用户要求运行命令、检查仓库、调试 CI 或构建失败,或推送小范围修复的场景。也适合答案依赖命令输出、git 状态或测试结果,并且需要区分本地修改、已验证、已提交和已推送状态的任务。
运行要求
不附带脚本,仅为指令。需要可访问的仓库与终端、git,以及运行构建或测试命令的能力,另可选配合相关 ECC 技能。

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

text
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

来源与署名

来源:affaan-m/ECC位于skills/terminal-ops提交ef648e0

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架