This directory contains configuration for GitHub Copilot coding agent, including custom instructions and agents.
.github/
βββ README.md # This file
βββ CONTRIBUTING.md # Contribution guidelines
βββ copilot-instructions.md # Repository-wide instructions
βββ instructions/ # Scoped instructions by file type
β βββ python.instructions.md # Python backend guidelines
β βββ frontend.instructions.md # Frontend/PWA guidelines
βββ agents/ # Custom Copilot agents
βββ my-agent.agent.md # RawanAI Development Agent
GitHub Copilot coding agent is an AI assistant that can autonomously work on GitHub issues when assigned. It:
- Creates branches and pull requests
- Makes code changes following your instructions
- Responds to review feedback
- Follows best practices defined in your repository
General guidelines that apply to the entire repository:
- Project overview and structure
- Language and communication guidelines (bilingual Arabic/English)
- Code style conventions
- Testing and validation procedures
- Deployment targets
- Key features to preserve (character personalities, RTL support, dark theme)
- Boundaries (what not to modify)
- Common tasks and workflows
- Build and run commands
Path-specific guidelines that apply only to certain file types:
Applies to: **/*.py, requirements.txt
Covers:
- Python/Gradio backend conventions
- Model configuration (Phi-3-Mini)
- System prompts and Ψ±ΩΨ§Ω's personality
- Gradio interface guidelines
- Dependencies and performance optimization
- Testing and debugging procedures
- Security considerations
Applies to: **/*.html, **/*.css, **/*.js, manifest.json
Covers:
- PWA architecture and design patterns
- Dark mode + Glassmorphism styling
- RTL support for Arabic text
- Responsive design (mobile-first)
- JavaScript best practices
- Ω Ψ±ΩΩ's AI character logic
- PWA configuration and testing
- Security and performance optimization
Specialized AI agents with domain-specific expertise:
A full-stack developer agent specialized in:
- Python/Gradio backends
- PWA frontends
- Bilingual (Arabic/English) development
- AI/ML model integration
- Cultural context (Saudi Arabian and Sudanese dialects)
- General Context: Copilot reads
copilot-instructions.mdfor overall project understanding - File-Specific Guidance: When working on specific files, it applies relevant scoped instructions
- Custom Agents: Can invoke the custom agent for specialized tasks
- Iterative Learning: Follows feedback in PR reviews to improve
Based on GitHub best practices:
- Be specific: Provide concrete examples and patterns
- Include context: Explain why certain practices are important
- Show examples: Code snippets demonstrate better than descriptions
- Set boundaries: Clearly state what should never change
- Document commands: Include exact commands for testing/building
- Cover edge cases: Mention common pitfalls and how to avoid them
- Avoid vague guidance: "Write good code" is not helpful
- Don't contradict: Ensure instructions don't conflict across files
- Don't assume knowledge: Explain project-specific concepts
- Don't over-constrain: Give Copilot flexibility to solve creatively
- Don't forget examples: Abstract rules without examples are hard to follow
When updating instructions:
- Test changes: Assign a simple issue to Copilot to verify it follows updated guidance
- Be consistent: Update all relevant instruction files if a practice changes
- Document rationale: Explain why a guideline exists
- Get feedback: If Copilot misinterprets instructions, refine them
- Version control: Instructions are part of the repo, so changes are tracked
Scoped instruction files use YAML frontmatter to specify which files they apply to:
---
applies_to:
- "**/*.py" # All Python files
- "requirements.txt"
---
# Your instructions here...Agent files use different frontmatter:
---
name: Agent Name
description: Brief description of the agent's expertise
---
# Your agent instructions here...- Create a clear, well-scoped issue
- Assign it to
@copilot(requires write access) - Copilot will create a PR following these instructions
- Review and provide feedback
The same instructions guide Copilot's code suggestions in your IDE when you have Copilot enabled.
This project requires special attention to:
- RTL (Right-to-Left) text for Arabic
- Character personalities (Ψ±ΩΨ§Ω and Ω Ψ±ΩΩ) with specific dialects
- Cultural sensitivity in language and interactions
- Dark theme aesthetic throughout
- Backend: Python, Gradio, HuggingFace Transformers
- Frontend: Pure HTML/CSS/JS (no frameworks)
- Design: Dark mode + Glassmorphism
- Deployment: Hugging Face Spaces (backend), Netlify/Vercel (frontend)
- Python: Run
python app.pyand test manually - PWA: Serve with
python3 -m http.server 8080 - Always verify: Arabic RTL rendering, character consistency, mobile responsiveness
- GitHub Copilot Coding Agent Documentation
- GitHub Copilot Instructions Guide
- Setting up Copilot for Success (GitHub Blog)
- Custom Instructions Deep Dive
If you notice instructions are:
- Outdated: Update them to reflect current practices
- Unclear: Add examples or clarification
- Missing: Add new guidelines as the project evolves
- Conflicting: Resolve contradictions
See CONTRIBUTING.md for general contribution guidelines.
Last Updated: 2026-02-12
Maintained By: Project Contributors