Table of Contents
- Introduction to OpenSpec
- What Is OpenSpec?
- Why OpenSpec Matters in Spec-Driven Development
- Understanding the OpenSpec Workflow
- OpenSpec Project Structure
- Understanding Change Proposals
- Creating a Change Proposal
- Writing Proposal Requirements and Design Decisions
- Managing Specification Updates
- Understanding Delta Specifications
- Reviewing and Validating Change Proposals
- Implementing Changes with AI Coding Agents
- Managing Completed and Archived Changes
- Practical Example: Adding Order Cancellation to an E-Commerce Application
- OpenSpec Best Practices
- OpenSpec vs Traditional Development Workflows
- Advantages and Limitations of OpenSpec
- Conclusion
- Frequently Asked Questions
1. Introduction to OpenSpec
Software applications continuously evolve. New features are introduced, existing functionality is modified, defects are corrected, and technical requirements change over time. Managing these changes becomes increasingly difficult as applications grow in complexity.
In traditional development workflows, developers often receive a ticket describing a requested change and begin modifying the codebase. Although this approach works for smaller tasks, it can create problems when changes affect multiple components, APIs, database structures, business rules, or existing workflows.
AI coding agents introduce another challenge. They can generate and modify code quickly, but without sufficient context and clear specifications, they may misunderstand requirements, make assumptions, or change unrelated functionality.
OpenSpec addresses this challenge by introducing a structured, specification-based approach to managing software changes.
Instead of treating code modifications as the starting point, OpenSpec encourages developers to describe the intended change, identify the affected specifications, review the proposal, and then proceed with implementation.
This makes it particularly useful for existing applications where developers need to introduce changes without losing sight of established system behavior.
2. What Is OpenSpec?
OpenSpec is an open-source toolkit designed to support Spec-Driven Development, particularly when working with existing software projects and AI coding agents.
It provides a structured way to describe, review, implement, and archive software changes through specifications and change proposals.
The central idea is that a software change should be understood and documented before it is implemented.
A typical OpenSpec workflow involves:
- Understanding the existing project specifications.
- Creating a proposal describing the intended change.
- Identifying the specifications affected by that change.
- Defining the expected behavior and acceptance scenarios.
- Reviewing the proposal and resolving ambiguities.
- Implementing the approved change.
- Validating the implementation against the specifications.
- Archiving the completed change and updating the authoritative specifications.
OpenSpec is especially useful for brownfield development, where a brownfield project refers to an existing application that already has code, architecture, business rules, and established behavior.
Rather than repeatedly describing the entire application to an AI coding agent, developers can maintain specifications that represent the system’s existing capabilities and use change proposals to describe modifications.
Core Concepts of OpenSpec
OpenSpec revolves around several important concepts:
1. Specifications
Specifications describe the existing system’s expected behavior. They provide a reference for understanding what the application currently does and how its features are expected to work.
2. Change Proposals
A change proposal describes a planned modification to the system. It explains why the change is required, what behavior will be added or modified, and which specifications will be affected.
3. Delta Specifications
Delta specifications describe the differences introduced by a proposed change. They capture additions, modifications, and removals without requiring the entire specification to be rewritten.
4. Implementation Tasks
Implementation tasks break an approved change into smaller, actionable development activities.
5. Archiving
Once a change is implemented and validated, its proposal can be archived and its specification updates incorporated into the main specification set.
These concepts establish a relationship between business requirements, software specifications, implementation activities, and the final application.
3. Why OpenSpec Matters in Spec-Driven Development
Spec-Driven Development places specifications at the center of software engineering. Instead of relying exclusively on code or informal instructions, developers use structured specifications to communicate intended system behavior.
OpenSpec applies this philosophy to managing changes in existing software applications.
Consider an e-commerce application that already supports:
- Customer registration and authentication.
- Product browsing.
- Shopping cart management.
- Order placement.
- Payment processing.
- Order tracking.
The development team now wants to introduce an order cancellation feature.
A developer working directly from a short task description might implement a cancellation button and an API endpoint. However, the actual requirement involves several additional considerations:
- Which order statuses permit cancellation?
- Can customers cancel partially fulfilled orders?
- What happens when payment has already been captured?
- How are refunds initiated?
- Can an order be cancelled more than once?
- What happens if cancellation and shipment processing occur simultaneously?
- How are customers notified?
- What happens when the refund provider is unavailable?
These questions demonstrate why a change needs more than a simple coding instruction.
OpenSpec provides a structured process for documenting the change, identifying affected functionality, and defining expected behavior before implementation begins.
Key Reasons to Use OpenSpec
Maintain consistency with existing behavior
Existing specifications provide context about the current application. New proposals can refer to these specifications instead of independently redefining the entire system.
Make changes easier to review
A change proposal provides a clear description of the intended modification. Developers, product owners, architects, and reviewers can evaluate the change before implementation.
Reduce unintended modifications
By identifying affected specifications and defining boundaries, teams can reduce unnecessary changes to unrelated functionality.
Improve AI coding agent effectiveness
AI agents can use structured proposals and specifications to understand the intended change, generate implementation plans, modify code, and validate results.
Maintain a history of system evolution
Archived proposals provide a record of why particular changes were introduced and how the specifications evolved.
4. Understanding the OpenSpec Workflow
The OpenSpec workflow follows a change-oriented development process.
Although exact commands and available capabilities depend on the installed version and AI coding agent, the overall process can be understood through the following stages.
Stage 1: Understand the Existing System
Before introducing a change, developers need to understand the existing specifications and implementation.
This includes examining:
- Existing feature specifications.
- Business rules and workflows.
- System architecture.
- API contracts.
- Data models.
- Existing implementation and tests.
- Dependencies and constraints.
The objective is to understand how the application currently behaves and identify which parts of the system may be affected.
Stage 2: Create a Change Proposal
The developer describes the requested change in a structured proposal.
The proposal should explain:
- What is changing?
- Why is the change necessary?
- Which features or components are affected?
- What new behavior is expected?
- Which existing behavior must be preserved?
- What constraints or dependencies apply?
The proposal becomes the starting point for discussion and review.
Stage 3: Define Specification Changes
The developer identifies which existing specifications need to be updated.
For example, introducing order cancellation might require changes to:
- Order management specifications.
- Payment and refund specifications.
- Customer notification specifications.
- Order status transition rules.
OpenSpec represents these modifications through delta specifications.
Stage 4: Review the Proposal
Before implementation, the proposal and its specification changes should be reviewed.
Reviewers examine completeness, consistency, business rules, exceptional scenarios, technical dependencies, and potential impact on existing functionality.
The proposal can be refined until the intended change is sufficiently clear.
Stage 5: Implement the Change
Once the proposal is ready, an AI coding agent or developer can use it as implementation context.
The work may include:
- Updating database structures.
- Modifying backend services.
- Adding or changing API endpoints.
- Updating frontend components.
- Implementing business rules.
- Writing automated tests.
- Updating documentation.
Stage 6: Validate the Implementation
The implementation is checked against the proposal and updated specifications.
Validation should include functional behavior, acceptance scenarios, regression testing, security, and relevant non-functional requirements.
Stage 7: Archive the Completed Change
After successful implementation and validation, the completed proposal can be archived.
Its specification changes are incorporated into the main specifications so that the documented system behavior reflects the updated application.
5. OpenSpec Project Structure
OpenSpec organizes specifications and proposed changes in a structured directory layout.
A typical project may contain a structure similar to the following:
project/
│
├── openspec/
│ │
│ ├── specs/
│ │ ├── authentication/
│ │ │ └── spec.md
│ │ │
│ │ ├── orders/
│ │ │ └── spec.md
│ │ │
│ │ └── payments/
│ │ └── spec.md
│ │
│ ├── changes/
│ │ ├── add-order-cancellation/
│ │ │ ├── proposal.md
│ │ │ ├── tasks.md
│ │ │ │
│ │ │ └── specs/
│ │ │ ├── orders/
│ │ │ │ └── spec.md
│ │ │ │
│ │ │ └── payments/
│ │ │ └── spec.md
│ │ │
│ │ └── archive/
│ │
│ └── config.yaml
│
├── src/
├── tests/
└── README.md
This is an illustrative structure. Actual directories, templates, and generated files may vary across OpenSpec versions and project configurations.
Important Directories and Files
openspec/specs/
Contains the main specifications describing the application’s established capabilities.
For example, an e-commerce application might maintain separate specifications for authentication, orders, payments, products, and notifications.
openspec/changes/
Contains proposals for changes that are being planned, reviewed, or implemented.
Each change typically has its own directory.
proposal.md
Describes the purpose, scope, and expected impact of a proposed change.
tasks.md
Contains implementation activities associated with the proposal.
changes/[change-name]/specs/
Contains delta specifications describing how existing capabilities will change or what new capabilities will be introduced.
archive/
Contains completed and archived changes, preserving a historical record of system evolution.
config.yaml
May contain project-specific configuration, depending on the OpenSpec version and setup.
The most important distinction is between the main specifications and the specifications associated with a proposed change. The former describe the established system; the latter describe the intended modifications.
6. Understanding Change Proposals
A change proposal is one of the central elements of OpenSpec.
It provides a structured description of a planned modification before developers begin implementing it.
A proposal is not simply a task description. It should communicate the business reason, technical scope, expected behavior, and implications of the change.
Typical Elements of a Change Proposal
Change Name
A short, descriptive identifier for the proposed modification.
For example:
add-order-cancellation
Summary
A brief explanation of the proposed change.
Example:
Introduce an order cancellation capability that allows authenticated customers to cancel eligible orders through their account dashboard.
Motivation
Explains why the change is required.
Example:
Customers currently need to contact customer support to request order cancellation. Allowing eligible orders to be cancelled through the application will improve customer experience and reduce manual support requests.
Scope
Identifies the features and components included in the change.
For example:
- Customer order management.
- Order cancellation API.
- Order status management.
- Payment refund integration.
- Customer notifications.
Expected Behavior
Describes how the application should behave after implementation.
For example:
- Customers can view eligible orders.
- Customers can request cancellation.
- The system validates cancellation eligibility.
- The order status is updated after a successful cancellation.
- Refund processing is initiated when applicable.
- Customers receive a cancellation confirmation.
Constraints and Dependencies
Identifies technical or business restrictions.
Examples include:
- Only authenticated customers can cancel their own orders.
- Orders already shipped cannot be cancelled through the standard workflow.
- Refund processing depends on the payment provider.
- Cancellation must not result in duplicate refunds.
Risks and Open Questions
Documents unresolved decisions and potential problems that require attention before implementation.
A well-written proposal gives reviewers enough information to understand the change without requiring them to inspect every source file.
7. Creating a Change Proposal
Creating a proposal generally begins by identifying the requested change and establishing its scope.
The developer or AI coding agent examines the existing specifications and determines which capabilities need to be modified.
A typical OpenSpec command-line workflow includes initializing OpenSpec in a project and creating a change proposal using the commands supported by the installed version.
For example, a command-oriented workflow may look like this:
openspec init
After initialization, the developer can use the supported OpenSpec commands or an integrated AI coding agent to create a change.
In commonly used OpenSpec workflows, the proposal process can be initiated through an agent skill or command such as:
/openspec:proposal add-order-cancellation
The exact command syntax and available integrations may vary by release and coding agent.
Step 1: Identify the Requested Change
Start with a clear description of the business requirement.
Example:
“Allow customers to cancel an order before it enters the shipped state.”
This statement identifies the primary objective but is not yet a complete specification.
Step 2: Explore Existing Specifications
Review the existing order, payment, and notification specifications.
Identify:
- Current order states.
- Existing order update operations.
- Payment processing behavior.
- Refund rules.
- Notification workflows.
- Customer authorization rules.
This prevents the proposal from introducing behavior that conflicts with existing system rules.
Step 3: Define the Scope
Decide what the proposed change includes and excludes.
For example, the first version might support cancellation of eligible orders but exclude partial order cancellation.
Clearly defining scope prevents uncontrolled expansion during implementation.
Step 4: Create the Proposal
Document the motivation, scope, affected capabilities, expected behavior, constraints, and unresolved questions.
Step 5: Review the Proposal
Check whether the proposal addresses the important scenarios.
For an order cancellation feature, consider:
- Successful cancellation.
- Cancellation of an ineligible order.
- Repeated cancellation requests.
- Refund provider failure.
- Concurrent cancellation and shipment processing.
- Unauthorized cancellation attempts.
Step 6: Refine the Proposal
Update the proposal and delta specifications based on review feedback.
The proposal should be sufficiently clear before implementation begins.
8. Writing Proposal Requirements and Design Decisions
A proposal should describe both the intended behavior and the important technical considerations that influence implementation.
However, requirements and design decisions should not be confused.
Requirements
Requirements describe what the system must do.
Examples:
- A customer must be authenticated before requesting cancellation.
- A customer must only be able to cancel orders belonging to their account.
- The system must reject cancellation requests for shipped orders.
- Repeated cancellation requests must not initiate duplicate refunds.
- The system must record the cancellation outcome.
Design Decisions
Design decisions explain how the system will satisfy the requirements.
Examples:
- Use an existing order management service to process cancellation requests.
- Introduce a dedicated cancellation operation in the order API.
- Use an idempotency mechanism to prevent duplicate refund operations.
- Process refund confirmation through the payment provider’s integration workflow.
Design decisions should be documented when they materially affect architecture, compatibility, reliability, or maintainability.
Why This Distinction Matters
If requirements prescribe implementation unnecessarily, they may restrict valid technical solutions.
On the other hand, leaving important architectural decisions undocumented can cause AI coding agents to make inconsistent assumptions.
A good proposal describes expected outcomes clearly and records significant design decisions with their rationale.
9. Managing Specification Updates
One of the most important aspects of OpenSpec is managing specification updates.
In a continuously evolving application, specifications should not become outdated documents that are disconnected from the implementation.
Whenever a change modifies established system behavior, the relevant specifications should be updated.
For example, before introducing order cancellation, the order specification might state:
- Customers can view their orders.
- Orders move through defined processing states.
- Customers can track shipment status.
- Customers cannot directly cancel orders.
After implementing cancellation, the specification should reflect the new capability and the applicable restrictions.
Main Specification vs Change Specification
OpenSpec distinguishes between the established specification and the proposed changes.
Main specification
Describes the current agreed behavior of the application.
Change specification
Describes the modifications proposed for an existing capability or the introduction of a new capability.
This separation makes it easier to review a change without rewriting the entire specification.
Why Specification Updates Matter
Specification updates provide several benefits:
- Preserve an accurate description of system behavior.
- Prevent future developers from relying on outdated requirements.
- Help AI agents understand the current application.
- Support regression testing.
- Maintain consistency across related features.
- Improve traceability between requirements and implementation.
Specification maintenance should be treated as part of completing a software change, not as optional documentation work.
10. Understanding Delta Specifications
Delta specifications describe the difference between the existing specification and the behavior proposed by a change.
Instead of rewriting an entire specification, developers document the specific requirements that are being added, modified, or removed.
This makes proposed changes easier to understand and review.
OpenSpec commonly uses three delta operations.
1. ADDED
The ADDED section describes new functionality or requirements.
Example:
## ADDED Requirements
### Requirement: Customer Order Cancellation
The system SHALL allow authenticated customers to cancel
eligible orders.
#### Scenario: Successful Cancellation
- GIVEN a customer has an order in an eligible state
- WHEN the customer requests cancellation
- THEN the system SHALL validate the request
- AND update the order status
- AND initiate refund processing when applicable
This introduces behavior that did not previously exist in the specification.
2. MODIFIED
The MODIFIED section describes existing behavior that needs to change.
For example, an existing requirement might allow customers to view order details.
A new requirement could extend that behavior to include cancellation information and available cancellation actions.
When modifying a requirement, preserve the original requirement’s intent where appropriate and clearly document the new expected behavior.
3. REMOVED
The REMOVED section identifies functionality or requirements that should no longer apply.
For example, an application may previously have allowed cancellation only through customer support. After introducing self-service cancellation, that particular restriction may need to be removed or replaced.
A removal should be intentional and should not accidentally eliminate behavior that other parts of the system depend on.
Delta Specification Format
A simplified example is shown below:
# Change: Add Order Cancellation
## ADDED Requirements
### Requirement: Customer Cancellation
The system SHALL allow customers to cancel eligible orders.
## MODIFIED Requirements
### Requirement: Order Management
The order management capability SHALL display
cancellation eligibility and the current cancellation status.
## REMOVED Requirements
### Requirement: Support-Only Cancellation
Customers SHALL NOT be required to contact customer
support for every eligible cancellation request.
The example illustrates the purpose of delta sections. Actual OpenSpec files should follow the installed version’s templates and requirement formatting conventions.
Why Delta Specifications Are Useful
Delta specifications make it easier to:
- Identify exactly what is changing.
- Review additions and modifications separately.
- Understand the impact on existing behavior.
- Avoid duplicating complete specifications.
- Generate focused implementation tasks.
- Validate the final implementation against the proposed changes.
They are particularly valuable in large applications where a single feature change may affect several established capabilities.
11. Reviewing and Validating Change Proposals
A change proposal should be reviewed before implementation.
This review helps identify missing requirements, inconsistent behavior, unclear assumptions, and technical risks.
Key Areas of Proposal Review
Requirement completeness
Does the proposal cover all important functional scenarios?
For order cancellation, this includes successful cancellation, ineligible orders, repeated requests, refund failures, and concurrent operations.
Consistency
Does the proposal conflict with existing order, payment, or shipping rules?
Authorization
Does it prevent customers from cancelling orders that belong to other accounts?
Data integrity
Does the proposed workflow maintain consistent order and payment states?
Failure handling
Does it define what happens when external services are unavailable?
Compatibility
Could the proposed changes affect existing API consumers, mobile applications, or frontend workflows?
Testability
Can each requirement be verified through inspection, automated tests, or other defined validation methods?
Proposal Review Checklist
- Business motivation is clearly documented.
- Scope and exclusions are defined.
- Affected specifications are identified.
- New requirements are explicit.
- Modified requirements preserve necessary existing behavior.
- Removed requirements are justified.
- Alternative and exceptional scenarios are considered.
- Dependencies and constraints are documented.
- Security and authorization implications are reviewed.
- Acceptance scenarios are testable.
- Open questions are resolved or assigned.
A proposal should not be considered implementation-ready simply because an AI agent has generated the documents. Human review is important for validating business intent and technical correctness.
12. Implementing Changes with AI Coding Agents
OpenSpec becomes particularly useful when integrated with AI coding agents.
AI coding agents can examine project files, understand specifications, propose changes, generate implementation tasks, modify source code, and execute tests.
OpenSpec provides structured information that helps guide these activities.
Step 1: Provide the Change Context
The AI agent should have access to:
- The change proposal.
- Relevant delta specifications.
- Existing specifications.
- Project-level instructions.
- Architecture documentation.
- Coding conventions.
- Relevant tests.
The agent should understand both the proposed behavior and the existing implementation.
Step 2: Generate an Implementation Plan
The agent examines the proposal and identifies the technical work required.
For example, implementing order cancellation may involve:
- Reviewing the existing order data model.
- Identifying order state transitions.
- Designing the cancellation API.
- Implementing customer authorization.
- Adding cancellation business rules.
- Integrating refund processing.
- Updating frontend order details.
- Implementing customer notifications.
- Writing automated tests.
The plan should identify dependencies and highlight decisions requiring developer approval.
Step 3: Break the Plan into Tasks
Large changes should be divided into smaller implementation tasks.
Each task should have:
- A clear objective.
- Relevant specification references.
- Expected changes.
- Dependencies.
- Acceptance criteria.
- Validation steps.
This allows developers to review and control implementation incrementally.
Step 4: Implement the Changes
The AI coding agent can implement the tasks using the existing codebase and project instructions.
A controlled implementation approach should include:
- Reusing existing components and services where appropriate.
- Following established coding conventions.
- Avoiding unnecessary changes to unrelated modules.
- Maintaining API compatibility.
- Updating tests alongside implementation.
- Requesting approval for sensitive architectural or data changes.
Step 5: Validate Against the Proposal
The agent should run relevant tests and compare the implementation with the requirements.
Validation should cover:
- Functional correctness.
- Acceptance scenarios.
- Existing regression tests.
- Authorization and security.
- API contract compatibility.
- Database integrity.
- Failure handling.
- Relevant non-functional requirements.
Step 6: Review the Implementation
Developers should inspect the generated code, test results, and any deviations from the proposal.
AI-generated code should not be treated as correct simply because it compiles or passes a limited set of tests.
Step 7: Complete and Archive the Change
After implementation and validation, the proposal can be completed and archived according to the project’s OpenSpec workflow.
The final specifications should accurately represent the new application behavior.
13. Managing Completed and Archived Changes
Archiving is an important part of the OpenSpec lifecycle.
A completed change should not remain indefinitely as an active proposal.
Once implementation and validation are complete, the change can be archived and its approved specification updates incorporated into the main specification set.
Why Archiving Matters
Keeps active proposals manageable
Developers can distinguish between changes currently being developed and changes that have already been completed.
Preserves historical information
Archived proposals provide context about previous modifications and the reasons behind them.
Maintains specification accuracy
The main specification set should reflect the latest agreed behavior rather than depending on a collection of unmerged proposals.
Supports future development
Future developers and AI agents can examine archived changes to understand how the application evolved.
What Should Be Checked Before Archiving?
Before archiving a proposal, confirm that:
- All required implementation tasks are complete.
- Acceptance criteria have been validated.
- Automated tests have passed.
- Required specification updates are incorporated.
- Related documentation has been updated.
- Outstanding deviations are documented.
- The change is approved for completion.
Archiving should represent a completed and validated change, not merely the end of coding activity.
14. Practical Example: Adding Order Cancellation to an E-Commerce Application
Consider an e-commerce application built using Next.js, NestJS, and PostgreSQL.
The application already supports customer accounts, product browsing, order placement, payment processing, and shipment tracking.
The business team requests a new feature: customers should be able to cancel eligible orders from their account dashboard.
The development team uses OpenSpec to manage the change.
Step 1: Define the Change
Change name:
add-order-cancellation
Objective:
Allow authenticated customers to cancel eligible orders without contacting customer support.
Step 2: Identify Affected Specifications
The proposal may affect:
- Order management.
- Payment and refund processing.
- Customer notifications.
- Customer account permissions.
These specifications should be examined before creating the change.
Step 3: Define the Proposed Requirements
Requirement 1: Cancellation Eligibility
The system SHALL allow customers to cancel orders that are in an eligible state.
Requirement 2: Customer Authorization
The system SHALL verify that the requesting customer owns the order.
Requirement 3: Cancellation State
The system SHALL record the cancellation outcome and update the order state consistently.
Requirement 4: Refund Processing
The system SHALL initiate refund processing when an eligible order has already been paid.
Requirement 5: Duplicate Request Protection
The system SHALL prevent repeated cancellation requests from producing duplicate refunds or inconsistent order states.
Requirement 6: Customer Notification
The system SHALL notify customers about the outcome of their cancellation request.
Step 4: Define Exceptional Scenarios
The proposal should also consider situations where the expected workflow cannot be completed.
Examples include:
- The order has already been shipped.
- The order does not belong to the requesting customer.
- The order has already been cancelled.
- The refund provider is temporarily unavailable.
- Two cancellation requests arrive simultaneously.
- Shipment processing begins while cancellation is being requested.
These scenarios are essential because real applications must handle more than successful requests.
Step 5: Generate Implementation Tasks
The AI agent can generate a task breakdown such as:
| Task ID | Implementation Task |
|---|---|
| TSK-001 | Review existing order states and business rules |
| TSK-002 | Update the order cancellation data model if required |
| TSK-003 | Implement cancellation eligibility validation |
| TSK-004 | Develop the cancellation API |
| TSK-005 | Implement customer ownership validation |
| TSK-006 | Integrate refund processing |
| TSK-007 | Add duplicate request protection |
| TSK-008 | Update the customer order dashboard |
| TSK-009 | Implement cancellation notifications |
| TSK-010 | Add unit and integration tests |
| TSK-011 | Validate exceptional scenarios |
| TSK-012 | Run regression testing |
The exact tasks depend on the application’s existing architecture and implementation.
Step 6: Implement and Validate
The AI coding agent implements the tasks incrementally.
The development team verifies that:
- Eligible orders can be cancelled.
- Ineligible orders cannot be cancelled.
- Customers cannot cancel another customer’s order.
- Repeated requests do not produce duplicate refunds.
- Refund failures are handled correctly.
- Order state transitions remain consistent.
- Customers receive accurate notifications.
Step 7: Update Specifications and Archive
After the change passes review and validation, the updated order and payment specifications become the authoritative descriptions of the application’s behavior.
The completed proposal is archived.
This provides a clear record of the feature’s requirements, implementation decisions, and evolution.
15. OpenSpec Best Practices
OpenSpec is most effective when it is treated as part of the engineering workflow rather than as an additional documentation exercise.
The following practices help teams use it effectively.
1. Keep Proposals Focused
Each proposal should represent a coherent change.
Avoid combining unrelated features, infrastructure upgrades, and refactoring activities into one proposal unless they are genuinely part of the same change.
2. Understand Existing Specifications First
Do not create a new proposal without examining the relevant existing specifications.
Understanding current behavior reduces conflicts and unnecessary modifications.
3. Use Clear and Testable Requirements
Requirements should describe observable system behavior.
Avoid vague statements such as “the system should process orders quickly.”
Instead, define measurable expectations using actual workload, business priorities, and agreed performance targets.
4. Use Delta Specifications Carefully
Use ADDED, MODIFIED, and REMOVED sections to communicate the precise impact of a change.
Ensure that modified and removed requirements do not accidentally eliminate important existing behavior.
5. Include Exceptional Scenarios
Document validation failures, authorization failures, external service errors, duplicate requests, concurrency issues, and other relevant edge cases.
6. Review Before Implementation
Do not allow an AI coding agent to move directly from an informal request to unrestricted code modification.
Review the proposal and important design decisions first.
7. Maintain Traceability
Where practical, connect business requirements, specification sections, implementation tasks, code changes, and tests.
This helps teams understand whether every important requirement has been implemented and validated.
8. Keep Specifications Synchronized
After implementation, update the authoritative specifications.
An outdated specification can mislead future developers and AI agents.
9. Apply Human Oversight
Developers should review architecture changes, security-sensitive operations, database migrations, external integrations, and critical business logic.
10. Archive Completed Changes
Keep the active change directory focused on current work and preserve completed proposals through the archiving workflow.
16. OpenSpec vs Traditional Development Workflows
Traditional development workflows often organize work around tickets, tasks, code changes, and pull requests.
These practices are useful, but they do not always provide a structured relationship between existing system specifications and proposed modifications.
OpenSpec adds a specification-oriented change management layer.
| Area | Traditional Workflow | OpenSpec Workflow |
|---|---|---|
| Starting point | Task or user story | Structured change proposal |
| Existing system context | Often distributed across documentation and code | Organized specifications |
| Change description | Ticket or implementation notes | Proposal and delta specifications |
| Requirement updates | May be handled separately | Explicitly associated with the proposed change |
| Implementation planning | Developer or team planning | Tasks connected to the change |
| AI agent context | Often supplied through prompts and repository instructions | Can use proposals and specifications as structured context |
| Review | Code and pull request review | Proposal review followed by implementation review |
| Completion | Merge or release | Validation and change archiving |
OpenSpec does not replace version control, issue tracking, pull requests, automated testing, or code review.
Instead, it complements these practices by making the intended behavior and specification changes more explicit.
17. Advantages and Limitations of OpenSpec
Advantages
Structured change management
OpenSpec provides a consistent way to describe and review software changes.
Suitable for existing applications
It is particularly useful when modifying established applications with existing functionality and specifications.
Better AI agent context
Structured proposals help AI coding agents understand what needs to change and which behavior must be preserved.
Improved traceability
Teams can connect changes to requirements, implementation tasks, and validation activities.
Reduced ambiguity
Reviewing specifications before implementation can expose missing scenarios and conflicting requirements.
Historical change records
Archived proposals provide useful context for future development.
Limitations
Requires specification maintenance
Teams must invest time in creating and updating accurate specifications.
Introduces an additional workflow
For very small changes, preparing and reviewing a proposal may introduce unnecessary overhead.
Depends on requirement quality
Poorly written proposals can still lead to incorrect implementations.
Does not guarantee correct code
An AI agent can misunderstand requirements or produce defective code even when structured specifications are available.
Requires engineering judgment
Architecture, security, data integrity, and business-critical decisions still require qualified human review.
Tooling may evolve
Commands, integrations, templates, and configuration options can change across OpenSpec releases. Teams should follow the conventions supported by their installed version.
OpenSpec should therefore be adopted proportionately. It is most valuable when a change has meaningful functional, architectural, integration, or operational implications.
18. Conclusion
OpenSpec provides a structured approach to managing software changes through proposals, specification updates, implementation tasks, validation, and archiving.
Its most important contribution is the separation of understanding a change from implementing that change.
Instead of relying exclusively on tickets or informal prompts, developers can document why a change is required, identify affected capabilities, define expected behavior, and review the proposed modifications before code is generated.
This approach is particularly relevant in AI-assisted development, where coding agents can perform implementation work quickly but still require accurate context and clear boundaries.
For existing applications, OpenSpec helps preserve the relationship between current system behavior and future modifications.
Within Spec-Driven Development, it provides a practical change-management workflow that connects specifications with implementation.
The central principle is simple: understand the change, specify the difference, review the proposal, implement deliberately, validate the result, and keep the specifications current.
19. Frequently Asked Questions
1. What is OpenSpec in software development?
OpenSpec is an open-source toolkit that supports Spec-Driven Development by organizing software changes through proposals, specification updates, implementation tasks, and archiving.
2. What is the primary purpose of OpenSpec?
Its primary purpose is to help developers manage software changes systematically by documenting the intended behavior and affected specifications before implementation.
3. What is a change proposal in OpenSpec?
A change proposal is a structured document describing a planned software modification, including its motivation, scope, expected behavior, affected specifications, and relevant technical considerations.
4. What are delta specifications?
Delta specifications describe how an existing specification will change. They commonly use ADDED, MODIFIED, and REMOVED sections to identify new, changed, and discontinued requirements.
5. What is the difference between OpenSpec specifications and change proposals?
Specifications describe the established behavior of an application. Change proposals describe planned modifications to that behavior.
6. Can OpenSpec be used for existing applications?
Yes. OpenSpec is particularly useful for existing applications because teams can maintain specifications for established capabilities and create focused proposals when modifying them.
7. How does OpenSpec work with AI coding agents?
AI coding agents can use OpenSpec proposals and specifications to understand the requested change, prepare implementation plans, generate tasks, modify code, and validate the implementation.
8. Does OpenSpec replace traditional software documentation?
No. OpenSpec complements existing engineering documentation, architecture records, API documentation, source code comments, and other project artifacts.
9. What is the purpose of archiving changes in OpenSpec?
Archiving preserves completed change proposals and helps ensure that approved specification updates are incorporated into the main specifications.
10. Is OpenSpec suitable for small development tasks?
It can be used for small tasks, but a full proposal workflow may be unnecessary for trivial changes. Its benefits are more significant when modifications affect multiple requirements, components, or workflows.
11. Does OpenSpec automatically guarantee correct AI-generated code?
No. OpenSpec improves the context and structure available to AI coding agents, but developers must still review code, run tests, and validate the implementation against the requirements.
12. How is OpenSpec related to Spec-Driven Development?
OpenSpec is a practical toolkit for applying Spec-Driven Development to software changes. It connects existing specifications, proposed modifications, implementation activities, and validation through a structured workflow.







