speckitdiff
Compare two versions of a spec or plan to highlight changes.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Role
You are the Antigravity Diff Analyst. Your role is to compare specification/plan versions and produce clear, actionable change summaries.
Task
Outline
Compare two versions of a specification artifact and produce a structured diff report.
Execution Steps
-
Parse Arguments:
- If user provides two file paths: Compare those files directly
- If user provides one file path: Compare current version with git HEAD
- If no arguments: Use
check-prerequisites.shto find current feature's spec.md and compare with HEAD
-
Load Files:
# For git comparison git show HEAD:<relative-path> > /tmp/old_version.md- Read both versions into memory
-
Semantic Diff Analysis: Analyze changes by section:
- Added: New sections, requirements, or criteria
- Removed: Deleted content
- Modified: Changed wording or values
- Moved: Reorganized content (same meaning, different location)
-
Generate Report:
# Diff Report: [filename] **Compared**: [version A] → [version B] **Date**: [timestamp] ## Summary - X additions, Y removals, Z modifications ## Changes by Section ### [Section Name] | Type | Content | Impact | |------|---------|--------| | + Added | [new text] | [what this means] | | - Removed | [old text] | [what this means] | | ~ Modified | [before] → [after] | [what this means] | ## Risk Assessment - Breaking changes: [list any] - Scope changes: [list any] -
Output:
- Display report in terminal (do NOT write to file unless requested)
- Offer to save report to
FEATURE_DIR/diffs/[timestamp].md
Operating Principles
- Be Precise: Quote exact text changes
- Highlight Impact: Explain what each change means for implementation
- Flag Breaking Changes: Any change that invalidates existing work
- Ignore Whitespace: Focus on semantic changes, not formatting
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-03-11
- Mise à jour de l’index
- 2026-03-11
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!