From d966e796546baf38e44be929110ba13ed08ac3a0 Mon Sep 17 00:00:00 2001 From: Lee Chapman Date: Sat, 21 Nov 2026 09:15:05 -0800 Subject: [PATCH] chore(rules): vendor dataknifeai-common --- .cursor/rules/dataknifeai-common.mdc | 36 ++++++++++++++++++++++++++++ .cursor/rules/gitops-mcp.mdc | 22 +++++++++++++++++ AGENTS.md | 5 ++++ 3 files changed, 63 insertions(+) create mode 100644 .cursor/rules/dataknifeai-common.mdc create mode 100644 .cursor/rules/gitops-mcp.mdc create mode 100644 AGENTS.md diff --git a/.cursor/rules/dataknifeai-common.mdc b/.cursor/rules/dataknifeai-common.mdc new file mode 100644 index 0000000..b736eef --- /dev/null +++ b/.cursor/rules/dataknifeai-common.mdc @@ -0,0 +1,36 @@ +--- +description: DataKnifeAI org-wide agent defaults; override with project rules as needed +alwaysApply: true +--- + +# DataKnifeAI common + +Org-wide defaults for every DataKnifeAI repository. Project rules in `.cursor/rules/` add or narrow behavior — do not fork this file; leave it shared and add a thin project rule instead. + +## Shared baselines + +- Prefer skills from [DataKnifeAI/agent-skills](https://github.com/DataKnifeAI/agent-skills) over one-off project skills when the workflow is reusable. +- Cloud Agent / Coder multi-repo layout: [agent-workspace](https://github.com/DataKnifeAI/agent-workspace) (`git//` for sibling repos). +- Branding and naming: [ORG_BRANDING](https://github.com/DataKnifeAI/.github/blob/main/docs/ORG_BRANDING.md) and [NAMING](https://github.com/DataKnifeAI/.github/blob/main/docs/NAMING.md). Do not redefine org identity in product READMEs. + +## Security + +- Never commit secrets, tokens, or live `secret.yaml` — use `.env.example` / `*.example` templates. +- Redact tokens and credentials in logs, terminal paste, and agent replies. + +## Git and changes + +- Conventional commits: `feat`, `fix`, `chore`, `docs`, `refactor`, `test`. +- Prefer small, focused PRs; squash-friendly history on `main`. +- Do not push, force-push, or amend published history unless the user asks. + +## Repo presentation (when editing meta) + +- GitHub description: role + purpose, ≤ ~160 characters. +- Topics: capability and stack (`mcp`, `kubernetes`, `agents`, …), not every dependency. +- README leads with what DataKnifeAI owns; integrations are secondary. +- Hero graphic: `docs/assets/-hero.jpg` (or `.png`), embedded as the first image in the README when the repo has public-facing docs. + +## Overrides + +Product repos vendor this file at `.cursor/rules/dataknifeai-common.mdc`. Add `.cursor/rules/.mdc` (or file-glob rules) for stack-specific conventions; keep this common rule unchanged. diff --git a/.cursor/rules/gitops-mcp.mdc b/.cursor/rules/gitops-mcp.mdc new file mode 100644 index 0000000..2b60f6b --- /dev/null +++ b/.cursor/rules/gitops-mcp.mdc @@ -0,0 +1,22 @@ +--- +description: gitops-mcp project-specific agent guidance +alwaysApply: true +--- + +# GitOps MCP + +Kustomize GitOps manifests for HTTP MCP servers in namespace `mcp-servers`. + +Cursor uses `.cursor/rules/` (this file + org common). Legacy `.cursorrules` remains for other editors. + +## Key paths + +- `mcp-servers//` — deployment, service, configmap, `secret.yaml.example` +- Root `kustomization.yaml` — wire new servers here + +## Conventions + +- Labels: `app`, `component: mcp-server`, `managed-by: gitops` +- Naming: `{server}-mcp`; HTTP transport port 8000; probes on `/health` +- Never commit live `secret.yaml`; non-root UID 1000; drop capabilities +- Validate with `kubectl apply --dry-run=client` before merge diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..5095132 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,5 @@ +# AGENTS + +Cursor agent guidance lives in `.cursor/rules/` (org common rule plus any project overrides). + +GitOps (Kustomize) deployments for HTTP MCP servers in the mcp-servers namespace.