Learn to use AI-powered Accelerator agents — from Agents to Hero
View the Project on GitHub devopsabcs-engineering/agentic-accelerator-workshop
| Duration | 45 minutes |
| Level | Advanced |
| Prerequisites | Lab 03, Lab 04, or Lab 05 (at least one scanning lab) |
By the end of this lab, you will be able to:
Detect a cryptographic vulnerability, apply the fix, and verify the issue is resolved.
Detect:
Ctrl+Shift+I).Type the following prompt to scan for security issues:
@security-reviewer-agent Scan sample-app/src/lib/auth.ts for cryptographic vulnerabilities
Fix:
Ask the agent to remediate the finding:
@security-reviewer-agent Fix the MD5 weak hashing in sample-app/src/lib/auth.ts. Replace with bcrypt or argon2.
bcrypt or argon2.Verify:
Re-run the security scan on the same file:
@security-reviewer-agent Scan sample-app/src/lib/auth.ts for cryptographic vulnerabilities
Confirm the MD5 finding (CWE-328) no longer appears in the results.

Detect a WCAG violation, apply the fix using the resolver agent, and verify the result.
Detect:
In Copilot Chat, run an accessibility scan:
@a11y-detector Scan sample-app/src/app/layout.tsx for WCAG 2.2 violations
The agent should identify that the <html> element is missing the lang attribute, a WCAG 3.1.1 Level A violation. This attribute tells screen readers which language the page content is in.
Fix:
Use the accessibility resolver to apply the fix:
@a11y-resolver Fix the missing lang attribute in sample-app/src/app/layout.tsx
lang="en" (or the appropriate locale) to the <html> element.Verify:
Re-run the accessibility scan:
@a11y-detector Scan sample-app/src/app/layout.tsx for WCAG 2.2 violations
Confirm the missing lang attribute finding no longer appears.

Detect missing test coverage, generate tests, and verify improved coverage.
Detect:
Run a code quality scan:
@code-quality-detector Scan sample-app/src/lib/utils.ts for code quality issues
The agent should identify that utils.ts has no corresponding test file. Lack of test coverage is a code quality risk that makes refactoring unsafe and regressions harder to catch.
Fix:
Use the test generator to create tests:
@test-generator Generate unit tests for sample-app/src/lib/utils.ts
utils.ts.Verify:
Run the test suite to confirm the new tests pass and coverage has improved:
@code-quality-detector Check test coverage for sample-app/src/lib/utils.ts
Compare the coverage before and after adding the tests. The new tests should increase line and branch coverage for utils.ts.

Stage and commit the remediation changes with a descriptive commit message.
Ctrl+Shift+G).Review the changed files. You should see modifications from the exercises above:
sample-app/src/lib/auth.ts (security fix)sample-app/src/app/layout.tsx (accessibility fix)utils.ts (code quality fix)Write a descriptive commit message that references the types of fixes applied. For example:
fix: remediate security, a11y, and coverage findings from agent scans
[!TIP] In a real project, you might split these fixes into separate commits or PRs grouped by domain (security fixes in one PR, accessibility in another). This makes reviews more focused and rollbacks more granular.
Before proceeding, verify:
Proceed to Lab 11 — Creating Your Own Custom Agent.