Language: English | 繁體中文
This guide will help you get started with GSI-Protocol in minutes.
Before you begin, ensure you have:
- Python 3.10+ installed on your system
- Git installed
- One of the supported AI platforms:
- Claude Code CLI
- Codex (OpenAI)
- GitHub Copilot
Choose one of the following methods:
uvx --from gsi-protocol-installer gsi-installpipx run gsi-protocol-installerThe installer will ask you several questions:
-
Select AI Platform(s)
- Choose one or more: Claude Code, Codex, GitHub Copilot
- Default: All platforms
-
Choose Installation Type
- Project: Install to current project (
.claude/,.github/) - Global: Install to home directory (
~/.claude/,~/.codex/,~/.github/) - Note: Codex only supports global installation
- Project: Install to current project (
After installation, you should see:
✓ Installation complete! Total files installed: X
Claude Code / Codex usage:
/sdd-auto <requirement>
/sdd-spec <requirement>
/sdd-arch <feature.feature>
/sdd-impl <feature.feature>
/sdd-verify <feature.feature>
Let's create a simple user authentication feature using GSI-Protocol.
Run the complete workflow with a single command:
/sdd-auto Add user authentication with email and password, including login and registrationThis will automatically:
- Generate a Gherkin specification
- Design the architecture
- Implement the code
- Verify the implementation
Execute each phase step-by-step:
Phase 1: Generate Specification
/sdd-spec Add user authentication with email and password, including login and registrationOutput: features/user_authentication.feature
Phase 2: Design Architecture
/sdd-arch features/user_authentication.featureOutput: docs/features/user_authentication/architecture.md
Phase 3: Implement Code
/sdd-impl features/user_authentication.featureOutput: Source code files (location specified in architecture.md)
Phase 4: Verify Implementation
/sdd-verify features/user_authentication.featureOutput: docs/features/user_authentication/conclusion.md
Optional: Generate Unit Test Shells
/sdd-test features/user_authentication.featureOutput: Test method shells (methods with TODO comments only)
After running the workflow, you'll have:
Feature: User Authentication
Scenario: User registers successfully
Given the user provides valid email and password
When the user submits registration
Then the account is created
And the user receives confirmationContains:
- Project context (tech stack, frameworks)
- Feature overview
- Data models (User, Credentials, etc.)
- Service interfaces (AuthService, UserRepository)
- Architecture decisions
- File structure planning
Generated in your project's structure:
- Model files (e.g.,
models/User.ts) - Service files (e.g.,
services/AuthService.ts)
Contains:
- Architecture compliance check
- Scenario verification (Given-When-Then)
- Summary (passed/failed)
- Feedback for improvements
/sdd-auto <requirement>/sdd-auto <requirement>
/sdd-spec <requirement>Prefix all commands with @workspace:
@workspace /sdd-auto <requirement>
@workspace /sdd-spec <requirement>Good:
/sdd-auto Add user authentication with email/password, including registration, login, and password resetNot optimal:
/sdd-auto auth stuffWhen using manual mode, review the generated architecture document before proceeding to implementation.
If Phase 4 verification fails, review the conclusion report and re-run Phase 3 with corrections.
For test-driven development, use this workflow:
/sdd-spec <requirement>
/sdd-arch features/your_feature.feature
/sdd-test features/your_feature.feature # Create unit test shells
# Fill in unit test implementations
/sdd-impl features/your_feature.feature
/sdd-verify features/your_feature.featureNote: /sdd-test filters scenarios suitable for unit testing and creates test method shells. You need to implement the test logic yourself.
GSI-Protocol automatically detects:
- Your tech stack (package.json, requirements.txt, go.mod, etc.)
- Project structure (src/, models/, services/)
- Code samples (*.ts, *.py, *.go)
- Naming conventions
/sdd-auto Add pagination support to the product listing API/sdd-spec Add product search with filters
/sdd-arch features/product_search.feature
/sdd-test features/product_search.feature # Create unit test shells
# Fill in unit tests
/sdd-impl features/product_search.feature
/sdd-verify features/product_search.feature/sdd-spec Implement shopping cart functionality
/sdd-arch features/shopping_cart.feature
# Review docs/features/shopping_cart/architecture.md
# Discuss with team
/sdd-impl features/shopping_cart.feature
/sdd-verify features/shopping_cart.featureProblem: "Git is not installed"
# Install git first
# macOS: brew install git
# Ubuntu: sudo apt-get install git
# Windows: Download from https://git-scm.com/downloadsProblem: "Command not found: /sdd-auto"
- Ensure you selected the correct platform during installation
- Check that commands are installed in the right directory
- For Claude Code:
ls ~/.claude/commands/orls .claude/commands/
Problem: Architecture doesn't match project structure
- Review
docs/features/{feature}/architecture.md - Re-run
/sdd-archwith clearer requirements - Provide more context about your project structure
Problem: Verification fails
- Read the conclusion report:
docs/features/{feature}/conclusion.md - Check which scenarios failed
- Re-run
/sdd-implwith corrections
- Explore the generated files to understand the workflow
- Customize the architecture design for your needs
- Integrate with CI/CD by running verification in your pipeline
- Share specifications with your team using Gherkin files
- GitHub Issues: https://github.com/CodeMachine0121/GSI-Protocol/issues
- Documentation: https://github.com/CodeMachine0121/GSI-Protocol
- Email: asdfg55887@gmail.com
Now that you've completed your first workflow, you can:
- Explore advanced features and custom templates
- Integrate with your existing CI/CD pipeline
- Collaborate with your team using Gherkin specifications
- Build complex features using the multi-phase workflow
Happy coding with GSI-Protocol!