Comprehensive developer toolkit providing reusable skills for Java/Spring Boot, TypeScript/NestJS/React/Next.js, Python, PHP, AWS CloudFormation, AI/RAG, DevOps, and more.
90
90%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Risky
Do not use without reviewing
Synchronizes the functional specification with the current implementation state, detecting and proposing updates based on the decision-log and completed tasks.
This command closes the SDD triangle by keeping synchronized:
The current workflow is unidirectional: Spec → Tasks → Code. Decisions made during implementation don't flow back to the specification, leading to:
Idea → Spec → Tasks → Implementation → Spec Sync With Code (this)
↑ ↓
└──────────────────────────────┘
Update spec with decisions# Sync spec after implementation drift detected
/specs:spec-sync-with-code docs/specs/001-hotel-search-aggregation/
# Sync after specific task completed
/specs:spec-sync-with-code docs/specs/001-hotel-search-aggregation/ --after-task=TASK-001
# Sync for current spec folder (auto-detected)
/specs:spec-sync-with-code| Argument | Required | Description |
|---|---|---|
spec-folder | No | Path to spec folder (default: detect from CWD) |
--after-task | No | Specific task ID that just completed |
Goal: Identify spec folder and load context
Actions:
spec-folder path (positional argument or --spec= parameter)--after-task if provided--spec= parameter provided: use itYYYY-MM-DD--feature-name.md*-specs.mddecision-log.md if existstasks/ directoryGoal: Detect deviations between spec and implementation
Actions:
Compare acceptance criteria:
Analyze decision-log.md:
Generate deviation report:
## Deviation Analysis
### Scope Expansions
- Added pagination to search results (DEC-003)
- Added filtering by rating
### Requirement Refinements
- Changed "instant search" to "search with caching"
### Scope Reductions
- Dropped "search by proximity" featureGoal: Generate diff-style proposal for spec update
Actions:
Generate diff-style proposal showing:
Categorize changes:
Present proposal to user via AskUserQuestion:
Summary:
- X scope expansions
- Y requirement refinements
- Z scope reductions
Options:
- "Approve all updates" - Apply all changes to spec and create missing tasks
- "Approve spec only" - Apply spec changes, skip task creation
- "Review selectively" - Review each change individually
- "Skip for now" - Don't update spec or create tasksIf user chooses "Approve all updates" or "Approve spec only":
If user chooses "Review selectively":
Goal: Create missing tasks for detected GAPs
Trigger: Only runs when user chooses "Approve all updates" in Phase 3
Actions:
Analyze deviations for task creation:
Generate task proposals:
## Task Creation Proposals
### New Tasks to Create
| Deviation | Suggested Task Title | Priority |
|-----------|---------------------|----------|
| Scope Expansion: Pagination | Implement pagination for search results | High |
| Scope Expansion: Rating filter | Add rating filter to search | Medium |Present task creation options via AskUserQuestion:
GAPs Found: N deviations require new tasks
Options:
- "Create all tasks" - Generate tasks for all deviations (recommended)
- "Review each" - Review and approve each task individually
- "Skip task creation" - Only update spec, don't create tasksIf user chooses "Create all tasks":
/specs:task-manage pattern to create task file:
If user chooses "Review each":
If user chooses "Skip task creation":
For each deviation type, create task as follows:
Scope Expansion:
Requirement Refinement:
Scope Reduction:
Goal: Apply approved updates to the specification
Actions:
Backup original spec:
[resolved-spec-file].backupApply approved changes:
Add Revision History section at end of spec:
## Revision History
| Date | Change | Reason | Decision Ref |
|------|--------|--------|--------------|
| YYYY-MM-DD | Added pagination to search results | Implementation revealed need | DEC-003 |
| YYYY-MM-DD | Clarified search caching behavior | Technical refinement | DEC-005 |Update spec metadata:
Goal: Verify that tasks still map to updated requirements
Actions:
Re-validate task list:
Report validation results:
## Sync Verification
### Tasks Still Valid
- TASK-001: User registration ✅
- TASK-002: Login functionality ✅
### Tasks Needing Update
- TASK-003: References removed "proximity search" ❌If tasks need updates:
Goal: Document sync outcome
Actions:
This command integrates with the SDD workflow:
/specs:brainstorm
↓
[Creates: docs/specs/[id]/YYYY-MM-DD--feature-name.md]
↓
/specs:spec-to-tasks --lang=[language] docs/specs/[id]/
↓
[Creates: docs/specs/[id]/tasks/TASK-XXX.md]
↓
/specs:task-implementation --lang=[language] --task="docs/specs/[id]/tasks/TASK-XXX.md"
↓
[Implements task, may deviate from spec]
↓
T-6.6: Spec Deviation Check detects deviation
↓
/specs:spec-sync-with-code docs/specs/[id]/ ← This command
↓
[Spec updated with deviations from decision-log.md]The spec-sync command can be automatically invoked:
When deviations are detected, the command can now automatically create missing tasks:
/specs:spec-sync-with-code docs/specs/[id]/
↓
[Detects: Scope Expansions, Requirement Refinements, Scope Reductions]
↓
[User approves: "Approve all updates"]
↓
Phase 3.5: Automatic Task Creation
↓
[Creates: TASK-XXX.md for each deviation requiring implementation]
↓
Phase 4: Apply Updates to SpecRun spec-sync manually when:
docs/specs/[id]/ as implementation context and clarified, narrowed, or expanded what should be built/specs:task-implementation was not used# Task T-003 added pagination not in original spec
/specs:spec-sync-with-code docs/specs/001-hotel-search/ --after-task=TASK-003Output:
Analyzing spec: docs/specs/001-hotel-search/
Reading decision-log.md... Found 3 decisions
Analyzing completed tasks... TASK-001 ✅, TASK-002 ✅, TASK-003 ✅
Deviations Detected:
- Scope Expansion: Pagination added (DEC-003)
- Requirement Refinement: Search timeout set to 5s (DEC-004)
Proposed Updates:
+ Add "Pagination" section to Functional Requirements
+ Update "Search Performance" with timeout clarification
Task Creation Analysis:
- Scope Expansion "Pagination" → Requires new task
- Requirement Refinement "Search timeout" → No new task needed
Options:
- "Approve all updates" (recommended) - Apply spec changes AND create missing tasks
- "Approve spec only" - Apply spec changes, skip task creation
- "Review selectively"
- "Skip for now"# Sync entire spec after multiple tasks completed
/specs:spec-sync-with-code docs/specs/001-user-auth/# Run from within spec directory
cd docs/specs/001-hotel-search-aggregation/
/specs:spec-sync-with-codeMaintain todo list:
[ ] Phase 1: Discovery
[ ] Phase 2: Deviation Detection
[ ] Phase 3: Spec Update Proposal
[ ] Phase 3.5: Automatic Task Creation (conditional)
[ ] Phase 4: Apply Updates
[ ] Phase 5: Sync Verification
[ ] Phase 6: Summary| Command | Purpose | When to Use |
|---|---|---|
spec-review | Quality check for vague terms, completeness | Before generating tasks |
spec-sync | Update spec to match implemented reality | After implementation changes |
.backup filedocs
plugins
developer-kit-ai
developer-kit-aws
agents
docs
skills
aws
aws-cli-beast
aws-cost-optimization
aws-drawio-architecture-diagrams
aws-sam-bootstrap
aws-cloudformation
aws-cloudformation-auto-scaling
aws-cloudformation-bedrock
aws-cloudformation-cloudfront
aws-cloudformation-cloudwatch
aws-cloudformation-dynamodb
aws-cloudformation-ec2
aws-cloudformation-ecs
aws-cloudformation-elasticache
references
aws-cloudformation-iam
references
aws-cloudformation-lambda
aws-cloudformation-rds
aws-cloudformation-s3
aws-cloudformation-security
aws-cloudformation-task-ecs-deploy-gh
aws-cloudformation-vpc
references
developer-kit-core
agents
commands
skills
developer-kit-devops
developer-kit-java
agents
commands
docs
skills
aws-lambda-java-integration
aws-rds-spring-boot-integration
aws-sdk-java-v2-bedrock
aws-sdk-java-v2-core
aws-sdk-java-v2-dynamodb
aws-sdk-java-v2-kms
aws-sdk-java-v2-lambda
aws-sdk-java-v2-messaging
aws-sdk-java-v2-rds
aws-sdk-java-v2-s3
aws-sdk-java-v2-secrets-manager
clean-architecture
graalvm-native-image
langchain4j-ai-services-patterns
references
langchain4j-mcp-server-patterns
references
langchain4j-rag-implementation-patterns
references
langchain4j-spring-boot-integration
langchain4j-testing-strategies
langchain4j-tool-function-calling-patterns
langchain4j-vector-stores-configuration
references
qdrant
references
spring-ai-mcp-server-patterns
spring-boot-actuator
spring-boot-cache
spring-boot-crud-patterns
spring-boot-dependency-injection
spring-boot-event-driven-patterns
spring-boot-openapi-documentation
spring-boot-project-creator
spring-boot-resilience4j
spring-boot-rest-api-standards
spring-boot-saga-pattern
spring-boot-security-jwt
assets
references
scripts
spring-boot-test-patterns
spring-data-jpa
references
spring-data-neo4j
references
unit-test-application-events
unit-test-bean-validation
unit-test-boundary-conditions
unit-test-caching
unit-test-config-properties
references
unit-test-controller-layer
unit-test-exception-handler
references
unit-test-json-serialization
unit-test-mapper-converter
references
unit-test-parameterized
unit-test-scheduled-async
references
unit-test-service-layer
references
unit-test-utility-methods
unit-test-wiremock-rest-api
references
developer-kit-php
developer-kit-project-management
developer-kit-python
developer-kit-specs
commands
docs
hooks
test-templates
tests
skills
developer-kit-tools
developer-kit-typescript
agents
docs
hooks
rules
skills
aws-cdk
aws-lambda-typescript-integration
better-auth
clean-architecture
drizzle-orm-patterns
dynamodb-toolbox-patterns
references
nestjs
nestjs-best-practices
nestjs-code-review
nestjs-drizzle-crud-generator
nextjs-app-router
nextjs-authentication
nextjs-code-review
nextjs-data-fetching
nextjs-deployment
nextjs-performance
nx-monorepo
react-code-review
react-patterns
shadcn-ui
tailwind-css-patterns
tailwind-design-system
references
turborepo-monorepo
typescript-docs
typescript-security-review
zod-validation-utilities
references
github-spec-kit