cursorrules-generation

Generate UTF-8 encoded .cursorrules files with placeholders replaced.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gitwalter/cursor-agent-factory --skill cursorrules-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cursorrules-generation
Source: https://github.com/gitwalter/cursor-agent-factory/tree/main/.cursor/skills/cursorrules-generation
Command: npx skills add https://github.com/gitwalter/cursor-agent-factory --skill cursorrules-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates the .cursorrules file that governs AI agent behavior in generated cursor projects.

Core Features & Use Cases

  • Load a templates file from templates/factory/cursorrules-template.md and apply it to the current project configuration.
  • Replace variables such as {PROJECT_NAME}, {PROJECT_DESCRIPTION}, {PRIMARY_LANGUAGE}, {STYLE_GUIDE}, {DOMAIN}, and {GENERATED_DATE} with actual values.
  • Generate Agent List and Skill List from the configured agents and skills, then assemble an MCP section for server integration.
  • Write the resulting file to a target path as UTF-8 encoded .cursorrules, with a fallback to an embedded default template if the template is missing.

Quick Start

Use the cursorrules-generation skill to generate the .cursorrules file for your project. Example: python tools/generate_cursorrules.py --config config.json

Frequently Asked Questions about cursorrules-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a .cursorrules file for my project configuration?

Generate a .cursorrules file by loading a cursorrules-template, substituting project variables like {PROJECT_NAME} and {PRIMARY_LANGUAGE}, and writing the UTF-8 encoded output to your target path. If the template is missing, an embedded default is used.

What variables can I substitute in a cursorrules template?

You can substitute {PROJECT_NAME}, {PROJECT_DESCRIPTION}, {PRIMARY_LANGUAGE}, {STYLE_GUIDE}, {DOMAIN}, and {GENERATED_DATE} variables in the cursorrules template with your actual project configuration values to define agent behavior.

How does MCP integration work when generating cursor rules?

MCP integration assembles an MCP section for server integration within the .cursorrules file by mapping configured agents and skills, generating an Agent List and Skill List to define AI agent behavior.

Do I need a templates file to define AI agent rules for a new project?

You do not need a templates file to define AI agent rules. The generation process loads templates/factory/cursorrules-template.md if available, but falls back to an embedded default template to write the .cursorrules file.

Can I update an existing .cursorrules file during project configuration updates?

You can update an existing .cursorrules file during project configuration updates by applying template loading, variable substitution, agent and skill mappings, and MCP integration to write the new UTF-8 encoded file.