knowledge--resolve-test-conflicts

Resolve merge conflicts in RSpec-like test files while preserving hierarchical structure.

Updated Sep 27, 2020
One-click install
npx skills add https://github.com/tetetratra/dotfiles --skill knowledge-resolve-test-conflicts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: knowledge--resolve-test-conflicts
Source: https://github.com/tetetratra/dotfiles/tree/main/claude/skills/knowledge--resolve-test-conflicts
Command: npx skills add https://github.com/tetetratra/dotfiles --skill knowledge-resolve-test-conflicts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

テストファイル(特にRSpecのような階層構造を持つテストファイル)のマージコンフリクトを解消する手順です。既存のテスト構造を保ちながら、ブランチ固有の変更のみを安全に統合します。

Core Features & Use Cases

  • 既存テスト構造の保持
  • ブランチ固有の変更のみを統合
  • 解決前に構造を可視化して承認を得る
  • 安全な段階的マージ手順

Quick Start

実際のマージコンフリクトを持つテストファイルにこの手順を適用して、構造を崩さずに衝突を解消してください。

Frequently Asked Questions about knowledge--resolve-test-conflicts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve git merge conflicts in RSpec test files without breaking the nested structure?

Resolving merge conflicts in test files while preserving structure requires a stepwise approach that detects conflicts within nested RSpec describe or context blocks. This method integrates branch-specific changes safely and minimizes structural churn during the merge.

What is the best way to minimize structural churn when merging test suites?

Minimizing structural churn when merging test suites involves applying non-destructive edits and visualizing the test hierarchy before making changes. This approach explicitly requires user confirmation before applying branch-specific structural modifications.

Can I use this conflict resolution method for test frameworks other than RSpec?

Yes, this conflict resolution method works for any test suite using nested hierarchical structures similar to RSpec describes and contexts. As long as the test framework organizes tests in nested blocks, the stepwise merge approach preserves its directory layout.

Does resolving test file merge conflicts require manual confirmation before applying changes?

Yes, resolving test file merge conflicts requires explicit user confirmation before applying any changes. The process first visualizes the preserved test structure and uses non-destructive edits to ensure you review branch-specific integrations safely.

Why does my git merge conflict resolution破坏 the test file directory layout?

Standard git merge conflict resolution can disrupt the directory layout because it lacks structure-preserving logic. A stepwise approach that detects conflicts within nested test blocks and applies non-destructive edits is needed to preserve the original test structure safely.