safe-workflow
Skill419 starsChanged 4 months agoMITView on GitHub
SAFe development workflow guidance including branch naming conventions, commit message format, rebase-first workflow, and CI validation. Use when starting work on a Linear ticket, preparing commits, creating branches, writing PR descriptions, or asking about contribution guidelines.
- Reads credentials
- Deletes or force-pushes
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- adyba/pi-safe-workflowtheir own version, first seen Jul 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- adyba/pi-safe-workflow★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/00-core-principles.mdcCursor rule
- .cursor/rules/01-git-workflow.mdcCursor rule
- .cursor/rules/02-pattern-discovery.mdcCursor rule
- .cursor/rules/03-safe-ai-dlc.mdcCursor rule
- .cursor/rules/04-knowledge-vault.mdcCursor rule
- .cursor/rules/10-backend-python.mdcCursor rule
- .cursor/rules/11-frontend-react.mdcCursor rule
- .cursor/rules/12-database-sql.mdcCursor rule
- .cursor/rules/13-testing.mdcCursor rule
- .cursor/rules/14-spec-creation.mdcCursor rule
- .cursor/rules/15-deployment.mdcCursor rule
- .cursor/rules/16-stripe-payments.mdcCursor rule
- .cursor/rules/20-agent-architect.mdcCursor rule
- .cursor/rules/21-agent-backend.mdcCursor rule
- .cursor/rules/22-agent-qas.mdcCursor rule
- .cursor/rules/23-agent-security.mdcCursor rule
- .cursor/rules/30-background-agents.mdcCursor rule
- .cursor/rules/31-mcp-integration.mdcCursor rule
- .cursor/rules/README.mdCursor rule
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- safe-workflowSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- team-coordinationSkill
- testing-patternsSkill
- vault-syncSkill
- agent-coordinationSkill
- api-patternsSkill
- confluence-docsSkill
- deployment-sopSkill
- frontend-patternsSkill
- git-advancedSkill
- linear-sopSkill
- migration-patternsSkill
- orchestration-patternsSkill
- pattern-discoverySkill
- release-patternsSkill
- rls-patternsSkill
- safe-ai-dlcSkill
- security-auditSkill
- spec-creationSkill
- stripe-patternsSkill
- team-coordinationSkill
- testing-patternsSkill
- vault-syncSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
MUST start with {{TICKET_PREFIX}}- followed by ticket number
- Distinctive: line 34
Use lowercase letters and hyphens for description
- Distinctive: line 35
Keep description short but meaningful (max 50 chars total)
- Distinctive: line 36
Never include personal names or dates
- Very specific: line 78
Every commit MUST end with [{{TICKET_PREFIX}}-XXX] referencing the ticket.
- Distinctive: line 131
Before creating a PR, ALL of these must pass:
- Very specific: line 169
Shortcut: Use /pre-pr command to run all validation steps.
- Very specific: line 195
Always sync with latest {{MAIN_BRANCH}}:
- Distinctive: line 214
Ticket Traceability: Every commit links to tickets for audit trail
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
SAFe Workflow Skill
📋 TEMPLATE: This skill uses
{{TICKET_PREFIX}}as a placeholder. Replace with your project's ticket prefix (e.g.,WOR,PROJ,FEAT).
Purpose
Enforce SAFe-compliant git workflow with standardized branch naming, commit message format, and rebase-first merge strategy. Ensures linear history and full traceability to Linear tickets.
When This Skill Applies
Invoke this skill when:
- User mentions starting work on a ticket (e.g., "I'm starting {{TICKET_PREFIX}}-447")
- User is about to create a commit
- User is creating or naming a branch
- User asks about PR workflow or contribution guidelines
- User references CONTRIBUTING.md or workflow process
- User asks "how should I commit this?" or similar
Branch Naming Convention
Required Format: {{TICKET_PREFIX}}-{number}-{short-description}
Rules
- MUST start with
{{TICKET_PREFIX}}-followed by ticket number - Use lowercase letters and hyphens for description
- Keep description short but meaningful (max 50 chars total)
- Never include personal names or dates
Examples
{{TICKET_PREFIX}}-447-create-safe-workflow-skill
{{TICKET_PREFIX}}-123-fix-login-redirect
{{TICKET_PREFIX}}-234-add-stripe-checkoutAnti-Patterns (Do NOT use)
feature/add-dark-mode (missing ticket number)
fix/broken-login (missing ticket number)
john-new-feature (personal naming)
WIP (not descriptive)SAFe Commit Message Format
Required Format: type(scope): description [{{TICKET_PREFIX}}-XXX]
Types (Required)
| Type | When to Use |
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting (no logic changes) |
refactor | Code restructuring (no feature/bug) |
test | Adding or updating tests |
chore | Maintenance, dependencies |
ci | CI/CD pipeline changes |
Scope (Optional)
Common scopes: payments, auth, ui, api, db, harness, rls
Ticket Reference (MANDATORY)
Every commit MUST end with [{{TICKET_PREFIX}}-XXX] referencing the ticket.
Examples
feat(harness): create safe-workflow skill [{{TICKET_PREFIX}}-447]
fix(auth): resolve login redirect issue [{{TICKET_PREFIX}}-57]
docs: update API documentation [{{TICKET_PREFIX}}-123]
refactor(db): optimize query performance [{{TICKET_PREFIX}}-234]
chore: upgrade dependencies [{{TICKET_PREFIX}}-337]Rebase-First Workflow
This project enforces linear history through rebase-first workflow. Never create merge commits.
Workflow Steps
# 1. Start from latest {{MAIN_BRANCH}}
git checkout {{MAIN_BRANCH}} && git pull origin {{MAIN_BRANCH}}
# 2. Create feature branch
git checkout -b {{TICKET_PREFIX}}-{number}-{description}
# 3. Make commits (SAFe format)
git add .
git commit -m "type(scope): description [{{TICKET_PREFIX}}-XXX]"
# 4. Keep branch updated during development
git fetch origin
git rebase origin/{{MAIN_BRANCH}}
# 5. Before pushing - rebase one final time
git fetch origin
git rebase origin/{{MAIN_BRANCH}}
# Resolve any conflicts locally
# 6. Push with force-with-lease (safe after rebase)
git push --force-with-lease origin {{TICKET_PREFIX}}-{number}-{description}
# 7. Create PR using template
# Use "Rebase and merge" strategy ONLYWhy --force-with-lease?
- Safer than
--force(won't overwrite unseen remote changes) - Required after rebasing to push cleanly
- Prevents accidental overwrites in team environments
Pre-PR Validation Checklist
Before creating a PR, ALL of these must pass:
1. Code Quality Validation
{{CI_VALIDATE_COMMAND}}This runs: type-check, lint, test:unit, format:check
2. Markdown Linting
{{LINT_MD_COMMAND}}3. Git Status Check
git status
# Must show: nothing to commit, working tree clean4. Rebase Status
git fetch origin
git rebase origin/{{MAIN_BRANCH}}
# Must be up-to-date with {{MAIN_BRANCH}} branch5. Commit Message Audit
git log origin/{{MAIN_BRANCH}}..HEAD --oneline
# All commits must follow SAFe format with [{{TICKET_PREFIX}}-XXX]Shortcut: Use /pre-pr command to run all validation steps.
Available Slash Commands
| Command | Purpose | When to Use |
/start-work | Begin work on a ticket | Starting any new work |
/check-workflow | Quick status check | Periodically during work |
/pre-pr | Full validation before PR | Before creating PR |
/end-work | Complete session cleanly | End of work session |
/quick-fix | Fast-track for small bug fixes | Minor, isolated fixes |
Multi-Team Coordination
High-Risk Files (Announce Before Touching)
| File | Risk | Required Action |
prisma/schema.prisma | HIGH | Announce in Slack BEFORE touching |
prisma/migrations/* | HIGH | Coordinate with all teams |
docker-compose*.yml | HIGH | All teams must restart containers |
package.json | MEDIUM | Run {{INSTALL_COMMAND}} after sync |
.env.template | MEDIUM | Update local .env files |
Before Starting Work
Always sync with latest {{MAIN_BRANCH}}:
git checkout {{MAIN_BRANCH}} && git pull origin {{MAIN_BRANCH}}Or use /local-sync command for full synchronization.
Authoritative Reference
For complete workflow documentation, see:
- CONTRIBUTING.md - Full contributor guide (SINGLE SOURCE OF TRUTH)
- CLAUDE.md - Development commands and architecture
- .claude/README.md - Harness configuration and commands
Why These Rules Matter
- Linear History: Rebase-first prevents merge conflicts between teams
- Ticket Traceability: Every commit links to tickets for audit trail
- Quality Gates: CI validation catches issues before production
- Team Coordination: Branch naming enables automated workflows
- SAFe Compliance: Standardized format supports sprint reporting
Customization Guide
| Placeholder | Description | Example |
{{TICKET_PREFIX}} | Your ticket/issue prefix | WOR, PROJ, FEAT |
{{MAIN_BRANCH}} | Main git branch name | main, dev |
{{CI_VALIDATE_COMMAND}} | CI validation command | yarn ci:validate |
{{LINT_MD_COMMAND}} | Markdown linting command | yarn lint:md |
{{INSTALL_COMMAND}} | Package install command | yarn install |
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.

