Skip to content

Cursor Tooling Reference

This document is the recovery and reconstruction reference for the Cursor AI setup used in this project. It covers agents, rules, skills, MCP servers, and models. The canonical human-readable specs live in docs/ai-governance/**; live .cursor/** assets are operational mirrors used by Cursor at runtime.


ciq-mvp2-app/
.cursor/
agents/ ← Agent personality + instruction files (*.md)
rules/ ← Always-applied workspace rules (*.mdc)
skills/ ← Reusable agent skill workflows (*/SKILL.md)
~/.cursor/
mcp.json ← Global MCP server configuration
skills-cursor/ ← Global Cursor-managed skills
Asset typeCanonical sourceOperational mirror
Agent roles and authoritydocs/ai-governance/*.md.cursor/agents/*.md
Rules and always-applied behaviordocs/ai-governance/*.md + docs/standards/*.md.cursor/rules/*.mdc
Skill intent and recoverydocs/ai-governance/*.md.cursor/skills/*/SKILL.md
Product/runtime promptsdocs/prompts/**implementation files or runtime config
Rebuild workflowdocs/rebuild/**local setup steps / generated Cursor files

Reference: AI Asset Governance


Agent files live in .cursor/agents/*.md. Each file has a YAML frontmatter block that Cursor reads to configure the agent’s name, model, and description. The canonical role and authority definitions live in docs/ai-governance/*.md.

---
name: <agent-id>
model: <model-alias>
description: <one-line description shown in the agent picker>
---
Agent IDRoleModelFile
neoPrincipal Architect & Technical Strategistclaude-4.6-opus-high-thinking.cursor/agents/neo.md
fatherSenior System Architectclaude-4.6-sonnet-medium.cursor/agents/father.md
coderSenior Polyglot Full-Stack Engineerclaude-4.6-sonnet-medium.cursor/agents/coder.md
helperContent, Data & AI Workflow Specialistgpt-5.3-codex.cursor/agents/helper.md
qaQA Analystgpt-5.2.cursor/agents/qa.md

Full agent descriptions, responsibilities, authority boundaries, and output formats are documented in docs/ai-governance/:

DocAgent
AI Agent: NeoNeo
AI Agent: FatherFather
AI Agent: CoderCoder
AI Agent: HelperHelper
AI Agent: QA AnalystQA

Rules live in .cursor/rules/*.mdc. They are Markdown files with YAML frontmatter. Rules with alwaysApply: true are injected into every Cursor session automatically. Their human-readable intent must remain documented in this repo.

---
description: <what this rule does>
alwaysApply: true # or false for file-scoped rules
globs: **/*.ts # only needed for file-scoped rules
---

Purpose: When the user prompt does not explicitly name an agent role, default delegation uses helper.

Key behavior:

  • Explicit role mentions (coder, neo, father, qa, explore, shell, browser-use) override the default.
  • Verb cues (“can you code this?”) do not count as explicit role requests.

Purpose: Treat modern UX, UI, and interaction design as first-class product constraints, not optional polish.

Key behavior:

  • Prefer clear information hierarchy, scannability, and predictable navigation.
  • Reduce friction in common workflows with strong defaults and progressive disclosure.
  • Design states intentionally: default, empty, loading, error, success, and destructive flows.
  • Use selection patterns that fit the decision.
  • Favor consistency across similar routes, sections, buttons, filters, and setup flows.
  • Consider operator efficiency, not just visual neatness.
  • Keep accessibility in mind by default: keyboard flow, labels, focus states, WCAG.
  • If there is a tradeoff between technical convenience and a clearly better UX, call it out explicitly.

Purpose: Before implementing any feature, page, or component, read the relevant doc and inspect the current implementation.

Key behavior:

  1. Read the relevant doc in ciq-mvp2-docs/docs/routes/ or ciq-mvp2-docs/docs/.
  2. Inspect the current implementation as the primary UI reference when shipped code has moved beyond old design mocks.
  3. Use Figma only when the user explicitly asks for it, or the task is clearly design-implementation work.
  4. If docs, current implementation, and Figma conflict, call out the drift and confirm which source drives the change.

Source priority: Current implementation > Docs > Figma

Doc → route mapping:

Route / featureDoc path
Get Started onboardingGet Started (/get-started)
Account shell / layoutApp Shell (Navigation, Search, Assistant Sidebar)
Channels pageAccount – Channels
DashboardAccount – Dashboard
Knowledge BasesAccount – Knowledge bases
WorkspacesAccount – Workspaces
Workspace open (detail)Account – Open workspace (workspace detail) + Workspace Open Page – Implementation Spec
SettingsAccount – Settings
ProfileAccount – My profile
BillingAccount – My profile: Billing (tab)
Comment ResponderComment Responder (/comment-responder)
Chatti LiveChatti Live

request-workflow-review-docs-implement.mdc

Section titled “request-workflow-review-docs-implement.mdc”

Purpose: Every user request follows a fixed workflow: review → docs → implement.

Key behavior:

  1. Review the request — understand what is wanted and what is in scope.
  2. Documentation — decide if the change requires doc updates. If yes, update docs first.
  3. Implementation — if code changes are needed, delegate to Coder with a clear spec.
  4. Unclear requests — if ambiguous, ask the user before proceeding.

Skills live in .cursor/skills/<skill-name>/SKILL.md. Each skill is a Markdown file with YAML frontmatter that Cursor reads to determine when to invoke the skill automatically. Their recovery contract must remain documented in this repo even if the live skill files are local-only.

---
name: <skill-id>
description: <trigger description — when the agent should invoke this skill>
metadata:
mcp-server: <required MCP server, if any>
---

When invoked: User wants to create a Cursor rule, add coding standards, set up project conventions, configure file-specific patterns, or asks about .cursor/rules/.

What it does: Guides the agent through gathering rule requirements (purpose, scope, file patterns) and creates a properly formatted .mdc file in .cursor/rules/.

File: .cursor/skills/create-rule/SKILL.md


When invoked: User wants to create, write, or author a new Agent Skill, or asks about SKILL.md format or skill structure.

What it does: Guides the agent through creating a new skill with correct frontmatter, trigger description, and workflow content.

File: .cursor/skills/create-skill/SKILL.md


When invoked: User wants to change editor settings, preferences, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

What it does: Reads the current settings.json, applies the requested changes, and writes the updated file.

File: .cursor/skills/update-cursor-settings/SKILL.md


When invoked: User mentions “implement design”, “generate code”, “implement component”, “build Figma design”, provides a Figma URL, or asks to build components matching Figma specs.

Requires: Figma MCP server connection.

What it does: Structured 7-step workflow:

  1. Extract fileKey and nodeId from the Figma URL.
  2. Fetch design context (get_design_context) — layout, typography, colors, spacing.
  3. Capture visual reference (get_screenshot).
  4. Download assets from Figma MCP localhost sources.
  5. Translate to project conventions (design system, tokens, existing components).
  6. Achieve 1:1 visual parity.
  7. Validate layout, typography, colors, interactive states, accessibility.

File: .cursor/skills/implement-design/SKILL.md


When invoked: User says “code connect”, “connect this component to code”, “connect Figma to code”, “map this component”, “link component to code”, “create code connect mapping”, or wants to establish mappings between Figma designs and code.

Requires: Figma MCP server connection.

What it does: Creates Code Connect mappings between Figma design components and codebase components.

File: .cursor/skills/code-connect-components/SKILL.md


When invoked: User says “create design system rules”, “generate rules for my project”, “set up design rules”, “customize design system guidelines”, or wants to establish project-specific conventions for Figma-to-code workflows.

Requires: Figma MCP server connection.

What it does: Generates custom design system rules for the user’s codebase based on the Figma design system.

File: .cursor/skills/create-design-system-rules/SKILL.md


When invoked: Agent is starting implementation work, user asks to build a feature, or working on routes/pages listed in the doc mapping.

What it does: Ensures the agent reads the relevant documentation and inspects the current implementation before any implementation work begins. Enforces the source priority: current implementation > docs > Figma.

File: .cursor/skills/read-docs-before-work/SKILL.md


Global Cursor-managed skills (~/.cursor/skills-cursor/)

Section titled “Global Cursor-managed skills (~/.cursor/skills-cursor/)”

These are skills managed by Cursor globally (not project-specific). They are available in all projects on this machine.

SkillPurpose
create-ruleCreate Cursor rules (global version)
create-skillCreate new Agent Skills (global version)
update-cursor-settingsModify Cursor/VSCode settings.json (global version)
create-subagentCreate new Cursor subagent configurations
migrate-to-skillsMigrate existing agent instructions to the Skills format
shellShell command execution specialist

MCP (Model Context Protocol) servers extend the agent with external tool capabilities. Configuration lives in ~/.cursor/mcp.json.

Current configuration (~/.cursor/mcp.json)

Section titled “Current configuration (~/.cursor/mcp.json)”
{
"mcpServers": {
"figma-local": {
"url": "http://127.0.0.1:3845/mcp"
},
"Figma": {
"url": "https://mcp.figma.com/mcp",
"headers": {}
}
}
}
  • URL: http://127.0.0.1:3845/mcp (local server started by the Figma desktop app)
  • Purpose: Connects to the locally running Figma desktop application. Allows the agent to read the currently selected node in the open Figma file without needing a URL.
  • Tools available: get_design_context, get_screenshot, get_metadata, get_figjam
  • Requires: Figma desktop app running with MCP enabled.
  • Used by skills: implement-design, code-connect-components, create-design-system-rules
  • URL: https://mcp.figma.com/mcp
  • Purpose: Official Figma cloud MCP server. Connects to Figma files via URL (fileKey + nodeId). Supports reading designs, creating FigJam diagrams, and managing Code Connect mappings.
  • Tools available: get_design_context, get_screenshot, get_metadata, get_figjam, generate_diagram, Code Connect tools
  • Requires: Figma account authentication.
  • Used by skills: implement-design, code-connect-components, create-design-system-rules
figma.com/design/:fileKey/:fileName?node-id=:nodeId
  • fileKey — segment after /design/
  • nodeId — value of node-id query param; convert - to : when passing to MCP tools (e.g. 4010-72414010:7241)

Model aliasUsed byCharacteristics
claude-4.6-opus-high-thinkingNeoHighest reasoning capability; best for architecture, complex specs, and nuanced product decisions
claude-4.6-sonnet-mediumFather, CoderStrong general-purpose model; good balance of speed and quality for implementation and high-level guidance
gpt-5.3-codexHelperOptimized for structured content generation, seed data, and copy tasks
gpt-5.2QASuitable for validation, review, and issue reporting tasks

To recreate the full Cursor AI configuration on a new machine or in a new project:

  1. Read the canonical docs first:

  2. Create agent files in .cursor/agents/ using the specs in docs/ai-governance/*.md. Each file needs the YAML frontmatter (name, model, description) followed by the agent’s system prompt.

  3. Create rule files in .cursor/rules/ as .mdc files. Use the rule descriptions above. Set alwaysApply: true for all four current rules.

  4. Create skill files in .cursor/skills/<skill-name>/SKILL.md. Each skill needs the YAML frontmatter (name, description, optional metadata.mcp-server) followed by the skill workflow content.

  5. Configure MCP servers in ~/.cursor/mcp.json using the JSON block above. The figma-local server requires the Figma desktop app to be running. The Figma cloud server requires authentication via the mcp_auth tool on first use.

  6. Verify by opening Cursor, checking that agents appear in the agent picker, rules are listed under workspace rules, and MCP servers show as connected.

  7. Drift-check the live .cursor/** assets against the canonical docs and correct any mismatches before treating the setup as recovered.