[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77GQYMM35WPWA0G76C5BR60":3,"skill-same:01M77GQYMM35WPWA0G76C5BR60":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":45,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M77GQYMM35WPWA0G76C5BR60","git-mender",null,"git-mender — Automatically fix GitHub issues end-to-end: reads the issue, analyzes repository code, implements a fix, and submits a pull request. Use when the user provides a GitHub issue URL, mentions fixing a GitHub issue, or uses the \u002Ffix-issue command. Supports URLs in the format https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fg\u002Fgit-mender\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-mender\ndescription: \"git-mender — Automatically fix GitHub issues end-to-end: reads the issue, analyzes repository code, implements a fix, and submits a pull request. Use when the user provides a GitHub issue URL, mentions fixing a GitHub issue, or uses the \u002Ffix-issue command. Supports URLs in the format https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}.\"\nversion: \"1.1.0\"\nauthor: \"4yDX3906\"\ntags: [\"git\", \"github\", \"automation\", \"issue-fix\", \"pull-request\"]\nhomepage: \"https:\u002F\u002Fgithub.com\u002F4yDX3906\u002Fgit-mender\"\nmetadata:\n  clawdbot:\n    emoji: \"🔧\"\nrequires:\n  env: []\nfiles: [\"scripts\u002Finstall.sh\"]\n---\n\n# git-mender — Agent Skill\n\nYou are an autonomous agent that reads a GitHub issue, understands the problem, locates the relevant code, implements a fix, and prepares everything for review. Follow the phases below **in order**, using the checklist to track progress.\n\n---\n\n## Progress Checklist\n\nUse this checklist to track your progress through the workflow:\n\n- [ ] Phase 1: Parse Issue URL\n- [ ] Phase 2: Fetch Issue Details\n- [ ] Phase 3: Clone or Locate Repository\n- [ ] Phase 4: Analyze the Issue\n- [ ] Phase 5: Implement the Fix\n- [ ] Phase 6: Verify the Fix\n- [ ] Phase 7: Present Changes & Get Confirmation\n- [ ] Phase 8: Submit Pull Request (User-Approved)\n\n---\n\n## Phase 1: Parse Issue URL\n\nExtract the GitHub issue URL from the user's input and parse the components.\n\n**Expected URL format:** `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}`\n\n1. Scan the user message for a URL matching the pattern above.\n2. Extract three values:\n   - `owner` — the GitHub organization or user\n   - `repo` — the repository name\n   - `number` — the issue number\n3. If no valid URL is found, ask the user to provide a valid GitHub issue URL.\n4. Confirm the parsed values before proceeding:\n   > Parsed issue: **{owner}\u002F{repo}#{number}**\n\n---\n\n## Phase 2: Fetch Issue Details\n\nRetrieve the full issue content including title, body, labels, and comments.\n\n### Strategy A: Use `gh` CLI (preferred)\n\nRun in the terminal:\n\n```bash\ngh issue view {number} --repo {owner}\u002F{repo} --comments\n```\n\nIf the command succeeds, extract from the output:\n- **Title**\n- **Body \u002F Description**\n- **Labels**\n- **Comments** (may contain important context, reproductions, or workarounds)\n\n### Strategy B: Fallback to `fetch_content`\n\nIf `gh` is not installed or the command fails:\n\n1. Use the `fetch_content` tool with the issue URL: `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}`\n2. Parse the fetched page content to extract:\n   - Issue title and body\n   - Any referenced file paths, error messages, or stack traces\n   - Comments from maintainers or the reporter\n\n### Extract Key Information\n\nFrom the issue content, identify and note:\n\n| Field | Description |\n|---|---|\n| **Problem summary** | One-sentence description of the bug or feature gap |\n| **Reproduction steps** | How to trigger the issue |\n| **Expected behavior** | What should happen |\n| **Actual behavior** | What actually happens |\n| **Error messages** | Stack traces, log output, error codes |\n| **File path hints** | Any files, modules, or functions mentioned |\n| **Related issues\u002FPRs** | Cross-references that provide context |\n\n---\n\n## Phase 3: Clone or Locate Repository\n\nEnsure you have local access to the repository source code.\n\n### Step 1: Check current workspace\n\n```bash\ngit remote -v 2>\u002Fdev\u002Fnull\n```\n\n- If the output contains `github.com\u002F{owner}\u002F{repo}` (or `github.com:{owner}\u002F{repo}`), you are already in the correct repo. Skip to Step 3.\n\n### Step 2: Clone if needed\n\nCheck if the repo exists locally in a common location:\n\n```bash\nls -d ~\u002FDesktop\u002F{repo} ~\u002Fprojects\u002F{repo} ~\u002Frepos\u002F{repo} \u002Ftmp\u002F{repo} 2>\u002Fdev\u002Fnull\n```\n\nIf not found, clone it:\n\n```bash\ngh repo clone {owner}\u002F{repo} \u002Ftmp\u002F{repo}\n```\n\nIf `gh` is not available:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}.git \u002Ftmp\u002F{repo}\n```\n\nThen inform the user about the clone location.\n\n### Step 2.5: Change into the repository directory\n\nAfter locating or cloning the repository, `cd` into the repository directory before running any git commands:\n\n```bash\ncd {repo_path}\n```\n\n### Step 3: Ensure correct branch\n\nFirst, detect the default branch:\n\n```bash\n# Detect the default branch\ndefault_branch=$(git symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|^origin\u002F||')\nif [ -z \"$default_branch\" ]; then\n  default_branch=\"main\"\nfi\n```\n\nThen check out the default branch and pull latest changes:\n\n```bash\ngit checkout $default_branch\ngit pull --ff-only\n```\n\nCreate the fix branch:\n\n```bash\ngit checkout -b fix\u002Fissue-{number}\n```\n\n---\n\n## Phase 4: Analyze the Issue\n\nSystematically locate the problem in the codebase.\n\n### 4.1 Keyword Search\n\nUse the error messages, file paths, and function names from the issue to search:\n\n- Use `grep_code` to search for error strings, function names, or variable names mentioned in the issue.\n- Use `search_codebase` for semantic searches when the issue describes behavior rather than specific code.\n- Use `search_file` to find files by name if the issue mentions specific filenames.\n\n### 4.2 Understand the Context\n\nOnce you find candidate files:\n\n1. Read the relevant files to understand the current implementation.\n2. Trace the code path that leads to the reported bug.\n3. Check related tests to understand expected behavior.\n4. Review recent git history for the affected files if useful:\n   ```bash\n   git log --oneline -10 -- {file_path}\n   ```\n\n### 4.3 Root Cause Analysis\n\nBefore writing any code, clearly state:\n\n1. **Root cause:** Why the bug occurs.\n2. **Affected code:** Which file(s) and function(s) need changes.\n3. **Fix approach:** What the minimal change should be.\n\n---\n\n## Phase 5: Implement the Fix\n\nApply the minimal code change to resolve the issue.\n\n### Guidelines\n\n- **Minimal diff:** Change only what is necessary to fix the issue. Do not refactor unrelated code.\n- **Consistency:** Follow the existing code style, naming conventions, and patterns in the project.\n- **No new dependencies** unless absolutely required and justified.\n- Use the `search_replace` tool to make precise edits.\n\n### If Multiple Files Need Changes\n\n1. Plan the full set of changes before starting.\n2. Apply changes one file at a time.\n3. After each file change, verify there are no syntax errors using `get_problems`.\n\n---\n\n## Phase 6: Verify the Fix\n\nValidate that the fix works and doesn't break anything.\n\n### 6.1 Detect Project Type and Test Runner\n\nLook for common indicators:\n\n| File | Likely runner |\n|---|---|\n| `package.json` | `npm test` or `npx jest` or `npx vitest` |\n| `Cargo.toml` | `cargo test` |\n| `go.mod` | `go test .\u002F...` |\n| `pyproject.toml` \u002F `setup.py` | `pytest` |\n| `Makefile` | `make test` |\n| `pom.xml` | `mvn test` |\n| `build.gradle` | `.\u002Fgradlew test` |\n\n### 6.2 Run Tests\n\n```bash\n# Run the full test suite or scoped tests related to the changed files\n{test_command}\n```\n\n- If tests **pass**, proceed to Phase 7.\n- If tests **fail**, analyze the failure, adjust the fix, and re-run.\n\n### 6.3 Lint \u002F Format Check (if available)\n\nCheck if the project has lint or format tools configured, and run them:\n\n```bash\n# Examples\nnpm run lint 2>\u002Fdev\u002Fnull\ncargo clippy 2>\u002Fdev\u002Fnull\ngo vet .\u002F... 2>\u002Fdev\u002Fnull\n```\n\nFix any lint issues introduced by your changes.\n\n---\n\n## Phase 7: Present Changes & Get Confirmation\n\nPresent the fix to the user and wait for explicit approval before proceeding.\n\n### 7.1 Show Fix Summary\n\n```\n## Fix Summary for {owner}\u002F{repo}#{number}\n\n**Issue:** {issue_title}\n**Root Cause:** {brief explanation}\n**Changes:**\n- `{file_path_1}`: {what was changed and why}\n- `{file_path_2}`: {what was changed and why}\n```\n\n### 7.2 Show Diff\n\nDisplay the actual code changes so the user can review them:\n\n```bash\ngit diff\n```\n\nHighlight the key modifications and explain their impact.\n\n### 7.3 Wait for User Confirmation\n\nAsk the user:\n> Do you want to adopt these changes? If anything needs adjustment, let me know.\n\n- If the user **approves**, proceed to Phase 8.\n- If the user **requests changes**, revise the fix (return to Phase 5) and re-present.\n\n---\n\n## Phase 8: Submit Pull Request (User-Approved)\n\nOnly execute this phase after the user has confirmed the changes in Phase 7.\n\nFirst, ask the user:\n> Would you like me to automatically commit and submit a PR to the repository?\n\n- If the user **declines**, show the suggested commit message and `gh pr create` command for manual execution (see Fallback below).\n- If the user **agrees**, execute Steps 1–4 automatically.\n\n### Step 1: Stage and Commit\n\n```bash\ngit add -A\ngit commit -m \"fix: {short description} (#{number})\n\n{Detailed explanation of what was wrong and how this commit fixes it.}\n\nCloses #{number}\"\n```\n\n### Step 2: Check Push Permission & Handle Fork\n\nAttempt to push to the origin repository:\n\n```bash\ngit push origin fix\u002Fissue-{number}\n```\n\n- If the push **succeeds**, continue to Step 3 with `--head fix\u002Fissue-{number}`.\n- If the push **fails** (permission denied \u002F 403):\n  1. Fork the repository:\n     ```bash\n     gh repo fork {owner}\u002F{repo} --clone=false\n     ```\n  2. Detect your GitHub username:\n     ```bash\n     gh api user --jq '.login'\n     ```\n  3. Add fork as a remote:\n     ```bash\n     git remote add fork https:\u002F\u002Fgithub.com\u002F{your_username}\u002F{repo}.git\n     ```\n  4. Push to the fork:\n     ```bash\n     git push fork fix\u002Fissue-{number}\n     ```\n  5. Continue to Step 3 with `--head {your_username}:fix\u002Fissue-{number}`.\n\n### Step 3: Create Pull Request\n\n```bash\ngh pr create \\\n  --repo {owner}\u002F{repo} \\\n  --title \"fix: {short description}\" \\\n  --body \"## Summary\n\nFixes #{number}.\n\n### Problem\n{Brief problem description}\n\n### Solution\n{Brief solution description}\n\n### Changes\n- {change 1}\n- {change 2}\n\n### Testing\n- [x] Existing tests pass\n- [x] {Any additional verification performed}\" \\\n  --base {default_branch} \\\n  --head {head_ref}\n```\n\n> `{head_ref}` is `fix\u002Fissue-{number}` for direct push or `{your_username}:fix\u002Fissue-{number}` for fork push.\n\n### Step 4: Verify & Report\n\n- Capture the PR URL from the `gh pr create` output.\n- Report to the user:\n  > ✅ PR created successfully: {PR_URL}\n  > Please review the PR page for any CI checks or reviewer feedback.\n- If creation **fails**, show the full error and provide the manual command as a fallback.\n\n### Fallback: Manual Instructions\n\nIf the user declines auto-submission or any step fails, present:\n\n1. **Suggested commit message:**\n   ```\n   fix: {short description} (#{number})\n\n   {Detailed explanation}\n\n   Closes #{number}\n   ```\n2. **PR creation command:**\n   ```bash\n   gh pr create \\\n     --title \"fix: {short description}\" \\\n     --body \"...\" \\\n     --base {default_branch}\n   ```\n3. **Recommend next steps:**\n   - Review the diff: `git diff {default_branch}`\n   - Commit and push the changes\n   - Create the PR and verify CI passes\n\n---\n\n## Error Handling\n\nHandle these common failure scenarios gracefully:\n\n| Scenario | Action |\n|---|---|\n| `gh` CLI not installed | Fall back to `git clone` and `fetch_content`. Suggest installing gh: `brew install gh` or see https:\u002F\u002Fcli.github.com |\n| `gh auth` not configured | Prompt user to run `gh auth login` and retry |\n| Repository is private \u002F 403 | Inform the user that authentication is required and guide them to authenticate |\n| Issue not found \u002F 404 | Double-check the URL and ask the user to verify |\n| No write access to `\u002Ftmp` | Clone to the workspace directory instead |\n| Tests fail after fix | Analyze failure output, revise the fix, and re-verify |\n| Cannot determine root cause | Present findings so far and ask the user for guidance |\n| Large \u002F complex issue | Break the issue into sub-tasks, fix the most critical part first, and note remaining work |\n| `git push` permission denied | Auto-fork the repository and push to fork |\n| `gh pr create` fails | Show error details and provide manual command |\n| User's `gh` not authenticated | Prompt user to run `gh auth login` first |\n| Branch already exists on remote | Ask user whether to force-push or create a new branch name |\n| PR already exists for this branch | Show existing PR URL and ask whether to update |\n\n---\n\n## External Endpoints\n\nThis skill interacts with the following external services:\n\n| Endpoint | Purpose | Data Sent |\n|---|---|---|\n| `github.com` | Clone repositories, fetch issue details, push branches, create PRs | Git operations, branch names, PR metadata |\n| GitHub API (via `gh` CLI) | Read issues\u002Fcomments, create PRs, fork repos, check auth | Issue number, repo owner\u002Fname, PR title\u002Fbody |\n\nNo other external services are contacted. All code analysis and modification happens locally.\n\n---\n\n## Security and Privacy\n\n- **Local operations**: All code reading, analysis, and modification happens on your local machine.\n- **Data sent externally**: Only standard Git and GitHub API operations (clone, push, PR creation) send data to GitHub. No code is sent to third-party services.\n- **Authentication**: Uses your existing `gh` CLI authentication. No additional credentials are stored or transmitted.\n- **No telemetry**: This skill does not collect or transmit any usage data.\n\n---\n\n## Model Invocation\n\nThis skill is designed for autonomous execution within an AI coding assistant. When triggered, the agent will:\n\n1. Parse the GitHub issue URL from user input\n2. Fetch issue details via `gh` CLI or web scraping\n3. Clone or locate the repository locally\n4. Analyze the codebase to identify the root cause\n5. Implement a minimal fix\n6. Run tests and verification\n7. Present changes for user review\n8. Submit a PR only after explicit user approval\n\nSteps 7 and 8 require explicit user confirmation before proceeding. The agent will not push code or create PRs without user consent.\n\n---\n\n## Trust Statement\n\nBy using this skill, you authorize the agent to:\n- Read GitHub issue content from public or authenticated-accessible repositories\n- Clone repositories to your local machine\n- Make code modifications in a dedicated branch\n- Push changes and create pull requests **only with your explicit approval**\n\nAll Git operations use your existing `gh` CLI credentials. Only install this skill if you trust the repositories you intend to use it with.\n","# git-mender — Agent Skill\n\nYou are an autonomous agent that reads a GitHub issue, understands the problem, locates the relevant code, implements a fix, and prepares everything for review. Follow the phases below **in order**, using the checklist to track progress.\n\n---\n\n## Progress Checklist\n\nUse this checklist to track your progress through the workflow:\n\n- [ ] Phase 1: Parse Issue URL\n- [ ] Phase 2: Fetch Issue Details\n- [ ] Phase 3: Clone or Locate Repository\n- [ ] Phase 4: Analyze the Issue\n- [ ] Phase 5: Implement the Fix\n- [ ] Phase 6: Verify the Fix\n- [ ] Phase 7: Present Changes & Get Confirmation\n- [ ] Phase 8: Submit Pull Request (User-Approved)\n\n---\n\n## Phase 1: Parse Issue URL\n\nExtract the GitHub issue URL from the user's input and parse the components.\n\n**Expected URL format:** `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}`\n\n1. Scan the user message for a URL matching the pattern above.\n2. Extract three values:\n   - `owner` — the GitHub organization or user\n   - `repo` — the repository name\n   - `number` — the issue number\n3. If no valid URL is found, ask the user to provide a valid GitHub issue URL.\n4. Confirm the parsed values before proceeding:\n   > Parsed issue: **{owner}\u002F{repo}#{number}**\n\n---\n\n## Phase 2: Fetch Issue Details\n\nRetrieve the full issue content including title, body, labels, and comments.\n\n### Strategy A: Use `gh` CLI (preferred)\n\nRun in the terminal:\n\n```bash\ngh issue view {number} --repo {owner}\u002F{repo} --comments\n```\n\nIf the command succeeds, extract from the output:\n- **Title**\n- **Body \u002F Description**\n- **Labels**\n- **Comments** (may contain important context, reproductions, or workarounds)\n\n### Strategy B: Fallback to `fetch_content`\n\nIf `gh` is not installed or the command fails:\n\n1. Use the `fetch_content` tool with the issue URL: `https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}\u002Fissues\u002F{number}`\n2. Parse the fetched page content to extract:\n   - Issue title and body\n   - Any referenced file paths, error messages, or stack traces\n   - Comments from maintainers or the reporter\n\n### Extract Key Information\n\nFrom the issue content, identify and note:\n\n| Field | Description |\n|---|---|\n| **Problem summary** | One-sentence description of the bug or feature gap |\n| **Reproduction steps** | How to trigger the issue |\n| **Expected behavior** | What should happen |\n| **Actual behavior** | What actually happens |\n| **Error messages** | Stack traces, log output, error codes |\n| **File path hints** | Any files, modules, or functions mentioned |\n| **Related issues\u002FPRs** | Cross-references that provide context |\n\n---\n\n## Phase 3: Clone or Locate Repository\n\nEnsure you have local access to the repository source code.\n\n### Step 1: Check current workspace\n\n```bash\ngit remote -v 2>\u002Fdev\u002Fnull\n```\n\n- If the output contains `github.com\u002F{owner}\u002F{repo}` (or `github.com:{owner}\u002F{repo}`), you are already in the correct repo. Skip to Step 3.\n\n### Step 2: Clone if needed\n\nCheck if the repo exists locally in a common location:\n\n```bash\nls -d ~\u002FDesktop\u002F{repo} ~\u002Fprojects\u002F{repo} ~\u002Frepos\u002F{repo} \u002Ftmp\u002F{repo} 2>\u002Fdev\u002Fnull\n```\n\nIf not found, clone it:\n\n```bash\ngh repo clone {owner}\u002F{repo} \u002Ftmp\u002F{repo}\n```\n\nIf `gh` is not available:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F{owner}\u002F{repo}.git \u002Ftmp\u002F{repo}\n```\n\nThen inform the user about the clone location.\n\n### Step 2.5: Change into the repository directory\n\nAfter locating or cloning the repository, `cd` into the repository directory before running any git commands:\n\n```bash\ncd {repo_path}\n```\n\n### Step 3: Ensure correct branch\n\nFirst, detect the default branch:\n\n```bash\n# Detect the default branch\ndefault_branch=$(git symbolic-ref --short refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's|^origin\u002F||')\nif [ -z \"$default_branch\" ]; then\n  default_branch=\"main\"\nfi\n```\n\nThen check out the default branch and pull latest changes:\n\n```bash\ngit checkout $default_branch\ngit pull --ff-only\n```\n\nCreate the fix branch:\n\n```bash\ngit checkout -b fix\u002Fissue-{number}\n```\n\n---\n\n## Phase 4: Analyze the Issue\n\nSystematically locate the problem in the codebase.\n\n### 4.1 Keyword Search\n\nUse the error messages, file paths, and function names from the issue to search:\n\n- Use `grep_code` to search for error strings, function names, or variable names mentioned in the issue.\n- Use `search_codebase` for semantic searches when the issue describes behavior rather than specific code.\n- Use `search_file` to find files by name if the issue mentions specific filenames.\n\n### 4.2 Understand the Context\n\nOnce you find candidate files:\n\n1. Read the relevant files to understand the current implementation.\n2. Trace the code path that leads to the reported bug.\n3. Check related tests to understand expected behavior.\n4. Review recent git history for the affected files if useful:\n   ```bash\n   git log --oneline -10 -- {file_path}\n   ```\n\n### 4.3 Root Cause Analysis\n\nBefore writing any code, clearly state:\n\n1. **Root cause:** Why the bug occurs.\n2. **Affected code:** Which file(s) and function(s) need changes.\n3. **Fix approach:** What the minimal change should be.\n\n---\n\n## Phase 5: Implement the Fix\n\nApply the minimal code change to resolve the issue.\n\n### Guidelines\n\n- **Minimal diff:** Change only what is necessary to fix the issue. Do not refactor unrelated code.\n- **Consistency:** Follow the existing code style, naming conventions, and patterns in the project.\n- **No new dependencies** unless absolutely required and justified.\n- Use the `search_replace` tool to make precise edits.\n\n### If Multiple Files Need Changes\n\n1. Plan the full set of changes before starting.\n2. Apply changes one file at a time.\n3. After each file change, verify there are no syntax errors using `get_problems`.\n\n---\n\n## Phase 6: Verify the Fix\n\nValidate that the fix works and doesn't break anything.\n\n### 6.1 Detect Project Type and Test Runner\n\nLook for common indicators:\n\n| File | Likely runner |\n|---|---|\n| `package.json` | `npm test` or `npx jest` or `npx vitest` |\n| `Cargo.toml` | `cargo test` |\n| `go.mod` | `go test .\u002F...` |\n| `pyproject.toml` \u002F `setup.py` | `pytest` |\n| `Makefile` | `make test` |\n| `pom.xml` | `mvn test` |\n| `build.gradle` | `.\u002Fgradlew test` |\n\n### 6.2 Run Tests\n\n```bash\n# Run the full test suite or scoped tests related to the changed files\n{test_command}\n```\n\n- If tests **pass**, proceed to Phase 7.\n- If tests **fail**, analyze the failure, adjust the fix, and re-run.\n\n### 6.3 Lint \u002F Format Check (if available)\n\nCheck if the project has lint or format tools configured, and run them:\n\n```bash\n# Examples\nnpm run lint 2>\u002Fdev\u002Fnull\ncargo clippy 2>\u002Fdev\u002Fnull\ngo vet .\u002F... 2>\u002Fdev\u002Fnull\n```\n\nFix any lint issues introduced by your changes.\n\n---\n\n## Phase 7: Present Changes & Get Confirmation\n\nPresent the fix to the user and wait for explicit approval before proceeding.\n\n### 7.1 Show Fix Summary\n\n```\n## Fix Summary for {owner}\u002F{repo}#{number}\n\n**Issue:** {issue_title}\n**Root Cause:** {brief explanation}\n**Changes:**\n- `{file_path_1}`: {what was changed and why}\n- `{file_path_2}`: {what was changed and why}\n```\n\n### 7.2 Show Diff\n\nDisplay the actual code changes so the user can review them:\n\n```bash\ngit diff\n```\n\nHighlight the key modifications and explain their impact.\n\n### 7.3 Wait for User Confirmation\n\nAsk the user:\n> Do you want to adopt these changes? If anything needs adjustment, let me know.\n\n- If the user **approves**, proceed to Phase 8.\n- If the user **requests changes**, revise the fix (return to Phase 5) and re-present.\n\n---\n\n## Phase 8: Submit Pull Request (User-Approved)\n\nOnly execute this phase after the user has confirmed the changes in Phase 7.\n\nFirst, ask the user:\n> Would you like me to automatically commit and submit a PR to the repository?\n\n- If the user **declines**, show the suggested commit message and `gh pr create` command for manual execution (see Fallback below).\n- If the user **agrees**, execute Steps 1–4 automatically.\n\n### Step 1: Stage and Commit\n\n```bash\ngit add -A\ngit commit -m \"fix: {short description} (#{number})\n\n{Detailed explanation of what was wrong and how this commit fixes it.}\n\nCloses #{number}\"\n```\n\n### Step 2: Check Push Permission & Handle Fork\n\nAttempt to push to the origin repository:\n\n```bash\ngit push origin fix\u002Fissue-{number}\n```\n\n- If the push **succeeds**, continue to Step 3 with `--head fix\u002Fissue-{number}`.\n- If the push **fails** (permission denied \u002F 403):\n  1. Fork the repository:\n     ```bash\n     gh repo fork {owner}\u002F{repo} --clone=false\n     ```\n  2. Detect your GitHub username:\n     ```bash\n     gh api user --jq '.login'\n     ```\n  3. Add fork as a remote:\n     ```bash\n     git remote add fork https:\u002F\u002Fgithub.com\u002F{your_username}\u002F{repo}.git\n     ```\n  4. Push to the fork:\n     ```bash\n     git push fork fix\u002Fissue-{number}\n     ```\n  5. Continue to Step 3 with `--head {your_username}:fix\u002Fissue-{number}`.\n\n### Step 3: Create Pull Request\n\n```bash\ngh pr create \\\n  --repo {owner}\u002F{repo} \\\n  --title \"fix: {short description}\" \\\n  --body \"## Summary\n\nFixes #{number}.\n\n### Problem\n{Brief problem description}\n\n### Solution\n{Brief solution description}\n\n### Changes\n- {change 1}\n- {change 2}\n\n### Testing\n- [x] Existing tests pass\n- [x] {Any additional verification performed}\" \\\n  --base {default_branch} \\\n  --head {head_ref}\n```\n\n> `{head_ref}` is `fix\u002Fissue-{number}` for direct push or `{your_username}:fix\u002Fissue-{number}` for fork push.\n\n### Step 4: Verify & Report\n\n- Capture the PR URL from the `gh pr create` output.\n- Report to the user:\n  > ✅ PR created successfully: {PR_URL}\n  > Please review the PR page for any CI checks or reviewer feedback.\n- If creation **fails**, show the full error and provide the manual command as a fallback.\n\n### Fallback: Manual Instructions\n\nIf the user declines auto-submission or any step fails, present:\n\n1. **Suggested commit message:**\n   ```\n   fix: {short description} (#{number})\n\n   {Detailed explanation}\n\n   Closes #{number}\n   ```\n2. **PR creation command:**\n   ```bash\n   gh pr create \\\n     --title \"fix: {short description}\" \\\n     --body \"...\" \\\n     --base {default_branch}\n   ```\n3. **Recommend next steps:**\n   - Review the diff: `git diff {default_branch}`\n   - Commit and push the changes\n   - Create the PR and verify CI passes\n\n---\n\n## Error Handling\n\nHandle these common failure scenarios gracefully:\n\n| Scenario | Action |\n|---|---|\n| `gh` CLI not installed | Fall back to `git clone` and `fetch_content`. Suggest installing gh: `brew install gh` or see https:\u002F\u002Fcli.github.com |\n| `gh auth` not configured | Prompt user to run `gh auth login` and retry |\n| Repository is private \u002F 403 | Inform the user that authentication is required and guide them to authenticate |\n| Issue not found \u002F 404 | Double-check the URL and ask the user to verify |\n| No write access to `\u002Ftmp` | Clone to the workspace directory instead |\n| Tests fail after fix | Analyze failure output, revise the fix, and re-verify |\n| Cannot determine root cause | Present findings so far and ask the user for guidance |\n| Large \u002F complex issue | Break the issue into sub-tasks, fix the most critical part first, and note remaining work |\n| `git push` permission denied | Auto-fork the repository and push to fork |\n| `gh pr create` fails | Show error details and provide manual command |\n| User's `gh` not authenticated | Prompt user to run `gh auth login` first |\n| Branch already exists on remote | Ask user whether to force-push or create a new branch name |\n| PR already exists for this branch | Show existing PR URL and ask whether to update |\n\n---\n\n## External Endpoints\n\nThis skill interacts with the following external services:\n\n| Endpoint | Purpose | Data Sent |\n|---|---|---|\n| `github.com` | Clone repositories, fetch issue details, push branches, create PRs | Git operations, branch names, PR metadata |\n| GitHub API (via `gh` CLI) | Read issues\u002Fcomments, create PRs, fork repos, check auth | Issue number, repo owner\u002Fname, PR title\u002Fbody |\n\nNo other external services are contacted. All code analysis and modification happens locally.\n\n---\n\n## Security and Privacy\n\n- **Local operations**: All code reading, analysis, and modification happens on your local machine.\n- **Data sent externally**: Only standard Git and GitHub API operations (clone, push, PR creation) send data to GitHub. No code is sent to third-party services.\n- **Authentication**: Uses your existing `gh` CLI authentication. No additional credentials are stored or transmitted.\n- **No telemetry**: This skill does not collect or transmit any usage data.\n\n---\n\n## Model Invocation\n\nThis skill is designed for autonomous execution within an AI coding assistant. When triggered, the agent will:\n\n1. Parse the GitHub issue URL from user input\n2. Fetch issue details via `gh` CLI or web scraping\n3. Clone or locate the repository locally\n4. Analyze the codebase to identify the root cause\n5. Implement a minimal fix\n6. Run tests and verification\n7. Present changes for user review\n8. Submit a PR only after explicit user approval\n\nSteps 7 and 8 require explicit user confirmation before proceeding. The agent will not push code or create PRs without user consent.\n\n---\n\n## Trust Statement\n\nBy using this skill, you authorize the agent to:\n- Read GitHub issue content from public or authenticated-accessible repositories\n- Clone repositories to your local machine\n- Make code modifications in a dedicated branch\n- Push changes and create pull requests **only with your explicit approval**\n\nAll Git operations use your existing `gh` CLI credentials. Only install this skill if you trust the repositories you intend to use it with.\n",{"name":5,"tags":24,"files":30,"author":32,"version":33,"homepage":34,"metadata":35,"requires":38,"description":7},[25,26,27,28,29],"git","github","automation","issue-fix","pull-request",[31],"scripts\u002Finstall.sh","4yDX3906","1.1.0","https:\u002F\u002Fgithub.com\u002F4yDX3906\u002Fgit-mender",{"clawdbot":36},{"emoji":37},"🔧",{"env":39},[],"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fg\u002Fgit-mender",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill git-mender",{"tool":55,"command":56},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill git-mender",{"tool":58,"command":59},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill git-mender","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fg\u002Fgit-mender\u002FSKILL.md",true,[],[64,71,78,85,92,99],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]