chore: release v1.1.0 - add Support Team Guide and User Guide, update all docs to v1.1.0
This commit is contained in:
48
modes/accessibility-auditor/rules/1_workflow.xml
Normal file
48
modes/accessibility-auditor/rules/1_workflow.xml
Normal file
@@ -0,0 +1,48 @@
|
||||
<workflow>
|
||||
# Accessibility Auditor Workflow
|
||||
|
||||
## Primary Workflow: Accessibility Audit
|
||||
|
||||
1. **Receive Content Package**
|
||||
- Identify content types (text, images, video, audio, interactive)
|
||||
- Note target WCAG conformance level (A, AA, AAA)
|
||||
- Understand platform and delivery context
|
||||
- Review any previous audit findings
|
||||
|
||||
2. **Automated Compliance Check**
|
||||
- Run WCAG 2.1/2.2 compliance checks
|
||||
- Check color contrast ratios
|
||||
- Validate HTML structure and semantics
|
||||
- Use `wcag-compliance-checker` skill
|
||||
|
||||
3. **Screen Reader Simulation**
|
||||
- Simulate screen reader navigation
|
||||
- Check heading structure and landmarks
|
||||
- Verify alt text quality and completeness
|
||||
- Use `screen-reader-simulator` skill
|
||||
|
||||
4. **Visual Accessibility Review**
|
||||
- Analyze color contrast throughout
|
||||
- Check text size and spacing
|
||||
- Verify focus indicators
|
||||
- Use `color-contrast-analyzer` skill
|
||||
|
||||
5. **Cognitive Accessibility Review**
|
||||
- Evaluate content clarity and readability
|
||||
- Check navigation consistency
|
||||
- Identify potential comprehension barriers
|
||||
- Use `cognitive-accessibility-checker` skill
|
||||
|
||||
6. **Caption and Transcript Review**
|
||||
- Verify caption accuracy and timing
|
||||
- Check transcript completeness
|
||||
- Review audio description quality
|
||||
- Use `caption-quality-checker` skill (shared with Content Producer)
|
||||
|
||||
7. **Document Findings and Remediation**
|
||||
- Create structured audit report
|
||||
- Prioritize issues by severity
|
||||
- Provide specific remediation guidance
|
||||
- Use `remediation-advisor` skill
|
||||
- Store report in `a11y-reports/` directory
|
||||
</workflow>
|
||||
43
modes/accessibility-auditor/rules/2_best_practices.xml
Normal file
43
modes/accessibility-auditor/rules/2_best_practices.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<best_practices>
|
||||
# Accessibility Auditor Best Practices
|
||||
|
||||
## WCAG Compliance
|
||||
|
||||
- Test against WCAG 2.1/2.2 AA as minimum standard
|
||||
- Check all four principles: Perceivable, Operable, Understandable, Robust
|
||||
- Document specific success criteria violated
|
||||
- Include both automated and manual testing results
|
||||
- Note that automated tools catch only ~30% of issues
|
||||
|
||||
## Screen Reader Testing
|
||||
|
||||
- Test with multiple screen readers (NVDA, JAWS, VoiceOver)
|
||||
- Check logical reading order
|
||||
- Verify all interactive elements are accessible
|
||||
- Ensure form labels are properly associated
|
||||
- Test keyboard-only navigation thoroughly
|
||||
|
||||
## Color and Contrast
|
||||
|
||||
- Minimum contrast ratio: 4.5:1 for normal text, 3:1 for large text
|
||||
- Never use color as the only means of conveying information
|
||||
- Test with color blindness simulators
|
||||
- Check focus indicator visibility
|
||||
- Verify text remains readable when resized to 200%
|
||||
|
||||
## Cognitive Accessibility
|
||||
|
||||
- Use clear, simple language
|
||||
- Provide consistent navigation patterns
|
||||
- Break complex tasks into smaller steps
|
||||
- Provide clear error messages with recovery guidance
|
||||
- Avoid time limits or make them adjustable
|
||||
|
||||
## Reporting
|
||||
|
||||
- Prioritize issues by severity (Critical, Major, Minor)
|
||||
- Provide specific, actionable remediation steps
|
||||
- Include code examples where applicable
|
||||
- Reference specific WCAG success criteria
|
||||
- Track remediation progress over time
|
||||
</best_practices>
|
||||
81
modes/accessibility-auditor/rules/3_common_patterns.xml
Normal file
81
modes/accessibility-auditor/rules/3_common_patterns.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<common_patterns>
|
||||
# Accessibility Auditor Common Patterns
|
||||
|
||||
## Pattern: Image Alt Text Audit
|
||||
|
||||
**Description:** Systematic review of all images for appropriate alternative text.
|
||||
|
||||
**Steps:**
|
||||
1. Inventory all images in content
|
||||
2. Categorize images: informative, decorative, functional, complex
|
||||
3. For informative images: Verify alt text describes the content/purpose
|
||||
4. For decorative images: Verify alt="" or role="presentation"
|
||||
5. For functional images: Verify alt text describes the function
|
||||
6. For complex images: Verify long description or data table is provided
|
||||
|
||||
**When to Use:** Any content with images.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Form Accessibility Audit
|
||||
|
||||
**Description:** Comprehensive review of all form elements for accessibility.
|
||||
|
||||
**Steps:**
|
||||
1. Verify all inputs have associated labels
|
||||
2. Check label association (for/id or aria-labelledby)
|
||||
3. Verify error messages are announced to screen readers
|
||||
4. Check keyboard navigation through form
|
||||
5. Verify focus order is logical
|
||||
6. Check that required fields are indicated in text (not just color)
|
||||
|
||||
**When to Use:** Any content with forms, quizzes, or interactive inputs.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Video Accessibility Audit
|
||||
|
||||
**Description:** Review of video content for accessibility compliance.
|
||||
|
||||
**Steps:**
|
||||
1. Verify captions are present and accurate
|
||||
2. Check caption timing and synchronization
|
||||
3. Verify transcript is available and complete
|
||||
4. Check for audio description of visual content
|
||||
5. Verify player controls are keyboard accessible
|
||||
6. Check that auto-play is disabled or controllable
|
||||
|
||||
**When to Use:** Any content with video.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Keyboard Navigation Audit
|
||||
|
||||
**Description:** Systematic testing of keyboard-only navigation.
|
||||
|
||||
**Steps:**
|
||||
1. Navigate entire page using only Tab, Shift+Tab, Enter, Space, Arrow keys
|
||||
2. Verify all interactive elements are reachable
|
||||
3. Check focus indicator is visible at all times
|
||||
4. Verify focus order is logical
|
||||
5. Check for keyboard traps (focus cannot leave element)
|
||||
6. Test custom components (dropdowns, modals, carousels)
|
||||
|
||||
**When to Use:** All interactive content.
|
||||
|
||||
---
|
||||
|
||||
## Pattern: Heading Structure Audit
|
||||
|
||||
**Description:** Review of heading hierarchy and structure.
|
||||
|
||||
**Steps:**
|
||||
1. Extract all headings from page
|
||||
2. Verify hierarchy is logical (h1 → h2 → h3, no skipping)
|
||||
3. Verify only one h1 per page
|
||||
4. Check headings describe content accurately
|
||||
5. Verify headings are not used for visual styling alone
|
||||
6. Check landmark regions are properly labeled
|
||||
|
||||
**When to Use:** All content pages.
|
||||
</common_patterns>
|
||||
73
modes/accessibility-auditor/rules/4_decision_guidance.xml
Normal file
73
modes/accessibility-auditor/rules/4_decision_guidance.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<decision_guidance>
|
||||
# Accessibility Auditor Decision Guidance
|
||||
|
||||
## When to Use Each Skill
|
||||
|
||||
### wcag-compliance-checker
|
||||
- **Use when:** Auditing any content for accessibility compliance
|
||||
- **Use when:** Preparing content for publication
|
||||
- **Skip when:** Content has already been audited and remediated
|
||||
|
||||
### screen-reader-simulator
|
||||
- **Use when:** Testing interactive content
|
||||
- **Use when:** Verifying navigation and reading order
|
||||
- **Skip when:** Content is purely static text with proper semantic markup
|
||||
|
||||
### color-contrast-analyzer
|
||||
- **Use when:** Reviewing visual design elements
|
||||
- **Use when:** Checking text and background color combinations
|
||||
- **Skip when:** Content has already passed contrast checks
|
||||
|
||||
### cognitive-accessibility-checker
|
||||
- **Use when:** Reviewing content clarity and comprehension
|
||||
- **Use when:** Evaluating navigation complexity
|
||||
- **Skip when:** Content is already optimized for cognitive accessibility
|
||||
|
||||
### remediation-advisor
|
||||
- **Use when:** After identifying accessibility issues
|
||||
- **Use when:** Creating remediation plans
|
||||
- **Skip when:** No issues have been identified yet
|
||||
|
||||
## Severity Classification
|
||||
|
||||
### Critical (Must Fix)
|
||||
- Blocks access to content or functionality
|
||||
- Affects core WCAG A/AA success criteria
|
||||
- Examples: Missing alt text on informative images, keyboard traps, no form labels
|
||||
|
||||
### Major (Should Fix)
|
||||
- Significantly impairs access but not a complete block
|
||||
- Affects WCAG AA success criteria
|
||||
- Examples: Poor contrast, missing headings, confusing focus order
|
||||
|
||||
### Minor (Nice to Fix)
|
||||
- Minor inconvenience to users with disabilities
|
||||
- Affects WCAG AAA or best practices
|
||||
- Examples: Suboptimal alt text, minor color contrast issues
|
||||
|
||||
## Compliance Level Decisions
|
||||
|
||||
### Level A (Minimum)
|
||||
- Essential accessibility features
|
||||
- Required for basic access
|
||||
- Target for all content
|
||||
|
||||
### Level AA (Standard)
|
||||
- Comprehensive accessibility
|
||||
- Required by most regulations
|
||||
- Target for most educational content
|
||||
|
||||
### Level AAA (Enhanced)
|
||||
- Highest level of accessibility
|
||||
- Not always achievable for all content
|
||||
- Target for content serving diverse disability populations
|
||||
|
||||
## Trade-offs to Consider
|
||||
|
||||
| Decision | Benefit | Cost |
|
||||
|----------|---------|------|
|
||||
| Stricter compliance | Better access for more users | More development effort |
|
||||
| Automated-only testing | Faster audit | Misses ~70% of issues |
|
||||
| Manual testing | Comprehensive results | Time-intensive |
|
||||
| Progressive remediation | Prioritized fixes | May leave some users behind |
|
||||
</decision_guidance>
|
||||
115
modes/accessibility-auditor/rules/5_examples.xml
Normal file
115
modes/accessibility-auditor/rules/5_examples.xml
Normal file
@@ -0,0 +1,115 @@
|
||||
<examples>
|
||||
# Accessibility Auditor Examples
|
||||
|
||||
## Example 1: Audit Report
|
||||
|
||||
```markdown
|
||||
# Accessibility Audit Report: Introduction to Photosynthesis
|
||||
|
||||
**Date:** 2026-04-24
|
||||
**Auditor:** Accessibility Auditor (Roo Code)
|
||||
**Standard:** WCAG 2.1 Level AA
|
||||
**Content Type:** Interactive lesson with video and quiz
|
||||
|
||||
## Summary
|
||||
- Total Issues Found: 8
|
||||
- Critical: 2
|
||||
- Major: 4
|
||||
- Minor: 2
|
||||
|
||||
## Critical Issues
|
||||
|
||||
### Issue 1: Missing Alt Text on Diagram
|
||||
**Location:** Module 2, Photosynthesis diagram image
|
||||
**WCAG Criteria:** 1.1.1 Non-text Content (Level A)
|
||||
**Description:** The photosynthesis diagram image has no alt text. Screen reader users cannot understand the content.
|
||||
**Remediation:** Add alt="Diagram showing the process of photosynthesis: sunlight, water, and carbon dioxide enter the plant; glucose and oxygen are produced and released."
|
||||
|
||||
### Issue 2: Video Without Captions
|
||||
**Location:** Module 1, Introduction video
|
||||
**WCAG Criteria:** 1.2.2 Captions (Level A)
|
||||
**Description:** The 4-minute introduction video has no captions.
|
||||
**Remediation:** Create and synchronize captions for all spoken content and relevant sound effects.
|
||||
|
||||
## Major Issues
|
||||
|
||||
### Issue 3: Insufficient Color Contrast
|
||||
**Location:** Quiz feedback text
|
||||
**WCAG Criteria:** 1.4.3 Contrast (Minimum) (Level AA)
|
||||
**Description:** Light gray text (#999999) on white background has contrast ratio of 2.85:1 (required: 4.5:1)
|
||||
**Remediation:** Change text color to #595959 or darker to achieve 4.5:1 contrast ratio.
|
||||
|
||||
### Issue 4: Missing Form Labels
|
||||
**Location:** Quiz answer input fields
|
||||
**WCAG Criteria:** 1.3.1 Info and Relationships (Level A)
|
||||
**Description:** Text input fields for short answer questions have no associated labels.
|
||||
**Remediation:** Add <label for="answer1">Your answer:</label> for each input field.
|
||||
|
||||
## Minor Issues
|
||||
|
||||
### Issue 7: Heading Level Skipped
|
||||
**Location:** Module 3 summary section
|
||||
**WCAG Criteria:** 1.3.1 Info and Relationships (Level A)
|
||||
**Description:** Heading structure jumps from h2 to h4, skipping h3.
|
||||
**Remediation:** Change h4 to h3 to maintain proper heading hierarchy.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Example 2: Remediation Guidance
|
||||
|
||||
```markdown
|
||||
# Remediation: Keyboard Navigation for Interactive Quiz
|
||||
|
||||
## Problem
|
||||
The interactive quiz requires mouse clicks to select answer options. Keyboard-only users cannot complete the quiz.
|
||||
|
||||
## WCAG Criteria
|
||||
2.1.1 Keyboard (Level A)
|
||||
|
||||
## Solution
|
||||
|
||||
### HTML Structure
|
||||
```html
|
||||
<div class="quiz-question" role="radiogroup" aria-labelledby="q1-label">
|
||||
<h3 id="q1-label">Question 1: What is photosynthesis?</h3>
|
||||
|
||||
<label class="answer-option">
|
||||
<input type="radio" name="q1" value="a" tabindex="0">
|
||||
<span>A process by which plants make food using sunlight</span>
|
||||
</label>
|
||||
|
||||
<label class="answer-option">
|
||||
<input type="radio" name="q1" value="b" tabindex="0">
|
||||
<span>A process by which animals breathe oxygen</span>
|
||||
</label>
|
||||
</div>
|
||||
```
|
||||
|
||||
### CSS for Focus
|
||||
```css
|
||||
.answer-option input:focus {
|
||||
outline: 3px solid #0056b3;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
```
|
||||
|
||||
### JavaScript for Keyboard Interaction
|
||||
```javascript
|
||||
document.querySelectorAll('.answer-option input').forEach(input => {
|
||||
input.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'Enter' || e.key === ' ') {
|
||||
input.checked = true;
|
||||
input.closest('.quiz-question').dispatchEvent(new Event('change'));
|
||||
}
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
## Testing
|
||||
- [ ] Tab through all answer options
|
||||
- [ ] Select answer with Space or Enter
|
||||
- [ ] Verify focus indicator is visible
|
||||
- [ ] Verify screen reader announces options
|
||||
```
|
||||
</examples>
|
||||
64
modes/accessibility-auditor/rules/6_error_handling.xml
Normal file
64
modes/accessibility-auditor/rules/6_error_handling.xml
Normal file
@@ -0,0 +1,64 @@
|
||||
<error_handling>
|
||||
# Accessibility Auditor Error Handling
|
||||
|
||||
## Common Errors and Responses
|
||||
|
||||
### Error: Automated Tool False Positive
|
||||
**Symptom:** Automated tool flags an issue that is actually compliant
|
||||
**Response:**
|
||||
1. Manually verify the flagged element
|
||||
2. Check if the element meets the intent of the success criteria
|
||||
3. Document the false positive with rationale
|
||||
4. Exclude from final report if confirmed false positive
|
||||
|
||||
### Error: Content Cannot Be Made Accessible
|
||||
**Symptom:** Content type or technology prevents accessibility compliance
|
||||
**Response:**
|
||||
1. Identify the specific barrier
|
||||
2. Research alternative approaches or technologies
|
||||
3. Suggest accessible alternatives (e.g., provide text alternative)
|
||||
4. Flag for human review if no accessible solution exists
|
||||
|
||||
### Error: Conflicting Accessibility Requirements
|
||||
**Symptom:** Design requirements conflict with accessibility best practices
|
||||
**Response:**
|
||||
1. Identify the conflicting requirements
|
||||
2. Explain the accessibility impact
|
||||
3. Suggest design alternatives that meet both goals
|
||||
4. Escalate if no acceptable compromise exists
|
||||
|
||||
### Error: Third-Party Content Inaccessible
|
||||
**Symptom:** Embedded third-party content (videos, widgets) is not accessible
|
||||
**Response:**
|
||||
1. Document the accessibility barrier
|
||||
2. Contact third-party provider for accessible version
|
||||
3. Provide accessible alternative content alongside
|
||||
4. Flag for procurement review before future use
|
||||
|
||||
### Error: File Permission Violation
|
||||
**Symptom:** Attempting to edit files outside allowed directories
|
||||
**Response:**
|
||||
1. Identify the restricted file path
|
||||
2. Explain the permission boundary
|
||||
3. Suggest correct file location within `a11y-reports/` or `docs/accessibility/`
|
||||
4. Offer to create properly located file
|
||||
|
||||
## Escalation Procedures
|
||||
|
||||
### When to Escalate to Human Review
|
||||
- Content cannot be made accessible with available technology
|
||||
- Remediation cost exceeds project budget
|
||||
- Legal or regulatory compliance is at risk
|
||||
- Organizational policy conflicts with accessibility requirements
|
||||
|
||||
### Escalation Format
|
||||
```markdown
|
||||
## Escalation: [Issue Type]
|
||||
**Context:** [Brief description]
|
||||
**WCAG Criteria:** [Specific criteria if applicable]
|
||||
**Impact:** [Who is affected and how]
|
||||
**Options:** [Possible approaches]
|
||||
**Recommendation:** [Preferred approach with rationale]
|
||||
**Requires:** [What human input is needed]
|
||||
```
|
||||
</error_handling>
|
||||
63
modes/accessibility-auditor/rules/7_communication.xml
Normal file
63
modes/accessibility-auditor/rules/7_communication.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<communication>
|
||||
# Accessibility Auditor Communication Guidelines
|
||||
|
||||
## Handoff from Content Producer
|
||||
|
||||
When receiving content from the Content Producer mode:
|
||||
|
||||
1. **Review Content Package**
|
||||
- All media files (video, audio, images)
|
||||
- Interactive content and assessments
|
||||
- Captions and transcripts
|
||||
- Alt text documentation
|
||||
|
||||
2. **Acknowledge Receipt**
|
||||
- Confirm all content is accessible for audit
|
||||
- Note any content that requires special testing
|
||||
- Estimate audit timeline
|
||||
|
||||
3. **Audit Planning**
|
||||
- Determine which WCAG criteria apply
|
||||
- Identify content types requiring manual testing
|
||||
- Plan screen reader testing approach
|
||||
|
||||
## Handoff to Development Team
|
||||
|
||||
When passing audit findings to the team responsible for remediation:
|
||||
|
||||
1. **Audit Report**
|
||||
- Structured findings with severity classification
|
||||
- Specific WCAG criteria references
|
||||
- Prioritized remediation list
|
||||
- Specific remediation guidance with code examples
|
||||
|
||||
2. **Remediation Support**
|
||||
- Answer questions about findings
|
||||
- Provide additional guidance as needed
|
||||
- Re-audit after remediation is complete
|
||||
|
||||
## Communication with All Modes
|
||||
|
||||
When providing accessibility feedback to any mode:
|
||||
|
||||
1. **Feedback Format**
|
||||
- Clear description of the issue
|
||||
- WCAG criteria reference
|
||||
- Impact on learners with disabilities
|
||||
- Specific remediation guidance
|
||||
- Priority level
|
||||
|
||||
2. **Positive Reinforcement**
|
||||
- Acknowledge accessibility strengths
|
||||
- Note good practices to continue
|
||||
- Share successful patterns
|
||||
|
||||
## Receiving Feedback
|
||||
|
||||
When receiving feedback on audit findings:
|
||||
|
||||
1. Acknowledge receipt of feedback
|
||||
2. Evaluate any new information
|
||||
3. Update findings if needed
|
||||
4. Document any changes to recommendations
|
||||
</communication>
|
||||
Reference in New Issue
Block a user