w-git-repair
Repair Git Problems With Safe Commands
Git conflicts, detached HEAD states, and upstream divergence can cause accidental data loss. This skill inspects repository state and proposes the smallest repair commands with confirmation for destructive actions.
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "w-git-repair" from https://skillstore.io/skills/blockmatic-w-git-repair.md and its manifest at https://skillstore.io/api/skills/blockmatic-w-git-repair/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「w-git-repair」。 My branch is behind the remote and Git reports conflicts. What should I do?
預期結果:
The branch has diverged. I will first inspect status, tracking information, and recent history, then propose the smallest integration steps. I will wait for confirmation before changing files.
正在使用「w-git-repair」。 I checked out a commit and now I am in detached HEAD. Help me recover.
預期結果:
- Confirm whether the detached commit contains work that must be preserved.
- Identify an existing branch or create a new branch only after reviewing the current state.
- Recheck status after the authorized action and verify that the work is reachable.
安全審計
安全All three static signals are false positives. The environment-file signal describes rules that prevent committing secrets, while the two command signals identify inline Git examples in Markdown rather than executable shell code. No additional semantic security findings were identified.
風險因素
⚙️ 外部命令 (2)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/blockmatic-w-git-repair/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/blockmatic-w-git-repair?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/blockmatic-w-git-repair?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/blockmatic-w-git-repair/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/blockmatic-w-git-repair.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
blockmatic. (2026). w-git-repair security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/blockmatic-w-git-repair/audits/1BibTeX 引用
@techreport{blockmatic-blockmatic-w-git-repair-2026,
author = {blockmatic},
title = {w-git-repair security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/blockmatic-w-git-repair/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "w-git-repair security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "blockmatic"
date-released: "2026-09-20"
url: "https://skillstore.io/skills/blockmatic-w-git-repair/audits/1"
identifiers:
- type: other
value: "skillstore:blockmatic-w-git-repair:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
Recover a Detached HEAD
Inspect the current commit and branches, then receive a cautious path back to a working branch.
Resolve Upstream Divergence
Compare local and remote tracking information and choose a minimal integration approach.
Handle Local Conflicts
Review conflict status and receive explained next steps that preserve unrelated work.
試試這些提示
Inspect my current Git status, branch tracking, and recent relevant history. Summarize the problem and do not change files.
Review the repository state and propose the smallest safe steps to resolve the current conflict. Explain what each step changes.
Determine whether an interrupted merge or rebase is in progress. List the safe recovery choices, and ask for confirmation before any destructive command.
Analyze local and upstream divergence, preserve unrelated work, and recommend an integration strategy. Treat history rewriting as unavailable unless I explicitly request it.
最佳實務
- Provide the exact repository state and the goal before requesting a repair.
- Review each proposed command and confirm actions that can discard work.
- Preserve unrelated staged, unstaged, and untracked changes.
避免
- Do not approve destructive commands without reviewing their effect.
- Do not rewrite published history to solve an unexamined conflict.
- Do not force-push or bypass hooks as a shortcut.
常見問題
Does this skill run Git commands automatically?
Can it repair merge conflicts?
Can it recover a detached HEAD?
Does it support upstream divergence?
Will it use hard reset or clean automatically?
Can it rewrite published history?
開發者詳細資訊
作者
blockmatic授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
71c22685fcd4644d03ae28812e97ea1562ebe3fe
維護新鮮度
2026/9/20
使用量
0 次下載 · 0 次瀏覽
檔案結構