Cursor rule files that give AI agents project context automatically
LogLife includes .cursor/rules/ files that feed project-specific context to Cursor (or any AI editor that supports the format). When you open the repository in Cursor, the agent already knows the tech stack, available commands, and coding conventions — no pasting of README snippets needed.
How it works
Cursor reads .mdc files from .cursor/rules/ and injects their contents into every AI conversation. Each file has YAML frontmatter that controls when it activates:
alwaysApply: true — injected into every conversation automatically.
globs: "plugin/**" — only injected when you have matching files open.
alwaysApply: false (no globs) — available in the rule picker but never auto-injected.
Current rules
File
Activates
What it provides
loglife.mdc
Always
Repository structure, package manager (pnpm), tech stack (Next.js, Clerk, Tailwind, Vapi), key conventions, and available commands
openclaw.mdc
When editing plugin/ files
OpenClaw project context at ~/openclaw — build/dev/test commands, repo structure, and conventions (tsdown, oxlint, Lit decorators)
mintlify.mdc
When editing docs/ files
Mintlify component reference, writing style guide, and documentation standards
Adding or editing rules
Rules live in .cursor/rules/ at the repository root. To add a new rule, create a .mdc file with the appropriate frontmatter:
---description: Short description shown in the rule pickerglobs: src/**/*.tsalwaysApply: false---
Then write the rule body in Markdown below the frontmatter. Keep rules concise and actionable — they are injected as context into the AI’s prompt, so unnecessary length wastes tokens.
If you are not using Cursor, these files have no effect on your workflow. They are ignored by the build, linter, and deployment pipeline.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LogLife","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/loglife/WsUJFHvQ6qngaile/logo/light.svg?fit=max\u0026auto=format\u0026n=WsUJFHvQ6qngaile\u0026q=85\u0026s=743ad6a4d215f99a2a3a33d0388659af","dark":"https://mintcdn.com/loglife/WsUJFHvQ6qngaile/logo/dark.svg?fit=max\u0026auto=format\u0026n=WsUJFHvQ6qngaile\u0026q=85\u0026s=bd951499e7d9555dcf510f399254f2e9","href":"https://loglife.co"},"favicon":"/favicon.svg","navbar":{"links":[{"href":"mailto:support@loglife.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://loglife.com/dashboard"}},"footer":{},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"house","href":"https://loglife.co"},{"anchor":"Repository","icon":"github","href":"https://github.com/jmoraispk/loglife"},{"anchor":"Blog","icon":"newspaper","href":"https://loglife.co/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"loglife","hasAudioNarration":false,"actualSubdomain":"loglife","customDomains":["docs.loglife.co"],"gitSource":{"type":"github","owner":"jmoraispk","repo":"loglife","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6b10d2959ffae5051c40bd2a"},"entitlements":{},"buildId":"6ae9475b7a557f4aa931d30f:success","clientVersion":"0.0.4436","searchFilterCounts":[{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"API reference","count":7},{"language":"default","tag":"Endpoints","count":6},{"language":"default","tag":"Development","count":5},{"language":"default","tag":"Self-hosting","count":3},{"language":"default","tag":"API documentation","count":1},{"language":"default","tag":"Dashboard","count":1},{"language":"default","tag":"Getting started","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"ai-rules","slug":"/ai-rules","pageMetadata":{"title":"AI rules","description":"Cursor rule files that give AI agents project context automatically","href":"/ai-rules","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Cursor rule files that give AI agents project context automatically\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`LogLife includes `,_jsx(_components.code,{children:`.cursor/rules/`}),` files that feed project-specific context to `,_jsx(_components.a,{href:`https://cursor.com`,children:`Cursor`}),` (or any AI editor that supports the format). When you open the repository in Cursor, the agent already knows the tech stack, available commands, and coding conventions — no pasting of README snippets needed.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsxs(_components.p,{children:[`Cursor reads `,_jsx(_components.code,{children:`.mdc`}),` files from `,_jsx(_components.code,{children:`.cursor/rules/`}),` and injects their contents into every AI conversation. Each file has YAML frontmatter that controls when it activates:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`alwaysApply: true`})}),` — injected into every conversation automatically.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`globs: \"plugin/**\"`})}),` — only injected when you have matching files open.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`alwaysApply: false`})}),` (no globs) — available in the rule picker but never auto-injected.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`current-rules`,children:`Current rules`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`File`}),_jsx(_components.th,{children:`Activates`}),_jsx(_components.th,{children:`What it provides`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`loglife.mdc`})}),_jsx(_components.td,{children:`Always`}),_jsxs(_components.td,{children:[`Repository structure, package manager (`,_jsx(_components.code,{children:`pnpm`}),`), tech stack (Next.js, Clerk, Tailwind, Vapi), key conventions, and available commands`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`openclaw.mdc`})}),_jsxs(_components.td,{children:[`When editing `,_jsx(_components.code,{children:`plugin/`}),` files`]}),_jsxs(_components.td,{children:[`OpenClaw project context at `,_jsx(_components.code,{children:`~/openclaw`}),` — build/dev/test commands, repo structure, and conventions (tsdown, oxlint, Lit decorators)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mintlify.mdc`})}),_jsxs(_components.td,{children:[`When editing `,_jsx(_components.code,{children:`docs/`}),` files`]}),_jsx(_components.td,{children:`Mintlify component reference, writing style guide, and documentation standards`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-or-editing-rules`,children:`Adding or editing rules`}),`\n`,_jsxs(_components.p,{children:[`Rules live in `,_jsx(_components.code,{children:`.cursor/rules/`}),` at the repository root. To add a new rule, create a `,_jsx(_components.code,{children:`.mdc`}),` file with the appropriate frontmatter:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`---`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`description`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Short description shown in the rule picker`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`globs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`src/**/*.ts`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`alwaysApply`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`---`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Then write the rule body in Markdown below the frontmatter. Keep rules concise and actionable — they are injected as context into the AI’s prompt, so unnecessary length wastes tokens.`}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`If you are not using Cursor, these files have no effect on your workflow. They are ignored by the build, linter, and deployment pipeline.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"AI rules","description":"Cursor rule files that give AI agents project context automatically","href":"/ai-rules","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Current rules","slug":"current-rules","depth":2,"children":[]},{"title":"Adding or editing rules","slug":"adding-or-editing-rules","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"loglife","siteName":"LogLife","title":"AI rules - LogLife","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-03-07T23:09:58.651Z","originalFileLocation":"ai-rules.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Cursor rule files that give AI agents project context automatically\">\u003cmeta data-mint-head name=\"application-name\" content=\"LogLife\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"AI rules - LogLife\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cursor rule files that give AI agents project context automatically\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LogLife\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.loglife.co/ai-rules\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://loglife.mintlify.site/_mintlify/api/og/v2?division=Development\u0026amp;title=AI+rules\u0026amp;description=Cursor+rule+files+that+give+AI+agents+project+context+automatically\u0026amp;theme=20106c6719ca9592d1f33b61\u0026amp;signature=b7af9ba40514b1487d92870bcda95308991475a63527b4f4ca366be28f8186c2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"AI rules - LogLife\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cursor rule files that give AI agents project context automatically\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://loglife.mintlify.site/_mintlify/api/og/v2?division=Development\u0026amp;title=AI+rules\u0026amp;description=Cursor+rule+files+that+give+AI+agents+project+context+automatically\u0026amp;theme=20106c6719ca9592d1f33b61\u0026amp;signature=b7af9ba40514b1487d92870bcda95308991475a63527b4f4ca366be28f8186c2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/loglife/9Q1ENEFRaKWSp6KW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LogLife\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.loglife.co/ai-rules\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/ai-rules.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.loglife.co/#organization\",\"name\":\"LogLife\",\"url\":\"https://docs.loglife.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/loglife/WsUJFHvQ6qngaile/logo/light.svg?fit=max\u0026auto=format\u0026n=WsUJFHvQ6qngaile\u0026q=85\u0026s=743ad6a4d215f99a2a3a33d0388659af\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.loglife.co#website\",\"name\":\"LogLife\",\"url\":\"https://docs.loglife.co\",\"publisher\":{\"@id\":\"https://docs.loglife.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.loglife.co/ai-rules#webpage\",\"url\":\"https://docs.loglife.co/ai-rules\",\"name\":\"AI rules\",\"description\":\"Cursor rule files that give AI agents project context automatically\",\"dateModified\":\"2026-03-07T23:09:58.651Z\",\"isPartOf\":{\"@id\":\"https://docs.loglife.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.loglife.co/ai-rules#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.loglife.co/ai-rules#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Development\",\"item\":\"https://docs.loglife.co/development\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI rules\",\"item\":\"https://docs.loglife.co/ai-rules\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.loglife.co/ai-rules#article\",\"headline\":\"AI rules\",\"name\":\"AI rules\",\"description\":\"Cursor rule files that give AI agents project context automatically\",\"url\":\"https://docs.loglife.co/ai-rules\",\"mainEntityOfPage\":{\"@id\":\"https://docs.loglife.co/ai-rules#webpage\"},\"dateModified\":\"2026-03-07T23:09:58.651Z\",\"publisher\":{\"@id\":\"https://docs.loglife.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.loglife.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LogLife\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LogLife\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/ai-rules.md","siteName":"LogLife","nav":{"global":{"anchors":[{"anchor":"Website","icon":"house","href":"https://loglife.co"},{"anchor":"Repository","icon":"github","href":"https://github.com/jmoraispk/loglife"},{"anchor":"Blog","icon":"newspaper","href":"https://loglife.co/blog"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":""}]},{"group":"Self-hosting","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/self-hosting"},{"title":"Plugin installation","href":"/plugin-installation"},{"title":"Configuration","href":"/configuration"},{"title":"Networking","href":"/networking"}]},{"group":"Development","pages":[{"title":"Development","sidebarTitle":"Workflow","href":"/development"},{"title":"Architecture","href":"/architecture"},{"title":"Security","description":"How LogLife protects your data and prevents abuse","href":"/security"},{"title":"AI rules","href":"/ai-rules"},{"title":"Contributing to docs","sidebarTitle":"Documentation","description":"How to update, preview, and deploy the LogLife documentation site.","href":"/contributing-docs"}]},{"group":"Dashboard","pages":[{"title":"Dashboard","sidebarTitle":"Overview","href":"/dashboard"}]}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"AI rules - LogLife","deploymentId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","buildId":"dpl_AYyV3CY85Zsy44WzfDVuMiAS7PWU","dynamics":[],"chunks":[]}