xiaohongshu
xiaohongshu
conflict-detection
Use before creating new stories or when user asks "check for conflicts", "find duplicates", "review story overlaps", or "detect story conflicts" - scans story-tree database to identify duplicate stories, scope overlaps, and competing approaches using lightweight text similarity (no external depen...
Full skill instructions
Detect duplicate and overlapping stories in the story-tree database.
Database: .claude/data/story-tree.db
Critical: Use Python sqlite3 module, NOT sqlite3 CLI.
| Type | Description | Confidence |
|---|---|---|
duplicate | Same story, different words | High (65%+ title sim) |
scope_overlap | One subsumes or partially covers another | Medium (60%+ keyword containment) |
competing | Same problem, incompatible approaches | Medium (40%+ want sim, low benefit) |
Run the detection script:
python -c "
import subprocess, sys
result = subprocess.run([sys.executable, '.claude/skills/conflict-detection/scripts/detect_conflicts.py'],
capture_output=True, text=True)
print(result.stdout)
if result.returncode > 0:
print(f'Exit code {result.returncode} = {result.returncode} conflicts found')
"
# Default scan (50% confidence threshold)
python .claude/skills/conflict-detection/scripts/detect_conflicts.py
# JSON output for programmatic use
python .claude/skills/conflict-detection/scripts/detect_conflicts.py --format json
# Lower threshold for more matches
python .claude/skills/conflict-detection/scripts/detect_conflicts.py --min-confidence 0.4
# Custom database path
python .claude/skills/conflict-detection/scripts/detect_conflicts.py --db path/to/story-tree.db
Text (default):
Found N potential conflict(s):
## Conflict 1: DUPLICATE (confidence: 94%)
**Story A**: `1.3.5` - Matter/Client Database Management
**Story B**: `1.8.1` - Matter/Client Database
**Reason**: Near-identical titles: title=85%
JSON:
[{
"story_a_id": "1.3.5",
"story_b_id": "1.8.1",
"conflict_type": "duplicate",
"confidence": 0.94,
"reason": "Near-identical titles: title=85%",
"want_similarity": 0.45,
"benefit_similarity": 0.32,
"title_similarity": 0.85
}]
After detection, resolve conflicts by:
Update story status to rejected for discarded stories with a note explaining the decision.
Before generating stories for a node, check for conflicts:
python -c "
import subprocess, sys, json
result = subprocess.run([sys.executable, '.claude/skills/conflict-detection/scripts/detect_conflicts.py',
'--format', 'json'], capture_output=True, text=True)
conflicts = json.loads(result.stdout) if result.stdout.strip().startswith('[') else []
if conflicts:
print(f'WARNING: {len(conflicts)} existing conflicts - resolve before adding stories')
for c in conflicts[:3]:
print(f' - {c[\"conflict_type\"]}: {c[\"story_a_id\"]} vs {c[\"story_b_id\"]}')
else:
print('No conflicts detected - safe to proceed')
"
Constraints:
Tested against ground truth test cases:
| Category | Detection Rate | Notes |
|---|---|---|
| Duplicates | 100% (3/3) | High accuracy on title/criteria overlap |
| Scope Overlaps | 40% (2/5) | Limited by lexical similarity |
| False Positives | 0% | No false positives on negative cases |
Known Limitation: Stories using very different vocabulary to describe the same functionality may not be detected. This is inherent to lexical similarity without semantic embeddings.
Tuning: Lower --min-confidence to 0.40 for higher recall (more false positives).
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience