sistent
Copilot instructions140 starsChanged 3 months agoApache-2.0View on GitHub
Use the Make targets when possible; CI runs these same entry points. Single-test examples: CI runs the main checks on the Node versions in the node-version matrix of .github/workflows/node-checks.yml; read them there rather than from a copy here that can drift. Pull requests also trigger a downstream integration workflow that packs this library and installs it into meshery/meshery's ui/ app before building and testing there. Local build and test behavior can vary by branch, dependency state, and environment. Verify the…
- Installs packages
Where files are headingNew Copilot instructions files have more rules about branches and pull requests, and fewer about code style.
Of the Copilot instructions files we read, the 2,349 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- chrome-devtools-axiSkill
- cut-releaseSkill
- gh-axiSkill
- iterate-prSkill
- lavishSkill
- quota-axiSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use the Make targets when possible.
- Very specific: line 41
When adding a new public symbol, wire it through the full export chain: the feature-local index.ts(x), the domain index.ts(x), and the root …
- Very specific: line 46
Keep TypeScript explicit. The repo is strict, and the few @typescript-eslint/no-explicit-any suppressions in actor and schema interop code …
- Distinctive: line 47
If a session prepares commits, follow Conventional Commits and include DCO signoff (git commit -s).
≈ “Common” is an estimate: at least 1 in 5 of the 3,779 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
Copilot instructions for Sistent
Build, test, and lint commands
Use the Make targets when possible; CI runs these same entry points.
make setup # npm install
make build # npm run build
make build-watch # npm run build:watch
make format-check # prettier --check "**/*.{ts,tsx,md}" --config ./.prettierrc
make lint # prettier --write "**/*.{ts,tsx,md}" --config ./.prettierrc && eslint .
make tests # jestSingle-test examples:
npm test -- src/__testing__/routing.test.ts --runInBand
npm test -- -t "routing utilities" --runInBandCI runs the main checks on the Node versions in the node-version matrix of .github/workflows/node-checks.yml; read them there rather than from a copy here that can drift. Pull requests also trigger a downstream integration workflow that packs this library and installs it into meshery/meshery's ui/ app before building and testing there.
Known issues
Local build and test behavior can vary by branch, dependency state, and environment. Verify the current checkout before assuming a failure is expected, and prefer linking tracked issues for any persistent problems rather than documenting transient command failures here.
High-level architecture
tsupbuilds a single package entrypoint,src/index.tsx, into CJS and ESM output indist/.- The public API is assembled through domain indexes:
actors,base,colors,custom,hooks,icons,redux-persist,schemas,theme, andutils, then re-exported fromsrc/index.tsx. src/base/is the low-level layer: thin wrappers around MUI primitives that preserve MUI naming and types while giving the package a consistent export surface.src/custom/is the higher-level component layer: product components such as tables, cards, filters, dialogs, and markdown/rendering helpers composed frombase/, icons, utilities, and Sistent theme tokens.src/theme/is the styling backbone:SistentThemeProvider, primitive brand palettes, semantic palette mapping, typography, and MUI component override modifiers all live here.src/schemas/combines local RJSF form schemas (schema.tsx+uiSchema.tsx) with re-exports from@meshery/schemas, including OpenAPI schemas, RTK Query APIs, and shared API utilities.src/actors/provides XState-based infrastructure for Redux and RTK Query integration, validation flows, worker-backed actors, and event-bus helpers.
Key conventions
- When adding a new public symbol, wire it through the full export chain: the feature-local
index.ts(x), the domainindex.ts(x), and the rootsrc/index.tsx. - Theme-aware UI should use Sistent exports from
src/theme/ package exports (SistentThemeProvider,styled,useTheme) and consume Sistent semantic palette tokens such astheme.palette.background.cardandtheme.palette.icon.defaultinstead of relying on raw MUI defaults. - Meshery and Layer5 API-facing identifiers must stay camelCase on the wire. Prefer the canonical camelCase schema exports (
EnvironmentDefinitionV1Beta3OpenApiSchema,WorkspaceDefinitionV1Beta3OpenApiSchema,ModelDefinitionV1Beta2OpenApiSchema) over the deprecated v1beta1 exports kept for compatibility. - Tests are centralized under
src/__testing__/rather than colocated with components. Component tests commonly render throughSistentThemeProvider, and heavy dependencies are often mocked inline to keep tests focused. - New RJSF form assets belong in
src/schemas/<feature>/with separateschema.tsxanduiSchema.tsxfiles, then must be re-exported fromsrc/schemas/index.tsx. - Keep TypeScript explicit. The repo is
strict, and the few@typescript-eslint/no-explicit-anysuppressions in actor and schema interop code are exceptions, not the default style. - If a session prepares commits, follow Conventional Commits and include DCO signoff (
git commit -s).
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.

