td-ai-tools 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "td-ai-tools",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Install agent skills and packs into your project",
5
5
  "type": "module",
6
6
  "scripts": {
package/skills/README.md CHANGED
@@ -1,7 +1,10 @@
1
1
  # skills
2
2
 
3
3
  ## Available Skills
4
+ - `a11y-audit`: Run script-driven accessibility audits for user-provided URLs with Axe Core and Playwright, targeting…
5
+ - `barrage`: Convert a group of Basecamp todos or cards into a td-barrage queue.json task file.
4
6
  - `basecamp`: Interact with Basecamp via the Basecamp CLI.
7
+ - `browser-validation`: Before completing a task validate frontend or template changes in a real browser with the Playwright-CLI…
5
8
  - `cache-reset`: Clear and warm Laravel and Statamic caches (including Statamic Glide image caches) after content or template…
6
9
  - `car-ticket-generator`: Generate a ticket for the codex-auto-runner queue
7
10
  - `everhour-basecamp-estimates`: Bulk update Everhour task estimates from a Basecamp todo or todolist URL, then append bracketed hours to the…
@@ -12,6 +15,7 @@
12
15
  - `pull-request`: Generates well-structured GitHub pull request descriptions for Shopify theme development teams by analyzing…
13
16
  - `pull-request-statamic`: Generates GitHub pull request descriptions for Statamic and Laravel development by analyzing git diffs and…
14
17
  - `record-changes`: Update `docs/changes.md` by summarizing the current branch against the primary development branch.
18
+ - `scry`: Single-site visual regression workflow for comparing a live URL against a preview/staging URL in Playwright…
15
19
  - `stylesheet-migration`: Migrate Shopify Liquid `{% stylesheet %}` blocks into theme CSS assets using bundled Python scripts.
16
20
  - `td-js-vanilla-rules`: Theory Digital vanilla JavaScript standards for Shopify theme work.
17
21
  - `td-review`: Run parallel code review agents on a PR (including TD theme compliance) and produce a synthesized findings…
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: a11y-audit
3
+ description: Run script-driven accessibility audits for user-provided URLs with Axe Core and Playwright, targeting baseline or WCAG thresholds such as WCAG 2.1 AA or WCAG 2.2 AA. Use when Codex is asked to audit a page/site for accessibility, produce a prioritized list of required accessibility changes, identify WCAG/Axe violations, or perform manual accessibility review with playwright-cli.
4
+ ---
5
+
6
+ # A11y Audit
7
+
8
+ ## Workflow
9
+
10
+ 1. Run the Axe audit script first. Keep dependencies local to this skill directory.
11
+
12
+ ```bash
13
+ cd .agents/skills/a11y-audit
14
+ npm run setup
15
+ node scripts/audit.js "https://example.com" --threshold wcag22aa
16
+ ```
17
+
18
+ If the user does not name a threshold, use `baseline`. Accepted thresholds: `baseline`, `wcag2a`, `wcag2aa`, `wcag21aa`, `wcag22aa`. The script also accepts multiple URLs and `--tags` for custom Axe tag filters.
19
+
20
+ 2. Read the generated Markdown report path printed by the script. Use it as the primary source of automated findings and required changes.
21
+
22
+ 3. If the report includes `Manual review required`, review those items with `$playwright-cli`. Use browser snapshots, keyboard navigation, screenshots, and targeted page evaluation as needed. Do not guess outcomes for manual-only criteria.
23
+
24
+ 4. Return the final audit as a concise remediation list:
25
+ - Automated failures from Axe that must be fixed.
26
+ - Manual-review failures confirmed with `playwright-cli`.
27
+ - Manual checks that could not be completed, with the blocker and exact next action.
28
+ - Threshold tested, URL(s), viewport(s), and report artifact paths.
29
+
30
+ ## Script
31
+
32
+ Use `scripts/audit.js` for deterministic collection. It:
33
+ - launches Chromium through Playwright;
34
+ - injects Axe Core from the skill-local dependency;
35
+ - audits desktop and mobile viewports by default;
36
+ - writes `report.md`, `results.json`, and `manual-review.json`;
37
+ - groups issues by impact, rule, WCAG tags, affected nodes, and suggested remediation;
38
+ - lists Axe `incomplete` results and threshold-specific human checks for manual review.
39
+
40
+ Exit code `2` means the audit completed and found violations or manual-review items. Treat it as a findings signal, not a runner failure.
41
+
42
+ Useful options:
43
+
44
+ ```bash
45
+ node scripts/audit.js URL [URL ...]
46
+ node scripts/audit.js URL --threshold wcag22aa --out ./a11y-report
47
+ node scripts/audit.js URL --viewport desktop --viewport 390x844
48
+ node scripts/audit.js URL --tags wcag2a,wcag2aa,wcag21aa,wcag22aa
49
+ node scripts/audit.js URL --wait-until networkidle --timeout 45000
50
+ ```
51
+
52
+ ## Manual Review With playwright-cli
53
+
54
+ Use `playwright-cli` only after the script flags manual review or the user asks for deeper investigation. Typical checks:
55
+ - Keyboard path: `Tab`, `Shift+Tab`, `Enter`, `Space`, `Escape`; confirm logical order, visible focus, no traps, and operable controls.
56
+ - Screen-reader semantics proxy: inspect snapshots for names, roles, headings, landmarks, labels, and state changes.
57
+ - Visual checks: screenshots for focus indication, responsive reflow, text spacing, content on hover/focus, contrast edge cases, and motion/animation behavior.
58
+ - Forms and dynamic UI: submit invalid states, open menus/dialogs, expand accordions, trigger errors, and verify announcements or visible status messages.
59
+
60
+ Close browser sessions when finished.
@@ -0,0 +1,4 @@
1
+ interface:
2
+ display_name: "A11y Audit"
3
+ short_description: "Run Axe Core audits with manual review guidance."
4
+ default_prompt: "Use $a11y-audit to audit the provided URL against WCAG 2.2 AA."
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "a11y-audit-skill",
3
+ "version": "1.0.0",
4
+ "private": true,
5
+ "description": "Local dependencies for the a11y-audit Codex skill.",
6
+ "license": "UNLICENSED",
7
+ "type": "commonjs",
8
+ "scripts": {
9
+ "audit": "node scripts/audit.js",
10
+ "setup": "bash scripts/setup.sh"
11
+ },
12
+ "dependencies": {
13
+ "axe-core": "^4.10.3",
14
+ "playwright": "^1.52.0"
15
+ },
16
+ "devDependencies": {}
17
+ }