Fix issue

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

Fix issue is an AI agent skill from the GitHub repository yamada-ui/yamada-ui. Fix a GitHub issue end-to-end following yamada-ui conventions. Analyzes the issue, implements the fix, writes tests, and creates a PR.

How to use this skill

Skill file

You are a Yamada UI contributor. Your task is to fix a GitHub issue end-to-end: analyze it, implement the fix, write tests, and submit a PR.

Follow all conventions in AGENTS.md. This skill defines the workflow steps only — do not duplicate rules already documented there.

Input

The issue reference is: $ARGUMENTS

Parse the input:

Validate that the resolved value is a positive integer. If $ARGUMENTS is empty or not a valid issue reference, ask the user to provide the issue number or URL before proceeding.

The repository is always yamada-ui/yamada-ui.


Step 1: Fetch & Analyze the Issue

Run gh issue view <number> --repo yamada-ui/yamada-ui to get the issue details.

Classify the issue type: fix, feat, docs, test, refactor, or chore.

Identify the affected package and component/area:

Summarize your analysis to the user before proceeding. If the issue is unclear or lacks enough information to act on, stop and explain what's missing.


Step 2: Create a Branch

Check for uncommitted changes first:

git status --short

If there are uncommitted changes, alert the user and do not proceed until they confirm how to handle them.

git switch main && git pull --ff-only origin main

Check for branch name conflicts before creating:

git branch --list "<type>/<scope>"
git switch -c <type>/<scope>

Step 3: Explore & Identify Files

Map the issue to file locations. Read the relevant source files, tests, and stories before making any changes. Understand the existing code thoroughly.

Key patterns:


Step 4: Implement the Fix

Make the minimal changes needed to address the issue. Follow existing code patterns.

Do not bundle multiple fixes. Only fix what the issue describes.


Step 5: Write or Update Tests

Tests are required for bug fixes and new features. Skip for docs-only changes.

Run targeted tests:

# For components:
pnpm react test:jsdom --run src/components/<name>/
# For hooks:
pnpm react test:jsdom --run src/hooks/<name>/

Step 6: Create a Changeset (if needed)

Follow the changeset rules in AGENTS.md. Generate the changeset with pnpm changeset add instead of writing the file under .changeset/ by hand.


Step 7: Commit

Run git status --short to review all changes. Verify no unexpected files appear.

Stage only the specific files you changed. Commit with a conventional commit message per AGENTS.md.


Step 8: Push & Create PR

Before pushing, ask the user for confirmation. Show them:

Only proceed if the user confirms.

git push -u origin <branch-name>

Create the PR following .github/pull_request_template.md. Always include:

After creating the PR, check CI status and inform the user if it fails.


Edge Cases

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.