open-spdd  by gszhangwei

AI coding prompts become executable design contracts

Created 2 months ago
448 stars

Top 66.5% on SourcePulse

GitHubView on GitHub
Project Summary

OpenSPDD is a cross-platform CLI tool and methodology designed to elevate AI coding prompts from transient inputs to robust, executable design contracts. It addresses the limitations of traditional AI-generated plan documents by introducing structured design principles via the REASONS Canvas framework and enabling bidirectional synchronization between design specifications and implemented code. This empowers developers to manage AI-assisted development with greater precision, traceability, and maintainability, particularly beneficial for enterprise feature development and team collaboration.

How It Works

OpenSPDD utilizes the 7-dimensional REASONS Canvas (Requirements, Entities, Approach, Structure, Operations, Norms, Safeguards) to define a comprehensive design contract. This structured approach moves beyond high-level tasks to specify precise method signatures, error handling, dependencies, and coding standards. The core workflow involves /spdd-analysis for strategic insights, /spdd-reasons-canvas to generate the structured design, /spdd-generate for AI-driven code creation based on the contract, and /spdd-sync to reverse-synchronize code changes back into the design document. This ensures that the design remains an accurate, living contract throughout the development lifecycle.

Quick Start & Requirements

Installation can be achieved via Homebrew (brew install gszhangwei/tools/openspdd), Go (go install github.com/gszhangwei/open-spdd/cmd/openspdd@latest with PATH configuration), a one-shot installer script (./scripts/install.sh), or by downloading pre-compiled binaries from GitHub Releases. The tool auto-detects and supports AI coding environments like Cursor, Claude Code, GitHub Copilot, and Antigravity. A typical quick start involves openspdd init to set up the environment, followed by openspdd generate --all to create command templates, and then using the workflow commands within the AI tool.

Highlighted Details

  • Supports multiple AI coding environments (Cursor, Claude Code, GitHub Copilot, Antigravity) with auto-detection.
  • Features a single binary distribution with embedded templates for ease of deployment.
  • Enables bidirectional synchronization (/spdd-sync) to keep code and design contracts aligned.
  • Provides core commands: spdd-analysis, spdd-reasons-canvas, spdd-generate, spdd-prompt-update, and spdd-sync.
  • Includes optional beta commands for advanced workflows like spdd-story, spdd-code-review, and spdd-api-test.

Maintenance & Community

The provided README does not contain specific details regarding notable contributors, sponsorships, partnerships, or community channels such as Discord or Slack.

Licensing & Compatibility

OpenSPDD is released under the MIT License. This permissive license allows for broad compatibility, including commercial use and integration within closed-source projects without significant restrictions.

Limitations & Caveats

Optional commands are currently in beta status. The tool is explicitly not recommended for one-off scripts due to a potentially low return on investment for such use cases. The methodology emphasizes fixing the prompt/design first before updating code, which may require a shift in development habits.

Health Check
Last Commit

13 hours ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
5
Star History
444 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.