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 從公開儲存庫中收錄這些內容。

檢舉或申請下架