a2ui-remediate-problem
БесплатноЗапускает вложенные скриптыНе проверенRemediates a specific recommendation from an A2UI compliance report issue, or resolves any general GitHub issue, by inspecting context, implementing minimal…
от a2ui-project★ 19 155 звёзд на GitHubОб этом скилле
A2UI Issue & Compliance Remediation Skill
This skill guides an AI coding agent or engineer on how to remediate a specific recommendation from an A2UI compliance report or resolve any general repository issue and submit a clean, developer-signed Pull Request.
Workflow
Follow these steps to remediate an issue:
Step 1: Identify & Read Issue Context
Determine the Target Issue:
- If the user provided an issue number or URL in their request, extract
ISSUE_NUMBER. - If no issue was specified, ask the user (prefer using the
ask_questiontool): "Which GitHub issue would you like to remediate? (Please provide the issue number or URL, e.g. 2391)"
- If the user provided an issue number or URL in their request, extract
Retrieve Context & Determine Issue Type:
- Run the helper script to inspect the issue:
python3 .agents/skills/a2ui-remediate-problem/scripts/extract_recommendation.py "${ISSUE_NUMBER}" [RECOMMENDATION_INDEX] --json - Scenario A: Compliance Report with Multiple Recommendations:
- If a recommendation index was provided (e.g.
2), the script extracts that item's details and priority. - If no recommendation index was specified, the script outputs all available recommendations in the issue. Ask the user (via
ask_question) which recommendation item they would like to address. - Review the surrounding audit sections in the report (such as
## Codebase Blueprint Compliance Audit,## Code & Documentation Sync Audit, or## Test Quality & Assertions Audit) for detailed findings.
- If a recommendation index was provided (e.g.
- Scenario B: General Issue (Bug Report, Feature Request, or Non-Audit Issue):
- If the issue is not a compliance report, the script returns the issue title and body as the problem statement to remediate.
- Run the helper script to inspect the issue:
Step 2: Formulate & Apply Remediation
- Identify the files and codebases referenced by the issue or recommendation.
- Carefully inspect the current source code, documentation, or blueprint files.
- Implement the minimal necessary change to remediate the reported problem.
- CRITICAL RULE: Do not make unrelated changes, refactorings, or formatting edits outside the scope of the target issue or recommendation.
- Format modified files and ensure code style compliance:
./scripts/fix_format.sh - If modifying tests or scripts, execute local tests across the affected packages to ensure no regressions were introduced.
Step 3: Choose Destination & Create Workspace / Branch
- Check with the user on where they would like the changes created and what branch name to use (prefer using the
ask_questiontool or equivalent interactive tool if available):- Recommended branch name:
remediation/issue-${ISSUE_NUMBER}-${RECOMMENDATION_INDEX}(orremediation/issue-${ISSUE_NUMBER}for general issues). - Let the user choose whether to create a separate git worktree (using their preferred local worktree conventions), checkout a new branch in the current directory, or apply changes in place.
- Recommended branch name:
- Note the chosen branch name in
BRANCH_NAME. - Ensure the working tree is clean and up to date with
upstream/main.
Step 4: Commit Changes
- Stage all modified files relevant to the remediation:
git add -u - Create a conventional commit referencing the issue number:
- For compliance recommendations:
git commit -m "fix(compliance): remediate issue #${ISSUE_NUMBER} recommendation ${RECOMMENDATION_INDEX}" - For general issues:
git commit -m "fix(scope): remediate issue #${ISSUE_NUMBER} - ${CONCISE_SUMMARY}"
- For compliance recommendations:
Step 5: Create Pull Request & Notify Issue (Optional / Upon Request)
- Check with the user whether they would like to submit a Pull Request (prefer using the
ask_questiontool or equivalent interactive tool if available):- Recommended default: Submit as a Draft PR (
--draft) so CI checks run while allowing final review before requesting maintainer approvals. - Alternatively, submit directly as ready for review, or skip PR creation if the user wants to inspect changes locally first.
- Recommended default: Submit as a Draft PR (
- If submitting a PR, generate a clear, descriptive PR title following Conventional Commits that concisely explains the specific fix being made (e.g.
fix(swift): create missing top-level README in swift/core). Do NOT include generic issue or recommendation numbers in the PR title. - Draft the PR description into a temporary file
pr_description.mdfollowing pr-description-template.md. - Push the branch to
origin(or user's fork) and create the Pull Request againstmain:
_(Note: Omitgit push -u origin "${BRANCH_NAME}" PR_URL=$(gh pr create --draft \ --repo a2ui-project/a2ui \ --head "${BRANCH_NAME}" \ --base main \ --title "${PR_TITLE}" \ --body-file pr_description.md)--draftif the user prefers an immediate ready-for-review PR. If pushing from a
Установить a2ui-remediate-problem в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл a2ui-remediate-problem?
Remediates a specific recommendation from an A2UI compliance report issue, or resolves any general GitHub issue, by inspecting context, implementing minimal targeted fixes, verifying tests, creating a branch, and opening a developer-signed Pull Request. Use when asked to fix or remediate an A2UI compliance audit finding, recommendation, or repository issue.
Как установить скилл a2ui-remediate-problem?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл a2ui-remediate-problem запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic