speckit-sync-apply
Apply approved drift resolutions to specs and/or code
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Apply approved drift resolutions to specs and/or code
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Push the LLM to reconsider, refine, and improve its recent output. Use when user asks for deeper critique or mentions a known deeper critique method, e.g. socratic, first principles, pre-mortem, red team.
System architect and technical design leader. Use when the user asks to talk to Winston or requests the architect.
Senior software engineer for story execution and code implementation. Use when the user asks to talk to Amelia or requests the developer agent.
Facilitate interactive brainstorming sessions using diverse creative techniques and ideation methods. Use when the user says help me brainstorm or help me ideate.
Review code changes adversarially using parallel review layers (Blind Hunter, Edge Case Hunter, Acceptance Auditor) with structured triage into actionable categories. Use when the user says "run code review" or "review this code"
Break requirements into epics and user stories. Use when the user says "create the epics and stories list"
| name | speckit-sync-apply |
| description | Apply approved drift resolutions to specs and/or code |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"sync:commands/apply.md"} |
Apply approved resolutions from the proposals file. Updates specs or generates implementation tasks.
$ARGUMENTS
speckit.sync.analyze to generate drift reportspeckit.sync.propose to generate proposals.specify/sync/proposals.jsonRead:
.specify/sync/proposals.json - proposals with approval statusRead proposals and filter to those marked approved: true.
If no proposals are approved:
For each approved BACKFILL proposal:
Track changes:
{
"spec": "spec-011",
"requirement": "FR-001",
"before": "original text",
"after": "updated text",
"applied_at": "timestamp"
}
For each approved NEW_SPEC proposal:
specs/{spec-id}/spec.md with generated contenttasks.md placeholderFor ALIGN proposals (spec → code), don't modify code directly. Instead:
.specify/sync/align-tasks.md--create-issues is passedTask format:
## Task: Align [spec-id]/[requirement]
**Spec Requirement**: [FR-XXX]
**Current Code**: [description of current behavior]
**Required Change**: [description of needed change]
**Files to Modify**: [list of files]
**Estimated Effort**: [small/medium/large]
### Acceptance Criteria
- [ ] [criterion 1]
- [ ] [criterion 2]
For SUPERSEDE proposals:
superseded_by field to old spec metadata# Sync Apply Report
Applied: [timestamp]
## Changes Made
### Specs Updated
| Spec | Requirement | Change Type |
|------|-------------|-------------|
| spec-011 | FR-001 | Modified |
| spec-011 | FR-015 | Added |
### New Specs Created
- spec-013-reconciliation
### Implementation Tasks Generated
- 3 tasks in `.specify/sync/align-tasks.md`
### Not Applied
| Proposal | Reason |
|----------|--------|
| spec-008/FR-003 | Not approved |
## Next Steps
1. Review updated specs
2. Commit changes: `git add specs/ && git commit -m "sync: apply drift resolutions"`
3. Implement tasks in align-tasks.md
Write to:
.specify/sync/apply-report.md.specify/sync/apply-report.json--dry-run: Show what would be applied without making changes--create-issues: Create GitHub issues for ALIGN tasks--auto-commit: Commit spec changes automatically--spec <id>: Apply only proposals for a specific spec/speckit.sync.apply --dry-run
/speckit.sync.apply
/speckit.sync.apply --auto-commit --create-issues
.specify/sync/backups/--dry-run first to preview changes