varlock / rules
dmno-dev/varlock/.cursor/rules/add-docs-page.mdc
filters: # Applies to all new .mdx files in the docs directory - type: fileextension pattern: "\.mdx$" - type: event pattern: "filecreate" - type: path pattern: "packages/varlock-website/src/content/docs/*/" actions: - type: suggest message: | When adding a new documentation page: examples: - input: | Used > for notes and tips in the new guide. output: | Use Starlight's Markdown asides (triple colon syntax, e.g., :::tip ... :::) for notes and tips. - input: | Added a new guide but did not…
---
description:
globs:
alwaysApply: false
---
<rule>
name: add_docs_page
filters:
# Applies to all new .mdx files in the docs directory
- type: file_extension
pattern: "\.mdx$"
- type: event
pattern: "file_create"
- type: path
pattern: "packages/varlock-website/src/content/docs/*/"
actions:
- type: suggest
message: |
When adding a new documentation page:
- Follow all requirements in the [docs-location] rule for file placement, naming, and sidebar navigation.
- Additionally, follow these style and content conventions:
- Use the same heading structure, intro, and code block formatting as other guides.
- Use Starlight's Markdown asides (triple colon syntax) for notes, tips, cautions, and warnings ([see docs](mdc:https:/starlight.astro.build/guides/authoring-content/#asides)).
- Use Astro Starlight tab components for alternative instructions (e.g., package manager differences).
- Reference and link to other docs where relevant.
- Test the docs site locally to ensure the new page appears in the sidebar and is accessible.
examples:
- input: |
Used `>` for notes and tips in the new guide.
output: |
Use Starlight's Markdown asides (triple colon syntax, e.g., `:::tip ... :::`) for notes and tips.
- input: |
Added a new guide but did not follow the directory or sidebar requirements.
output: |
See the [docs-location] rule for correct file placement and sidebar navigation requirements.
metadata:
priority: high
version: 1.0
</rule>
More agent context in dmno-dev/varlock
11 other files this repository gives its agents.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

