title: "iFood's 15,000-Repo Agent Fleet: The Blueprint for Scaling AI Development Without Chaos [SKILL.md Guide]" description: "iFood scaled coding agents across 15,000 repos. Learn the Agentic Architecture (AGENTS.md, SKILL.md, MCP) to replicate enterprise-grade AI devops for your solo " slug: "ifood-coding-agents-scale-agentic-architecture-skill-md" category: 1579052
iFood's 15,000-Repo Agent Fleet: The Blueprint for Scaling AI Development Without Chaos
60-Second Executive Summary
What happened: iFood, Latin America's food-delivery giant, publicly detailed how they deployed autonomous coding agents across 15,000 repositories. This isn't a pilot. It is a production-grade "Agentic Fleet" architecture where standardized agents execute code generation, refactoring, security patching, and dependency upgrades across a massive polyglot monorepo/multi-repo estate.
Why it matters to you: Most solopreneurs and agencies treat AI coding assistants (Cursor, Copilot, Devin) as chat interfaces. iFood proves the ROI unlock happens when you stop prompting and start orchestrating. They achieved scale by codifying Agent Definitions (AGENTS.md), Reusable Skills (SKILL.md), and Tool Connectors (MCP) into a governed platform layer.
The Bottom Line: You do not need 15,000 repos to need this architecture. You need it the moment you have more than one client project, one product repo, or one recurring maintenance task. The difference between "using AI" and "running an Agentic DevOps pipeline" is the difference between $5k/month and $50k/month leverage.
Free Download: The 1-Person Agentic Business Blueprint
Get 1 Plug-and-Play SKILL.md template, 1 Departmental Agent Blueprint, and 3 Master Prompts to deploy in Claude, ChatGPT, or Gemini today.
Strategic Impact: The 3-Layer Agentic Stack for Small Business
iFood's architecture maps perfectly to the Agentic Organization Framework taught inside The AI Business Shortcut 2.0. Here is how a solo founder or micro-agency maps their enterprise lessons to your desk tomorrow.
Layer 1: The Company Brain - AGENTS.md (Governance & Identity)
iFood doesn't "ask AI to code." They register agents. Every agent has a manifest: identity, permissions, allowed tools (MCP servers), memory scope, and escalation rules.
* Your Move: Create an AGENTS.md at your root. Define lead-architect-agent, qa-agent, devops-agent. Explicitly forbid lead-architect-agent from touching production DB credentials. Force qa-agent to run via MCP tool run-tests only. This is your Org Chart for Code.
Layer 2: The Playbooks - SKILL.md (Deterministic Execution)
iFood's agents don't "figure it out." They execute versioned, tested Skills: upgrade-spring-boot-3.x, apply-owasp-top-10-fixes, generate-openapi-docs.
* Your Move: Stop writing prompts. Start writing Skills. A Skill is a deterministic SOP with inputs, steps, guardrails, and output contracts. It is portable across projects, clients, and LLMs.
Layer 3: The Nervous System - MCP (Model Context Protocol)
iFood connects agents to internal platforms (GitHub, Jira, Datadog, Internal APIs) via MCP servers. The agent is the reasoning layer; MCP is the action layer.
* Your Move: Expose your tools (Notion, Stripe, Supabase, Linear, File System) via local or remote MCP servers. Your devops-agent calls mcp_github_create_pr not "write a git command."
Layer 4: Human-in-the-Loop (HITL) Gates
iFood mandates Policy Enforcement Points (PEPs). High-risk skills (DB migrations, IAM changes) require human approval before the agent executes the MCP tool call.
* Your Move: Implement guardrails: require_approval: true in your Skills for destructive actions. You sleep; the agent prepares the PR; you approve with one click.
Operational Architecture: Your "Agentic DevOps" Setup (Solo Edition)
You don't need Kubernetes. You need a disciplined file structure.
/your-business-root
├── AGENTS.md # Registry of your digital employees
├── .agentic/
│ ├── skills/ # Your SKILL.md library (version controlled)
│ │ ├── refactor-legacy-php.skill.md
│ │ ├── generate-stripe-webhook.skill.md
│ │ └── security-audit-deps.skill.md
│ ├── mcp-servers/ # Local/Remote MCP configs (JSON)
│ │ ├── github.json
│ │ ├── linear.json
│ │ └── supabase.json
│ └── memory/ # Long-term context (RAG/Vector DB)
│ └── project-context.md
└── projects/
├── client-alpha/
│ └── AGENTS.md # Project-specific overrides
└── saas-product-beta/
└── AGENTS.md
The Workflow:
1. Trigger: Webhook (GitHub Push) or Schedule (Cron) or Manual CLI (agent run security-audit-deps --repo=client-alpha).
2. Orchestrator: Reads AGENTS.md -> Selects security-auditor-agent.
3. Agent Loads Skill: Parses security-audit-deps.skill.md.
4. Execution Loop: Skill steps invoke MCP Tools (mcp_github_get_files, mcp_npm_audit, mcp_github_create_pr).
5. HITL Gate: Skill hits guardrail: require_approval -> Pauses -> Notifies you (Slack/Email/CLI).
6. Completion: You approve -> Agent merges -> Logs to memory/project-context.md.
Ready-to-Install: SKILL.md - Automated Dependency Security Audit & PR Generation
This Skill replicates the core "maintenance agent" pattern iFood uses at scale. It scans package.json/requirements.txt/go.mod, runs vulnerability checks, attempts auto-fix, and opens a titled, labeled PR. Save as .agentic/skills/security-audit-deps.skill.md.
---
name: "security-audit-deps"
version: "1.2.0"
description: "Scans project dependencies for known vulnerabilities (CVEs), attempts automated remediation via package manager audit fix, and opens a review-ready Pull Request with a structured security report. Enforces HITL approval for major version upgrades."
author: "The AI Business Shortcut"
tags: [security, maintenance, devops, automated-pr, mcp]
required_mcp_servers:
- "github"
- "filesystem"
- "terminal" # For running package manager commands
guardrails:
- "require_approval_on_major_version_bump: true"
- "max_pr_changes_files: 15"
- "block_on_critical_cve_no_fix: true"
- "deny_direct_push_to_main: true"
inputs:
repo_path:
type: "string"
description: "Absolute path to the repository root."
required: true
target_branch:
type: "string"
default: "main"
description: "Base branch to audit against."
package_managers:
type: "array"
items: { type: "string", enum: ["npm", "pnpm", "yarn", "pip", "poetry", "go", "cargo", "composer"] }
default: ["npm", "pip", "go"]
description: "Detected or forced package managers to audit."
outputs:
pr_url:
type: "string"
description: "URL of the created Pull Request."
vulnerability_summary:
type: "object"
description: "Count of Critical/High/Medium/Low before and after."
status:
type: "string"
enum: ["clean", "pr_created_auto_fix", "pr_created_manual_review_required", "blocked_critical_unfixable"]
---
# SOP: Automated Dependency Security Audit & Remediation
## Phase 0: Pre-flight & Context Loading
1. **Validate Inputs:** Confirm `repo_path` exists. Read `AGENTS.md` in repo root to verify this agent (`security-auditor-agent`) has `github.write_pr` permission.
2. **Load Memory:** Read `.agentic/memory/project-context.md` for known "pinned packages" (packages we cannot upgrade due to breaking changes). Store as `PINNED_LIST`.
3. **Checkout:** Ensure working directory is clean. Fetch `target_branch`. Create new branch `chore/security-audit-{{ISO_DATE}}-{{SHORT_SHA}}`.
## Phase 1: Discovery & Scan (Parallel per Manager)
**FOR EACH** `manager` IN `inputs.package_managers`:
1. **Detect Manifest:** Use `mcp_filesystem_glob` to find lockfiles (`package-lock.json`, `poetry.lock`, `go.sum`, `composer.lock`).
2. **Run Native Audit:**
* `npm`: `npm audit --json --audit-level=low`
* `pip`: `pip-audit --format=json` (install if missing via `mcp_terminal_exec`)
* `go`: `govulncheck -json ./...`
* `composer`: `composer audit --format=json`
3. **Parse & Normalize:** Convert output to unified schema: `[{package, current_version, fixed_version, severity, cve_id, advisory_url}]`.
4. **Filter Pinned:** Remove any findings where `package` IN `PINNED_LIST`. Log skipped items.
## Phase 2: Remediation Strategy
1. **Categorize Findings:**
* `AUTO_FIXABLE`: `fixed_version` exists AND satisfies semver `^` (patch/minor) AND NOT major bump.
* `MANUAL_REVIEW`: `fixed_version` requires MAJOR version bump OR no `fixed_version` available (workaround needed).
* `BLOCKED_CRITICAL`: Severity == CRITICAL AND Category == `MANUAL_REVIEW`.
2. **Execute Auto-Fixes:**
* Run `npm audit fix --force=false` / `pip install --upgrade <pkg>==<fixed_version>` / `go get <pkg>@<fixed_version>` / `composer update <pkg>:<fixed_version>`.
* **VERIFY:** Re-run Phase 1 Scan. Confirm `AUTO_FIXABLE` items resolved.
3. **Prepare Manual Review Diff:** For `MANUAL_REVIEW` items, stage `package.json`/`requirements.txt` changes to target `fixed_version` (major bump) but **DO NOT COMMIT**. Leave as unstaged changes for the PR diff.
## Phase 3: Guardrail Enforcement (HITL Gates)
1. **CHECK `block_on_critical_cve_no_fix`:** If `BLOCKED_CRITICAL` list not empty -> **HALT**. Output `status: "blocked_critical_unfixable"`. Create GitHub Issue (via MCP) titled `[BLOCKER] Critical CVE Unfixable: <pkg>`. Notify Human (Slack/Email). **STOP SKILL.**
2. **CHECK `require_approval_on_major_version_bump`:** If `MANUAL_REVIEW` list not empty -> Set `pr_labels: ["security", "needs-human-review", "major-version-bump"]`. Set `pr_draft: true`.
3. **CHECK `max_pr_changes_files`:** Count modified files (lockfiles + manifests). If > limit -> Split into multiple PRs per package manager.
## Phase 4: PR Creation & Reporting
1. **Generate Report Markdown:** (See Output Template below).
2. **Commit Auto-Fixes:** `git add <lockfiles> <manifests_for_minor_patch>`. `git commit -m "chore(security): auto-fix vulnerabilities (patch/minor)"`.
3. **Stage Major Bumps (if any):** `git add <manifests_for_major>`. `git commit -m "chore(security): propose major upgrades for review"`.
4. **Push Branch:** `git push origin <branch_name>`.
5. **Create PR via MCP:** `mcp_github_create_pr`
* `title`: "🔒 Security Audit: Automated Dependency Updates ({{vuln_count}} fixed, {{manual_count}} need review)"
* `body`: **Rendered Output Template**
* `labels`: Determined in Phase 3.
* `draft`: Determined in Phase 3.
6. **Update Memory:** Append audit summary + PR URL to `.agentic/memory/project-context.md` under `## Security Audit History`.
## Output Template: PR Body (Markdown)
```markdown
# 🔒 Automated Security Audit Report
**Repository:** `{{repo_name}}` | **Branch:** `{{branch_name}}` | **Agent:** `security-auditor-agent v{{version}}`
**Timestamp:** `{{ISO_TIMESTAMP}}` | **Status:** `{{status}}`
## 📊 Summary
| Severity | Found | Auto-Fixed | Requires Manual Review | Blocked (Pinned) |
| :--- | :---: | :---: | :---: | :---: |
| **Critical** | {{crit_found}} | {{crit_fixed}} | {{crit_manual}} | {{crit_pinned}} |
| **High** | {{high_found}} | {{high_fixed}} | {{high_manual}} | {{high_pinned}} |
| **Medium** | {{med_found}} | {{med_fixed}} | {{med_manual}} | {{med_pinned}} |
| **Low** | {{low_found}} | {{low_fixed}} | {{low_manual}} | {{low_pinned}} |
## ✅ Auto-Remediated (Patch/Minor) - **Merged on Approval**
{{#each auto_fixed}}
- **`{{package}}`**: `{{current}}` → `{{fixed}}` ([CVE-{{cve}}]({{url}})) - *{{severity}}*
{{/each}}
## ⚠️ Requires Human Review (Major Bumps / No Fix)
*These changes are staged in the second commit. **Do not merge** until you verify compatibility.*
{{#each manual_review}}
- **`{{package}}`**: `{{current}}` → `{{proposed}}` ([CVE-{{cve}}]({{url}})) - *{{severity}}*
- **Breaking Changes:** {{breaking_notes}}
- **Migration Guide:** {{migration_url}}
{{/each}}
## 🛑 Pinned / Ignored (Per Project Policy)
{{#each pinned}}
- **`{{package}}`** @ `{{version}}`: {{reason}}
{{/each}}
---
**Next Steps for Human:**
1. Run test suite locally (`npm test` / `pytest` / `go test ./...`).
2. Review "Requires Human Review" section. Update `PINNED_LIST` in `.agentic/memory/project-context.md` if you decide to accept risk.
3. Approve & Merge this PR.
4. If blocked: Check linked GitHub Issue for Critical CVEs.
Companion Copy-Paste Prompt (No Code Required)
Paste this into ChatGPT (GPT-4o), Claude 3.5 Sonnet, or Gemini 1.5 Pro to simulate the Skill logic instantly on a pasted package.json or requirements.txt. No MCP, no CLI, instant value.
# ROLE: Senior Application Security Engineer & Dependency Manager
# CONTEXT: I am a solo founder/agency owner. I need to audit my dependencies for CVEs without a full CI/CD pipeline. I will paste my manifest file(s).
# GOAL: Produce a prioritized, actionable Security Audit Report + a ready-to-copy PR description for GitHub.
## INSTRUCTIONS:
1. **ANALYZE** the provided manifest/lockfile content below.
2. **SIMULATE** a vulnerability scan (use your training knowledge of CVEs up to your knowledge cutoff + common patterns). Flag known vulnerable versions (e.g., `lodash < 4.17.21`, `requests < 2.31.0`, `spring-boot < 3.2.0`, `django < 4.2.7`).
3. **CLASSIFY** each finding:
- [AUTO-FIX] Patch/Minor version available (Safe to upgrade).
- [MANUAL-REVIEW] Major version bump required OR No fix available (Breaking changes likely).
- [PINNED] User explicitly accepts risk (I will tell you if any).
4. **OUTPUT** exactly in the **Markdown Format** defined in the "OUTPUT TEMPLATE" below.
5. **ADD** a "COMMANDS TO RUN" section at the bottom with the exact CLI commands to apply the [AUTO-FIX] upgrades for my package manager.
## MY PROJECT CONTEXT:
- **Package Manager:** [PASTE: npm / pnpm / pip / poetry / go / cargo / composer]
- **Language/Framework:** [PASTE: e.g., Node 20 / Next.js 14, Python 3.11 / FastAPI, Go 1.22]
- **Pinned Packages (Do Not Upgrade):** [PASTE LIST OR "None"]
- **Risk Tolerance:** [Low / Medium / High - affects Major bump eagerness]
## MANIFEST CONTENT:
<<PASTE YOUR package.json / requirements.txt / go.mod / Cargo.toml / composer.json HERE>>
---
## OUTPUT TEMPLATE (MANDATORY FORMAT)
### 🔒 Security Audit Report: [Project Name / Repo]
**Scan Date:** [Current Date] | **Simulated by:** AI Agent (The AI Business Shortcut Method)
#### 📊 Executive Summary
| Severity | Count | Auto-Fix Ready | Manual Review Needed |
| :--- | :---: | :---: | :---: |
| Critical | [#] | [#] | [#] |
| High | [#] | [#] | [#] |
| Medium | [#] | [#] | [#] |
| Low | [#] | [#] | [#] |
#### ✅ AUTO-FIX Queue (Safe to Merge via Dependabot/PR)
*These are patch/minor upgrades. Low risk. Run commands in "COMMANDS TO RUN".*
| Package | Current | Fixed | CVE / Advisory | Severity | Fix Type |
| :--- | :--- | :--- | :--- | :---: | :--- |
| `example-pkg` | `1.2.3` | `1.2.5` | CVE-2024-XXXXX | High | Patch |
#### ⚠️ MANUAL REVIEW REQUIRED (Major Versions / No Fix)
*High risk. Requires code changes, testing, and explicit approval.*
| Package | Current | Target | CVE / Advisory | Severity | Breaking Change Notes | Migration Effort (Low/Med/High) |
| :--- | :--- | :--- | :--- | :---: | :--- | :---: |
| `legacy-lib` | `2.x` | `3.x` | CVE-2023-YYYYY | Critical | API surface changed, config format new | High |
#### 🛑 PINNED / ACCEPTED RISK
| Package | Version | Reason | Mitigation |
| :--- | :--- | :--- | :--- |
---
### 📋 READY-TO-COPY GITHUB PR DESCRIPTION
```markdown
# 🔒 Security: Automated Dependency Updates
**Status:** [Ready for Review / Draft - Needs Manual Review]
## Summary
- **Auto-fixed:** [Count] vulnerabilities (Patch/Minor)
- **Needs Review:** [Count] Major upgrades / Unfixable
## Changes
### Auto-Fixed (Commit 1)
[List packages]
### Proposed Major Upgrades (Commit 2 - Separate Commit)
[List packages with Migration Guide links]
## Testing Checklist
- [ ] Unit Tests Pass
- [ ] Integration Tests Pass
- [ ] Manual Smoke Test: [Key Feature 1], [Key Feature 2]
- [ ] Staging Deployment Verified
⚡ COMMANDS TO RUN (Copy-Paste to Terminal)
# AUTO-FIX COMMANDS (Run in project root)
# [Generated specific commands for your package manager, e.g.]
npm install [email protected] --save
# OR
pip install --upgrade requests==2.31.0
# OR
go get github.com/vuln/[email protected]
From "Cool Demo" to "Agentic Asset": The Shortcut
You just ran a Skill (via prompt) that iFood runs 15,000 times a day via code.
The gap between that prompt and a production Agentic Fleet is not "more prompting." It is infrastructure:
1. Persistence: The Skill file lives in Git. Versioned. Reviewed. Shared across clients.
2. Autonomy: It runs on a Cron / Webhook, not your copy-paste.
3. Tools (MCP): It actually creates the PR, actually runs npm audit, actually checks your PINNED_LIST in memory.
4. Governance: AGENTS.md ensures this agent cannot merge to main, cannot touch .env, must ask you for major bumps.
This is the difference between "Using AI" and "Employing Agents."
The AI Business Shortcut 2.0 - Your Agentic OS Installer
Stop building this plumbing from scratch. The AI Business Shortcut 2.0 ($37) is the complete Agentic Organization Starter Kit designed exactly for this transition.
What you install in 30 minutes:
- AGENTS.md Company OS Template: Pre-written manifests for CEO-Agent, CTO-Agent, Dev-Agent, Marketing-Agent, Sales-Agent, Support-Agent - with permissions, MCP scopes, and HITL gates configured.
- 10 Ready-to-Install SKILL.md Files: Including security-audit-deps (above), generate-api-docs, refactor-to-pattern, create-stripe-checkout, seo-content-brief-to-article, cold-outreach-sequence, competitor-intel-report, financial-model-update, client-onboarding-checklist, crisis-comms-draft.
- 5 Departmental Agent Blueprints: Engineering-Team, Growth-Team, Operations-Team, Finance-Team, Executive-Office - each with AGENTS.md, Skill registry, and MCP wiring diagrams.
- 50 Master Prompts: The "Companion Prompts" for every Skill, optimized for GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro - so you get value today while you wire the automation.
- MCP Server Quick-Start Guide: Connect GitHub, Linear, Notion, Supabase, Stripe, Slack, Filesystem in 5 mins (Docker/NPX configs included).
No subscription. No upsells. One-time $37. Lifetime updates.
"I used the
security-audit-depsSkill on 3 client repos Friday afternoon. Found 2 Critical CVEs, auto-fixed 40 others, opened 3 PRs. Billed 3 hours. Took 20 mins. The $37 paid for itself before lunch." - Freelance Full-Stack Dev, Berlin
👉 GET THE AI BUSINESS SHORTCUT 2.0 FOR $37 - INSTALL YOUR AGENTIC OS TODAY
Your Next Action (Do This Now)
- Save the Skill: Create
.agentic/skills/security-audit-deps.skill.mdin your main repo (or dotfiles). - Run the Prompt: Paste your
package.jsoninto the Companion Prompt above. Fix what it finds. - Map Your Stack: List 3 repetitive dev tasks you did this week (e.g., "Update changelog", "Scaffold feature branch", "Check API latency").
- Grab the Shortcut: Get The AI Business Shortcut 2.0 ($37). Install the
AGENTS.mdOS. Convert those 3 tasks into Skills this weekend.
The enterprise plays with Agents. The smart solo founder builds the fleet.
Take The Ultimate Shortcut: Install The Full Agentic Business OS (Edition 2.0) for Just $37
Reading about new AI agent releases is helpful — deploying standardized, repeatable Agent Skills (SKILL.md) and departmental workflows across your company is what multiplies output without adding headcount.
Inside The AI Business Shortcut 2.0, you get the complete plug-and-play system built for ChatGPT, Claude, and Gemini:
- 50 Battle-Tested Master Prompts: Fill-in-the-blank templates across all 10 core business departments.
- 10 Plug-and-Play Agent Skills (SKILL.md .zip Pack): Standardized SOP folders ready to install in Claude, ChatGPT Projects/Custom GPTs, and Gemini Gems.
- 5 Departmental AI Agent Blueprints + AGENTS.md Company Brain: Govern Sales, Content, Onboarding/Support, Finance/Ops, and Executive reporting with Human-in-the-Loop guardrails and a 20-minute weekly audit protocol.
- 30-Minute Agentic Quick-Start Checklist: Zero coding required — 30-day 100% money-back guarantee.
👉 Click Here to Get The AI Business Shortcut 2.0 for Just $37 Today