github-constellation-software
Copilot instructions12 starsChanged 5 months agoMITView on GitHub
- Use Node.js 22, matching the GitHub Actions workflows. - Install the locked dependencies with npm ci. - Start the local Vite server with npm run dev. - Validate the visual contract with npm run design:lint. - Run the production validation with npm run build. This runs tsc --noEmit before the Vite multi-page build. - Run only the TypeScript check with npm run typecheck. - Preview the generated dist/ artifact with npm run preview. - No test runner or general…
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
25 rules. About 0 are common, 7 are distinctive, and 18 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 5
Use Node.js 22, matching the GitHub Actions workflows.
- Very specific: line 7
Start the local Vite server with npm run dev.
- Very specific: line 9
Run the production validation with npm run build.
- Very specific: line 11
Run only the TypeScript check with npm run typecheck.
- Very specific: line 13
No test runner or general source-lint script is currently configured, so there is no single-test command.
- Distinctive: line 15
Do not invent test or lint commands.
- Distinctive: line 49
When adding a top-level page, update all coupled surfaces in the same change:
- Very specific: line 51
Add the page's README content and route-level index.html.
- Very specific: line 52
Add its PageId, import, route metadata, and sourcePath in src/content.ts.
- Very specific: line 54
Add the HTML entry to vite.config.ts.
- Very specific: line 55
Add the page to navigationItems and, if needed, internal route matching in src/App.tsx.
- Distinctive: line 64
Prefer content-only changes in the relevant README over hard-coding page copy in React.
- Very specific: line 79
Update normalizeHref when introducing a new top-level route.
- Very specific: line 80
Put local content images under images/ and reference them relatively from Markdown.
- Distinctive: line 86
Use this implementation hierarchy:
- Distinctive: line 88
Use Primer Primitives functional CSS variables for visual roles.
- Very specific: line 89
Use an Octicon from @primer/octicons-react for interface iconography.
- Distinctive: line 90
Add project CSS only when Primer has no fitting component or pattern.
- Distinctive: line 91
Do not use Primer base color scales directly, introduce another design framework, hand-author interface SVGs, or use emoji as control icons.
- Very specific: line 93
Keep custom layout and responsive behavior in src/styles.css, following the token roles and guardrails in DESIGN.md.
- Very specific: line 101
Keep external links opening in a new tab with rel="noreferrer" and retain accessible labels/current-page state for navigation and heading …
- Very specific: line 110
Commit package-lock.json whenever dependencies change and verify with npm ci.
- Very specific: line 112
Run npm run design:lint whenever DESIGN.md changes.
- Very specific: line 113
Run npm run build before completing any code, route, dependency, or workflow change.
- Very specific: line 117
Do not hand-edit or commit dist/.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub @ CSI repository instructions
Commands
- Use Node.js 22, matching the GitHub Actions workflows.
- Install the locked dependencies with
npm ci. - Start the local Vite server with
npm run dev. - Validate the visual contract with
npm run design:lint. - Run the production validation with
npm run build. This runstsc --noEmitbefore the Vite multi-page build. - Run only the TypeScript check with
npm run typecheck. - Preview the generated
dist/artifact withnpm run preview. - No test runner or general source-lint script is currently configured, so
there is no single-test command.
design:lintvalidates onlyDESIGN.md. Do not invent test or lint commands; use the documented checks unless the repository adds a runner.
Architecture
This is a static, README-driven React site deployed to GitHub Pages.
DESIGN.mdis the project-specific visual contract. Read it before changing UI, CSS, layout, responsive behavior, or visual components. It is normative unless it conflicts with a Primer component API or accessibility guidance.- The canonical page content lives in four Markdown files:
README.md,build-days/README.md,csi-pricing/README.md, andusage-based-billing/README.md. Keep them useful when viewed directly on GitHub; the Pages site enhances the same content rather than maintaining a separate copy. src/content.tsimports those READMEs with Vite's?rawloader and is the central registry for page IDs, routes, labels, descriptions, source paths, and table-of-contents extraction.- Each public route has its own HTML entry point. Its
<body>suppliesdata-pageanddata-site-root;src/App.tsxuses those values to select content and construct project-relative URLs. vite.config.tsdeclares every HTML entry underbuild.rollupOptions.input.base: './'is required so assets resolve under the/github-constellation-software/GitHub Pages project path.src/App.tsxis the shared Primer shell. It owns navigation, theme persistence, Markdown rendering, link/image normalization, heading anchors, tables of contents, and deep-link scrolling.src/main.tsxloads Primer primitives, Primer Markdown styles, and the repository-specific styles fromsrc/styles.css.- Pull requests run
.github/workflows/ci.yml; pushes tomainbuild and deploydist/through.github/workflows/deploy-pages.yml.
Adding or changing pages
When adding a top-level page, update all coupled surfaces in the same change:
- Add the page's README content and route-level
index.html. - Add its
PageId, import, route metadata, andsourcePathinsrc/content.ts. - Add the HTML entry to
vite.config.ts. - Add the page to
navigationItemsand, if needed, internal route matching insrc/App.tsx. - Build and confirm the expected
dist/<route>/index.htmlexists.
The page HTML files should keep route-specific titles/descriptions, use
data-site-root="../" for nested pages, and reference ../favicon.svg.
Markdown and content conventions
- Prefer content-only changes in the relevant README over hard-coding page copy in React.
- Format resource entries as:
**Resource name** — one-line description. [Link](https://example.com). - This is a public resource hub. Authenticated links are exceptional: label the sign-in requirement explicitly and pair them with a public alternative or enough public context to remain useful.
react-markdownrenders GFM, then raw HTML, sanitization, and GitHub-style heading slugs. If README HTML needs a new attribute, deliberately extendmarkdownSchemainsrc/App.tsx; do not bypass sanitization.- The table of contents includes level-two Markdown headings and uses
github-slugger. Preserve GitHub-compatible heading text so README anchors, Pages deep links, and generated TOCs agree. - Repository-relative
.mdlinks are normalized to GitHub source links; links to the dedicated Pages routes are normalized to site-relative URLs. UpdatenormalizeHrefwhen introducing a new top-level route. - Put local content images under
images/and reference them relatively from Markdown.import.meta.globinsrc/App.tsxbundles those images for Pages. Do not edit generated files indist/.
UI conventions
- Use this implementation hierarchy:
- Reuse a supported Primer React component and its documented variants.
- Use Primer Primitives functional CSS variables for visual roles.
- Use an Octicon from
@primer/octicons-reactfor interface iconography. - Add project CSS only when Primer has no fitting component or pattern.
- Do not use Primer base color scales directly, introduce another design framework, hand-author interface SVGs, or use emoji as control icons.
- Keep custom layout and responsive behavior in
src/styles.css, following the token roles and guardrails inDESIGN.md. - Page-specific styling is scoped with
page-<PageId>classes on the root. - Preserve system/light/dark theme behavior and the
github-csi-color-modelocal-storage key. - Desktop uses the sticky sidebar and page TOC; mobile uses horizontally scrollable primary navigation and a collapsible page TOC. Check both layouts when changing navigation, tables, headings, or images.
- Keep external links opening in a new tab with
rel="noreferrer"and retain accessible labels/current-page state for navigation and heading anchors. - For every UI change, review all affected routes in light and dark modes at
narrow (below 768px), regular, and wide (1280px+) viewports. Check keyboard
focus, current-page state, readable line length, image aspect ratios,
horizontal table overflow, and
prefers-reduced-motion.
Validation and delivery
- Commit
package-lock.jsonwhenever dependencies change and verify withnpm ci. - Run
npm run design:lintwheneverDESIGN.mdchanges. - Run
npm run buildbefore completing any code, route, dependency, or workflow change. - For content-only changes, verify relative links, heading anchors, image paths, and any access labels affected by the edit.
- Do not hand-edit or commit
dist/; GitHub Actions generates and deploys it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

