# 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.

- Skill name: `generate-tool-config`
- Category: [Agent Building](https://www.openparable.com/skill/agent-building/1)
- Source: https://github.com/andrefigueira/.context/blob/HEAD/.claude/skills/generate-tool-config/SKILL.md
- Repository: andrefigueira/.context (247 GitHub stars when collected)

## SKILL.md

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

---

Source: https://www.openparable.com/skill/agent-building/generate-tool-config (OpenParable). Cite the canonical URL above.
