agentleFS
shyftlabsshyftlabs/continuum/.claude/skills/continuum-cursor/SKILL.md

continuum-cursor

Skill84 starsChanged 6 months agoApache-2.0View on GitHub

Set up Cursor for a Continuum project — .cursor/rules/ MDC file, glob patterns, and what to include so Cursor generates correct Continuum code. Invoke when the user asks "set up Cursor for my project", "Cursor rules for Continuum", ".cursor/rules", or "MDC file for Continuum".

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use alwaysApply: true for framework-level rules that apply regardless of which file is open.

    line 80
  2. Very specific:

    Don't put the full Continuum API reference inline — reference AGENTS.md or docs instead.

    line 101
  3. Very specific:

    Don't use alwaysApply: true for files with large content — it inflates every request's context.

    line 102
  4. Distinctive:

    Don't duplicate rules across files — Cursor merges all matching MDC files per request.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Continuum + Cursor Skill

Cursor reads .cursor/rules/*.mdc files. The Continuum repo ships .cursor/rules/continuum.mdc — copy it into any downstream project.


Minimal MDC file for a Continuum project

Create .cursor/rules/continuum.mdc:

---
description: Continuum agent framework conventions for this project
globs: ["src/**/*.py", "tests/**/*.py", "playground/**/*.py"]
alwaysApply: true
---

# Continuum Project Rules

This project uses **Continuum** (import: `continuum`, package: `shyftlabs-continuum`).

## Setup invariants

- Python 3.13. Venv: `python3.13 -m venv .venv`
- All public APIs are **async**. Entrypoints: `asyncio.run(main())`
- Always `load_dotenv()` before importing continuum settings
- `OPENAI_API_KEY` required even when using Anthropic/Gemini (mem0 embedder)
- Infra via docker compose: Redis :6380, Milvus :19530 (or Qdrant :6333)

## Core imports

\`\`\`python
from continuum.agent import BaseAgent, AgentRunner
from continuum.agent.config import AgentConfig, AgentMemoryConfig, RunnerConfig
from continuum.agent.types import Handoff, MemoryScope, RunContext, EventType
from continuum.llm import LLMClient, LLMConfig
from continuum.memory import MemoryClient
from continuum.session import SessionClient
\`\`\`

## Provider routing

Model string prefix determines provider (when gateway is not set):
- `gpt-*`, `openai/*` → OpenAI SDK
- `claude-*`, `anthropic/*` → Anthropic SDK  
- `gemini/*`, `google/*` → Gemini via OpenAI-compat

When `SMART_GATEWAY_URL` is set, all models route through GatewayProvider automatically.
Use `gateway_mode="strict"|"modest"|"quality"` on BaseAgent to control routing tier.

## Critical don'ts

- No `litellm` — removed entirely
- No `response_format` on Anthropic — instruct via system prompt and parse manually
- No JSON mode + tools on Gemini simultaneously — pick one
- MemoryScope enum: `from continuum.agent.types import MemoryScope` (not from `continuum.memory`)
- SessionClient.add_message takes `ChatMessage(...)` not `role=` kwargs

Glob patterns

Match these globs to ensure rules apply to all relevant files:

globs:
  - "src/**/*.py"          # application source
  - "tests/**/*.py"        # tests
  - "playground/**/*.py"   # playground scripts
  - "*.py"                 # root-level scripts

Use alwaysApply: true for framework-level rules that apply regardless of which file is open.


Multiple rule files (recommended)

Split into focused files for large projects:

.cursor/rules/
├── continuum.mdc        # framework API — alwaysApply: true
├── agents.mdc           # project-specific agent descriptions
├── testing.mdc          # test conventions — globs: tests/**
└── api.mdc              # FastAPI/endpoint conventions

Don't

  • Don't put the full Continuum API reference inline — reference AGENTS.md or docs instead.
  • Don't use alwaysApply: true for files with large content — it inflates every request's context.
  • Don't duplicate rules across files — Cursor merges all matching MDC files per request.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.