Glide
AGENTS.md209 starsChanged 2 months agoApache-2.0View on GitHub
You must produce atomic commits where each commit represents exactly one logical change, is independently deployable, and leaves the codebase in a working state.
- Reads credentials
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 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 repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- open-code-review-delegateSkill
- glide-component-segregatorSkill
- glide-setupSkill
- glideSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 0 are common, 21 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Independence: Every commit must compile, pass tests, and be revertable without breaking unrelated functionality.
- Distinctive: line 29
Before writing any code, decompose the work.
- Distinctive: line 36
When producing code changes, always structure your output as: ---
- Distinctive: line 44
Never output all changes in one block and leave sequencing to the user.
- Distinctive: line 47
Never mix refactoring with feature work in one commit.
- Distinctive: line 48
Never commit commented-out code, debug statements, or temporary scaffolding.
- Distinctive: line 49
Never bundle a bug fix with a feature.
- Distinctive: line 50
Never let formatting/whitespace changes share a commit with logic changes.
- Distinctive: line 51
Test commits are siblings, not children.
- Distinctive: line 52
Never use "WIP", "misc", "cleanup", "various fixes", or "updates" as commit messages.
- Distinctive: line 59
Before writing or modifying any function, open and read the actual file first.
- Distinctive: line 60
Before claiming a library function, method, or API exists (Babel, recast, tree-sitter, @vue/compiler-sfc, svelte-eslint-parser, etc.), …
- Distinctive: line 61
If you did not read a file or doc in this conversation, say "I haven't verified this against the source" rather than presenting it as fact.
- Very specific: line 62
Never invent a node type, AST/CST field name, or parser method name.
- Distinctive: line 65
When describing how existing code behaves, cite the exact file path and function/line.
- Distinctive: line 66
When proposing a new function, state exactly which existing function/module it will be called from, and confirm that call site exists.
- Distinctive: line 71
Do not assume the current data model for element dimensions (px vs %, flex vs absolute) — confirm it from the actual CST/node structure …
- Distinctive: line 73
Never claim a resize edit "preserves formatting" unless you've traced the exact CST mutation path and confirmed only the target token …
- Distinctive: line 89
If a requirement is ambiguous (e.g., "merge" layers), ask a clarifying question rather than picking an interpretation and proceeding.
- Distinctive: line 90
If you can't verify something (file not shown, package not inspected), say so plainly: "I haven't seen X, so I'm assuming Y — please …
- Distinctive: line 91
Prefer "I don't know, let's check" over a plausible-sounding guess.
- Distinctive: line 96
If proposing a CST mutation, state exactly which node type/field you're targeting and how you confirmed that's the correct target.
- Very specific: line 118
Commit, Tag & Push: Commit the version bump with chore: bump version to X.Y.Z, create git tag (git tag vX.Y.Z), and push main & tags to …
- Very specific: line 120
Create the GitHub Release via gh release create vX.Y.Z (bypass invalid GITHUB_TOKEN env var on Windows using $env:GITHUB_TOKEN="" so …
- Very specific: line 125
Verify live plugin reload via GetAllPlugins RPC (dir: "glide", version: "X.Y.Z", disabled: false).
- Very specific: line 127
Update the pinned package version in ~/.gemini/config/plugins/glide/mcp_config.json to @srivarsank/glide@X.Y.Z (and update the version note …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
Workspace Rules: Glide
Atomic Commits & Version Control Discipline
You must produce atomic commits where each commit represents exactly one logical change, is independently deployable, and leaves the codebase in a working state.
Core Principles
- Atomicity: One commit = one logical unit of work.
- Independence: Every commit must compile, pass tests, and be revertable without breaking unrelated functionality.
- Intentionality: The commit message describes why, not what.
Commit Message Format
<type>(<scope>): <imperative summary under 72 chars>
<body — required if change needs context, wrapped at 72 chars>
Explain WHY this change is necessary. What problem does it solve?
What was the previous behavior and why was it wrong or insufficient?
<footer — optional>
Refs: #123
BREAKING CHANGE: <description>- Types: feat | fix | refactor | perf | test | docs | style | build | ci | chore
- Scope: the module, component, or domain affected (e.g., auth, parser, api/users)
- Summary: imperative mood ("add", "fix", "remove" — not "added", "fixes", "removing")
Decomposition Rules
Before writing any code, decompose the work. When given a task, you MUST:
- Identify all logical units — list every distinct concern the task touches.
- Order them by dependency — foundational changes first.
- Assign one commit per unit — if a commit touches unrelated files, it is not atomic.
- Declare the plan — output the proposed commit sequence before writing code.
Output Format for Code Tasks
When producing code changes, always structure your output as:
Commit 1 of N — type(scope): summary
Rationale: [one sentence on why this change is isolated here]
[file changes]
Commit 2 of N — type(scope): summary
...
Never output all changes in one block and leave sequencing to the user.
Hard Rules
- Never mix refactoring with feature work in one commit. Refactor first, then build.
- Never commit commented-out code, debug statements, or temporary scaffolding.
- Never bundle a bug fix with a feature.
- Never let formatting/whitespace changes share a commit with logic changes.
- Test commits are siblings, not children.
- Never use "WIP", "misc", "cleanup", "various fixes", or "updates" as commit messages.
CST & Visual Editing Guardrails (Figma-style changes)
1. Never assume — always verify against the actual codebase
- Before writing or modifying any function, open and read the actual file first. Do not recall or guess its contents from earlier in the conversation if it's been more than a few turns — re-read it.
- Before claiming a library function, method, or API exists (Babel, recast, tree-sitter, @vue/compiler-sfc, svelte-eslint-parser, etc.), state which package and version you're assuming, and flag if you haven't confirmed it against that package's actual docs/types in this session.
- If you did not read a file or doc in this conversation, say "I haven't verified this against the source" rather than presenting it as fact.
- Never invent a node type, AST/CST field name, or parser method name. If unsure whether e.g. a JSXOpeningElement has an
attributesarray vsattrs, say so explicitly and ask to check the actual parser's type definitions.
2. Ground every claim in a specific, checkable location
- When describing how existing code behaves, cite the exact file path and function/line. "The resize handler probably does X" is not acceptable — either confirm it by reading the file, or say you don't know.
- When proposing a new function, state exactly which existing function/module it will be called from, and confirm that call site exists.
3. Feature-specific guardrails
Resizing (instant + fluid)
- Do not assume the current data model for element dimensions (px vs %, flex vs absolute) — confirm it from the actual CST/node structure before writing resize logic.
- "Instant" resize (drag-commit) and "fluid" resize (live drag) are different code paths with different perf constraints. Don't conflate them — fluid resize must not trigger full CST reparse/write on every frame; confirm what throttling/debouncing mechanism (if any) already exists before adding one.
- Never claim a resize edit "preserves formatting" unless you've traced the exact CST mutation path and confirmed only the target token changes.
Layer rearrangement (merge, push on top, push behind)
- "Merge" is ambiguous — confirm with me what it means in Glide's data model (combining two elements into one? grouping into a wrapper?) before writing code. Do not silently assume a definition.
- z-order changes ("push on top"/"push behind") may map to sibling reordering in the CST or a z-index/style property, depending on layout mode. State which one you're implementing and why, don't default to one silently.
- Confirm how layer order is currently represented (DOM order vs explicit z-index vs a separate layer list) before writing reorder logic.
Colour changing (instant)
- Confirm whether colors are stored as inline style, CSS var, Tailwind class, or theme token before writing the mutation — these require different CST patch strategies. Do not assume inline style is the only case.
- "Instant" implies no debounce before disk write — confirm this doesn't conflict with existing throttling for rapid color-picker drag events.
Text — font change, resize
- Confirm whether font-family/size are set via inline style, className, or a design-token reference before implementing. Don't assume one uniformly across React/Vue/Svelte adapters — check each.
- Text resize may interact with autolayout/flex sizing — confirm current behavior before assuming a fixed-size text box model.
4. When uncertain
- If a requirement is ambiguous (e.g., "merge" layers), ask a clarifying question rather than picking an interpretation and proceeding.
- If you can't verify something (file not shown, package not inspected), say so plainly: "I haven't seen X, so I'm assuming Y — please confirm."
- Prefer "I don't know, let's check" over a plausible-sounding guess.
5. Before presenting code as done
- State which files you actually read this session to write this code.
- State any assumption you made that wasn't verified.
- If proposing a CST mutation, state exactly which node type/field you're targeting and how you confirmed that's the correct target.
Design Context (from PRODUCT.md)
- Register:
product(visual editor UI). - Users: Frontend developers and UI designers editing React/Vue/Svelte apps visually and writing directly to source code.
- Brand Personality: Editorial, confident, playful yet precise (Figma-like monochrome frame + bold pastel blocks).
- Design Principles:
- Source Code Integrity First: AST transformations must be clean, minimal, and preserve developer formatting.
- Predictable Precision: Snapping, resizing, and dragging must behave exactly as predicted, using Kd-Trees and smart guides.
- Clean Chrome, Rich Canvas: The editor interface is a clear, high-contrast frame so the user's application stands out.
- Unified Component Tree: Locally resolve custom component definitions in parsed ASTs to render nested sub-components under their instantiation node, preventing duplicate floating root nodes in the layers panel.
- Anti-references: SaaS cliches (heavy shadows, gradient card borders, low-contrast gray text on tinted white surfaces).
- Accessibility & Inclusion: WCAG AA contrast (>= 4.5:1) for controls, distinct focus states, and support for reduced motion.
Release Workflow Automation
Whenever requested to publish or release a new version (X.Y.Z):
- Auto-Bump Version: Increment the patch version in
package.jsonandpackage-lock.jsonvianpm version <patch|minor|major> --no-git-tag-version(defaultpatch, orminor/majorif specified).README.mduses a dynamic shields.io npm badge, so only update static version references if present. - Verify Release: Execute
npm run verify:release(build,typecheck,test,test:artifact,test:consumer,test:hosted) and confirm all checks pass. - Commit, Tag & Push: Commit the version bump with
chore: bump version to X.Y.Z, create git tag (git tag vX.Y.Z), and pushmain& tags to GitHub (git push origin main --tags). - Create GitHub Release & Auto-Publish (npm + GitHub Packages):
- Create the GitHub Release via
gh release create vX.Y.Z(bypass invalidGITHUB_TOKENenv var on Windows using$env:GITHUB_TOKEN=""so keyring auth is used). - Publishing the GitHub Release automatically triggers
.github/workflows/publish.ymlto publish@srivarsank/glide@X.Y.Zto npm (--provenance --access public) and GitHub Packages. Wait for the workflow to pass and verifynpm view @srivarsank/glide versionreturnsX.Y.Z. Only run manualnpm run publish:allif CI publish fails.
- Create the GitHub Release via
- Auto-Update Local Antigravity Plugin (
~/.gemini/config/plugins/glide/):- Bump
"version"in~/.gemini/config/plugins/glide/plugin.jsontoX.Y.Z. - Sync bundled skills (
glide,glide-component-segregator,glide-setup, excludingevals/) from reposkills/into~/.gemini/config/plugins/glide/skills/. - Verify live plugin reload via
GetAllPluginsRPC (dir: "glide",version: "X.Y.Z",disabled: false).
- Bump
- Auto-Update MCP Server (
~/.gemini/config/plugins/glide/mcp_config.json):- Update the pinned package version in
~/.gemini/config/plugins/glide/mcp_config.jsonto@srivarsank/glide@X.Y.Z(and update the version note in~/.gemini/config/plugins/glide/README.md) sonpxswitches off any stale_npxcache immediately without slow cold@latestlookups at MCP boot. - Pre-warm and smoke-test
cmd /c npx -y @srivarsank/glide@X.Y.Z mcpwith an MCPinitializerequest over stdio and confirmserverInfo.versionequalsX.Y.Z. - Remind the user to refresh any per-project MCP configs (
.mcp.json/.cursor/mcp.json/.vscode/mcp.json) if pinned to an older version.
- Update the pinned package version in
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.

