Create a well-formed issue with labels, milestone, relationships, and project board placement
/plugin marketplace add C0ntr0lledCha0s/claude-code-plugin-automations/plugin install github-workflows@claude-code-plugin-automations[title]Create a new GitHub issue following project conventions with all metadata properly configured.
/issue-create "Add validation for hook matchers"
/issue-create # Interactive mode
Creates an issue with all factors properly configured:
Before any prompts, load the environment and attempt scope detection:
# Load environment
ENV_FILE=".claude/github-workflows/env.json"
if [[ -f "$ENV_FILE" ]]; then
DETECTED_SCOPE=$(jq -r '.branch.scopeLabel // empty' "$ENV_FILE")
SUGGESTED_SCOPES=$(jq -r '.labels.suggestedScopes[]? // empty' "$ENV_FILE")
fi
# If no scope from env, try branch name
if [[ -z "$DETECTED_SCOPE" ]]; then
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
# Match branch against suggested scopes
for scope in $SUGGESTED_SCOPES; do
if [[ "${BRANCH,,}" == *"${scope,,}"* ]]; then
DETECTED_SCOPE="scope:$scope"
break
fi
done
fi
Check title follows conventions:
[BUG], [FEATURE], [ENHANCEMENT]❌ "[BUG] Login fails" → Suggest: "Fix login authentication failure"
❌ "[FEATURE] Add auth" → Suggest: "Add user authentication"
✅ "Add validation for hook matchers"
Prompt for each label dimension:
Type (required):
Select issue type:
1. bug - Something isn't working
2. feature - New functionality
3. enhancement - Improve existing feature
4. documentation - Documentation changes
5. refactor - Code improvement
6. chore - Maintenance task
Your choice: _
Priority (required):
Select priority:
1. priority:high - Critical path, blocking others
2. priority:medium - Important, should do this sprint
3. priority:low - Nice to have
Your choice: _
Scope (REQUIRED - auto-detected or prompted):
Detecting scope from context...
✓ Auto-detected: scope:github-workflows (from branch: plugin/github-workflows)
Confirm this scope? [Y/n/other]: _
# OR if not detected:
Select scope (REQUIRED):
Available scopes (from project analysis):
1. scope:agent-builder
2. scope:self-improvement
3. scope:github-workflows
4. scope:testing-expert
5. scope:research-agent
6. [Other - enter custom scope]
Your choice: _
Scope Detection Sources:
env.json (branch.scopeLabel)feature/auth → scope:auth)labels.suggestedScopes)Branch (optional):
Associate with branch? (or skip):
Current branches with labels:
1. branch:plugin/github-workflows
2. branch:plugin/agent-builder
3. [Create new branch label]
4. [Skip]
Your choice: _
Assign to milestone? (or skip):
Open milestones:
1. Phase: Hooks Validation (2/4 issues, due 2024-03-31)
2. v2.0.0 (8/12 issues, due 2024-04-15)
3. [Create new milestone]
4. [Skip]
Your choice: _
Link to other issues? (or skip):
Parent issue (this is a subtask of):
Enter issue number or skip: _
Blocking issues (this is blocked by):
Enter issue numbers (comma-separated) or skip: _
Related issues:
Enter issue numbers (comma-separated) or skip: _
Add to project board?
Available projects:
1. Agent Plugin Development (add to Backlog)
2. [Skip]
Your choice: _
Generate structured body:
## Summary
[User provides description]
## Parent Issue
Part of #<parent-number> (if specified)
## Blocked By
- #<blocker-1>
- #<blocker-2>
## Related Issues
- #<related-1>
- #<related-2>
## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3
## Additional Context
[User provides context]
Before creating, verify all required labels are present:
Validating required labels...
✅ Type: enhancement
✅ Priority: priority:high
✅ Scope: scope:github-workflows
All required labels present. Proceeding with issue creation...
If scope is missing:
⚠️ VALIDATION FAILED
Missing required labels:
❌ Scope: Not set
You MUST specify a scope label. Available scopes:
1. scope:agent-builder
2. scope:self-improvement
3. scope:github-workflows
...
Select scope: _
Execute creation with all metadata:
gh issue create \
--title "Add validation for hook matchers" \
--body "$BODY" \
--label "enhancement,priority:high,scope:github-workflows" \
--milestone "Phase: Hooks Validation" \
--project "Agent Plugin Development"
## Issue Created Successfully
**Issue**: #59 Add validation for hook matchers
**URL**: https://github.com/owner/repo/issues/59
### Applied Configuration
**Labels**:
- Type: enhancement
- Priority: priority:high
- Scope: plugin:agent-builder
- Branch: branch:plugin/agent-builder
**Milestone**: Phase: Hooks Validation
**Relationships**:
- Parent: #55
- Blocked by: #58
- Related: #56, #57
**Project**: Agent Plugin Development (Backlog)
### Next Steps
1. Refine acceptance criteria if needed
2. Move to Todo when ready to start
3. Assign developer when work begins
For scripting, pass all options:
/issue-create "Title" \
--type enhancement \
--priority high \
--scope plugin:agent-builder \
--branch plugin/agent-builder \
--milestone "Phase: Hooks Validation" \
--parent 55 \
--blocked-by 58 \
--related 56,57 \
--project "Agent Plugin Development" \
--body "Description here"
This command enforces the conventions from GITHUB_CONVENTIONS.md:
Scope labels are mandatory because they:
/issue-track context)/commit-smart)After creation, the triaging-issues skill can:
Validates labels exist and suggests: