Working with the AI Agent Instructions Repository
This document provides instructions for maintaining and contributing to the AI Agent Instructions repository.
Repository Overview
This repository hosts a GitHub Pages site that provides examples of workable instructions to constrain AI agents to modern software engineering practices. The site is built using Jekyll and follows a simple structure:
_pages/: Contains individual instruction pages in Markdown format_config.yml: Jekyll configuration fileindex.md: Main landing page_layouts/: Contains layout templates for the siteassets/: Contains static assets for the sitecss/: Custom CSS stylesfavicon/: Favicon filesimages/: Images used on the site
CNAME: Contains a placeholder for custom domain configuration (currently commented out)Gemfile: Defines Ruby dependencies for Jekyll
Adding New Instructions
To add a new instruction:
- Create a new Markdown file in the
_pagesdirectory with a descriptive filename:your-instruction-name.md - Include the Jekyll front matter at the top of the file:
--- layout: page title: "Your Instruction Title" permalink: /your-instruction-name/ --- - Add your content below the front matter
- Keep instructions concise and focused on a single software engineering practice
- Use clear, direct language that an AI agent can easily interpret
Modifying Existing Instructions
When updating existing instructions:
- Maintain the same permalink to avoid breaking links
- Keep the instructions concise and focused
- Ensure the title accurately reflects the content
- Test the changes locally before pushing to the repository
Local Development
To run the site locally:
- Install Jekyll and its dependencies
- Run
bundle installto install required gems - Run
bundle exec jekyll serveto start the local server - Visit
http://localhost:4000in your browser to preview the site
Deployment
The site is automatically deployed to GitHub Pages when changes are pushed to the main branch. No additional steps are required for deployment.
Best Practices for Instructions
When writing instructions for AI agents:
- Be specific and unambiguous
- Focus on one principle or practice per instruction
- Provide clear steps or guidelines
- Use simple language that’s easy for AI to parse
- Consider including examples where appropriate
- Keep instructions concise - AI agents work best with clear, direct guidance