one-pr-one-issue
Enforce 1 PR = 1 Jira Issue workflow for clean project tracking
What this skill does
# One PR, One Issue Workflow Maintain clean project tracking by ensuring each Pull Request maps to exactly one Jira issue. ## Why This Matters - **Clear traceability**: Easy to track what work was done for each issue - **Clean history**: Git history remains organized and searchable - **Better reviews**: PRs are focused and easier to review - **Accurate metrics**: Jira metrics reflect actual work done ## Core Rules ### Rule 1: One Issue = One Branch Each Jira issue gets its own dedicated branch. ```bash # Correct feature/CP-1-add-authentication feature/CP-2-fix-login-bug # Incorrect feature/CP-1-CP-2-mixed-work # Multiple issues in one branch ``` ### Rule 2: One Branch = One PR Each branch produces exactly one Pull Request. ```bash # Correct workflow /jira:start CP-1 # Creates feature/CP-1-description # ... work ... /jira:done # Creates PR for CP-1 only # Incorrect # Working on multiple issues before creating PR ``` ### Rule 3: New Task = New Branch If a new task comes up while working on an issue: ```bash # Currently on feature/CP-1-add-auth git stash # Save current work /jira:start CP-2 # New branch: feature/CP-2-new-task # ... complete CP-2 work ... /jira:done # Create PR for CP-2 git checkout feature/CP-1-add-auth git stash pop # Resume CP-1 work ``` ## Standard Workflow ### Starting Work ```bash /jira:start CP-1 ``` This: - Creates branch: `feature/CP-1-description` - Updates Jira status: To Do → In Progress - Sets Start Date in Jira and Notion ### During Work ```bash /git:commit ``` This: - Creates commit with `[CP-1]` prefix - Ensures commit is linked to the issue ### Completing Work ```bash /jira:done ``` This: - Creates PR linked to CP-1 - Updates Jira status: In Progress → In Review/Done - Updates Notion TODO with PR link ## Handling Interruptions ### Scenario: Bug Found While Working on Feature ```bash # Currently on feature/CP-1-add-dashboard git stash # Save incomplete work /jira:create # Create bug issue (CP-5) /jira:start CP-5 # Switch to bugfix/CP-5-fix-crash # ... fix bug ... /git:commit # Commit fix /jira:done # Create PR, update status git checkout feature/CP-1-add-dashboard git stash pop # Resume dashboard work ``` ### Scenario: Quick Fix Needed For very small fixes (< 5 minutes), you can: 1. Complete current work first, OR 2. Create separate issue and branch Never mix issues in commits. ## Commit Message Format All commits should reference the current issue: ```bash [CP-1] Add user authentication flow [CP-1] Fix login button styling [CP-1] Add unit tests for auth service ``` The `/git:commit` command handles this automatically when Jira is configured. ## Warning Signs ### Multiple Issue Keys in Branch If you see commits like: ```bash [CP-1] Add feature [CP-2] Fix bug # Wrong! Different issue [CP-1] Continue feature ``` Solution: Create separate PR for CP-2 work. ### Long-Running Branches Branches with 10+ commits or 3+ days of work may indicate: - Scope creep - Need to split into smaller issues - Review the issue breakdown ## Detection `/git:pr` will warn if multiple issue keys are detected in commits: ``` ⚠️ Warning: Multiple issue keys detected! Branch: CP-1 Commits reference: CP-1, CP-2, CP-3 Best practice: 1 PR = 1 Issue Continue anyway? [Y/n] ``` ## Benefits | Metric | Before | After | |--------|--------|-------| | PR review time | Long, unfocused | Short, targeted | | Issue tracking | Scattered | Clear | | Rollback scope | Large, risky | Small, safe | | Code review | Confusing | Straightforward |
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.