Technical Lead
Context engineering for the team.
The Technical Lead is the persona that engineers context for the squad. In an AI-native SDLC, the Technical Lead operates a stack of validated primitives that make the team’s agents fast, cheap, and correct.
Executive summary
The Technical Lead owns the team-level primitives catalog: AGENTS.md, scoped instructions, prompts, skills, hooks, and the routing table that binds them. In an AI-native SDLC the Technical Lead operates inside the Design phase with a fixed set of primitives: one context auditing agent, four slash prompts, scoped instructions, schema-validated hooks, and a curated list of validated MCPs. Primary outputs are the audited context budget, the scope-split plan for large tasks, primed context packs for new features, and the squad primitives kit.
Role and responsibilities
Think of the Technical Lead like the chief of staff for a surgical team. They do not hold the scalpel, but they make sure the instruments are sterile, labeled, and within reach before the surgeon starts. In an AI-native SDLC the instruments are agents, prompts, instructions, skills, and hooks, and the Technical Lead is accountable for the fact that the squad reaches for the right tool without reading the whole repository every time.
Primary responsibilities:
- Author and maintain
AGENTS.md, the root prompt for every agent in the repository - Curate the squad’s scoped instructions to keep the context budget low
- Govern the prompt catalog, consolidating duplicates and retiring stale commands
- Run context audits on every squad repository to detect bloat and leaks
- Split oversized tasks into parallelizable units with clear scope boundaries
- Operate the Context Auditor agent and the
/audit-context,/scope-split,/prime-context,/team-primitivesprompts - Align primitives with the Enterprise Architect’s principles and the Software Architect’s CODEMAP
Jobs to be done
- As a Technical Lead, I want the squad’s context budget to stay under threshold, so that agents are fast and affordable.
- As a Technical Lead, I want oversized tasks split into parallelizable units, so that the squad delivers in hours, not sprints.
- As a Technical Lead, I want context primed before a Developer starts a feature, so that Copilot and Claude Code find the right files immediately.
- As a Technical Lead, I want the squad primitives kit to be a single directory, so that onboarding a new engineer costs minutes.
- As a Technical Lead, I want scoped instructions to carry
applyTopatterns, so that token cost scales with the diff, not the repo. - As a Technical Lead, I want context audits to run on every PR, so that the catalog does not rot.
Pain points before AI-native
- Unbounded
AGENTS.md. A root prompt grows without review, pushing every agent into the token ceiling. - Prompt sprawl. Two squads independently author
/implement,/build, and/do. Consistency collapses. - Context loaded eagerly. Every session reads the whole
docs/folder. Ten thousand tokens spent before the first question. - Large tasks stuck in one session. A feature meant for three engineers takes one agent three days because nobody split the scope.
- New engineers onboard by folklore. The tribal knowledge of which prompt to use is spoken, not encoded.
AI-native daily workflow
The Technical Lead operates a fixed loop each day. The loop uses GitHub Copilot primitives inside Visual Studio Code and Claude Code at the terminal, plus a small catalog of validated MCPs for external context.
Morning setup
- Open the squad repository in Visual Studio Code. GitHub Copilot Chat loads
AGENTS.mdand the scoped primitives instructions. - Pull the latest
mainand list prompts, instructions, agents, and hooks changed overnight. - Run
/audit-contextto confirm the squad’s context budget is under threshold and that no prompt references a retired file. - Review the primitives dashboard generated from GitHub MCP telemetry.
Midday execution
- Context priming. Invoke
/prime-contextfor every feature starting this week. The Context Auditor agent produces a primed context pack that lists the exact files, contracts, and requirement IDs the Developer should read first. - Scope splitting. Invoke
/scope-spliton any task estimated above one working day. The agent decomposes the work into parallelizable units with explicit dependencies and handoffs. - Primitive curation. Invoke
/team-primitiveson any new prompt, instruction, or hook proposed by the squad. The agent checks for duplication, scope correctness, and token-cost impact. - Cross-squad consultation. Raise primitive proposals in the architecture Teams channel via the Microsoft 365 Agents SDK MCP for feedback from peer Technical Leads.
Afternoon review
- Invoke
/audit-contextas the final sweep on all open PRs. Block merge on any PR that breaks the context budget unless a linked scope-split plan justifies the change. - Open a pull request on primitives changes. GitHub Copilot Code Review comments on
applyTopatterns, duplication, and token-cost impact. - Publish the daily primitives digest to the squad Teams channel via the Microsoft 365 Agents SDK, summarizing new, revised, and retired primitives.
- Update the routing table in
docs/routing.mdso every repository maps its canonical prompt, agent, and instructions set.
Recommended primitives
Agent
| Agent | File | Purpose |
|---|---|---|
context-auditor | .github/agents/context-auditor.agent.md | Audit context budget, split scope, prime context, curate team primitives |
The Context Auditor uses claude-sonnet-4-6 by default. Tools: read, edit, search, grep, glob. No bash access. Extended thinking is enabled for /scope-split only, where dependency analysis benefits from deeper reasoning.
Slash prompts
| Command | File | Purpose |
|---|---|---|
/audit-context | .github/prompts/audit-context.prompt.md | Confirm the context budget is under threshold and no prompt references a retired file |
/scope-split | .github/prompts/scope-split.prompt.md | Decompose an oversized task into parallelizable units with explicit dependencies |
/prime-context | .github/prompts/prime-context.prompt.md | Produce a primed context pack listing exact files, contracts, and requirement IDs |
/team-primitives | .github/prompts/team-primitives.prompt.md | Curate new prompts, instructions, and hooks for the squad |
Instructions scoped
Scoped applyTo reduces token cost by approximately 68 percent compared to global instructions.
Scope (applyTo) | File | Purpose |
|---|---|---|
AGENTS.md | .github/instructions/agents-root.instructions.md | Root prompt format, token budget, routing syntax |
.github/prompts/**/*.prompt.md | .github/instructions/prompts.instructions.md | Prompt frontmatter, input contract, output shape |
.github/instructions/**/*.instructions.md | .github/instructions/scoped-instructions.instructions.md | applyTo discipline and content budget |
Hooks
Hooks cost zero LLM tokens. They are the strongest governance layer for primitives.
pre-commit: reject any prompt or instructions file that exceeds the per-file token budget or lacks frontmatterpost-commit: regenerate the routing table and the primitives indexpre-merge: run/audit-contextagainst the PR diff and block merge on unresolved findings
Validated MCPs
| MCP | Purpose | Owner |
|---|---|---|
| GitHub MCP Server | Inspect repositories, PRs, and Actions runs to audit context usage across the squad | GitHub (official) |
| Microsoft Learn Docs MCP | Ground primitives in current Microsoft and Azure documentation, avoiding stale snippets | Microsoft (official) |
| Azure MCP Server | Correlate primitives behavior with Application Insights telemetry on agent runs | Microsoft (official) |
| Azure DevOps MCP Server | Read Azure Boards work items that inform scope splits when the team uses Azure DevOps | Microsoft (official) |
| Microsoft 365 Agents SDK MCP | Publish primitives digests to Teams and ingest feedback from Outlook | Microsoft (official) |
Real examples
Example 1: prime context for a new feature
Input: A feature to add partner SSO to the portal, with approved requirements and an accepted contract.
Invocation: /prime-context.
Expected output:
- A
docs/primed-context/partner-sso.mdlisting the six source files the Developer should read first, the two contracts the feature touches, the four requirement IDs, and the single ADR that constrains the choice of token broker. - A primed-context link attached to the GitHub issue via the GitHub MCP so any engineer who picks up the task starts with the right files open in Visual Studio Code.
Example 2: scope split on an oversized task
Input: A ticket estimated at seven working days for a single engineer to introduce feature-flag rollout across four services.
Invocation: /scope-split.
Expected output:
- A
docs/scope-splits/feature-flag-rollout.mdwith five parallelizable units, their dependencies, and named engineer assignments. - Five GitHub issues created via the GitHub MCP, each with a primed-context link and an acceptance criterion.
- A routing table update so each unit maps to the correct agent and prompt set.
Anti-patterns
- Growing
AGENTS.mdby accretion. Every squad adds a paragraph, nobody removes one. Mitigation:pre-commithook enforces the root budget. - Copy-paste prompts across repos. Drift guarantees inconsistent behavior. Mitigation: central prompt catalog with semantic versioning and
/team-primitivescuration. - Eagerly loading the whole
docs/. Token waste. Mitigation: scoped instructions withapplyToand a primed-context pack per feature. - Splitting scope without dependencies. Parallel units that silently collide produce rework. Mitigation:
/scope-splitemits an explicit dependency graph and enforces it in the routing table. - Primitives authored without review. Unvetted prompts invite hallucination. Mitigation: every primitive lands via PR with Copilot Code Review and human approval.
KPIs and impact metrics
| KPI | Baseline | Target | Measurement |
|---|---|---|---|
| Context budget compliance across squad | 50 percent | 100 percent | Audit-context dashboard |
| Prompt duplication rate | 35 percent | < 5 percent | Prompt catalog diff |
| Time to onboard a new engineer | 10 days | < 2 days | Ramp survey |
| Scope-split coverage on oversized tasks | 20 percent | 100 percent | GitHub issue labels |
| Primed-context adoption per feature | 30 percent | 100 percent | GitHub PR metadata audit |
| Agent token cost per merged PR | 1.5M | < 1M | Copilot usage report |
Maturity in four levels
| Level | Name | Markers |
|---|---|---|
| L1 | Manual | No AGENTS.md, prompts ad-hoc, context loaded eagerly |
| L2 | Assisted | AGENTS.md exists but untested, no scoped instructions, no audits |
| L3 | Augmented | Context Auditor agent, four slash prompts, scoped instructions, GitHub MCP, audit-context on PR |
| L4 | Autonomous | Full primitives kit, hooks enforced, primed-context standard per feature, scope splits automatic, routing table live |
Integration with other personas
- From Enterprise Architect: principles and gate expressions that constrain primitives design
- From Software Architect:
CODEMAP.mdand contracts that inform the routing table - To Developer: primed-context packs, scope splits, and curated prompts ready for use
- To QA Engineer: testable scope units with explicit acceptance linking
- To DevOps Engineer: hooks as the governance layer on every workflow
- To Engineering Manager: audit data that grounds capacity and staffing decisions
- To Release Manager: routing table as the canonical map from PRs to the primitives that produced them
Glossary
- AGENTS.md: root prompt loaded by every agent on every session, bounded by a strict token budget.
- Primed context: a curated pack of files, contracts, and requirement IDs that a new session should read first.
- Scope split: structured decomposition of an oversized task into parallelizable units with explicit dependencies.
- Routing table: the canonical map from repositories and directories to the agents, prompts, and instructions that govern them.
- Scoped instructions: guidance applied by pattern match on file paths via
applyTo, keeping token cost proportional to the diff. - Context budget: the per-session token ceiling enforced by hooks and measured by
/audit-context.
References
- GitHub Copilot documentation — agent mode, prompts, instructions, and context controls
- GitHub Actions documentation — automation for context audits and primitive governance
- Azure Well-Architected Framework — operational excellence pillar for sustainable team primitives
- Microsoft Learn, prompt engineering — guidance that informs prompt catalog quality
- Microsoft 365 Agents SDK overview — integrating Teams and Microsoft 365 surfaces into squad workflow