Skip to content

docs: add Copilot template reviewer (template grading rubric) - #3783

Merged
cixzhang merged 2 commits into
mainfrom
docs/copilot-templates-reviewer
Jul 11, 2026
Merged

cixzhang merged 2 commits into
mainfrom
docs/copilot-templates-reviewer

Conversation

@cixzhang

@cixzhang cixzhang commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds a path-scoped Copilot instruction file for CLI templates so template PRs are reviewed against Astryx's Template Grading Rubric.

.github/instructions/templates.instructions.md (applyTo: packages/cli/templates/**) grades every changed page/block template on the rubric's 7 categories (100 pts):

  1. Astryx component purity (30) — raw HTML tags flagged unless no Astryx equivalent
  2. Icon purity (15) — Icon wrapper / icon= prop, never raw <svg>
  3. Custom CSS (15) — style through props, not stylex.create/style/className
  4. Layout & structure (15) — Layout/Center root (or AppShell for Shell - category), responsive Grid, single page
  5. Doc metadata (10) — required .doc.mjs fields, correct aspectRatio, accurate componentsUsed
  6. Image handling (5) — astryx CDN lookaside URLs only
  7. Code quality (10) — 'use client', default export, self-contained imports, realistic mock data, no dead code

Bar: B (75) or above, matching the gallery standard. Reviews post the rubric's scorecard + top-3 fixes for substantial changes; small tweaks just flag any category dipping below B. Advisory (comment, not hard-block).

Notes

  • Scope disambiguation: these files also match packages.instructions.md. The new file states that the component-authoring checklist (forwardRef/sync-exports/colocated tests) does not apply to templates — they're examples, not published components — while the shared Design review + StyleX rules still do.
  • Lifecycle tie-in: flags a new template added already-visible (its .doc.mjs is not hidden: true) as skipping hidden-staging — the reviewer asks to confirm it grades B+ or to add hidden: true until it does. Cross-references the Promotion Gates wiki section.
  • All wiki links (including the #template-grading-rubric and #promotion-gates anchors) resolve.

@vercel

vercel Bot commented Jul 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 11, 2026 12:04am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 11, 2026

@thedjpetersen thedjpetersen 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.

Approved.

@cixzhang
cixzhang merged commit 7aef8d3 into main Jul 11, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jul 11, 2026
@github-actions
github-actions Bot deleted the docs/copilot-templates-reviewer branch July 12, 2026 06:58

This branch was successfully deployed

1 active deployment
Preview — f991e64c Deployed Jul 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants