agentleFS
AgenticPawanAgenticPawan/FullStack-Pilot/AGENTS.md

FullStack-Pilot

AGENTS.md2 starsChanged 4 months agoMITView on GitHub

This file defines how Claude Code routes queries to specialist agents across the Angular / .NET / SQL Server / Azure stack and how agents coordinate with each other. Optimised for a specific enterprise role. Each has different permissions and output formats. Match user intent to the first agent that fits. When multiple match, the first row wins.

  • Deletes or force-pushes
  • Commits and pushes

We split this AGENTS.md into the rules it gives an agent

10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    When routing to a specialist, always include:

    line 144
  2. Distinctive:

    All agents must prefer MCP tool reads over direct file reads to reduce token consumption.

    line 158
  3. Distinctive:

    When no MCP tool covers the need, fall back to: Grep → Glob → Read (smallest scope first).

    line 166
  4. Distinctive:

    When running any fix or build loop autonomously:

    line 190
  5. Distinctive:

    Hard cap: 10 iterations per loop: Stop at 10 regardless of remaining errors.

    line 192
  6. Very specific:

    Never force-push, never reset --hard, never drop migrations — even inside a loop.

    line 193
  7. Distinctive:

    Every loop iteration that modifies files must end with a git status check.

    line 194
  8. Very specific:

    If a loop hits the cap, write a .claude/loop-stopped.md with the iteration count and remaining issues before exiting.

    line 195
  9. Distinctive:

    Never silently return a degraded result: when a read budget is insufficient.

    line 206
  10. Distinctive:

    When multiple agents could match an intent, resolve as follows:

    line 214

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Routing & Orchestration — FullStack Pilot

This file defines how Claude Code routes queries to specialist agents across the Angular / .NET / SQL Server / Azure stack and how agents coordinate with each other.


Agent Roster

Stack Specialists (one trio per plugin)

AgentDomainPlugin
@angular-reviewerAngular / TypeScript review (read-only)pilot-angular
@angular-implementorAngular / TypeScript fixes and featurespilot-angular
@angular-supportAngular symptom triagepilot-angular
@dotnet-reviewerC# / ASP.NET Core review (read-only)pilot-dotnet
@dotnet-implementorC# / ASP.NET Core fixes and featurespilot-dotnet
@dotnet-support.NET symptom triagepilot-dotnet
@sql-reviewerEF Core / SQL Server review (read-only)pilot-sql
@sql-implementorEF Core / SQL Server fixes and schema changespilot-sql
@sql-supportDatabase symptom triagepilot-sql
@infra-reviewerAzure / Bicep / CI-CD review (read-only)pilot-azure
@infra-implementorAzure / Bicep / CI-CD fixespilot-azure
@infra-supportInfrastructure symptom triagepilot-azure

Pipeline Agents (pilot-core)

AgentRoleModel
@fsp-analystBusiness analyst — spec writersonnet
@fsp-scoutCodebase explorer — context briefshaiku
@fsp-architectSolution architect — assessment and planningopus
@fsp-qaQA engineer — test generation and traceabilitysonnet
@fullstack-reviewerCross-stack diff review orchestratorsonnet
@fullstack-implementorCross-stack fix orchestratorinherits
@fullstack-supportProduction incident triagesonnet

Persona Agents (pilot-core)

Optimised for a specific enterprise role. Each has different permissions and output formats.

AgentPersonaModelWrite Scope
@fsp-feature-builderFullstack Developerinherits (sonnet/opus per complexity)All layers — scaffold + implement a full vertical slice
@fsp-incident-responderProduction Support Engineersonnet.claude/pilot/ + one local fix branch only. Never deploys or pushes.
@fsp-tpo-intakeTechnical Product Ownersonnet.claude/specs/ and .claude/pilot/specs/ only. Never writes code.

Routing Table

Match user intent to the first agent that fits. When multiple match, the first row wins.

Feature & Architecture Requests

User Intent PatternPrimary AgentSupport Agents
"what should we build", "spec this feature", "requirements"@fsp-analyst—
"write a spec", "acceptance criteria", "user story", "TPO", "product owner"@fsp-tpo-intake@fsp-analyst (if formal pipeline spec needed)
"plan this", "architecture for", "how should we structure"@fsp-architect@fsp-analyst
"build feature", "scaffold feature", "new feature", "vertical slice"@fsp-feature-builderstack specialists
"scaffold", "generate the feature end-to-end", "implement the plan"@fullstack-implementorstack specialists
"build pipeline", "/fsp-build"pipeline (/fsp-build)all specialists

Review Requests

User Intent PatternPrimary AgentNotes
"review this PR", "review all changed files", touches >1 layer@fullstack-reviewerdelegates to per-layer specialists
"review this Angular component / service / module"@angular-reviewer—
"review this C# / ASP.NET Core / EF Core code"@dotnet-reviewer—
"review this migration / SQL query / schema"@sql-reviewer—
"review this Bicep / GitHub Actions / AKS config"@infra-reviewer—

Fix Requests (after a review finding)

User Intent PatternPrimary Agent
Fix spans >1 layer or involves cross-layer contract drift@fullstack-implementor
Fix is Angular-only@angular-implementor
Fix is .NET-only@dotnet-implementor
Fix is SQL / EF Core-only@sql-implementor
Fix is Azure / Bicep / CI-only@infra-implementor

Production Support / Incidents

SymptomRoute to
Engineer has error artifacts (paste, stack trace, alert) and needs root cause + fix branch@fsp-incident-responder (persona-specific, full workflow)
No layer identified yet, or "the app is broken"@fullstack-support (triage first)
Browser console error, NG0xxx, blank UI, wrong render@angular-support
HTTP 4xx/5xx, exception stack trace, API wrong response@dotnet-support
Slow query, deadlock, failed migration, missing rows@sql-support
Deployment failure, unreachable resource, RBAC/Key Vault denial@infra-support

@fsp-incident-responder vs @fullstack-support: Use @fsp-incident-responder when the engineer is in active incident response mode and needs a root-cause analysis, a proposed fix branch, a rollback plan, and a shift-handoff note in a single workflow. Use @fullstack-support for quick layer-classification triage when you already know it will route to a single specialist.

Meta Workflows

IntentCommand / Agent
"detect conventions", "what does this project do"/fsp-learn (convention-learner + fsp-scout)
"audit the codebase", "find vulnerabilities"/fsp-audit
"fix all findings", "batch remediate"/fsp-fix
"health report", "how is the project"/fsp-health
"verify before PR", "final checks"/fsp-verify
"save progress", "checkpoint", "done for today"/fsp-checkpoint
"show instincts", "what patterns have you learned"session — trigger phrase

Cross-Agent Coordination

When to Use Subagents

Use subagents for:

  • Parallel research across multiple layers (e.g., scouting Angular and .NET simultaneously)
  • Protecting the main context window from large file reads (@fsp-scout for briefs)
  • Independent tasks that do not need prior-step output (e.g., lint + migration check in parallel)

Do not use subagents for:

  • Single-step lookups where a direct tool call (Grep, Glob, Read) suffices
  • Tasks under 3 tool calls — the spawn overhead is not worth it

Subagent Pattern — Cross-Layer Feature

@fullstack-implementor receives work item
  → spawns @fsp-scout for each layer (parallel)
  → reads context briefs from .claude/pilot/context/
  → delegates SQL changes to @sql-implementor
  → delegates .NET changes to @dotnet-implementor
  → delegates Angular changes to @angular-implementor
  → handles cross-layer glue (API client regeneration, contract alignment) directly
  → runs /fsp-verify before declaring done

Handoff Format

When routing to a specialist, always include:

## Handoff → @<agent>
Layer:    <angular | dotnet | sql | azure>
Finding:  <rule-id or description>
File:     <path:line>
Context:  <1-2 sentences of why>
Ruled out: <other layers / agents considered>

MCP-First Principle

All agents must prefer MCP tool reads over direct file reads to reduce token consumption.

TaskUse MCP FirstInstead Of
Search documentation, Microsoft docsmicrosoft_docs_searchGlob + Read across docs/
Code samples for a patternmicrosoft_code_sample_searchGrep across .cs / .ts files
Detailed reference for a specific pagemicrosoft_docs_fetch—

When no MCP tool covers the need, fall back to: Grep → Glob → Read (smallest scope first).


Skill Load Order

Agents load skills in dependency order before starting work. Never start implementation without checking whether a relevant skill exists in the plugin manifest.

Default Order for Implementors

  1. stack-detection — understand what stacks are active (skip if stack-profile.json is current)
  2. Domain skill(s) — e.g. angular-signals-and-state, dotnet-cqrs, sql-schema-design
  3. api-design-standards — if the work touches a REST API boundary
  4. architecture-decision-records — if the work might override a prior decision

Default Order for Reviewers / Support

  1. Domain skill(s) — all relevant to the files under review
  2. audit-orchestration — if the review scope includes security findings

Autonomous Loop Caps

When running any fix or build loop autonomously:

  • Hard cap: 10 iterations per loop. Stop at 10 regardless of remaining errors. Report what was fixed, what remains, and the next recommended action.
  • Never force-push, never reset --hard, never drop migrations — even inside a loop.
  • Every loop iteration that modifies files must end with a git status check.
  • If a loop hits the cap, write a .claude/loop-stopped.md with the iteration count and remaining issues before exiting.

Hard Rules

These apply to every agent without exception:

  1. No changes to live environments. Agents produce branch changes and stop. Deploy only after human review.
  2. No force-push ever. git push --force and git push -f are blocked by the bash-guard hook. Do not attempt to bypass it.
  3. No DROP TABLE, DELETE without WHERE, or destructive migrations in non-feature branches. The dangerous-patterns hook blocks them. Investigation only — no silent fixes.
  4. Never silently return a degraded result when a read budget is insufficient. Stop, state what more is needed, and wait.
  5. Reviewer and support agents never modify files. disallowedTools: Write, Edit is enforced in their manifests and by CI.
  6. Pipeline artifacts are files, not chat. Specs, plans, scout briefs, and QA reports are written to .claude/pilot/ and handed off by path.

Persona Agent Priority

When multiple agents could match an intent, resolve as follows:

PriorityRule
1@fsp-incident-responder wins for any P0/P1 incident or active outage — do not route to specialists first
2@fsp-tpo-intake wins for "spec this", "acceptance criteria", "user story" before any feature build starts
3@fsp-feature-builder wins for "build feature", "scaffold", "new feature" once a spec exists
4Cross-stack pipeline agents (@fullstack-reviewer, @fullstack-implementor) handle layer-agnostic work
5Stack-specialist trios handle within-layer work

Escalation Paths

AgentBoundary hitEscalation
@fsp-feature-builderBuild fails after 10 triesWrites SUMMARY.md → engineer decides; route failing test to @dotnet-support or @angular-support
@fsp-incident-responderDeployment action requiredOutputs BOUNDARY VIOLATION, writes handoff → human with access executes
@fsp-tpo-intakeClarification loop > 10 turnsEscalates to @fsp-analyst for formal pipeline spec

Skill Load Order Additions (Persona Agents)

  • @fsp-feature-builder: stack-detection → api-design-standards → domain skills → cross-stack-review last
  • @fsp-incident-responder: incident-correlation first → incident-response-runbook → session-handoff → domain skills
  • @fsp-tpo-intake: no skills at start; spec-validation only when PR/diff is provided

Conflict Resolution

  1. Architecture questions win over implementation — "How should we structure the payment module?" → @fsp-architect, not @dotnet-implementor
  2. Specific beats general — "Optimize this EF query" → @sql-support, not @fullstack-support
  3. Security concerns are always surfaced — even when another agent is primary, flag security findings for the appropriate reviewer
  4. Triage before fix — for production symptoms, @fullstack-support classifies the layer before any implementor is engaged
  5. Persona beats general — when the user identifies themselves as a Developer, Support Engineer, or TPO, route to the persona agent, not the pipeline agent

Download now (ZIP)

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.