Generate Tool Config
Agent Buildinggenerate-tool-configGenerate 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.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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
.mdcper domain with appropriate glob patterns - Use
alwaysApply: trueonly forgeneral.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.mdand.context/architecture/patterns.md - Include file references for domain-specific context
For "all"
Generate all three above.
Rules
- Read
.context/ai-rules.mdand.context/architecture/patterns.mdfirst - 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