diff --git a/.cursor/rules/kchart.mdc b/.cursor/rules/kchart.mdc deleted file mode 100644 index 569b43c..0000000 --- a/.cursor/rules/kchart.mdc +++ /dev/null @@ -1,19 +0,0 @@ ---- -description: Use KChart public APIs and validated AI ChartPlans -globs: - - "**/*chart*.ts" - - "**/*chart*.tsx" - - "src/ai/**/*.ts" -alwaysApply: false ---- - -# KChart - -- Read `docs/ai/index.md`, `docs/ai/chart-selection.md`, and `ai/catalog.json`. -- Use only factories exported by KChart public package entry points. -- Treat `recipe.*` ids as compositions, not import names. -- Validate provider output with `validateKChartAIPlan`. -- Never evaluate model-generated JavaScript or TypeScript. -- Keep realtime buffers bounded and destroy timers, workers, observers, and chart controllers. -- Dynamically import browser-only Three.js, CesiumJS, and MapLibre adapters in SSR applications. -- Run `npm run test:unit` after catalog, schema, series, or option changes. diff --git a/docs/ai/agent-usage.md b/docs/ai/agent-usage.md index a8955eb..ff78e91 100644 --- a/docs/ai/agent-usage.md +++ b/docs/ai/agent-usage.md @@ -65,7 +65,7 @@ For local exceptions that must not be committed, use the tool's supported local Use `.cursor/rules/*.mdc`; `.cursorrules` is legacy. A KChart rule should be focused, auto-attached to chart files where possible, and reference this guide plus `ai/catalog.json`. -The repository includes `.cursor/rules/kchart.mdc` as a starting point. +Consumer projects can add their own Cursor rule when they use Cursor. KChart does not ship editor-specific project configuration in the library repository. ## Verification checklist