Skip to content

feat(skills): introduce a2ui-remediate-problem skill and embed copyable prompts in compliance reports - #2399

Merged
gspencergoog merged 16 commits into
a2ui-project:mainfrom
gspencergoog:remediate_problem_skill
Aug 27, 2026
Merged

gspencergoog merged 16 commits into
a2ui-project:mainfrom
gspencergoog:remediate_problem_skill

Conversation

@gspencergoog

@gspencergoog gspencergoog commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Establishes .agents/skills/a2ui-remediate-problem/ as a dedicated first-class agent skill for resolving compliance report recommendations, updates create_compliance_report.py to automatically inject copyable prompt code blocks (with the live issue URL) directly under each recommendation item, and removes the headless GitHub Actions ChatOps /fix workflow and runner scripts.

Changes

  • New Standalone Skill (a2ui-remediate-problem):
    • Added .agents/skills/a2ui-remediate-problem/SKILL.md with complete trigger and workflow instructions (context inspection, minimal targeted fix, pyink formatting/tests, interactive worktree/branch selection via ask_question, developer-signed draft PR submission, issue notification).
    • Added .agents/skills/a2ui-remediate-problem/references/pr-description-template.md defining standard PR body format and local checkout commands (gh pr checkout).
    • Added .agents/skills/a2ui-remediate-problem/scripts/extract_recommendation.py with parsing logic and unit test suite test_extract_recommendation.py.
    • Avoided # symbols before recommendation indices to prevent unintentional GitHub issue links.
  • Automatic Prompt Block Injection & Audit Skill:
    • Updated create_compliance_report.py to post the compliance issue, capture the newly created issue URL, automatically format & inject the copyable prompt block (Read the A2UI issue at <issue_url> and use the a2ui-remediate-problem skill...) with a descriptive label under each recommendation, and update the issue body via gh issue edit.
    • Simplified .agents/skills/a2ui-audit/SKILL.md so the auditing LLM only needs to produce standard numbered recommendation lists.
    • Added comprehensive unit tests in test_create_compliance_report.py verifying injection, idempotency, and the create+edit flow.
  • Removed Headless ChatOps Infrastructure:
    • Removed .github/workflows/remediate_chatops.yml and obsolete runner/parsing scripts (run_remediation.py, parse_remediation_command.py, and their unit tests).

Impact & Risks

  • Impact: Eliminates CLA bot blocking on automated remediation PRs by generating developer-signed pull requests through local agent invocation with zero chicken-and-egg friction on issue URLs.
  • Risks: None. All test suites passing.

Testing

  • Unit tests:
    • uv run python -m unittest discover -s .agents/skills/a2ui-remediate-problem/scripts -p "test_*.py" (4/4 passed)
    • uv run python -m unittest discover -s .agents/skills/a2ui-audit/scripts -p "test_*.py" (8/8 passed)
    • uv run python -m unittest discover -s .github/scripts/tests -p "test_*.py" (7/7 passed)
    • uv run python -m unittest discover -s blueprints/skills/a2ui-blueprint-compliance/scripts -p "test_*.py" (6/6 passed)
  • Code formatting verified with uv run pyink --check.

gemini-code-assist[bot]

This comment was marked as resolved.

@gspencergoog
gspencergoog force-pushed the remediate_problem_skill branch from 944e78a to 5c3f9f4 Compare August 25, 2026 23:53
@gspencergoog
gspencergoog enabled auto-merge (squash) August 26, 2026 15:19

@josemontespg josemontespg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat! I like this approach. Copy pasting a prompt is easier and simpler than having an automated e2e issue resolver 👏

@gspencergoog
gspencergoog merged commit 5749113 into a2ui-project:main Aug 27, 2026
32 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in A2UI Aug 27, 2026
@gspencergoog
gspencergoog deleted the remediate_problem_skill branch August 31, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants