openspec-git-discipline
/openspec-git-discipline
Pilnuje dyscypliny gita przy propozycjach, kontynuacji, zastosowaniu, weryfikacji i archiwizacji zmian w OpenSpec oraz przy worktree.
- Autor
- tommy-ca ↗
- Repozytorium
- pstack ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 10.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pilnuje dyscypliny gita przy propozycjach, kontynuacji, zastosowaniu, weryfikacji i archiwizacji zmian w OpenSpec oraz przy worktree.
Oryginalny opis (EN)
Use when running OpenSpec propose, continue, apply, verify, archive, or worktree workflows where proposal artifacts, branches, merges, or archive timing affect git history.
Jak działa
- Core Rule
- Gates
- Required Checks
- Red Flags
Podgląd SKILL.md
--- name: openspec-git-discipline description: Use when running OpenSpec propose, continue, apply, verify, archive, or worktree workflows where proposal artifacts, branches, merges, or archive timing affect git history. license: MIT compatibility: Requires git and OpenSpec workflow artifacts. --- # OpenSpec Git Discipline ## Core Rule Every OpenSpec state change must cross `main` before the next lifecycle phase depends on it. - Propose/continue artifacts may be drafted on a branch, but must be committed and merged to `main` before apply starts. - Apply may run on `main`, a branch, or a worktree only if that exact proposal change is already available on `main`. - Archive may run only from `main` after implementation is merged back. Never create commits, branches, or merges unless the user explicitly asks. ## Gates | Moment | Gate | | --- | --- | | Before propose | Prefer `main`; if not, warn and ask whether to continue intentionally. | | During continue | Before creating the next artifact, ask the user to commit completed artifact changes or explicitly continue without that checkpoint. | | After propose | Ask the user to commit proposal artifacts; offer to create a PR branch for review. | | Before apply | Confirm the proposal change is committed on `main`; then apply may run from `main`, a branch, or a worktree. | | Before archive | Stop unless implementation is merged back to `main` and archive is running from `main`. | | After archive | Ask the user to commit archive/spec sync changes. | ## Required Checks Before apply: 1. Run `git status --short`. 2. Verify `openspec/changes/<change>/` has no uncommitted proposal files. 3. Verify the proposal change exists on `main` before applying from any branch/worktree. Use this language if the proposal has not reached `main`: > I should not apply this yet because the proposal change has not reached `main`. A proposal can be drafted on a branch, but apply must start only after that proposal state is available on `main`. Please merge or commit the proposal to `main` first, then I can apply from `main`, a branch, or a worktree. Before archive: 1. Run `git branch --show-current` and `git status --short`. 2. Stop if not on `main`. 3. Stop if implementation work has not been merged back to `main`. Use this language: > I should not archive this yet because archive must run from `main` after implementation is merged back. Verify makes a change eligible to merge; it does not replace the merge. ## Red Flags - Applying a proposal that exists only on the current branch/worktree. - Treating worktree visibility as proof that the proposal reached `main`. - Creating the next continue artifact without asking about committing the previous one. - Archiving from a feature branch or before implementation is merged to `main`. - Auto-committing, branching, or merging without explicit user approval. All of these mean: pause, explain the boundary, and ask the user to make the git state explicit.
Wersje
W bazie nie ma innych skilli o nazwie openspec-git-discipline.
Migawka bazy z 13.11.2026 · wersja paczki a3d4359d6f16 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100openspec-bulk-archive-change
Archiwizuje naraz wiele ukończonych zmian OpenSpec, na przykład kilku równoległych zmian, także na polecenia openspec bulk-archive i openspec archive all. - 96openspec-archive-change
Archiwizuje ukończoną zmianę OpenSpec po implementacji, także na polecenie openspec archive lub opsx archive. - 100openspec-bulk-archive-change
Archiwizuje naraz kilka zakończonych zmian OpenSpec, gdy równoległe zmiany są gotowe do zamknięcia. - 96openspec-archive-change
Zamyka zakończoną zmianę OpenSpec i archiwizuje ją po implementacji, na komendę openspec archive albo opsx archive. - 96openspec-archive-change
Archiwizuje zakończoną zmianę w eksperymentalnym workflow OpenSpec, gdy implementacja jest gotowa. - 96openspec-archive-change
Archiwizuje zakończoną zmianę w eksperymentalnym workflow OpenSpec, gdy implementacja jest gotowa.