drift-commit-push
Skill14 starsChanged 7 months agoMITView on GitHub
Drift-specific git commit and push workflow. Use when preparing commits, choosing conventional commit messages, checking pre-push gates, or deciding whether a push to main is allowed. Keywords: commit, push, git push, conventional commit, pre-push, changelog, risk audit, hooks.
- Commits and pushes
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- brainstormingSkill
- drift-adr-workflowSkill
- drift-agent-prompt-authoringSkill
- drift-dependency-updateSkill
- drift-docs-gap-fixSkill
- drift-evidence-artifact-authoringSkill
- drift-finding-message-authoringSkill
- drift-ground-truth-fixture-developmentSkill
- drift-mcp-repo-ops-usageSkill
- drift-pr-review-loopSkill
- drift-pr-reviewSkill
- drift-releaseSkill
- drift-risk-audit-artifact-updatesSkill
- drift-security-triageSkill
- drift-session-handover-authoringSkill
- drift-signal-development-full-lifecycleSkill
- fix-failing-actionsSkill
- grill-meSkill
- guard-src-drift-apiSkill
- guard-src-drift-commandsSkill
- guard-src-drift-ingestionSkill
- guard-src-drift-outputSkill
- guard-src-drift-signalsSkill
- guard-src-driftSkill
- improve-codebase-architectureSkill
- prd-to-issuesSkill
- self-improving-agentSkill
- simplify-and-hardenSkill
- skill-creatorSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- tddSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- workspace-automation-orchestratorSkill
- write-a-prdSkill
- writing-plansSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 12 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Use this skill for repository-safe commit and push workflows in Drift.
- Distinctive: line 15
Check whether a push is allowed
- Distinctive: line 16
Verify pre-push gates before pushing to main
- Distinctive: line 24
Releases are CI-automated: Do not run manual release flows in normal operation.
- Distinctive: line 30
Before preparing a commit or push, run the mandatory admissibility gate for the underlying task.
- Very specific: line 32
Use the gate format from .github/instructions/drift-policy.instructions.md.
- Very specific: line 46
If the change touches signals, scoring, output formats, or architecture boundaries, an ADR under docs/decisions/ is required before …
- Distinctive: line 58
Check for unrelated files and leave them out of the commit.
- Very specific: line 80
Keep commit semantics correct (feat:, fix:, BREAKING:).
- Distinctive: line 81
Do not trigger manual release commands unless CI is unavailable and maintainer explicitly requests fallback execution.
- Distinctive: line 104
If smoke confidence is needed locally, use the split profiles instead of always running the full matrix:
- Distinctive: line 112
Before push, the repository standard is:
- Distinctive: line 128
Use exactly one full validation run per push cycle:
- Very specific: line 131
Do not run make check and then immediately push if the hook will rerun the same matrix anyway, unless maintainers explicitly asked for …
- Distinctive: line 159
Before any push, confirm all of the following:
- Distinctive: line 162
no blocked paths are included
- Distinctive: line 178
If and only if approval exists:
- Very specific: line 184
Do not use bypasses like DRIFT_SKIP_HOOKS=1 unless the maintainer explicitly requests an emergency override and the reason is documented.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Drift Commit And Push Skill
Use this skill for repository-safe commit and push workflows in Drift.
When To Use
- Prepare a commit after code changes
- Choose the correct conventional commit type
- Check whether a push is allowed
- Verify pre-push gates before pushing to
main - Decide which supporting artifacts must be updated with the code change
Core Rules
- Do not push autonomously. A push requires explicit maintainer approval.
- Never commit blocked paths. Anything under
tagesplanung/is excluded from pushes. - Use conventional commits. Release automation depends on
feat:,fix:, andBREAKING:semantics. - Releases are CI-automated. Do not run manual release flows in normal operation; do not handcraft versioning beyond commit semantics.
- Run lightweight validation before commit; run full validation once per push cycle.
- Do not bypass hooks by default. Environment-variable bypasses are emergency-only and must be justified.
Step 0: Run The Drift Policy Gate
Before preparing a commit or push, run the mandatory admissibility gate for the underlying task. If the task is not admissible, stop instead of committing polished but policy-invalid work.
Use the gate format from .github/instructions/drift-policy.instructions.md.
Step 1: Classify The Change
Choose the commit type from the actual impact:
fix:for bug fixes and regressionsfeat:for new user-visible capabilitiesrefactor:for internal restructuring without behavior changedocs:for documentation-only changestest:for tests-only changeschore:for maintenance workBREAKING:or aBREAKING CHANGE:footer for incompatible changes
If the change touches signals, scoring, output formats, or architecture boundaries, an ADR under docs/decisions/ is required before implementation unless the change is only a bug fix or pure refactoring. Stop and satisfy that requirement before committing.
Step 2: Inspect The Working Tree
Review exactly what will be committed:
git status --short
git diff --stat
git diffCheck for unrelated files and leave them out of the commit.
Step 3: Satisfy Change-Coupled Requirements
Apply the repository gates before pushing, and usually before committing if they affect the same logical change:
src/drift/signals/,src/drift/ingestion/, orsrc/drift/output/changed: update the correct audit artifacts inaudit_results/, and keep all four audit files present.- Signal added or materially changed: update
fmea_matrix.md,fault_trees.md, andrisk_register.md - Input or output path / trust boundary changed: update
stride_threat_model.mdandrisk_register.md - Precision or recall changed by more than 5 percentage points: update
fmea_matrix.mdandrisk_register.md
- Signal added or materially changed: update
feat:commit planned: include tests, at least one empirical artifact inbenchmark_results/oraudit_results/, a versioned evidence file inbenchmark_results/, and updatedocs/STUDY.mdif it exists.feat:orfix:commit planned: satisfy the changelog gate. In normal operation this means including aCHANGELOG.mdupdate in the push; emergency bypass requires explicit maintainer approval and reason.pyproject.tomlchanged: ensureuv.lockis updated too.- New public function under
src/drift/: add a docstring in the same diff if it is a lowercasedefwithout a leading underscore.
Release-specific note for src/drift/** changes:
- Keep commit semantics correct (
feat:,fix:,BREAKING:). CI uses python-semantic-release to derive version/tag/release. - Do not trigger manual release commands unless CI is unavailable and maintainer explicitly requests fallback execution.
Step 4: Run Validation
Minimum expectation before commit (fast feedback):
make test-fast
# Windows / PowerShell:
.\scripts\check.ps1 test-fastFor very fast local loops, prefer targeted checks first:
make test-dev
# or rerun only previous failures
make test-lf
# Windows / PowerShell equivalents:
.\scripts\check.ps1 test-dev
.\scripts\check.ps1 test-lfIf smoke confidence is needed locally, use the split profiles instead of always running the full matrix:
make smoke-pr
# optional full matrix
make smoke-nightlyBefore push, the repository standard is:
# Linux / macOS / Git Bash:
make check
# Windows / PowerShell (mandatory — do NOT call make directly):
.\scripts\check.ps1Windows agents:
makeis not available in PowerShell. Always use.\.scripts\check.ps1 <target>. This delegates to Git Bash and writes the same SHA cache, sogit pushafterwards skips the expensive CI re-run inside VS Code.
Important for speed: do not duplicate full-matrix runs.
- Use exactly one full validation run per push cycle:
- either run
make checkmanually before push, - or rely on the pre-push hook's mandatory full checks.
- either run
- Do not run
make checkand then immediately push if the hook will rerun the same matrix anyway, unless maintainers explicitly asked for preflight output. - For commit-only checkpoints, fast tests are sufficient; keep full validation for push readiness.
Step 5: Create The Commit
Stage only the intended files:
git add <paths>
git commit -m "fix: concise summary"Good commit subjects are:
- specific
- outcome-oriented
- scoped to one logical change
Examples:
fix: prevent detached release tag lineage regressions
feat: add evidence gate for feature pushes
docs: clarify pre-push audit requirementsStep 6: Evaluate Push Readiness
Before any push, confirm all of the following:
- explicit maintainer approval to push exists
- no blocked paths are included
- the relevant pre-push gates are satisfied
- full validation is green for this push cycle (either manual
make checkpreflight or the pre-push hook run) - the branch and target are intentional
Useful checks:
git diff --name-only origin/main HEAD
git log --oneline origin/main..HEADEmergency bypasses exist for individual gates, for example DRIFT_SKIP_CHANGELOG=1, DRIFT_SKIP_DOCSTRING=1, DRIFT_SKIP_RISK_AUDIT=1, DRIFT_SKIP_VERSION_BUMP=1, and DRIFT_SKIP_LOCKFILE=1. Use them only with explicit maintainer approval and a documented reason.
Step 7: Push Only With Approval
If and only if approval exists:
git push origin mainDo not use bypasses like DRIFT_SKIP_HOOKS=1 unless the maintainer explicitly requests an emergency override and the reason is documented.
Review Checklist
- Commit type matches actual change impact
- Only intended files are staged
- Drift Policy Gate was satisfied for the underlying task
- Required artifacts changed together with the code
- Validation was run at the appropriate level
- Push approval was explicitly granted before pushing
References
.github/copilot-instructions.md.github/instructions/drift-policy.instructions.md.github/instructions/drift-push-gates.instructions.md.github/instructions/drift-quality-workflow.instructions.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

