Create issue

From yamada-ui/yamada-ui · View interactive version

Create issue is an AI agent skill from the GitHub repository yamada-ui/yamada-ui. Create a GitHub Issue for yamada-ui. Use when the user says they want to create an issue, report a bug, request a feature, report a documentation problem, or file an issue against yamada-ui.

How to use this skill

Skill file

Create a GitHub Issue for yamada-ui.

Workflow

Use tools to interact with the user throughout the process.

1. **Enter planning mode (required)**

2. **Discover available templates**

3. **Assess available context**

4. **Confirm issue type** _(skip if context is sufficient)_

5. **Collect information** _(skip fields already known from context)_

| Option | Description | Template value | Label |

| ------------------------ | -------------------------------------------- | -------------- | ------------------ |

| Yes | Will create a PR | Yes | none |

| No | Will not create a PR | No | triage |

| Open to contributors | Open as a community contribution opportunity | Yes | good first issue |

If "Open to contributors" is selected, append the following to the issue body:

This issue is open to community contribution.

6. **Search for existing issues (duplicates, related, parent/child candidates)**

Search by keyword to find duplicates, related issues, and parent/child candidates:

gh api "search/issues?q=repo:yamada-ui/yamada-ui+<keywords>&per_page=20" \
  --jq '.items[] | {number: .number, title: .title, state: .state, url: .html_url}'

Autonomously determine the relationship for each result found:

| Judgment | Condition | Action |

| ------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------- |

| Duplicate | Content is nearly identical | Abort and present the existing issue URL to the user |

| Parent/child (existing is parent) | Existing issue is a tracking issue; new issue is a subtask | Link new issue as a child via addSubIssue API |

| Parent/child (new is parent) | New issue is a tracking issue; existing issue is a subtask | After creating the new issue, link existing issue as a child via addSubIssue API |

| Depends on | New issue requires the existing one to be resolved first | Append Depends on #xxxx to the issue body |

| Related | Same component or area | Append Related #xxxx to the issue body |

| Unrelated | Different content | Do nothing |

To get the Node ID of an existing issue:

gh api repos/yamada-ui/yamada-ui/issues/{issue_number} --jq '{node_id: .node_id, title: .title}'

7. **Autonomously determine Type and Labels**

Fetch available Types:

gh api graphql -f query='{ repository(owner: "yamada-ui", name: "yamada-ui") { issueTypes(first: 20) { nodes { id name description } } } }'

Fetch available Labels:

gh api repos/yamada-ui/yamada-ui/labels --paginate --jq '.[] | {name: .name, description: .description}'

Apply labels based on the PR intent answer from step 5:

8. **Design parent/child structure for multiple issues**

9. **Present plan for user review**

Use this template for each issue:

body_file=$(mktemp)
cat > "$body_file" << 'EOF'
<issue body>
EOF

issue_url=$(gh issue create \
  --repo yamada-ui/yamada-ui \
  --title "<title>" \
  --body-file "$body_file" \
  [--label "<label1>,<label2>"] \
  [--assignee @me])  # Only if PR intent is Yes

issue_number=${issue_url##*/}
issue_node_id=$(gh api "repos/yamada-ui/yamada-ui/issues/$issue_number" --jq '.node_id')

gh api graphql \
  -f query='mutation($issueId:ID!, $issueTypeId:ID!){ updateIssue(input:{id:$issueId, issueTypeId:$issueTypeId}) { issue { number title issueType { name } } } }' \
  -F issueId="$issue_node_id" \
  -F issueTypeId="<issue-type-id>"

For the ai-used checkboxes field in the template: because this skill is AI-driven by definition, copy the options exactly as written in the issue body passed to --body-file, with the "checked the generated content" option set to [x] and the "did not use AI" option set to [ ].

10. **Create and link issues after approval**

Sub-issue linking (for both new and existing issues):

# Get parent issue Node ID
gh api repos/yamada-ui/yamada-ui/issues/{parent_issue_number} --jq '.node_id'

# Write and execute the GraphQL mutation
cat > /tmp/add_sub_issue.graphql << 'EOF'
mutation AddSubIssue($issueId: ID!, $subIssueUrl: String!) {
  addSubIssue(input: { issueId: $issueId, subIssueUrl: $subIssueUrl }) {
    issue { number title }
    subIssue { number title }
  }
}
EOF

gh api graphql \
  -F query=@/tmp/add_sub_issue.graphql \
  -F issueId="<parent Node ID>" \
  -F subIssueUrl="https://github.com/yamada-ui/yamada-ui/issues/<child_issue_number>"

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.