Skip to content

chore(ai): AI harness (skills, agents, cursor/copilot rules, browse tooling) - #1709

Draft
brtbrt wants to merge 2 commits into
masterfrom
mbertamini/1592-ai-harness
Draft

chore(ai): AI harness (skills, agents, cursor/copilot rules, browse tooling)#1709
brtbrt wants to merge 2 commits into
masterfrom
mbertamini/1592-ai-harness

Conversation

@brtbrt

@brtbrt brtbrt commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

No description provided.

…browse tooling)

Collects the AI-development harness that was mixed into the sidenav-bar branch:
- .claude/.cursor/.github agent skills and instructions
- agents/ skills + README, scripts/browse-story.js, scripts/open-story.js
- AGENTS.md guidance, browse yarn script, lint-staged patterns
- .gitignore entries for local settings and the .component-specs cache
@brtbrt
brtbrt requested a review from a team as a code owner August 25, 2026 19:59
Copilot AI lite review requested due to automatic review settings August 25, 2026 19:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces an “AI harness” baseline for the repo: new agent skills documentation plus a yarn browse CLI to drive Storybook stories in a real browser (preferably the dockerized Chromium used in CI) for interaction, measurement, screenshots, and a11y inspection.

Changes:

  • Add yarn browse command and supporting Puppeteer utilities to open/drive Storybook stories and emit a JSON report.
  • Add vendor-neutral agent skills documentation (agents/skills/*) and link/expand always-on agent rules in AGENTS.md.
  • Adjust lint-staged patterns to avoid Prettier issues with symlinks while still formatting relevant .github and .claude files; add ignores for local AI caches/settings.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
scripts/open-story.js New Puppeteer helper to open Storybook stories via local browser or dockerized Chromium; provides measure/find helpers.
scripts/browse-story.js New yarn browse CLI to apply scripted steps (click/hover/press/measure/shot/a11y/html) and print a JSON report.
package.json Adds browse script and updates lint-staged globs to avoid symlink/prettier issues.
agents/skills/run-in-browser/SKILL.md Documents the “run in CI browser” workflow and the yarn browse interface.
agents/skills/read-component-specs/SKILL.md Documents a workflow for consolidating component specs from issue/spec markdown/Figma.
agents/README.md Explains skill structure and symlink-based vendor integration paths.
AGENTS.md Expands repo-wide agent rules (including guidance to use yarn browse).
.gitignore Ignores local Claude settings and local .component-specs/ cache directory.
.claude/settings.json Adds Claude hook prompting before running git commit* via Bash tool.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread scripts/open-story.js
Comment on lines +174 to +176
log('Starting the dockerized Chromium…');
execSync(`docker compose -f ${DOCKER_COMPOSE_FILE} up -d`, {stdio: 'inherit'});

Comment thread scripts/open-story.js
const os = require('os');
const path = require('path');
const {execSync} = require('child_process');
const puppeteer = require('puppeteer');
Comment thread scripts/browse-story.js
Comment on lines +64 to +72
if (STEP_FLAGS.has(arg)) {
const next = argv[index + 1];
const takesValue = arg !== '--a11y' && (arg !== '--shot' || (next && !next.startsWith('--')));
steps.push({kind: arg.slice(2), value: takesValue ? next : undefined});
if (takesValue) {
index++;
}
continue;
}
@github-actions

Copy link
Copy Markdown

Size stats

master this branch diff
Total JS 15.9 MB 15.9 MB 0 B
JS without icons 1.96 MB 1.96 MB 0 B
Lib overhead 99.1 kB 99.1 kB 0 B
Lib overhead (gzip) 21.4 kB 21.4 kB 0 B

@github-actions

Copy link
Copy Markdown

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy preview for mistica-web ready!

Project:mistica-web
Status: ✅  Deploy successful!
Preview URL:https://mistica-bqthimt8t-flows-projects-65bb050e.vercel.app
Latest Commit:d1b75b2

Deployed with vercel-action

@brtbrt
brtbrt marked this pull request as draft August 26, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants