Migrate to tool-agnostic agent structure and optimize documentation#62
Merged
amccall-mindera merged 4 commits intomainfrom Feb 19, 2026
Merged
Migrate to tool-agnostic agent structure and optimize documentation#62amccall-mindera merged 4 commits intomainfrom
amccall-mindera merged 4 commits intomainfrom
Conversation
- Move agents from .github/agents/ to .ai/agents/ (tool-agnostic location) - Simplify .github/copilot-instructions.md to reference AGENTS.md - Break down AGENTS.md from 966 to 130 lines (87% reduction) - Extract detailed guides to Docs/ (Architecture, GraphQL, Localization, Testing, Development, CodeStyle, QuickReference) - Fix agent file references (correct paths, remove broken anchors) - Move security content from Testing.md to QuickReference.md - Add 'How to Use' section to AGENTS.md for developers and AI agents - Update CLAUDE.md and Docs/Specs/README.md to reference new structure Result: AI agents load minimal context by default, read detailed guides on-demand.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request restructures the AI agent documentation system to be tool-agnostic and optimizes context loading by breaking down a monolithic 966-line documentation file into focused guides. The restructure moves agents from .github/agents/ to .ai/agents/, removes tool-specific configuration files (.cursorrules, .clinerules), and splits comprehensive documentation into eight focused guides in the Docs/ directory.
Changes:
- Migrated to tool-agnostic agent structure compatible with any AI coding assistant
- Created focused documentation guides (Architecture, GraphQL, Localization, Testing, Development, CodeStyle, QuickReference) averaging 100-360 lines each
- Updated all agent files with correct relative path references to new documentation structure
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
AGENTS.md |
Core AI agent system documentation (131 lines) with essential project context and links to detailed guides |
.github/copilot-instructions.md |
Simplified to 5-line redirect to AGENTS.md for GitHub Copilot compatibility |
CLAUDE.md |
Updated reference from copilot-instructions.md to AGENTS.md |
Docs/Architecture.md |
Comprehensive MVVM architecture, navigation, and module structure guide (360 lines) |
Docs/GraphQL.md |
GraphQL integration patterns and BFF workflow (55 lines) |
Docs/Localization.md |
L10n string catalog management guide (37 lines) |
Docs/Testing.md |
Testing patterns, mocking, and snapshot testing guide (55 lines) |
Docs/Development.md |
Feature development process and verification workflow (145 lines) |
Docs/CodeStyle.md |
SwiftLint rules, naming conventions, and best practices (96 lines) |
Docs/QuickReference.md |
Directory structure, commands, dependencies, and code review guidelines (131 lines) |
Docs/Specs/README.md |
Updated reference from copilot-instructions.md to AGENTS.md |
.ai/agents/feature-orchestrator.agent.md |
Updated documentation references with correct relative paths |
.ai/agents/spec-writer.agent.md |
New agent for creating feature specifications |
.ai/agents/graphql-specialist.agent.md |
Updated documentation references with correct relative paths |
.ai/agents/ios-feature-developer.agent.md |
Updated documentation references with correct relative paths |
.ai/agents/localization-specialist.agent.md |
Updated documentation references with correct relative paths |
.ai/agents/testing-specialist.agent.md |
Updated documentation references with correct relative paths |
.ai/agents/mobile-security-specialist.agent.md |
Updated documentation references with correct relative paths |
paulcristian-mindera
approved these changes
Feb 16, 2026
77c1b1e to
2d698d0
Compare
bug: debug github action
f037a96 to
88f3c86
Compare
Enable loopback pinentry mode for GPG agent to allow non-interactive passphrase input in CI environment. Newer GPG versions require this configuration to accept passphrases via stdin instead of attempting interactive prompts that fail in GitHub Actions runners. Also add workflow_dispatch trigger to allow manual workflow runs...
88f3c86 to
0c096c3
Compare
timea-v
approved these changes
Feb 18, 2026
reisdev
approved these changes
Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate to Tool-Agnostic AI Agent Structure
Overview
This PR restructures our AI agent system to be tool-agnostic, eliminating dependencies on specific AI coding assistants and dramatically reducing context overhead for AI agents.
Problem Statement
Previously, our AI agent documentation was:
.github/agents/directory only worked with GitHub CopilotAGENTS.mdfile loaded for every operation.cursorrules,.clinerules) created maintenance burdenSolution
1. Tool-Agnostic Agent Structure
Moved agents from
.github/agents/to.ai/agents/Removed tool-specific files:
.github/agents/directory (7 files).cursorrules(Cursor-specific).clinerules(Cline-specific)Simplified
.github/copilot-instructions.md:AGENTS.md(5 lines)2. Documentation Restructure (89% Context Reduction)
Before:
AGENTS.md: 966 linesAfter:
AGENTS.md: 103 lines (core essentials only)Docs/directory:Architecture.md(359 lines) - MVVM, navigation, modulesGraphQL.md(54 lines) - GraphQL integrationLocalization.md(36 lines) - L10n string catalogTesting.md(53 lines) - Testing patternsDevelopment.md(144 lines) - Feature development processCodeStyle.md(95 lines) - SwiftLint, conventionsQuickReference.md(131 lines) - Directories, commands, securityResult: Agents load minimal context by default, read detailed guides only when needed.
3. Fixed Agent References
All agent files now use:
../../AGENTS.mdnot../../../AGENTS.md)Benefits
✅ Zero Tool Lock-In
Works with any AI coding assistant (GitHub Copilot, Cursor, Cline, Claude, etc.)
✅ Massive Performance Improvement
✅ Better Organization
✅ Easier Maintenance
✅ Improved Developer Experience
File Structure
Changes Summary
Commits
Files Changed
.github/agents/,.cursorrules,.clinerules)Testing
✅ All agent file references validated (paths exist)
✅ No broken anchor links
✅ Backward compatible (GitHub Copilot still works via
.github/copilot-instructions.md)✅ Documentation hierarchy is clear and navigable
Migration Impact
For Developers
For AI Agents
Before & After Example
Simple Task (e.g., "Add a button")
Before: Load 966 lines
After: Load 103 lines
Improvement: 89% reduction
Complex Task (e.g., "Add GraphQL query")
Before: Load 966 lines
After: Load 103 (core) + 54 (GraphQL.md) = 157 lines
Improvement: 84% reduction
Feature Development
Before: Load 966 lines
After: Load 103 (core) + 144 (Development.md) + 359 (Architecture.md) = 606 lines
Improvement: 37% reduction (still significant for most common case)
Related Issues
Checklist