.agents/skills/speckit-sync-conflicts/SKILL.md
Detect and surface conflicts between specs or between specs and design docs
npx skillsauth add pradeepmouli/zod-to-form speckit-sync-conflictsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Find contradictions between specs, or between specs and design documents. Surface them for human resolution.
$ARGUMENTS
Read all spec files and design documents:
specs/*/spec.mddocs/plans/*.md or docs/design/*.mdFor each spec, extract:
For design docs, extract:
Create a semantic index of all requirements, keyed by:
Look for contradictions:
Type 1: Same Feature, Different Behavior
Type 2: Obsolete Constraints
Type 3: Scope Overlap
Type 4: Implicit Conflicts
For each conflict:
SUPERSEDE: Newer document replaces older
MERGE: Combine into single authoritative source
DEPRECATE: Mark older as obsolete
HUMAN_REQUIRED: Can't determine automatically
# Spec Conflict Report
Generated: [timestamp]
## Summary
| Conflict Type | Count |
|---------------|-------|
| Same Feature, Different Behavior | X |
| Obsolete Constraints | X |
| Scope Overlap | X |
| Implicit Conflicts | X |
## Conflicts
### Conflict 1: Extraction Field Count
**Sources**:
- `specs/008-field-extraction/spec.md` (FR-003)
- `docs/plans/2026-02-19-type-aware-extraction-design.md`
**Description**:
Spec 008 defines 5 fixed extraction fields for all document types.
Design doc introduces type-aware extraction with 4-8 fields per type.
**Evidence**:
From spec-008:
> FR-003: System MUST extract the following fields: Date, Vendor, Total, Tax, Currency
From design doc:
> Document Types & Extraction Fields
> ### Receipt
> Fields: Date, Vendor, Total, Tax, Currency, Category
> ### Bill
> Fields: Date, Vendor, Description, Total, Due Date, Currency, Category
**Suggested Resolution**: SUPERSEDE
The design doc (dated 2026-02-19) supersedes spec-008 for extraction fields.
Recommend updating spec-008 to reference the design doc or incorporating
the type-aware fields directly.
**Action Required**:
- [ ] Mark spec-008/FR-003 as superseded by design doc
- [ ] Update spec-008 with type-aware field definitions
- [ ] Or create new spec-013 for type-aware extraction
---
### Conflict 2: Register Row Cardinality
[... additional conflicts ...]
## Resolution Tracking
Track resolution decisions:
| Conflict | Resolution | Decided By | Date |
|----------|------------|------------|------|
| Conflict 1 | SUPERSEDE | pending | - |
## Recommendations
1. Schedule a 30-min review session to resolve conflicts
2. Consider consolidating specs 008 and design doc
3. Add explicit "supersedes" metadata to specs
Write to:
.specify/sync/conflicts.md.specify/sync/conflicts.jsonAfter reviewing conflicts, mark resolutions:
/speckit.sync.conflicts resolve 1 --supersede docs/plans/2026-02-19-type-aware-extraction-design.md
/speckit.sync.conflicts resolve 2 --merge spec-011
/speckit.sync.conflicts
/speckit.sync.conflicts --include-design-docs
/speckit.sync.conflicts --spec 008
tools
Use when working with zod-to-form (core, react, cli, codegen, vite).
tools
Vite plugin for zod-to-form — transforms ?z2f imports into generated form components and optionally replaces <ZodForm> JSX call sites with generated components at build time Use when: You want `import SignupForm from './signup.schema?z2f'` to Just Work in a.... Also: vite, vite-plugin, zod, zod-v4, codegen, forms, form-generation, schema-driven, react-hook-form, build-plugin, jsx-transform.
development
Runtime <ZodForm> renderer for Zod v4 schemas Use when: You need form rendering in storybook, playgrounds, or low-traffic admin UIs —.... Also: zod, zod-v4, react, forms, form-generation, react-hook-form, schema-driven, dynamic-forms, form-renderer, hookform-resolver, zod-form-renderer.
development
Schema walker and processor registry for Zod v4 form generation Use when: You want per-field validation instead of whole-form validation. Also: zod, zod-v4, forms, form-generation, schema, schema-walker, processor-registry, react-hook-form, schema-driven, form-schema, zod-registry.