Stop explaining setup to AI agents. Generate machine-executable instructions instead.
Generate comprehensive, AI-agent-friendly installation and setup instructions for any project.
Traditional README files are designed for human developers, making them difficult for AI agents to parse and execute reliably. They often:
- Mix conceptual explanations with setup steps
- Lack clear verification criteria for each step
- Don't specify when to stop on errors
- Require implicit knowledge about the environment
- Have ambiguous or missing configuration details
AI agents need structured, step-by-step instructions with explicit success criteria and error handling.
The agent-instructions.md file is a machine-executable installation guide that:
- Breaks down setup into discrete, verifiable tasks
- Defines success criteria and verification methods for each step
- Includes automated detection of environment variables
- Consolidates all manual inputs (API keys, secrets) upfront
- Specifies rollback strategies for failed operations
- Requires explicit permission gates for high-risk operations
This allows AI agents to autonomously install and configure projects from scratch with minimal human intervention.
The skill follows a structured three-phase approach with user approval gates:
Goal: Understand the project and its requirements
- Analyzes project structure, dependencies, and configuration files
- Identifies system requirements and external services
- Detects ambiguities and missing information
- Creates
research.mddocumenting findings - Waits for user approval before proceeding
Goal: Create a detailed execution plan
- Generates numbered task sequence with all installation steps
- Defines success criteria and verification methods for each task
- Identifies high-risk operations requiring permission
- Consolidates manual input requirements
- Creates
plan.mdwith complete task breakdown - Waits for user approval before proceeding
Goal: Execute the plan
- Follows the approved plan sequentially
- Verifies each step's success before proceeding
- Stops immediately on failures and reports to user
- Generates
human_tasks.mdfor manual interventions
You can use this prompt with any AI coding assistant (Claude, GitHub Copilot, Cursor, etc.).
-
Provide the prompt to your AI assistant in your project directory (see prompt.md for the full prompt)
-
Follow the three phases:
- Review the generated
agent-instructions.md
- Review the generated
-
Use the instructions with any AI assistant:
Follow the instructions in agent-instructions.md to set up this project
For AI tools that support custom skills/agents (like Claude Code), you can install this as a reusable skill.
# Clone this repository
git clone <repository-url>
# Copy the skill to your project's AI config directory
# For Claude Code:
cp -r setup-agent /path/to/your/project/.claude/skills/
# For other tools, check their documentation for skill/agent directories
# Commit to share with your team
cd /path/to/your/project
git add .claude/skills/setup-agent # Adjust path for your AI tool
git commit -m "Add setup-agent skill"# Clone this repository
git clone <repository-url>
# Copy to your global AI config
# For Claude Code:
cp -r setup-agent ~/.claude/skills/
# For other tools, check their documentation for global skill directoriesAfter installation, activate the skill (may require restarting your AI tool) and run:
Create setup instructions for this project
or
Generate agent-instructions.md for this project
| File | Purpose |
|---|---|
research.md |
Phase 1 findings, requirements, and ambiguities |
plan.md |
Phase 2 detailed task breakdown and execution plan |
human_tasks.md |
Manual tasks requiring human intervention |
The generated agent-instructions.md includes:
- Environment Detection: Automatic OS, version, and path detection
- Dependency Installation: System packages, language runtimes, libraries
- Configuration Setup: Environment variables, config files, API keys
- Database Initialization: Schema creation, migrations, seed data
- Verification Steps: Commands to verify each installation step
- Rollback Procedures: How to undo changes if needed
- Permission Gates: Explicit user approval for high-risk operations
- Any AI coding assistant (Claude, GitHub Copilot, Cursor, etc.)
- A project with standard configuration files (package.json, requirements.txt, docker-compose.yml, etc.)
- For skill installation: AI tool that supports custom skills/agents
Contributions welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - see LICENSE file for details
This project is maintained by Montimage.
For questions or support, contact: developer@montimage.eu
For issues or questions:
- Open an issue in this repository
- Check your AI tool's documentation for specific integration details
Note: While the core prompt works with any AI coding assistant, the skill installation feature is designed for tools that support custom skills/agents (like Claude Code, Cursor, etc.). Check your AI tool's documentation for compatibility.