OpenParable
Skip to content
← Back to skills

Generate Tool Config

Agent Building
generate-tool-config

Generate Tool Config is an Agent Skill for agent building published in the andrefigueira/.context repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate tool-specific configuration files (Cursor rules, Copilot instructions, Windsurf rules) from the .context/ documentation. Use when setting up a project for a specific AI coding tool.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/andrefigueira/.context/blob/HEAD/.claude/skills/generate-tool-config/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/generate-tool-config, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Generate AI tool configuration files from the existing .context/ documentation.

Target: $ARGUMENTS

For "cursor"

Create .cursor/rules/ directory with .mdc files:

  • general.mdc - Always-apply rules from @.context/ai-rules.md
  • One .mdc per domain with appropriate glob patterns
  • Use alwaysApply: true only for general.mdc
  • Reference .context/ files with @ syntax

For "copilot"

Create .github/copilot-instructions.md:

  • Extract key rules from .context/ai-rules.md
  • Keep under 50 lines (Copilot works best with concise instructions)
  • Reference .context/ file paths for the agent to read

For "windsurf"

Create .windsurfrules:

  • Must stay under 6000 characters
  • Prioritize rules from .context/ai-rules.md and .context/architecture/patterns.md
  • Include file references for domain-specific context

For "all"

Generate all three above.

Rules

  • Read .context/ai-rules.md and .context/architecture/patterns.md first
  • Keep generated files minimal. Don't duplicate content, point to .context/ files
  • Follow each tool's format requirements exactly
  • Test that file paths are correct relative to project root