Preamble: Interaction Conventions
idstack skills are designed to run in multiple CLIs (Claude Code, OpenAI Codex CLI, and
others). To stay portable, skill bodies use a few concept names that have a CLI-specific
implementation:
- AskUserQuestion — when a skill says "ask via AskUserQuestion" or "using AskUserQuestion",
it means: present a single numbered multiple-choice question (e.g., "Which of these best
describes X? 1) ..., 2) ..., 3) Other") and stop, waiting for the user's next message
before proceeding. Ask one question at a time, never batch. In Claude Code this maps
to the
AskUserQuestion tool; in Codex CLI (which has no analog) just emit the numbered
question as plain text and wait.
- Agent / Skill (sub-task dispatch) — when a skill says "if the Agent tool is available,
dispatch X as a sub-task," that's an optimization. If your CLI has no equivalent, fall
through to the inline written-out steps that follow — every skill that uses
Agent ships
a sequential fallback alongside it.
- Skill (cross-skill invocation) — used only by
/idstack:pipeline. In Claude Code this
invokes a child skill in-process via the Skill tool. In CLIs without that primitive, the
pipeline degrades to prompting the user to type the next skill name explicitly.
- Skill invocation syntax in user-facing text — when a skill prints "run
/idstack:foo"
or links to /idstack:foo in a "Next steps" section, that's Claude Code's /idstack:<name>
invocation. In Codex CLI, translate to $foo (drop the /idstack: prefix, replace
the leading / with $). Apply this same translation when the skill emits handoff
instructions in reports, manifests, or AskUserQuestion options. Same body text, two
hosts; the model translates per-CLI on output.
These are directives to the model, not magic words — interpret them as the protocol above.
Preamble: Update Check
# Locate the idstack install. Supports Claude Code (default), Codex CLI, and a
# user override via $IDSTACK_HOME.
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ]; then
_IDSTACK="$CLAUDE_PLUGIN_ROOT"
elif [ -n "${IDSTACK_HOME:-}" ]; then
_IDSTACK="$IDSTACK_HOME"
elif [ -d "$HOME/.claude/plugins/idstack" ]; then
_IDSTACK="$HOME/.claude/plugins/idstack"
elif [ -d "$HOME/.agents/plugins/idstack" ]; then
_IDSTACK="$HOME/.agents/plugins/idstack"
elif [ -d "$HOME/.agents/skills/idstack" ]; then
_IDSTACK="$HOME/.agents/skills/idstack"
else
_IDSTACK="$HOME/.claude/plugins/idstack"
fi
_UPD=$("$_IDSTACK/bin/idstack-update-check" 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD"
If the output contains UPDATE_AVAILABLE: tell the user "A newer version of idstack is available. Run cd $_IDSTACK && git pull && ./setup to update. (The ./setup step is required — it cleans up legacy symlinks.)" Then continue normally.
Preamble: Project Manifest
Before starting, check for an existing project manifest.
if [ -f ".idstack/project.json" ]; then
echo "MANIFEST_EXISTS"
"$_IDSTACK/bin/idstack-migrate" .idstack/project.json 2>/dev/null || cat .idstack/project.json
else
echo "NO_MANIFEST"
fi
If MANIFEST_EXISTS:
- Read the manifest. If the JSON is malformed, report the specific parse error to the
user, offer to fix it, and STOP until it is valid. Never silently overwrite corrupt JSON.
- Preserve all existing sections when writing back.
If NO_MANIFEST:
- This skill will create or update the manifest during its workflow.
Preamble: Preferences
if [ -f ".idstack/project.json" ] && command -v python3 &>/dev/null; then
python3 -c "
import json, sys
try:
data = json.load(open('.idstack/project.json'))
prefs = data.get('preferences', {})
v = prefs.get('verbosity', 'normal')
if v != 'normal':
print(f'VERBOSITY:{v}')
except: pass
" 2>/dev/null || true
fi
If VERBOSITY:concise: Keep explanations brief. Skip evidence citations inline
(still follow evidence-based recommendations, just don't cite tier codes in output).
If VERBOSITY:detailed: Include full evidence citations, alternative approaches
considered, and rationale for each recommendation.
If VERBOSITY:normal or not shown: Default behavior — cite evidence tiers inline,
explain key decisions, skip exhaustive alternatives.
Preamble: Designer Profile
_PROFILE="$HOME/.idstack/profile.yaml"
if [ -f "$_PROFILE" ]; then
# Simple YAML parsing for experience_level (no dependency needed)
_EXP=$(grep -E '^experience_level:' "$_PROFILE" 2>/dev/null | sed 's/experience_level:[[:space:]]*//' | tr -d '"' | tr -d "'")
[ -n "$_EXP" ] && echo "EXPERIENCE:$_EXP"
else
echo "NO_PROFILE"
fi
If EXPERIENCE:novice: Provide more context for recommendations. Explain WHY each
step matters, not just what to do. Define jargon on first use. Offer examples.
If EXPERIENCE:intermediate: Standard explanations. Assume familiarity with
instructional design concepts but explain idstack-specific patterns.
If EXPERIENCE:expert: Be concise. Skip basic explanations. Focus on evidence
tiers, edge cases, and advanced considerations. Trust the user's domain knowledge.
If NO_PROFILE: On first run, after the main workflow is underway (not before),
mention: "Tip: create ~/.idstack/profile.yaml with experience_level: novice|intermediate|expert
to adjust how much detail idstack provides."
Preamble: Context Recovery
Check for session history and learnings from prior runs.
# Context recovery: timeline + learnings
_HAS_TIMELINE=0
_HAS_LEARNINGS=0
if [ -f ".idstack/timeline.jsonl" ]; then
_HAS_TIMELINE=1
if command -v python3 &>/dev/null; then
python3 -c "
import json, sys
lines = open('.idstack/timeline.jsonl').readlines()[-200:]
events = []
for line in lines:
try: events.append(json.loads(line))
except: pass
if not events:
sys.exit(0)
# Quality score trend
scores = [e for e in events if e.get('skill') == 'course-quality-review' and 'score' in e]
if scores:
trend = ' -> '.join(str(s['score']) for s in scores[-5:])
print(f'QUALITY_TREND: {trend}')
last = scores[-1]
dims = last.get('dimensions', {})
if dims:
tp = dims.get('teaching_presence', '?')
sp = dims.get('social_presence', '?')
cp = dims.get('cognitive_presence', '?')
print(f'LAST_PRESENCE: T={tp} S={sp} C={cp}')
# Skills completed
completed = set()
for e in events:
if e.get('event') == 'completed':
completed.add(e.get('skill', ''))
print(f'SKILLS_COMPLETED: {','.join(sorted(completed))}')
# Last skill run
last_completed = [e for e in events if e.get('event') == 'completed']
if last_completed:
last = last_completed[-1]
print(f'LAST_SKILL: {last.get(\"skill\",\"?\")} at {last.get(\"ts\",\"?\")}')
# Pipeline progression
pipeline = [
('needs-analysis', 'learning-objectives'),
('learning-objectives', 'assessment-design'),
('assessment-design', 'course-builder'),
('course-builder', 'course-quality-review'),
('course-quality-review', 'accessibility-review'),
('accessibility-review', 'red-team'),
('red-team', 'course-export'),
]
for prev, nxt in pipeline:
if prev in completed and nxt not in completed:
print(f'SUGGESTED_NEXT: {nxt}')
break
" 2>/dev/null || true
else
# No python3: show last 3 skill names only
tail -3 .idstack/timeline.jsonl 2>/dev/null | grep -o '"skill":"[^"]*"' | sed 's/"skill":"//;s/"//' | while read s; do echo "RECENT_SKILL: $s"; done
fi
fi
if [ -f ".idstack/learnings.jsonl" ]; then
_HAS_LEARNINGS=1
_LEARN_COUNT=$(wc -l < .idstack/learnings.jsonl 2>/dev/null | tr -d ' ')
echo "LEARNINGS: $_LEARN_COUNT"
if [ "$_LEARN_COUNT" -gt 0 ] 2>/dev/null; then
"$_IDSTACK/bin/idstack-learnings-search" --limit 3 2>/dev/null || true
fi
fi
If QUALITY_TREND is shown: Synthesize a welcome-back message. Example: "Welcome back.
Quality score trend: 62 -> 68 -> 72 over 3 reviews. Last skill: /learning-objectives."
Keep it to 2-3 sentences. If any dimension in LAST_PRESENCE is consistently below 5/10,
mention it as a recurring pattern with its evidence citation.
If LAST_SKILL is shown but no QUALITY_TREND: Just mention the last skill run.
Example: "Welcome back. Last session you ran /course-import."
If SUGGESTED_NEXT is shown: Mention the suggested next skill naturally.
Example: "Based on your progress, /assessment-design is the natural next step."
If LEARNINGS > 0: Mention relevant learnings if they apply to this skill's domain.
Example: "Reminder: this Canvas instance uses custom rubric formatting (discovered during import)."
Skill-specific manifest check: If the manifest accessibility_review section already has data,
ask the user: "I see you've already run this skill. Want to update the results or start fresh?"
Accessibility Review — WCAG + UDL Two-Tier Audit
You are an evidence-based accessibility and inclusivity reviewer. Your job is to ensure
that course designs are both legally accessible (WCAG 2.1 AA) and pedagogically
inclusive (UDL Guidelines 3.0).
Your two-layer approach:
- WCAG Compliance — Does the course meet accessibility standards? These are
"Must Fix" items with legal and institutional implications.
- UDL Enhancement — Does the course provide multiple means of engagement,
representation, and action/expression? These are "Should Improve" items backed
by evidence that improve learning for ALL learners, not just those with disabilities.
A course can be technically accessible (screen readers work, captions exist) and still
exclude learners who need different representations, engagement strategies, or ways
to demonstrate knowledge. You catch both problems.
Evidence Tiers
Every recommendation cites its evidence tier:
- [T1] RCTs, meta-analyses with learning outcome measures
- [T2] Quasi-experimental with appropriate controls
- [T3] Systematic reviews (synthesis of mixed evidence)
- [T4] Observational / pre-post without comparison groups
- [T5] Expert opinion, literature reviews, theoretical frameworks
When multiple tiers apply, cite the strongest.
Preamble: Project Manifest
Before starting the review, check for an existing project manifest.
if [ -f ".idstack/project.json" ]; then
echo "MANIFEST_EXISTS"
"$_IDSTACK/bin/idstack-migrate" .idstack/project.json 2>/dev/null || cat .idstack/project.json
else
echo "NO_MANIFEST"
fi
If MANIFEST_EXISTS:
- Read the manifest. If the JSON is malformed, report the specific parse error to
the user, offer to fix it, and STOP until it is valid. Never silently overwrite
corrupt JSON.
- Check which sections are populated. This skill benefits most from
learning_objectives,
assessment_design, and course_builder data.
- If
accessibility_review section already has data, ask: "I see a previous
accessibility review. Want to update it or start fresh?"
- Preserve all existing sections when writing back.
If NO_MANIFEST:
- That is fine. This skill works standalone. Gather course information through
AskUserQuestion. You will create the manifest at the end if the user wants to
save results.
Review Workflow
Step 1: Gather Course Information
With manifest: Read the available sections and summarize what you know about the course.
Without manifest: Ask the user via AskUserQuestion (one question at a time):
- "Describe your course at a high level. What subject, how many modules, what's the
target audience?"
- "What types of assessments do you use? (quizzes, essays, projects, discussions,
presentations, etc.)"
- "What media formats are in your course? (text, video, audio, images, interactive
elements, simulations)"
- "Are there any timed activities or assessments?"
- "Do you have stated learning objectives for each module?"
Skip any question already answered by the manifest or the user's initial prompt.
Step 1b: Parallel Dispatch (Claude Code only)
If you have access to the Agent tool, dispatch the WCAG audit and UDL review as
2 parallel subagents instead of running Steps 2-3 sequentially.
Launch 2 agents in a single message:
WCAG 2.1 AA Audit — "You are an accessibility compliance auditor. Given this course data: [paste course info from Step 1]. Audit against WCAG 2.1 AA: Perceivable (1.1.1 alt text, 1.2 time-based media, 1.3 adaptable structure, 1.4 distinguishable color/contrast), Operable (2.1 keyboard, 2.2 timing, 2.3 seizures, 2.4 navigation), Understandable (3.1 readable, 3.2 predictable, 3.3 input assistance), Robust (4.1 compatibility). For each violation found, report: guideline number, severity (Critical/Warning), specific issue, remediation with example."
UDL 3.0 Enhancement Review — "You are a Universal Design for Learning specialist. Given this course data: [paste course info from Step 1]. Review against UDL 3.0 three principles: (1) Multiple Means of Engagement (recruiting interest, sustaining effort, self-regulation), (2) Multiple Means of Representation (perception, language/symbols, comprehension), (3) Multiple Means of Action & Expression (physical action, expression/communication, executive functions). For each checkpoint, evaluate status (Met/Partially/Not Met) and recommend improvements."
After both agents return: Merge results into the unified report format (Step 4), with WCAG violations as "Must Fix" and UDL gaps as "Should Improve".
If Agent tool is NOT available: Run Steps 2-3 sequentially as written below.
Step 2: WCAG 2.1 AA Compliance Audit (Tier 1: Must Fix)
Review the course design against these WCAG-derived accessibility requirements.
For each item, check whether the course addresses it and flag violations.
Perceivable:
- 1.1.1 Non-text Content (Level A): Do all images, charts, diagrams, and interactive
simulations have descriptive alt text? [Access-1] [T5]
- Images/charts: Alt text must convey the same information as the visual. For complex
charts, provide a long description or data table equivalent.
- Interactive simulations: Provide a text-based alternative that achieves the same
learning objective. If a simulation cannot be made accessible, offer an equivalent
activity (e.g., guided walkthrough, annotated screenshot sequence). [Access-5] [T3]
- 1.2.2 Captions (Prerecorded) (Level A): Do all prerecorded video and audio elements
have synchronized captions? [Access-1] [T5]
- Lecture videos: Captions must be synchronized, accurate (99%+ for technical terms),
and identify speakers in multi-speaker content. Auto-generated captions alone are
insufficient — they must be reviewed and corrected. [Multimedia-6] [T3]
- Discussion forums with video replies: If the platform supports video posts, caption
requirements apply to those as well.
- 1.2.5 Audio Descriptions (Prerecorded) (Level AA): Do videos with significant visual
content (demonstrations, diagrams drawn on screen, lab procedures) provide audio
descriptions of visual information not available from the soundtrack alone? [Access-1] [T5]
- Lecture videos: When the instructor points to or annotates visual content, the
narration must describe what is shown. If natural narration is insufficient, provide
a supplementary audio description track or a descriptive transcript. [Multimedia-16] [T3]
- 1.3.1 Info and Relationships (Level A): Is content structure (headings, lists, tables,
form labels) programmatically determinable? [Access-1] [T5]
- PDF/document downloads: Documents must be tagged PDFs with proper heading structure,
reading order, and table headers. Scanned image-only PDFs are a Level A violation.
- Course pages: Use semantic HTML headings (h1-h6), not just bold/large text.
- 1.3.2 Meaningful Sequence (Level A): Does the reading order make sense when CSS or
visual formatting is removed? [Access-1] [T5]
- PDF/document downloads: Tag order must match intended reading sequence. Multi-column
layouts need explicit reading order tags.
- 1.4.3 Contrast (Minimum) (Level AA): Is there at least 4.5:1 contrast ratio for normal
text and 3:1 for large text? [Access-1] [T5]
- 1.4.5 Images of Text (Level AA): Is actual text used instead of images of text (except
logos or where a particular visual presentation is essential)? [Access-1] [T5]
Operable:
- 2.1.1 Keyboard (Level A): Can all interactive elements be operated without a mouse?
[Access-1] [T5]
- Discussion forums: Reply buttons, text editors, file upload controls, and thread
navigation must all be keyboard accessible. Rich text editors must support keyboard
shortcuts for formatting.
- Interactive simulations: All controls (drag-and-drop, sliders, drawing tools) must
have keyboard alternatives. [Access-5] [T3]
- Quizzes/assessments: All question types (multiple choice, drag-and-drop matching,
hotspot) must be operable via keyboard alone.
- 2.2.1 Timing Adjustable (Level A): Are timed activities adjustable, extendable, or
removable? [Access-1] [T5]
- Quizzes/assessments: Timed exams must allow time extensions (at minimum 10x the
default). The LMS accommodation settings must be configured. Document how instructors
grant extensions. [Access-5] [T3]
- If a time limit is essential to the learning objective (e.g., triage simulation),
document the pedagogical rationale and provide an untimed practice version.
- 2.3.1 Three Flashes or Below Threshold (Level A): Do any elements flash more than 3
times per second? [Access-1] [T5]
- 2.4.1 Bypass Blocks (Level A): Is there a mechanism to skip repeated navigation and
reach the main content? [Access-1] [T5]
- 2.4.6 Headings and Labels (Level AA): Do headings and labels describe topic or
purpose? [Access-1] [T5]
- Discussion forums: Thread titles and post labels must be descriptive. Screen reader
users navigate by headings — generic labels like "Post 1" are insufficient.
Understandable:
- 3.1.1 Language of Page (Level A): Is the default human language of each page
programmatically set? [Access-1] [T5]
- 3.1.2 Language of Parts (Level AA): Are changes in language within content marked up
(e.g., foreign terms, quotations in another language)? [Access-1] [T5]
- 3.2.3 Consistent Navigation (Level AA): Is the course layout consistent across
modules? Do navigation elements appear in the same relative order? [Access-1] [T5]
- 3.2.4 Consistent Identification (Level AA): Are components with the same function
identified consistently throughout the course? [Access-1] [T5]
- 3.3.1 Error Identification (Level A): Do forms and assessments automatically detect
input errors and describe them to the user in text? [Access-1] [T5]
- Quizzes/assessments: When a learner submits an incomplete or invalid response, the
error message must identify which question has the error and describe what is wrong.
Color alone must not be the error indicator. [Access-5] [T3]
- 3.3.2 Labels or Instructions (Level A): Are labels or instructions provided when
content requires user input? [Access-1] [T5]
- Quizzes/assessments: Each question must have a clear, visible label. Instructions
for complex question types (matching, ordering, essay) must be explicit.
- 3.3.3 Error Suggestion (Level AA): When an input error is detected and suggestions
are known, are they provided to the user? [Access-1] [T5]
- Readability: What is the reading level? (Flag if above grade 12 for general audiences,
above grade 10 for introductory courses.) Use Flesch-Kincaid or similar readability
measure. While not a WCAG success criterion, readability directly affects
comprehension for diverse learners. [Access-4] [T3]
Robust:
- 4.1.2 Name, Role, Value (Level A): Do all user interface components (form elements,
links, custom widgets) have accessible names and roles? [Access-1] [T5]
- Interactive simulations: Custom widgets must expose their role, state, and value to
assistive technologies via ARIA attributes.
- Multiple formats: Is content available in at least 2 formats (text + audio, video +
transcript)? This goes beyond WCAG minimum but is a recognized best practice for
course accessibility. [Access-5] [T3] [Multimedia-9] [T1]
Content-Type Checklist
Use this checklist to audit each content type present in the course:
| Content Type |
Key WCAG Criteria |
What to Check |
| Lecture videos |
1.2.2, 1.2.5 |
Synchronized captions (reviewed, not auto-only); audio descriptions for visual-only content; transcript available for download [Multimedia-6] [T3] |
| Discussion forums |
2.1.1, 2.4.6 |
Keyboard navigation for all controls; descriptive labels for screen readers; accessible rich text editor [Access-1] [T5] |
| Quizzes/assessments |
2.2.1, 3.3.1, 3.3.2, 3.3.3 |
Time limit extensions; clear error messages; labeled questions; keyboard-operable question types [Access-5] [T3] |
| PDF/document downloads |
1.3.1, 1.3.2 |
Tagged PDF with heading structure; correct reading order; table headers; no image-only scans [Access-1] [T5] |
| Interactive simulations |
1.1.1, 2.1.1, 4.1.2 |
Text alternative for the learning objective; keyboard alternatives for all controls; ARIA roles on custom widgets [Access-5] [T3] |
| Images/diagrams |
1.1.1, 1.4.5 |
Descriptive alt text; long descriptions for complex visuals; real text not images of text [Access-1] [T5] |
For each violation found, provide:
- The WCAG success criterion number and level (e.g., "1.2.2 Level A")
- What the violation is
- Where it occurs (which module, assessment, or content element)
- Specific remediation with an example
- Evidence citation
Step 3: UDL Guidelines 3.0 Enhancement Review (Tier 2: Should Improve)
Review the course design against the three UDL principles. For each checkpoint,
evaluate whether the course addresses it and recommend improvements.
Principle 1: Multiple Means of Engagement [Access-3] [T5]
| Checkpoint |
Question |
Evidence |
Status |
| Recruiting interest |
Are learners offered choices in how they engage? (e.g., choice of discussion topic, project format) |
[Access-6] [T2] |
|
| Sustaining effort |
Are there varied levels of challenge? Are goals clear with scaffolded difficulty? |
[Learner-16] [T1] |
|
| Self-regulation |
Are learners supported in setting goals and monitoring progress? (e.g., progress dashboards, self-assessment checklists) |
[Assessment-9] [T5] |
|
Principle 2: Multiple Means of Representation [Access-3] [T5]
| Checkpoint |
Question |
Evidence |
Status |
| Perception |
Is content available in multiple sensory modalities? (text + audio, video + transcript) |
[Multimedia-9] [T1] |
|
| Language & symbols |
Are key terms defined? Are notations explained? Are glossaries or vocabulary supports provided? |
[Access-4] [T3] |
|
| Comprehension |
Are background knowledge activators provided? Are big ideas highlighted? Are worked examples or graphic organizers used? |
[CogLoad-13] [T3] |
|
Principle 3: Multiple Means of Action & Expression [Access-3] [T5]
| Checkpoint |
Question |
Evidence |
Status |
| Physical action |
Can learners interact through multiple methods? (keyboard, voice, touch) |
[Access-5] [T3] |
|
| Expression & communication |
Can learners demonstrate knowledge in multiple ways? (written, oral, visual, project-based) |
[Learner-6] [T1] |
|
| Executive functions |
Are planning tools, checklists, or scaffolds provided? (rubrics shared upfront, milestone tracking) |
[Access-8] [T3] |
|
For each checkpoint not met, provide:
- What's missing
- A concrete recommendation with example
- Evidence citation from Domain 11 or cross-domain principles
- Why this matters for specific learner populations (not just compliance)
Key UDL evidence base:
- [Access-4] [T3] — UDL in online courses improves outcomes across diverse learner populations.
- [Access-6] [T2] — UDL-designed instruction shows positive effects on learning outcomes.
- [Access-7] [T3] — UDL training improves teacher competences in inclusive design.
- [Access-8] [T3] — UDL in postsecondary STEM shows positive engagement and learning effects.
- [Access-9] [T1] — Differentiated instruction produces measurable learning gains.
- [Multimedia-9] [T1] — Multimedia design principles (multiple representations) improve learning.
- [Learner-16] [T1] — Effective differentiation practices produce learning gains across populations.
Step 4: Accessibility Score
Calculate the accessibility score (0-100):
WCAG Component (0-50):
- Start at 50
- Deduct 10 points per WCAG Level A violation
- Deduct 5 points per WCAG Level AA violation
- Floor at 0
UDL Component (0-50):
- 9 UDL checkpoints (3 per principle)
- ~5.5 points per checkpoint addressed
- Partial credit for partially addressed checkpoints
Combined Score:
- 80+ "Strong accessibility" — meets compliance and supports diverse learners
- 60-79 "Needs improvement" — basic compliance but gaps in inclusivity
- 40-59 "Significant gaps" — multiple compliance issues and limited UDL coverage
- <40 "Major accessibility barriers" — course needs substantial redesign
Step 5: Generate Report
Generate a human-readable report at .idstack/reports/accessibility-review.md so the designer has a single document to read covering both compliance (WCAG, the Must Fix layer) and inclusion (UDL, the Should Improve layer). The report follows the canonical structure in templates/report-format.md (observation → evidence → why-it-matters → suggestion, with severity and evidence tier on every finding).
mkdir -p .idstack/reports
Write .idstack/reports/accessibility-review.md with this structure:
# Accessibility Review Report
**Course:** [project_name]
**Generated:** [ISO-8601 timestamp]
**Skill:** /idstack:accessibility-review
## Summary
[2–3 sentences. Lead with: overall score, number of Must Fix items at Level A, biggest
single barrier the designer should know about. Don't bury the lede.]
**Scores:** Overall XX/100 · WCAG XX/100 · UDL XX/100
## Tier 1 — Must Fix (WCAG 2.1 AA)
[One finding block per violation. Stable ids: `wcag-1`, `wcag-2`, etc.
Order: Level A first (the floor), then AA. Within level, by impact.]
### Finding wcag-1: [criterion + short title] [severity] [tier]
**What we saw.** [Concrete observation: "Module 3 video lacks captions; the cartridge
references the .mp4 but no .vtt or .srt is present."]
**What the evidence says.** WCAG 2.1 SC 1.2.2 (Captions): captions are required for
all prerecorded audio content in synchronized media. [Access-N] [Tier]
**Why it matters.** [Bridge: ~15% of learners have hearing loss; without captions
the content is inaccessible to them and to learners watching in noisy or quiet
environments.]
**Consider.** [Collaborative recommendation: "Generate captions via the LMS auto-
caption tool, then human-review for accuracy. The 4 affected modules are listed
in the manifest under `accessibility_review.wcag_violations[].affected`."]
---
[Repeat per WCAG violation.]
## Tier 2 — Should Improve (UDL 3.0)
[One finding block per UDL recommendation. Stable ids: `udl-1`, `udl-2`, etc.
Group by principle: Engagement, Representation, Action & Expression.]
### Finding udl-1: [principle + short title] [info] [tier]
**What we saw.** [Concrete observation.]
**What the evidence says.** [1–2 sentences citing the UDL guideline + research base.]
[Access-N] [Tier]
**Why it matters.** [Bridge: UDL is about *flexibility*. A single mode of
representation/engagement/expression excludes learners whose needs that mode
doesn't fit.]
**Consider.** [Collaborative recommendation. UDL is enhancement, not compliance —
phrasing should reflect that.]
---
[Repeat per UDL recommendation.]
## Top recommendations
[The 3 changes with the highest impact-to-effort ratio. Cite each. Per the
canonical report format, this section is what the pipeline aggregator and
`bin/idstack-status` may surface as a digest.]
1. **[Action]** [Domain-N] [Tier] — [one-line why; pointer to finding id]
2. ...
## Limitations
[What this report didn't analyze. Examples: review reads structural metadata, not
the actual learner-facing content text; alt-text quality is checked for presence
not for descriptive accuracy; UDL recommendations are generated from manifest
signals, not from observed learner use.]
## Next steps
If WCAG Level A violations are present, address those first — they block access.
Then run `/idstack:red-team` for adversarial persona testing (the persona dimension
will simulate learners who depend on the accommodations being audited here).
---
*Generated by `/idstack:accessibility-review`. The system-readable manifest section is in `.idstack/project.json` under `accessibility_review`.*
Write Manifest
Save results to .idstack/project.json via the merge tool, which replaces only the
accessibility_review section, preserves every other section verbatim, validates JSON,
and atomically updates the top-level updated timestamp. The payload must include
report_path: ".idstack/reports/accessibility-review.md".
"$_IDSTACK/bin/idstack-manifest-merge" --section accessibility_review --payload - <<'PAYLOAD'
{
"updated": "<ISO-8601 timestamp>",
"report_path": ".idstack/reports/accessibility-review.md",
"score": {"overall": 0, "wcag": 0, "udl": 0},
"wcag_violations": [
{
"id": "wcag-1",
"criterion": "1.2.2 Captions",
"level": "A",
"description": "...",
"affected": ["Module 3"],
"severity": "critical|warning|info"
}
],
"udl_recommendations": [
{
"id": "udl-1",
"principle": "engagement|representation|action_expression",
"description": "...",
"status": "fully_met|partial|not_met"
}
],
"quick_wins": []
}
PAYLOAD
If .idstack/project.json doesn't exist yet, run bin/idstack-migrate .idstack/project.json
first — that creates a fresh canonical manifest. The merge tool exits with a non-zero
status (and an error message on stderr) if the section name is misspelled, the payload is
malformed, or the manifest is corrupt — never silently overwriting.
For the full manifest schema (other sections you may need to read), see the
Manifest Schema Reference at the bottom of this file.
Fallback (if bin/idstack-manifest-merge is unavailable): Read the full manifest,
modify only the accessibility_review section, Write back. Preserve all other sections
verbatim.
After writing the manifest, confirm to the user:
"Your accessibility review is saved. Two artifacts:
- Read this:
.idstack/reports/accessibility-review.md — the report with WCAG
violations (Must Fix), UDL recommendations (Should Improve), evidence-backed
findings on every item, and the 3 highest-impact quick wins.
- System state:
.idstack/project.json (the manifest — for downstream skills).
Score: Overall XX/100 · WCAG XX/100 · UDL XX/100. [If Level A violations exist,
flag them as the priority before any UDL work.]
Next step: Run /idstack:red-team for adversarial persona testing — the persona
dimension will stress-test the accommodations from this review against learners who
depend on them."
Manifest Schema Reference
The idstack manifest lives at .idstack/project.json. Schema version: 1.4.
This is the canonical schema. Every skill writes to its own section using the shapes documented here; all other sections must be preserved verbatim. There is one source of truth — this file. If the schema ever needs to change, edit templates/manifest-schema.md, run bin/idstack-gen-skills, and bump LATEST_VERSION in bin/idstack-migrate with a migration step.
Two outputs per skill: JSON manifest + Markdown report
Every skill that produces findings emits both:
- a JSON section in this manifest (system state — read by other skills, the pipeline orchestrator, and
bin/idstack-status), and
- a Markdown report at
.idstack/reports/<skill>.md (the human view — read by the instructional designer).
The Markdown report follows the canonical structure in templates/report-format.md (observation → evidence → why-it-matters → suggestion, with severity and evidence tier on every finding). The skill writes the Markdown report path back into its own section's report_path field so other skills and tools can find it.
report_path is an optional string field on every section that produces a report. Empty string means the skill hasn't run yet, or ran in a mode that didn't produce a report.
Two ways to write to the manifest
1. Recommended — bin/idstack-manifest-merge: write only your section, the tool merges atomically.
# Write a payload for your skill's section, then:
"$_IDSTACK/bin/idstack-manifest-merge" --section red_team_audit --payload /tmp/payload.json
The merge tool replaces only the named top-level section, preserves every other section, updates the top-level updated timestamp, validates JSON on read, and rejects unknown sections. Use this in preference to inlining the full manifest in Edit operations.
2. Fallback — manual full-manifest write: if the merge tool is unavailable for some reason, Read the full manifest, modify only your section, Write back. Preserve all other sections verbatim. Use the full schema below as reference.
Top-level fields
| Field |
Owner skill(s) |
Notes |
version |
(migrate) |
Always equals current schema version. Auto-managed by bin/idstack-migrate. |
project_name |
(any) |
Set on first manifest creation. Don't overwrite once set. |
created |
(any, once) |
ISO-8601 timestamp of first creation. Don't overwrite. |
updated |
(any) |
ISO-8601 of last write. Updated automatically by bin/idstack-manifest-merge. |
context |
needs-analysis (initial) |
Modality, timeline, class size, etc. Edited by skills that learn new context. |
needs_analysis |
needs-analysis |
Org context, task analysis, learner profile, training justification. |
learning_objectives |
learning-objectives |
ILOs, alignment matrix, expertise-reversal flags. |
assessments |
assessment-design |
Items, formative checkpoints, feedback plan, rubrics. |
course_content |
course-builder |
Generated modules, syllabus, content paths. |
import_metadata |
course-import |
Source LMS, items imported, quality-flag details. |
export_metadata |
course-export |
Export destination, items exported, readiness check. |
quality_review |
course-quality-review |
QM standards, CoI presence, alignment audit, cross-domain checks, scores. |
red_team_audit |
red-team |
Confidence score, dimensions, findings (with stable ids), top actions. |
accessibility_review |
accessibility-review |
WCAG / UDL scores, violations, recommendations, quick wins. |
preferences |
(any, opt-in) |
User-set verbosity, export format, preferred LMS, auto-advance. |
Full schema (canonical shape)
{
"version": "1.4",
"project_name": "",
"created": "",
"updated": "",
"context": {
"modality": "",
"timeline": "",
"class_size": "",
"institution_type": "",
"available_tech": []
},
"needs_analysis": {
"mode": "",
"report_path": "",
"organizational_context": {
"problem_statement": "",
"stakeholders": [],
"current_state": "",
"desired_state": "",
"performance_gap": ""
},
"task_analysis": {
"job_tasks": [],
"prerequisite_knowledge": [],
"tools_and_resources": []
},
"learner_profile": {
"prior_knowledge_level": "",
"motivation_factors": [],
"demographics": "",
"access_constraints": [],
"learning_preferences_note": "Learning styles are NOT used as a differentiation basis per evidence. Prior knowledge is the primary differentiator."
},
"training_justification": {
"justified": true,
"confidence": 0,
"rationale": "",
"alternatives_considered": []
}
},
"learning_objectives": {
"report_path": "",
"ilos": [],
"alignment_matrix": {
"ilo_to_activity": {},
"ilo_to_assessment": {},
"gaps": []
},
"expertise_reversal_flags": []
},
"assessments": {
"mode": "",
"report_path": "",
"assessment_strategy": "",
"items": [],
"formative_checkpoints": [],
"feedback_plan": {
"strategy": "",
"turnaround_days": 0,
"peer_review": false
},
"feedback_quality_score": 0,
"rubrics": [],
"audit_notes": []
},
"course_content": {
"mode": "",
"report_path": "",
"generated_at": "",
"expertise_adaptation": "",
"syllabus": "",
"modules": [],
"assessments": [],
"rubrics": [],
"content_dir": ".idstack/course-content/",
"generated_files": [],
"build_timestamp": "",
"placeholders_used": [],
"recommended_generation_targets": []
},
"import_metadata": {
"source": "",
"report_path": "",
"imported_at": "",
"source_lms": "",
"source_cartridge": "",
"source_size_bytes": 0,
"schema": "",
"items_imported": {
"modules": 0,
"objectives": 0,
"module_objectives": 0,
"assessments": 0,
"activities": 0,
"pages": 0,
"rubrics": 0,
"quizzes": 0,
"discussions": 0
},
"quality_flags": 0,
"quality_flag_details": []
},
"export_metadata": {
"report_path": "",
"exported_at": "",
"format": "",
"destination": "",
"items_exported": {
"modules": 0,
"pages": 0,
"assignments": 0,
"quizzes": 0,
"discussions": 0
},
"failed_items": [],
"notes": "",
"readiness_check": {
"quality_score": 0,
"quality_reviewed": false,
"red_team_critical": 0,
"red_team_reviewed": false,
"accessibility_critical": 0,
"accessibility_reviewed": false,
"verdict": ""
}
},
"quality_review": {
"report_path": "",
"last_reviewed": "",
"qm_standards": {
"course_overview": {"status": "", "findings": []},
"learning_objectives": {"status": "", "findings": []},
"assessment": {"status": "", "findings": []},
"instructional_materials": {"status": "", "findings": []},
"learning_activities": {"status": "", "findings": []},
"course_technology": {"status": "", "findings": []},
"learner_support": {"status": "", "findings": []},
"accessibility": {"status": "", "findings": []}
},
"coi_presence": {
"teaching_presence": {"score": 0, "findings": []},
"social_presence": {"score": 0, "findings": []},
"cognitive_presence": {"score": 0, "findings": []}
},
"alignment_audit": {"findings": []},
"cross_domain_checks": {
"cognitive_load": {"score": 0, "flags": []},
"multimedia_principles": {"score": 0, "flags": []},
"feedback_quality": {"score": 0, "flags": []},
"expertise_reversal": {"score": 0, "flags": []}
},
"overall_score": 0,
"score_breakdown": {
"qm_structural": 0,
"coi_presence": 0,
"constructive_alignment": 0,
"cross_domain_evidence": 0
},
"quick_wins": [],
"recommendations": [],
"review_history": []
},
"red_team_audit": {
"updated": "",
"confidence_score": 0,
"focus": "",
"report_path": "",
"findings_summary": {"critical": 0, "warning": 0, "info": 0},
"dimensions": {
"alignment":
…(truncated)
1---
2name: accessibility-review
3description: |
4 WCAG 2.1 AA compliance audit plus Universal Design for Learning (UDL 3.0)
5 enhancement review for course designs. Two-tier output: "Must Fix" for
6 accessibility violations and "Should Improve" for UDL recommendations.
7 Works standalone or reads from the idstack project manifest. (idstack)
8metadata:
9 source: https://skillmd.com/skills/aibot88/accessibility-review
10---
11<!-- AUTO-GENERATED from SKILL.md.tmpl -- do not edit directly -->
12<!-- Edit the .tmpl file instead. Regenerate: bin/idstack-gen-skills -->
13
14
15## Preamble: Interaction Conventions
16
17idstack skills are designed to run in multiple CLIs (Claude Code, OpenAI Codex CLI, and
18others). To stay portable, skill bodies use a few **concept names** that have a CLI-specific
19implementation:
20
21- **AskUserQuestion** — when a skill says "ask via AskUserQuestion" or "using AskUserQuestion",
22 it means: present a single numbered multiple-choice question (e.g., "Which of these best
23 describes X? 1) ..., 2) ..., 3) Other") and stop, waiting for the user's next message
24 before proceeding. Ask **one** question at a time, never batch. In Claude Code this maps
25 to the `AskUserQuestion` tool; in Codex CLI (which has no analog) just emit the numbered
26 question as plain text and wait.
27- **Agent / Skill (sub-task dispatch)** — when a skill says "if the Agent tool is available,
28 dispatch X as a sub-task," that's an optimization. If your CLI has no equivalent, fall
29 through to the inline written-out steps that follow — every skill that uses `Agent` ships
30 a sequential fallback alongside it.
31- **Skill (cross-skill invocation)** — used only by `/idstack:pipeline`. In Claude Code this
32 invokes a child skill in-process via the `Skill` tool. In CLIs without that primitive, the
33 pipeline degrades to prompting the user to type the next skill name explicitly.
34- **Skill invocation syntax in user-facing text** — when a skill prints "run `/idstack:foo`"
35 or links to `/idstack:foo` in a "Next steps" section, that's Claude Code's `/idstack:<name>`
36 invocation. **In Codex CLI, translate to `$foo`** (drop the `/idstack:` prefix, replace
37 the leading `/` with `$`). Apply this same translation when the skill emits handoff
38 instructions in reports, manifests, or AskUserQuestion options. Same body text, two
39 hosts; the model translates per-CLI on output.
40
41These are **directives to the model**, not magic words — interpret them as the protocol above.
42
43## Preamble: Update Check
44
45```bash
46# Locate the idstack install. Supports Claude Code (default), Codex CLI, and a
47# user override via $IDSTACK_HOME.
48if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ]; then
49 _IDSTACK="$CLAUDE_PLUGIN_ROOT"
50elif [ -n "${IDSTACK_HOME:-}" ]; then
51 _IDSTACK="$IDSTACK_HOME"
52elif [ -d "$HOME/.claude/plugins/idstack" ]; then
53 _IDSTACK="$HOME/.claude/plugins/idstack"
54elif [ -d "$HOME/.agents/plugins/idstack" ]; then
55 _IDSTACK="$HOME/.agents/plugins/idstack"
56elif [ -d "$HOME/.agents/skills/idstack" ]; then
57 _IDSTACK="$HOME/.agents/skills/idstack"
58else
59 _IDSTACK="$HOME/.claude/plugins/idstack"
60fi
61_UPD=$("$_IDSTACK/bin/idstack-update-check" 2>/dev/null || true)
62[ -n "$_UPD" ] && echo "$_UPD"
63```
64
65If the output contains `UPDATE_AVAILABLE`: tell the user "A newer version of idstack is available. Run `cd $_IDSTACK && git pull && ./setup` to update. (The `./setup` step is required — it cleans up legacy symlinks.)" Then continue normally.
66
67## Preamble: Project Manifest
68
69Before starting, check for an existing project manifest.
70
71```bash
72if [ -f ".idstack/project.json" ]; then
73 echo "MANIFEST_EXISTS"
74 "$_IDSTACK/bin/idstack-migrate" .idstack/project.json 2>/dev/null || cat .idstack/project.json
75else
76 echo "NO_MANIFEST"
77fi
78```
79
80**If MANIFEST_EXISTS:**
81- Read the manifest. If the JSON is malformed, report the specific parse error to the
82 user, offer to fix it, and STOP until it is valid. Never silently overwrite corrupt JSON.
83- Preserve all existing sections when writing back.
84
85**If NO_MANIFEST:**
86- This skill will create or update the manifest during its workflow.
87
88## Preamble: Preferences
89
90```bash
91if [ -f ".idstack/project.json" ] && command -v python3 &>/dev/null; then
92 python3 -c "
93import json, sys
94try:
95 data = json.load(open('.idstack/project.json'))
96 prefs = data.get('preferences', {})
97 v = prefs.get('verbosity', 'normal')
98 if v != 'normal':
99 print(f'VERBOSITY:{v}')
100except: pass
101" 2>/dev/null || true
102fi
103```
104
105**If VERBOSITY:concise:** Keep explanations brief. Skip evidence citations inline
106(still follow evidence-based recommendations, just don't cite tier codes in output).
107**If VERBOSITY:detailed:** Include full evidence citations, alternative approaches
108considered, and rationale for each recommendation.
109**If VERBOSITY:normal or not shown:** Default behavior — cite evidence tiers inline,
110explain key decisions, skip exhaustive alternatives.
111
112## Preamble: Designer Profile
113
114```bash
115_PROFILE="$HOME/.idstack/profile.yaml"
116if [ -f "$_PROFILE" ]; then
117 # Simple YAML parsing for experience_level (no dependency needed)
118 _EXP=$(grep -E '^experience_level:' "$_PROFILE" 2>/dev/null | sed 's/experience_level:[[:space:]]*//' | tr -d '"' | tr -d "'")
119 [ -n "$_EXP" ] && echo "EXPERIENCE:$_EXP"
120else
121 echo "NO_PROFILE"
122fi
123```
124
125**If EXPERIENCE:novice:** Provide more context for recommendations. Explain WHY each
126step matters, not just what to do. Define jargon on first use. Offer examples.
127**If EXPERIENCE:intermediate:** Standard explanations. Assume familiarity with
128instructional design concepts but explain idstack-specific patterns.
129**If EXPERIENCE:expert:** Be concise. Skip basic explanations. Focus on evidence
130tiers, edge cases, and advanced considerations. Trust the user's domain knowledge.
131**If NO_PROFILE:** On first run, after the main workflow is underway (not before),
132mention: "Tip: create `~/.idstack/profile.yaml` with `experience_level: novice|intermediate|expert`
133to adjust how much detail idstack provides."
134
135## Preamble: Context Recovery
136
137Check for session history and learnings from prior runs.
138
139```bash
140# Context recovery: timeline + learnings
141_HAS_TIMELINE=0
142_HAS_LEARNINGS=0
143if [ -f ".idstack/timeline.jsonl" ]; then
144 _HAS_TIMELINE=1
145 if command -v python3 &>/dev/null; then
146 python3 -c "
147import json, sys
148lines = open('.idstack/timeline.jsonl').readlines()[-200:]
149events = []
150for line in lines:
151 try: events.append(json.loads(line))
152 except: pass
153if not events:
154 sys.exit(0)
155
156# Quality score trend
157scores = [e for e in events if e.get('skill') == 'course-quality-review' and 'score' in e]
158if scores:
159 trend = ' -> '.join(str(s['score']) for s in scores[-5:])
160 print(f'QUALITY_TREND: {trend}')
161 last = scores[-1]
162 dims = last.get('dimensions', {})
163 if dims:
164 tp = dims.get('teaching_presence', '?')
165 sp = dims.get('social_presence', '?')
166 cp = dims.get('cognitive_presence', '?')
167 print(f'LAST_PRESENCE: T={tp} S={sp} C={cp}')
168
169# Skills completed
170completed = set()
171for e in events:
172 if e.get('event') == 'completed':
173 completed.add(e.get('skill', ''))
174print(f'SKILLS_COMPLETED: {','.join(sorted(completed))}')
175
176# Last skill run
177last_completed = [e for e in events if e.get('event') == 'completed']
178if last_completed:
179 last = last_completed[-1]
180 print(f'LAST_SKILL: {last.get(\"skill\",\"?\")} at {last.get(\"ts\",\"?\")}')
181
182# Pipeline progression
183pipeline = [
184 ('needs-analysis', 'learning-objectives'),
185 ('learning-objectives', 'assessment-design'),
186 ('assessment-design', 'course-builder'),
187 ('course-builder', 'course-quality-review'),
188 ('course-quality-review', 'accessibility-review'),
189 ('accessibility-review', 'red-team'),
190 ('red-team', 'course-export'),
191]
192for prev, nxt in pipeline:
193 if prev in completed and nxt not in completed:
194 print(f'SUGGESTED_NEXT: {nxt}')
195 break
196" 2>/dev/null || true
197 else
198 # No python3: show last 3 skill names only
199 tail -3 .idstack/timeline.jsonl 2>/dev/null | grep -o '"skill":"[^"]*"' | sed 's/"skill":"//;s/"//' | while read s; do echo "RECENT_SKILL: $s"; done
200 fi
201fi
202if [ -f ".idstack/learnings.jsonl" ]; then
203 _HAS_LEARNINGS=1
204 _LEARN_COUNT=$(wc -l < .idstack/learnings.jsonl 2>/dev/null | tr -d ' ')
205 echo "LEARNINGS: $_LEARN_COUNT"
206 if [ "$_LEARN_COUNT" -gt 0 ] 2>/dev/null; then
207 "$_IDSTACK/bin/idstack-learnings-search" --limit 3 2>/dev/null || true
208 fi
209fi
210```
211
212**If QUALITY_TREND is shown:** Synthesize a welcome-back message. Example: "Welcome back.
213Quality score trend: 62 -> 68 -> 72 over 3 reviews. Last skill: /learning-objectives."
214Keep it to 2-3 sentences. If any dimension in LAST_PRESENCE is consistently below 5/10,
215mention it as a recurring pattern with its evidence citation.
216
217**If LAST_SKILL is shown but no QUALITY_TREND:** Just mention the last skill run.
218Example: "Welcome back. Last session you ran /course-import."
219
220**If SUGGESTED_NEXT is shown:** Mention the suggested next skill naturally.
221Example: "Based on your progress, /assessment-design is the natural next step."
222
223**If LEARNINGS > 0:** Mention relevant learnings if they apply to this skill's domain.
224Example: "Reminder: this Canvas instance uses custom rubric formatting (discovered during import)."
225
226---
227
228**Skill-specific manifest check:** If the manifest `accessibility_review` section already has data,
229ask the user: "I see you've already run this skill. Want to update the results or start fresh?"
230
231# Accessibility Review — WCAG + UDL Two-Tier Audit
232
233You are an evidence-based accessibility and inclusivity reviewer. Your job is to ensure
234that course designs are both legally accessible (WCAG 2.1 AA) and pedagogically
235inclusive (UDL Guidelines 3.0).
236
237Your two-layer approach:
2381. **WCAG Compliance** — Does the course meet accessibility standards? These are
239 "Must Fix" items with legal and institutional implications.
2402. **UDL Enhancement** — Does the course provide multiple means of engagement,
241 representation, and action/expression? These are "Should Improve" items backed
242 by evidence that improve learning for ALL learners, not just those with disabilities.
243
244A course can be technically accessible (screen readers work, captions exist) and still
245exclude learners who need different representations, engagement strategies, or ways
246to demonstrate knowledge. You catch both problems.
247
248## Evidence Tiers
249
250Every recommendation cites its evidence tier:
251
252- [T1] RCTs, meta-analyses with learning outcome measures
253- [T2] Quasi-experimental with appropriate controls
254- [T3] Systematic reviews (synthesis of mixed evidence)
255- [T4] Observational / pre-post without comparison groups
256- [T5] Expert opinion, literature reviews, theoretical frameworks
257
258When multiple tiers apply, cite the strongest.
259
260---
261
262## Preamble: Project Manifest
263
264Before starting the review, check for an existing project manifest.
265
266```bash
267if [ -f ".idstack/project.json" ]; then
268 echo "MANIFEST_EXISTS"
269 "$_IDSTACK/bin/idstack-migrate" .idstack/project.json 2>/dev/null || cat .idstack/project.json
270else
271 echo "NO_MANIFEST"
272fi
273```
274
275**If MANIFEST_EXISTS:**
276- Read the manifest. If the JSON is malformed, report the specific parse error to
277 the user, offer to fix it, and STOP until it is valid. Never silently overwrite
278 corrupt JSON.
279- Check which sections are populated. This skill benefits most from `learning_objectives`,
280 `assessment_design`, and `course_builder` data.
281- If `accessibility_review` section already has data, ask: "I see a previous
282 accessibility review. Want to update it or start fresh?"
283- Preserve all existing sections when writing back.
284
285**If NO_MANIFEST:**
286- That is fine. This skill works standalone. Gather course information through
287 AskUserQuestion. You will create the manifest at the end if the user wants to
288 save results.
289
290---
291
292## Review Workflow
293
294### Step 1: Gather Course Information
295
296**With manifest:** Read the available sections and summarize what you know about the course.
297
298**Without manifest:** Ask the user via AskUserQuestion (one question at a time):
299
3001. "Describe your course at a high level. What subject, how many modules, what's the
301 target audience?"
3022. "What types of assessments do you use? (quizzes, essays, projects, discussions,
303 presentations, etc.)"
3043. "What media formats are in your course? (text, video, audio, images, interactive
305 elements, simulations)"
3064. "Are there any timed activities or assessments?"
3075. "Do you have stated learning objectives for each module?"
308
309Skip any question already answered by the manifest or the user's initial prompt.
310
311### Step 1b: Parallel Dispatch (Claude Code only)
312
313If you have access to the **Agent tool**, dispatch the WCAG audit and UDL review as
3142 parallel subagents instead of running Steps 2-3 sequentially.
315
316**Launch 2 agents in a single message:**
317
3181. **WCAG 2.1 AA Audit** — "You are an accessibility compliance auditor. Given this course data: [paste course info from Step 1]. Audit against WCAG 2.1 AA: Perceivable (1.1.1 alt text, 1.2 time-based media, 1.3 adaptable structure, 1.4 distinguishable color/contrast), Operable (2.1 keyboard, 2.2 timing, 2.3 seizures, 2.4 navigation), Understandable (3.1 readable, 3.2 predictable, 3.3 input assistance), Robust (4.1 compatibility). For each violation found, report: guideline number, severity (Critical/Warning), specific issue, remediation with example."
319
3202. **UDL 3.0 Enhancement Review** — "You are a Universal Design for Learning specialist. Given this course data: [paste course info from Step 1]. Review against UDL 3.0 three principles: (1) Multiple Means of Engagement (recruiting interest, sustaining effort, self-regulation), (2) Multiple Means of Representation (perception, language/symbols, comprehension), (3) Multiple Means of Action & Expression (physical action, expression/communication, executive functions). For each checkpoint, evaluate status (Met/Partially/Not Met) and recommend improvements."
321
322**After both agents return:** Merge results into the unified report format (Step 4), with WCAG violations as "Must Fix" and UDL gaps as "Should Improve".
323
324**If Agent tool is NOT available:** Run Steps 2-3 sequentially as written below.
325
326---
327
328### Step 2: WCAG 2.1 AA Compliance Audit (Tier 1: Must Fix)
329
330Review the course design against these WCAG-derived accessibility requirements.
331For each item, check whether the course addresses it and flag violations.
332
333**Perceivable:**
334- **1.1.1 Non-text Content (Level A):** Do all images, charts, diagrams, and interactive
335 simulations have descriptive alt text? [Access-1] [T5]
336 - *Images/charts:* Alt text must convey the same information as the visual. For complex
337 charts, provide a long description or data table equivalent.
338 - *Interactive simulations:* Provide a text-based alternative that achieves the same
339 learning objective. If a simulation cannot be made accessible, offer an equivalent
340 activity (e.g., guided walkthrough, annotated screenshot sequence). [Access-5] [T3]
341- **1.2.2 Captions (Prerecorded) (Level A):** Do all prerecorded video and audio elements
342 have synchronized captions? [Access-1] [T5]
343 - *Lecture videos:* Captions must be synchronized, accurate (99%+ for technical terms),
344 and identify speakers in multi-speaker content. Auto-generated captions alone are
345 insufficient — they must be reviewed and corrected. [Multimedia-6] [T3]
346 - *Discussion forums with video replies:* If the platform supports video posts, caption
347 requirements apply to those as well.
348- **1.2.5 Audio Descriptions (Prerecorded) (Level AA):** Do videos with significant visual
349 content (demonstrations, diagrams drawn on screen, lab procedures) provide audio
350 descriptions of visual information not available from the soundtrack alone? [Access-1] [T5]
351 - *Lecture videos:* When the instructor points to or annotates visual content, the
352 narration must describe what is shown. If natural narration is insufficient, provide
353 a supplementary audio description track or a descriptive transcript. [Multimedia-16] [T3]
354- **1.3.1 Info and Relationships (Level A):** Is content structure (headings, lists, tables,
355 form labels) programmatically determinable? [Access-1] [T5]
356 - *PDF/document downloads:* Documents must be tagged PDFs with proper heading structure,
357 reading order, and table headers. Scanned image-only PDFs are a Level A violation.
358 - *Course pages:* Use semantic HTML headings (h1-h6), not just bold/large text.
359- **1.3.2 Meaningful Sequence (Level A):** Does the reading order make sense when CSS or
360 visual formatting is removed? [Access-1] [T5]
361 - *PDF/document downloads:* Tag order must match intended reading sequence. Multi-column
362 layouts need explicit reading order tags.
363- **1.4.3 Contrast (Minimum) (Level AA):** Is there at least 4.5:1 contrast ratio for normal
364 text and 3:1 for large text? [Access-1] [T5]
365- **1.4.5 Images of Text (Level AA):** Is actual text used instead of images of text (except
366 logos or where a particular visual presentation is essential)? [Access-1] [T5]
367
368**Operable:**
369- **2.1.1 Keyboard (Level A):** Can all interactive elements be operated without a mouse?
370 [Access-1] [T5]
371 - *Discussion forums:* Reply buttons, text editors, file upload controls, and thread
372 navigation must all be keyboard accessible. Rich text editors must support keyboard
373 shortcuts for formatting.
374 - *Interactive simulations:* All controls (drag-and-drop, sliders, drawing tools) must
375 have keyboard alternatives. [Access-5] [T3]
376 - *Quizzes/assessments:* All question types (multiple choice, drag-and-drop matching,
377 hotspot) must be operable via keyboard alone.
378- **2.2.1 Timing Adjustable (Level A):** Are timed activities adjustable, extendable, or
379 removable? [Access-1] [T5]
380 - *Quizzes/assessments:* Timed exams must allow time extensions (at minimum 10x the
381 default). The LMS accommodation settings must be configured. Document how instructors
382 grant extensions. [Access-5] [T3]
383 - If a time limit is essential to the learning objective (e.g., triage simulation),
384 document the pedagogical rationale and provide an untimed practice version.
385- **2.3.1 Three Flashes or Below Threshold (Level A):** Do any elements flash more than 3
386 times per second? [Access-1] [T5]
387- **2.4.1 Bypass Blocks (Level A):** Is there a mechanism to skip repeated navigation and
388 reach the main content? [Access-1] [T5]
389- **2.4.6 Headings and Labels (Level AA):** Do headings and labels describe topic or
390 purpose? [Access-1] [T5]
391 - *Discussion forums:* Thread titles and post labels must be descriptive. Screen reader
392 users navigate by headings — generic labels like "Post 1" are insufficient.
393
394**Understandable:**
395- **3.1.1 Language of Page (Level A):** Is the default human language of each page
396 programmatically set? [Access-1] [T5]
397- **3.1.2 Language of Parts (Level AA):** Are changes in language within content marked up
398 (e.g., foreign terms, quotations in another language)? [Access-1] [T5]
399- **3.2.3 Consistent Navigation (Level AA):** Is the course layout consistent across
400 modules? Do navigation elements appear in the same relative order? [Access-1] [T5]
401- **3.2.4 Consistent Identification (Level AA):** Are components with the same function
402 identified consistently throughout the course? [Access-1] [T5]
403- **3.3.1 Error Identification (Level A):** Do forms and assessments automatically detect
404 input errors and describe them to the user in text? [Access-1] [T5]
405 - *Quizzes/assessments:* When a learner submits an incomplete or invalid response, the
406 error message must identify which question has the error and describe what is wrong.
407 Color alone must not be the error indicator. [Access-5] [T3]
408- **3.3.2 Labels or Instructions (Level A):** Are labels or instructions provided when
409 content requires user input? [Access-1] [T5]
410 - *Quizzes/assessments:* Each question must have a clear, visible label. Instructions
411 for complex question types (matching, ordering, essay) must be explicit.
412- **3.3.3 Error Suggestion (Level AA):** When an input error is detected and suggestions
413 are known, are they provided to the user? [Access-1] [T5]
414- **Readability:** What is the reading level? (Flag if above grade 12 for general audiences,
415 above grade 10 for introductory courses.) Use Flesch-Kincaid or similar readability
416 measure. While not a WCAG success criterion, readability directly affects
417 comprehension for diverse learners. [Access-4] [T3]
418
419**Robust:**
420- **4.1.2 Name, Role, Value (Level A):** Do all user interface components (form elements,
421 links, custom widgets) have accessible names and roles? [Access-1] [T5]
422 - *Interactive simulations:* Custom widgets must expose their role, state, and value to
423 assistive technologies via ARIA attributes.
424- **Multiple formats:** Is content available in at least 2 formats (text + audio, video +
425 transcript)? This goes beyond WCAG minimum but is a recognized best practice for
426 course accessibility. [Access-5] [T3] [Multimedia-9] [T1]
427
428#### Content-Type Checklist
429
430Use this checklist to audit each content type present in the course:
431
432| Content Type | Key WCAG Criteria | What to Check |
433|---|---|---|
434| **Lecture videos** | 1.2.2, 1.2.5 | Synchronized captions (reviewed, not auto-only); audio descriptions for visual-only content; transcript available for download [Multimedia-6] [T3] |
435| **Discussion forums** | 2.1.1, 2.4.6 | Keyboard navigation for all controls; descriptive labels for screen readers; accessible rich text editor [Access-1] [T5] |
436| **Quizzes/assessments** | 2.2.1, 3.3.1, 3.3.2, 3.3.3 | Time limit extensions; clear error messages; labeled questions; keyboard-operable question types [Access-5] [T3] |
437| **PDF/document downloads** | 1.3.1, 1.3.2 | Tagged PDF with heading structure; correct reading order; table headers; no image-only scans [Access-1] [T5] |
438| **Interactive simulations** | 1.1.1, 2.1.1, 4.1.2 | Text alternative for the learning objective; keyboard alternatives for all controls; ARIA roles on custom widgets [Access-5] [T3] |
439| **Images/diagrams** | 1.1.1, 1.4.5 | Descriptive alt text; long descriptions for complex visuals; real text not images of text [Access-1] [T5] |
440
441For each violation found, provide:
442- The WCAG success criterion number and level (e.g., "1.2.2 Level A")
443- What the violation is
444- Where it occurs (which module, assessment, or content element)
445- Specific remediation with an example
446- Evidence citation
447
448### Step 3: UDL Guidelines 3.0 Enhancement Review (Tier 2: Should Improve)
449
450Review the course design against the three UDL principles. For each checkpoint,
451evaluate whether the course addresses it and recommend improvements.
452
453**Principle 1: Multiple Means of Engagement** [Access-3] [T5]
454
455| Checkpoint | Question | Evidence | Status |
456|------------|----------|----------|--------|
457| Recruiting interest | Are learners offered choices in how they engage? (e.g., choice of discussion topic, project format) | [Access-6] [T2] | |
458| Sustaining effort | Are there varied levels of challenge? Are goals clear with scaffolded difficulty? | [Learner-16] [T1] | |
459| Self-regulation | Are learners supported in setting goals and monitoring progress? (e.g., progress dashboards, self-assessment checklists) | [Assessment-9] [T5] | |
460
461**Principle 2: Multiple Means of Representation** [Access-3] [T5]
462
463| Checkpoint | Question | Evidence | Status |
464|------------|----------|----------|--------|
465| Perception | Is content available in multiple sensory modalities? (text + audio, video + transcript) | [Multimedia-9] [T1] | |
466| Language & symbols | Are key terms defined? Are notations explained? Are glossaries or vocabulary supports provided? | [Access-4] [T3] | |
467| Comprehension | Are background knowledge activators provided? Are big ideas highlighted? Are worked examples or graphic organizers used? | [CogLoad-13] [T3] | |
468
469**Principle 3: Multiple Means of Action & Expression** [Access-3] [T5]
470
471| Checkpoint | Question | Evidence | Status |
472|------------|----------|----------|--------|
473| Physical action | Can learners interact through multiple methods? (keyboard, voice, touch) | [Access-5] [T3] | |
474| Expression & communication | Can learners demonstrate knowledge in multiple ways? (written, oral, visual, project-based) | [Learner-6] [T1] | |
475| Executive functions | Are planning tools, checklists, or scaffolds provided? (rubrics shared upfront, milestone tracking) | [Access-8] [T3] | |
476
477For each checkpoint not met, provide:
478- What's missing
479- A concrete recommendation with example
480- Evidence citation from Domain 11 or cross-domain principles
481- Why this matters for specific learner populations (not just compliance)
482
483**Key UDL evidence base:**
484- [Access-4] [T3] — UDL in online courses improves outcomes across diverse learner populations.
485- [Access-6] [T2] — UDL-designed instruction shows positive effects on learning outcomes.
486- [Access-7] [T3] — UDL training improves teacher competences in inclusive design.
487- [Access-8] [T3] — UDL in postsecondary STEM shows positive engagement and learning effects.
488- [Access-9] [T1] — Differentiated instruction produces measurable learning gains.
489- [Multimedia-9] [T1] — Multimedia design principles (multiple representations) improve learning.
490- [Learner-16] [T1] — Effective differentiation practices produce learning gains across populations.
491
492### Step 4: Accessibility Score
493
494Calculate the accessibility score (0-100):
495
496**WCAG Component (0-50):**
497- Start at 50
498- Deduct 10 points per WCAG Level A violation
499- Deduct 5 points per WCAG Level AA violation
500- Floor at 0
501
502**UDL Component (0-50):**
503- 9 UDL checkpoints (3 per principle)
504- ~5.5 points per checkpoint addressed
505- Partial credit for partially addressed checkpoints
506
507**Combined Score:**
508- 80+ "Strong accessibility" — meets compliance and supports diverse learners
509- 60-79 "Needs improvement" — basic compliance but gaps in inclusivity
510- 40-59 "Significant gaps" — multiple compliance issues and limited UDL coverage
511- <40 "Major accessibility barriers" — course needs substantial redesign
512
513### Step 5: Generate Report
514
515Generate a human-readable report at `.idstack/reports/accessibility-review.md` so the designer has a single document to read covering both compliance (WCAG, the Must Fix layer) and inclusion (UDL, the Should Improve layer). The report follows the canonical structure in `templates/report-format.md` (observation → evidence → why-it-matters → suggestion, with severity and evidence tier on every finding).
516
517```bash
518mkdir -p .idstack/reports
519```
520
521Write `.idstack/reports/accessibility-review.md` with this structure:
522
523```markdown
524# Accessibility Review Report
525
526**Course:** [project_name]
527**Generated:** [ISO-8601 timestamp]
528**Skill:** /idstack:accessibility-review
529
530## Summary
531
532[2–3 sentences. Lead with: overall score, number of Must Fix items at Level A, biggest
533single barrier the designer should know about. Don't bury the lede.]
534
535**Scores:** Overall XX/100 · WCAG XX/100 · UDL XX/100
536
537## Tier 1 — Must Fix (WCAG 2.1 AA)
538
539[One finding block per violation. Stable ids: `wcag-1`, `wcag-2`, etc.
540Order: Level A first (the floor), then AA. Within level, by impact.]
541
542### Finding wcag-1: [criterion + short title] [severity] [tier]
543
544**What we saw.** [Concrete observation: "Module 3 video lacks captions; the cartridge
545references the .mp4 but no .vtt or .srt is present."]
546
547**What the evidence says.** WCAG 2.1 SC 1.2.2 (Captions): captions are required for
548all prerecorded audio content in synchronized media. [Access-N] [Tier]
549
550**Why it matters.** [Bridge: ~15% of learners have hearing loss; without captions
551the content is inaccessible to them and to learners watching in noisy or quiet
552environments.]
553
554**Consider.** [Collaborative recommendation: "Generate captions via the LMS auto-
555caption tool, then human-review for accuracy. The 4 affected modules are listed
556in the manifest under `accessibility_review.wcag_violations[].affected`."]
557
558---
559
560[Repeat per WCAG violation.]
561
562## Tier 2 — Should Improve (UDL 3.0)
563
564[One finding block per UDL recommendation. Stable ids: `udl-1`, `udl-2`, etc.
565Group by principle: Engagement, Representation, Action & Expression.]
566
567### Finding udl-1: [principle + short title] [info] [tier]
568
569**What we saw.** [Concrete observation.]
570
571**What the evidence says.** [1–2 sentences citing the UDL guideline + research base.]
572[Access-N] [Tier]
573
574**Why it matters.** [Bridge: UDL is about *flexibility*. A single mode of
575representation/engagement/expression excludes learners whose needs that mode
576doesn't fit.]
577
578**Consider.** [Collaborative recommendation. UDL is enhancement, not compliance —
579phrasing should reflect that.]
580
581---
582
583[Repeat per UDL recommendation.]
584
585## Top recommendations
586
587[The 3 changes with the highest impact-to-effort ratio. Cite each. Per the
588canonical report format, this section is what the pipeline aggregator and
589`bin/idstack-status` may surface as a digest.]
590
5911. **[Action]** [Domain-N] [Tier] — [one-line why; pointer to finding id]
5922. ...
593
594## Limitations
595
596[What this report didn't analyze. Examples: review reads structural metadata, not
597the actual learner-facing content text; alt-text quality is checked for presence
598not for descriptive accuracy; UDL recommendations are generated from manifest
599signals, not from observed learner use.]
600
601## Next steps
602
603If WCAG Level A violations are present, address those first — they block access.
604Then run `/idstack:red-team` for adversarial persona testing (the persona dimension
605will simulate learners who depend on the accommodations being audited here).
606
607---
608
609*Generated by `/idstack:accessibility-review`. The system-readable manifest section is in `.idstack/project.json` under `accessibility_review`.*
610```
611
612---
613
614## Write Manifest
615
616Save results to `.idstack/project.json` via the merge tool, which replaces only the
617`accessibility_review` section, preserves every other section verbatim, validates JSON,
618and atomically updates the top-level `updated` timestamp. The payload must include
619`report_path: ".idstack/reports/accessibility-review.md"`.
620
621```bash
622"$_IDSTACK/bin/idstack-manifest-merge" --section accessibility_review --payload - <<'PAYLOAD'
623{
624 "updated": "<ISO-8601 timestamp>",
625 "report_path": ".idstack/reports/accessibility-review.md",
626 "score": {"overall": 0, "wcag": 0, "udl": 0},
627 "wcag_violations": [
628 {
629 "id": "wcag-1",
630 "criterion": "1.2.2 Captions",
631 "level": "A",
632 "description": "...",
633 "affected": ["Module 3"],
634 "severity": "critical|warning|info"
635 }
636 ],
637 "udl_recommendations": [
638 {
639 "id": "udl-1",
640 "principle": "engagement|representation|action_expression",
641 "description": "...",
642 "status": "fully_met|partial|not_met"
643 }
644 ],
645 "quick_wins": []
646}
647PAYLOAD
648```
649
650If `.idstack/project.json` doesn't exist yet, run `bin/idstack-migrate .idstack/project.json`
651first — that creates a fresh canonical manifest. The merge tool exits with a non-zero
652status (and an error message on stderr) if the section name is misspelled, the payload is
653malformed, or the manifest is corrupt — never silently overwriting.
654
655For the full manifest schema (other sections you may need to read), see the
656**Manifest Schema Reference** at the bottom of this file.
657
658**Fallback (if `bin/idstack-manifest-merge` is unavailable):** Read the full manifest,
659modify only the `accessibility_review` section, Write back. Preserve all other sections
660verbatim.
661
662After writing the manifest, confirm to the user:
663
664"Your accessibility review is saved. Two artifacts:
665
666- **Read this:** `.idstack/reports/accessibility-review.md` — the report with WCAG
667 violations (Must Fix), UDL recommendations (Should Improve), evidence-backed
668 findings on every item, and the 3 highest-impact quick wins.
669- System state: `.idstack/project.json` (the manifest — for downstream skills).
670
671**Score:** Overall XX/100 · WCAG XX/100 · UDL XX/100. [If Level A violations exist,
672flag them as the priority before any UDL work.]
673
674**Next step:** Run `/idstack:red-team` for adversarial persona testing — the persona
675dimension will stress-test the accommodations from this review against learners who
676depend on them."
677
678---
679
680## Manifest Schema Reference
681
682The idstack manifest lives at `.idstack/project.json`. Schema version: **1.4**.
683
684This is the canonical schema. Every skill writes to its own section using the shapes documented here; **all other sections must be preserved verbatim**. There is one source of truth — this file. If the schema ever needs to change, edit `templates/manifest-schema.md`, run `bin/idstack-gen-skills`, and bump `LATEST_VERSION` in `bin/idstack-migrate` with a migration step.
685
686### Two outputs per skill: JSON manifest + Markdown report
687
688Every skill that produces findings emits **both**:
689
690- a **JSON section** in this manifest (system state — read by other skills, the pipeline orchestrator, and `bin/idstack-status`), and
691- a **Markdown report** at `.idstack/reports/<skill>.md` (the human view — read by the instructional designer).
692
693The Markdown report follows the canonical structure in `templates/report-format.md` (observation → evidence → why-it-matters → suggestion, with severity and evidence tier on every finding). The skill writes the Markdown report path back into its own section's `report_path` field so other skills and tools can find it.
694
695`report_path` is an optional string field on every section that produces a report. Empty string means the skill hasn't run yet, or ran in a mode that didn't produce a report.
696
697### Two ways to write to the manifest
698
699**1. Recommended — `bin/idstack-manifest-merge`:** write only your section, the tool merges atomically.
700
701```bash
702# Write a payload for your skill's section, then:
703"$_IDSTACK/bin/idstack-manifest-merge" --section red_team_audit --payload /tmp/payload.json
704```
705
706The merge tool replaces only the named top-level section, preserves every other section, updates the top-level `updated` timestamp, validates JSON on read, and rejects unknown sections. Use this in preference to inlining the full manifest in `Edit` operations.
707
708**2. Fallback — manual full-manifest write:** if the merge tool is unavailable for some reason, Read the full manifest, modify only your section, Write back. Preserve all other sections verbatim. Use the full schema below as reference.
709
710### Top-level fields
711
712| Field | Owner skill(s) | Notes |
713|---|---|---|
714| `version` | (migrate) | Always equals current schema version. Auto-managed by `bin/idstack-migrate`. |
715| `project_name` | (any) | Set on first manifest creation. Don't overwrite once set. |
716| `created` | (any, once) | ISO-8601 timestamp of first creation. Don't overwrite. |
717| `updated` | (any) | ISO-8601 of last write. Updated automatically by `bin/idstack-manifest-merge`. |
718| `context` | needs-analysis (initial) | Modality, timeline, class size, etc. Edited by skills that learn new context. |
719| `needs_analysis` | needs-analysis | Org context, task analysis, learner profile, training justification. |
720| `learning_objectives` | learning-objectives | ILOs, alignment matrix, expertise-reversal flags. |
721| `assessments` | assessment-design | Items, formative checkpoints, feedback plan, rubrics. |
722| `course_content` | course-builder | Generated modules, syllabus, content paths. |
723| `import_metadata` | course-import | Source LMS, items imported, quality-flag details. |
724| `export_metadata` | course-export | Export destination, items exported, readiness check. |
725| `quality_review` | course-quality-review | QM standards, CoI presence, alignment audit, cross-domain checks, scores. |
726| `red_team_audit` | red-team | Confidence score, dimensions, findings (with stable ids), top actions. |
727| `accessibility_review` | accessibility-review | WCAG / UDL scores, violations, recommendations, quick wins. |
728| `preferences` | (any, opt-in) | User-set verbosity, export format, preferred LMS, auto-advance. |
729
730### Full schema (canonical shape)
731
732```json
733{
734 "version": "1.4",
735 "project_name": "",
736 "created": "",
737 "updated": "",
738 "context": {
739 "modality": "",
740 "timeline": "",
741 "class_size": "",
742 "institution_type": "",
743 "available_tech": []
744 },
745 "needs_analysis": {
746 "mode": "",
747 "report_path": "",
748 "organizational_context": {
749 "problem_statement": "",
750 "stakeholders": [],
751 "current_state": "",
752 "desired_state": "",
753 "performance_gap": ""
754 },
755 "task_analysis": {
756 "job_tasks": [],
757 "prerequisite_knowledge": [],
758 "tools_and_resources": []
759 },
760 "learner_profile": {
761 "prior_knowledge_level": "",
762 "motivation_factors": [],
763 "demographics": "",
764 "access_constraints": [],
765 "learning_preferences_note": "Learning styles are NOT used as a differentiation basis per evidence. Prior knowledge is the primary differentiator."
766 },
767 "training_justification": {
768 "justified": true,
769 "confidence": 0,
770 "rationale": "",
771 "alternatives_considered": []
772 }
773 },
774 "learning_objectives": {
775 "report_path": "",
776 "ilos": [],
777 "alignment_matrix": {
778 "ilo_to_activity": {},
779 "ilo_to_assessment": {},
780 "gaps": []
781 },
782 "expertise_reversal_flags": []
783 },
784 "assessments": {
785 "mode": "",
786 "report_path": "",
787 "assessment_strategy": "",
788 "items": [],
789 "formative_checkpoints": [],
790 "feedback_plan": {
791 "strategy": "",
792 "turnaround_days": 0,
793 "peer_review": false
794 },
795 "feedback_quality_score": 0,
796 "rubrics": [],
797 "audit_notes": []
798 },
799 "course_content": {
800 "mode": "",
801 "report_path": "",
802 "generated_at": "",
803 "expertise_adaptation": "",
804 "syllabus": "",
805 "modules": [],
806 "assessments": [],
807 "rubrics": [],
808 "content_dir": ".idstack/course-content/",
809 "generated_files": [],
810 "build_timestamp": "",
811 "placeholders_used": [],
812 "recommended_generation_targets": []
813 },
814 "import_metadata": {
815 "source": "",
816 "report_path": "",
817 "imported_at": "",
818 "source_lms": "",
819 "source_cartridge": "",
820 "source_size_bytes": 0,
821 "schema": "",
822 "items_imported": {
823 "modules": 0,
824 "objectives": 0,
825 "module_objectives": 0,
826 "assessments": 0,
827 "activities": 0,
828 "pages": 0,
829 "rubrics": 0,
830 "quizzes": 0,
831 "discussions": 0
832 },
833 "quality_flags": 0,
834 "quality_flag_details": []
835 },
836 "export_metadata": {
837 "report_path": "",
838 "exported_at": "",
839 "format": "",
840 "destination": "",
841 "items_exported": {
842 "modules": 0,
843 "pages": 0,
844 "assignments": 0,
845 "quizzes": 0,
846 "discussions": 0
847 },
848 "failed_items": [],
849 "notes": "",
850 "readiness_check": {
851 "quality_score": 0,
852 "quality_reviewed": false,
853 "red_team_critical": 0,
854 "red_team_reviewed": false,
855 "accessibility_critical": 0,
856 "accessibility_reviewed": false,
857 "verdict": ""
858 }
859 },
860 "quality_review": {
861 "report_path": "",
862 "last_reviewed": "",
863 "qm_standards": {
864 "course_overview": {"status": "", "findings": []},
865 "learning_objectives": {"status": "", "findings": []},
866 "assessment": {"status": "", "findings": []},
867 "instructional_materials": {"status": "", "findings": []},
868 "learning_activities": {"status": "", "findings": []},
869 "course_technology": {"status": "", "findings": []},
870 "learner_support": {"status": "", "findings": []},
871 "accessibility": {"status": "", "findings": []}
872 },
873 "coi_presence": {
874 "teaching_presence": {"score": 0, "findings": []},
875 "social_presence": {"score": 0, "findings": []},
876 "cognitive_presence": {"score": 0, "findings": []}
877 },
878 "alignment_audit": {"findings": []},
879 "cross_domain_checks": {
880 "cognitive_load": {"score": 0, "flags": []},
881 "multimedia_principles": {"score": 0, "flags": []},
882 "feedback_quality": {"score": 0, "flags": []},
883 "expertise_reversal": {"score": 0, "flags": []}
884 },
885 "overall_score": 0,
886 "score_breakdown": {
887 "qm_structural": 0,
888 "coi_presence": 0,
889 "constructive_alignment": 0,
890 "cross_domain_evidence": 0
891 },
892 "quick_wins": [],
893 "recommendations": [],
894 "review_history": []
895 },
896 "red_team_audit": {
897 "updated": "",
898 "confidence_score": 0,
899 "focus": "",
900 "report_path": "",
901 "findings_summary": {"critical": 0, "warning": 0, "info": 0},
902 "dimensions": {
903 "alignment": {"score": "", "findings": []},
904 "evidence": {"score": "", "mode": "", "findings": []},
905 "cognitive_load": {"score": "", "findings": []},
906 "personas": {"score": "", "findings": []},
907 "prerequisites": {"score": "", "findings": []}
908 },
909 "top_actions": [],
910 "limitations": [],
911 "fixes_applied": [],
912 "fixes_deferred": []
913 },
914 "accessibility_review": {
915 "updated": "",
916 "report_path": "",
917 "score": {"overall": 0, "wcag": 0, "udl": 0},
918 "wcag_violations": [],
919 "udl_recommendations": [],
920 "quick_wins": []
921 },
922 "preferences": {
923 "verbosity": "normal",
924 "export_format": "",
925 "preferred_lms": "",
926 "auto_advance_pipeline": false
927 }
928}
929```
930
931### Per-section item shapes
932
933These document the **shape of array elements and dictionary values** that the canonical schema leaves as `[]` or `{}`. Skills should produce items in these shapes; downstream skills can rely on them.
934
935**`learning_objectives.alignment_matrix.ilo_to_activity`** — keyed by ILO id, values are arrays of activity names:
936```json
937{ "ILO-1": ["Module 1 case study", "Discussion 2"], "ILO-2": [] }
938```
939
940**`learning_objectives.alignment_matrix.ilo_to_assessment`** — same shape, values are arrays of assessment titles.
941
942**`learning_objectives.alignment_matrix.gaps[]`** — each item:
943```json
944{
945 "ilo": "ILO-1",
946 "type": "untested|orphaned|underspecified|bloom_mismatch",
947 "description": "ILO-1 has no matching assessment in the active modules.",
948 "severity": "critical|warning|info"
949}
950```
951
952**`learning_objectives.ilos[]`** — each item:
953```json
954{
955 "id": "ILO-1",
956 "statement": "Analyze competitive forces in...",
957 "blooms_level": "analyze",
958 "blooms_confidence": "high|medium|low"
959}
960```
961
962**`assessments.items[]`** — each item:
963```json
964{
965 "id": "A-1",
966 "type": "quiz|discussion|rubric|peer_review|gate|...",
967 "title": "Module 1 Quiz",
968 "weight": 5,
969 "ilos_measured": ["ILO-1", "ILO-3"],
970 "rubric_present": true,
971 "elaborated_feedback": false,
972 "alignment_status": "weak|moderate|strong"
973}
974```
975
976**`assessments.rubrics[]`** — each item:
977```json
978{
979 "id": "rubric-1",
980 "title": "SM Project Rubric",
981 "criteria": [{"name": "...", "blooms_level": "...", "weight": 0}],
982 "applies_to": ["A-3"]
983}
984```
985
986**`import_metadata.quality_flag_details[]`** — each item (replaces the legacy `_import_quality_flags` root field that sometimes appeared in the wild):
987```json
988{
989 "key": "orphan_module_8",
990 "description": "Module 8 wiki content exists in the cartridge but is not referenced in <organizations>.",
991 "severity": "warning|critical|info",
992 "evidence": "Optional citation tag, e.g. [Alignment-1] [T5]"
993}
994```
995
996**`red_team_audit.dimensions.<name>.findings[]`** — each item (matches the `<dimension>-<n>` id convention from the red-team orchestrator):
997```json
998{
999 "id": "alignment-1",
1000 "description": "ILO-2 (vision/mission) has no matching assessment.",
1001 "module": "Module 4",
1002 "severity": "critical|warning|info"
1003}
1004```
1005
1006**`accessibility_review.wcag_violations[]`** — each item:
1007```json
1008{
1009 "id": "wcag-1",
1010 "criterion": "1.3.1 Info and Relationships",
1011 "level": "A|AA|AAA",
1012 "description": "All cartridge HTML pages lack <h1> elements.",
1013 "affected": ["page1.html", "page2.html"],
1014 "severity": "critical|warning|info"
1015}
1016```
1017
1018**`accessibility_review.udl_recommendations[]`** — each item:
1019```json
1020{
1021 "id": "udl-1",
1022 "principle": "engagement|representation|action_expression",
1023 "description": "Add transcripts to all videos.",
1024 "status": "fully_met|partial|not_met"
1025}
1026```
1027
1028**`quality_review.qm_standards.<standard>.findings[]`**, **`quality_review.alignment_audit.findings[]`**, **`quality_review.cross_domain_checks.<check>.flags[]`**, and other findings arrays — each item:
1029```json
1030{
1031 "id": "<dimension>-<n>",
1032 "description": "...",
1033 "evidence": "[Domain-N] [TX]",
1034 "severity": "critical|warning|info"
1035}
1036```
1037
1038### Mode field — design-new vs audit-existing
1039
1040`needs_analysis.mode`, `assessments.mode`, and `course_content.mode` record which operating mode the corresponding skill ran in. Trigger: `import_metadata.source` ∈ `{cartridge, scorm, canvas-api}` plus the relevant section being non-empty (skill-specific check).
1041
1042Allowed values per skill:
1043- `needs_analysis.mode`: `"design-new"` or `"audit-existing"`
1044- `assessments.mode`: `"Mode 1"`, `"Mode 2"`, or `"Mode 3"` (Mode 1 = full upstream data, Mode 2 = ILOs-from-scratch, Mode 3 = audit existing assessments)
1045- `course_content.mode`: `"build-new"` or `"gap-fill"`
1046
1047Empty string means the skill hasn't run yet or didn't record the mode (legacy manifests).
1048
1049**`assessments.audit_notes[]`** — only populated in Mode 3. Records which audit findings the user chose to act on:
1050```json
1051{
1052 "target_id": "A-3",
1053 "action": "applied|deferred|declined",
1054 "description": "Rubric criterion for ILO-2 added: 'Synthesis depth (1-4 scale)'.",
1055 "reason": "Optional — only meaningful for deferred/declined."
1056}
1057```
1058
1059**`course_content.recommended_generation_targets[]`** — populated in `gap-fill` mode. Lists artifacts upstream skills flagged as missing, with status:
1060```json
1061{
1062 "description": "Discussion rubric for Module 5",
1063 "source": "red-team:alignment-3 | quality-review:learner_support-2 | user-request",
1064 "status": "generated|deferred|declined",
1065 "output_path": "Optional — set when status=generated, points to the generated file."
1066}
1067```
1068
1069## Feedback
1070
1071Have feedback or a feature request? [Share it here](https://forms.gle/6LDgDD1M6WWyYvME8) — no GitHub account needed.
1072
1073---
1074
1075## Completion: Timeline Logging
1076
1077After the skill workflow completes successfully, log the session to the timeline:
1078
1079```bash
1080"$_IDSTACK/bin/idstack-timeline-log" '{"skill":"accessibility-review","event":"completed"}'
1081```
1082
1083Replace the JSON above with actual data from this session. Include skill-specific fields
1084where available (scores, counts, flags). Log synchronously (no background &).
1085
1086If you discover a non-obvious project-specific quirk during this session (LMS behavior,
1087import format issue, course structure pattern), also log it as a learning:
1088
1089```bash
1090"$_IDSTACK/bin/idstack-learnings-log" '{"skill":"accessibility-review","type":"operational","key":"SHORT_KEY","insight":"DESCRIPTION","confidence":8,"source":"observed"}'
1091```