Context
- Current git status: !
git status
- Current branch: !
git branch --show-current
- Open issues: !
gh issue list --state open --limit 10
- GitHub authentication: !
gh auth status
Requirements
- Follow TDD principles and Conventional Commits.
- Use proper labels, scope, and auto-closing keywords.
- Protected branches require PR + review + CI; no direct pushes to main/develop.
- Use atomic commits for logical units of work: Each commit should represent one complete, cohesive change.
- Title: entirely lowercase, <50 chars, imperative mood (e.g., "add", "fix", "update"), conventional commits format (feat:, fix:, docs:, refactor:, test:, chore:)
- Scope (optional): lowercase noun, 1-2 words. Must match existing scopes in git history.
- Body: blank line after title, ≤72 chars per line, must start with uppercase letter, standard capitalization and punctuation. Describe what changed and why, not how.
- Footer (optional): Must start with uppercase letter, standard capitalization. Reference issues/PRs (Closes #123, Fixes #456, Linked to PR #789). Use BREAKING CHANGE: prefix for breaking changes.
Examples
feat(auth): add google oauth login flow
- Introduce Google OAuth 2.0 for user sign-in
- Add backend callback endpoint `/auth/google/callback`
- Update login UI with Google button and loading state
Add a new authentication option improving cross-platform
sign-in.
Closes #42. Linked to #38 and PR #45
fix(api): handle null payload in session refresh
- Validate payload before accessing `user.id`
- Return proper 400 response instead of 500
- Add regression test for null input
Prevents session refresh crash when token expires.
Fixes #105
feat(auth): migrate to oauth 2.0
- Replace basic auth with OAuth 2.0 flow
- Update authentication middleware
- Add token refresh endpoint
BREAKING CHANGE: Authentication API now requires OAuth 2.0 tokens. Basic auth is no longer supported.
Closes #120. Linked to #115 and PR #122
Your Task
IMPORTANT: You MUST use the Task tool to complete ALL tasks.
- Assess the repository context and select an issue scope that fits
$ARGUMENTS.
- Create or update labels as needed, then draft the issue with the required structure and links.
- Document decisions (including branch strategy) and share follow-up actions with the team.
Decision Logic
Branch-based decision tree:
- On main/develop: Create issue directly.
- On PR branch: Ask "Must this be fixed before merge?"
- Yes: Comment in PR with detailed context and reasoning, don't create issue.
- No: Create new issue for later with clear justification for scope separation.
Issue Types
- Epic issues: Multi-PR initiatives (no auto-close keywords).
- PR-scoped issues: Single PR resolution (use auto-close keywords).
- Review issues: Non-blocking feedback from PR reviews.
Issue Creation Process
- Analyze context from current repository state and existing issues.
- Determine issue type based on scope and complexity.
- Create proper labels if they don't exist:
gh label create "priority:high" --description "High priority - this sprint" --color "d73a4a" || true
gh label create "priority:medium" --description "Medium priority - next sprint" --color "fbca04" || true
gh label create "priority:low" --description "Low priority - backlog" --color "0075ca" || true
- Create issue with proper structure and labels.
- Link related items if applicable.
Issue Structure Requirements
- Title: ≤70 chars, imperative, no emojis.
- Labels: Include priority and type labels.
- Body: Problem description, acceptance criteria, context.
- Auto-closing: Use keywords (
fixes, closes, resolves) for PR-scoped issues.
Key Principles
- Follow TDD: issue → test → code → PR → merge.
- Epic issues: manual linking, no auto-close keywords.
- PR-scoped issues: designed for auto-close keywords.
- Clear, actionable descriptions with proper context.
1---2name: create-issues3description: Create GitHub issues with TDD principles and proper labels4---5
6## Context
7
8- Current git status: !`git status`
9- Current branch: !`git branch --show-current`
10- Open issues: !`gh issue list --state open --limit 10`
11- GitHub authentication: !`gh auth status`
12
13## Requirements
14
15- Follow TDD principles and Conventional Commits.
16- Use proper labels, scope, and auto-closing keywords.
17- Protected branches require PR + review + CI; no direct pushes to main/develop.
18- **Use atomic commits for logical units of work**: Each commit should represent one complete, cohesive change.
19- Title: entirely lowercase, <50 chars, imperative mood (e.g., "add", "fix", "update"), conventional commits format (feat:, fix:, docs:, refactor:, test:, chore:)
20 - Scope (optional): lowercase noun, 1-2 words. Must match existing scopes in git history.
21- Body: blank line after title, ≤72 chars per line, must start with uppercase letter, standard capitalization and punctuation. Describe what changed and why, not how.
22- Footer (optional): Must start with uppercase letter, standard capitalization. Reference issues/PRs (Closes #123, Fixes #456, Linked to PR #789). Use BREAKING CHANGE: prefix for breaking changes.
23
24### Examples
25
26```
27feat(auth): add google oauth login flow
28
29- Introduce Google OAuth 2.0 for user sign-in
30- Add backend callback endpoint `/auth/google/callback`
31- Update login UI with Google button and loading state
32
33Add a new authentication option improving cross-platform
34sign-in.
35
36Closes #42. Linked to #38 and PR #45
37```
38
39```
40fix(api): handle null payload in session refresh
41
42- Validate payload before accessing `user.id`
43- Return proper 400 response instead of 500
44- Add regression test for null input
45
46Prevents session refresh crash when token expires.
47
48Fixes #105
49```
50
51```
52feat(auth): migrate to oauth 2.0
53
54- Replace basic auth with OAuth 2.0 flow
55- Update authentication middleware
56- Add token refresh endpoint
57
58BREAKING CHANGE: Authentication API now requires OAuth 2.0 tokens. Basic auth is no longer supported.
59
60Closes #120. Linked to #115 and PR #122
61```
62
63## Your Task
64
65**IMPORTANT: You MUST use the Task tool to complete ALL tasks.**
66
671. Assess the repository context and select an issue scope that fits `$ARGUMENTS`.
682. Create or update labels as needed, then draft the issue with the required structure and links.
693. Document decisions (including branch strategy) and share follow-up actions with the team.
70
71### Decision Logic
72
73**Branch-based decision tree**:
74
75- **On main/develop**: Create issue directly.
76- **On PR branch**: Ask "Must this be fixed before merge?"
77 - **Yes**: Comment in PR with detailed context and reasoning, don't create issue.
78 - **No**: Create new issue for later with clear justification for scope separation.
79
80### Issue Types
81
821. **Epic issues**: Multi-PR initiatives (no auto-close keywords).
832. **PR-scoped issues**: Single PR resolution (use auto-close keywords).
843. **Review issues**: Non-blocking feedback from PR reviews.
85
86### Issue Creation Process
87
881. **Analyze context** from current repository state and existing issues.
892. **Determine issue type** based on scope and complexity.
903. **Create proper labels** if they don't exist:
91 ```bash
92 gh label create "priority:high" --description "High priority - this sprint" --color "d73a4a" || true
93 gh label create "priority:medium" --description "Medium priority - next sprint" --color "fbca04" || true
94 gh label create "priority:low" --description "Low priority - backlog" --color "0075ca" || true
95 ```
964. **Create issue** with proper structure and labels.
975. **Link related items** if applicable.
98
99### Issue Structure Requirements
100
101- **Title**: ≤70 chars, imperative, no emojis.
102- **Labels**: Include priority and type labels.
103- **Body**: Problem description, acceptance criteria, context.
104- **Auto-closing**: Use keywords (`fixes`, `closes`, `resolves`) for PR-scoped issues.
105
106### Key Principles
107
108- Follow TDD: issue → test → code → PR → merge.
109- Epic issues: manual linking, no auto-close keywords.
110- PR-scoped issues: designed for auto-close keywords.
111- Clear, actionable descriptions with proper context.