360 Secure SkillHub
360 安全技能中心

Conflict Manager

该 Skill 为仪表盘提供两个 HTTP 端点:POST /conflict-scan 接收 requirementId 等载荷,返回按仓库与分支对划分的冲突文件列表;POST /conflict-resolve 接收解决方案载荷,在 dryRun 为 false 时先试运行再执行合并。两个端点都会通过 WebSocket 发布事件供前端实时响应,并声明 repo:read 与 repo:wr…

分类:开发
brajesh9373
brajesh9373
热度 18.19
最近更新 2026-05-20 03:37:05

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add brajesh9373/conflict-manager
兼容性
OpenClaw 专属
联网要求
需要联网
数据出网
数据出网未确认
Metadata
name
conflict-manager
description
Provides HTTP endpoints for scanning Git repository conflicts across multiple branches and applying AI‑suggested resolutions. Use when the dashboard needs to request a conflict scan (`/conflict-scan`) or apply a resolution (`/conflict-resolve`). This skill talks to the OpenClaw Gateway and publishes WebSocket events (`conflictScanResult`, `resolutionSuggestion`, `resolutionApplied`).

Conflict Manager Skill

Overview

This skill implements two public HTTP APIs that the Integration‑Hell‑Dashboard can call:

  1. POST /conflict-scan – Accepts a requirementId (or any custom payload) and returns a list of conflicted files per repository/branch pair.
  2. POST /conflict-resolve – Accepts a resolution payload (repo, source/target branches, optional patch or command list) and attempts a dry‑run merge followed by the actual merge if dryRun is false.

Both endpoints publish WebSocket events so the UI can react in real‑time.

Permissions

  • repo:read – required to list branches and fetch commits.
  • repo:write – required to perform merges and push changes.

Resources

  • scripts/index.js – Core implementation of the two endpoints.

The skill is intentionally minimal; you can extend it with proper Git operations, authentication handling, and smarter AI integration later.