Skip to content

Instantly share code, notes, and snippets.

@oki
Created May 7, 2026 11:08
Show Gist options
  • Select an option

  • Save oki/1edf3144df6c986ebd2abe4b9d26b890 to your computer and use it in GitHub Desktop.

Select an option

Save oki/1edf3144df6c986ebd2abe4b9d26b890 to your computer and use it in GitHub Desktop.
schema: spec-driven
context: |
Stack: Ruby on Rails
Environment: Docker Compose — all commands via: docker compose run --rm web <command>
Never run Ruby/Rails commands directly on host system.
Git workflow:
- Branch naming: feat/<change-name> or fix/<change-name>
- Conventional commits in English: feat:, fix:, chore:, refactor:, docs:
- Never commit directly to main
- PR required before merging to main
- Archive happens AFTER PR is merged to main, not before
rules:
tasks:
- First task must always be: create a new git branch (feat/<change-name> or fix/<change-name>)
- All shell commands must use Docker Compose: docker compose run --rm web <command>
- "Last task must always be: (1) git add -A, (2) git commit -m 'feat(<change-name>): <summary in English from proposal.md>', (3) git push origin <branch-name>, (4) Open a PR — inform the user to merge it before running /opsx:archive"
archive:
- Archive runs only AFTER the PR has been merged to main
- Before archiving, confirm with the user that the PR is merged
- Do not commit or push during archive — code is already in main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment