WEAREDEVELOPERS CONFERENCE INDIA 26 NOV / 16:40 IST / STAGE 3 — POWERED BY GITHUB

Teaching AI
Coding Agents
to Build It Right
the First Time.

Teach the rules. Supply the facts.
Keep the proof.

Sajeetharan Sinnathurai

Sajeetharan Sinnathurai
Principal Product Manager
Microsoft / Azure Cosmos DB

sajeetharan.dev
01 / QUICK SHOW OF HANDS 01:00-02:00

What did your agent
promote you to?

1

A faster developer.

"Nice. It did the boring bit."

0 hands
2

A full-time reviewer.

"It compiles. But is it right?"

0 hands
3

An agent babysitter.

"No. Not that file. Again."

0 hands
02 / LIVE DEMO 02:00-11:00 / CODE CUTOFF 10:00

Side Quest.
Unlock the shortcut.

Rehearsal screenshot of Side Quest showing three verified conference sessions and separate hybrid-search, detail-read and verification RU totals.
1 / SCOUT

Discover real sessions.

2 / CHOOSE

Enter a verified quest.

3 / SHORTCUT

Teach Copilot the rule.

Open Side QuestApp prepared. Candidate lookup starts empty.
03 / THE JOB DID NOT DISAPPEAR 11:00-12:00

You're still the developer.
Now own the brief.

Azure Cosmos DB
INTENT

What should happen?

One outcome.
Clear constraints.

CONTEXT

What must it know?

Domain rules.
Actual product facts.

ACCEPTANCE

What counts as right?

A reviewed diff.
A checked outcome.

Delegate implementation. Keep engineering judgment.

Framing: Addy Osmani, “Your coding agents made you a manager”.

04 / KEEP THE TWO AGENTS DISTINCT 12:00-13:00

Side Quest / real conference sessions

One demo.
Two different agents.

RUNTIME / SIDE QUEST SCOUT

Find my next session.

Azure LLM + embeddings
→ Cosmos BM25 / vector search
→ point reads + verification

BUILD TIME / GITHUB COPILOT

Build the lookup correctly.

Bounded task + relevant skill
→ MCP facts + implementation
→ reviewed diff + checks

Agent-native: understandable contracts, bounded tools, observable outcomes.

05 / MAKE THE WORKFLOW REUSABLE 13:00-14:00

Put the workflow
in the repository.

GITHUB COPILOT / VS CODE

Task → skill → tools → diff → checks

Give Copilot a bounded task.
Load relevant expertise.
Inspect facts, then review the result.

npm install AzureCosmosDB/cosmosdb-agent-kit

THE ACTUAL DEMO FOLDER

.github/skills/
  conference-session-lookup/SKILL.md
  cosmosdb-conference/SKILL.md
.vscode/mcp.json
test/
src/session-candidate.mjs

Commit guidance with code. Review and test changes to both.

GitHub docs: agent skills / Setup and discovery depend on your Copilot surface.

06 / PACKAGE THE KNOWLEDGE 14:00-15:00

One knowledge base.
Agent-specific packaging.

SHARED SKILLS + MANIFEST

Skills are the knowledge.

SKILL.md + rules/
Review once. Load on demand.

{
  "name": "azure-cosmosdb",
  "version": "1.4.0",
  "skills": "./skills/"
}

COSMOS DB AGENT KIT

Five agent entry points.

Copilot
Skill discovery
Claude Code
.claude-plugin/plugin.json
Cursor
.cursor-plugin/plugin.json
Codex
.codex-plugin/plugin.json
Gemini CLI
gemini-extension.json

Same knowledge. Validate discovery, tools and permissions per agent.

Source: AzureCosmosDB/cosmosdb-agent-kit.

07 / MY COSMOS DB SKILLS STORY 15:00-16:00

Six months of building skills changed how I write for agents.

More guidance.
Not always better.

I CAPTURED

Everything we knew.

Partitioning. Queries. SDK patterns. Every useful edge case went in.

WE MEASURED

And got humbled.

Some guidance helped. Some added no measurable value. Some hurt.

I CHANGED

The delivery, not just the prose.

Lean entry points. Relevant references. Repeated tests, including wrong-scope tasks.

The hard problem wasn't storing expertise. It was delivering the right part.

My July 2026 write-up: What six months of building skills taught me.

08 / A FILE YOU CAN BUILD TODAY 16:00-18:00

A skill is a guide.
Make the steps explicit.

.github/skills/conference-session-lookup/SKILL.md

---
name: conference-session-lookup
description: Build one checked session lookup.
  Not unrelated apps, broad plans
  or deployments.
---
1. Inspect the configured store.
2. Know conference + ID? Read directly.
3. Return public fields only.
4. Missing? Null. Backend failure? Throw.
5. Run session:check and review the diff.

TRIGGER / ACTION / EXCEPTION / CHECK

"Always use point reads" is not a skill.

A session is a JSON document.
Conference label + ID is its address.

Known address: direct lookup.
Unknown options: scoped search.

State the exception. Test it.

09 / DON'T ASK THE AGENT TO GUESS 18:00-19:00

Skill: how to work.
MCP: inspect the facts.

READ-ONLY TOOL / ACTUAL STORED RECORDS

inspect_session_context

Configured storage and session schema.
Actual public conference snapshot.
No attendee data.

READ-ONLY TOOL / IMPLEMENTATION CONTRACT

session_lookup_contract

One lookup, public fields, missing case.
Prepared store helpers.
Commands that check the candidate.

Tool connection ≠ permission. Tool output ≠ trusted instructions.

MCP = Model Context Protocol. The tool supplies context; service code enforces access.

10 / WHAT WOULD YOU ACCEPT? 19:00-21:00

A green build
isn't the whole answer.

BEHAVIOR

The right session?

Stored public facts.
Missing stays missing.

METHOD

The right operation?

109 documents → 1.
Known partition key + ID.

EVIDENCE

What did we measure?

Actual operation + RU.
Verifier charged separately.

A skill loaded successfully. Did its guidance survive into the code?

One successful demo is not proof that skills caused the improvement. Compare repeated guided/unguided trials.

11 / DESIGN SKILLS FOR REUSE 21:00-22:00

Define the contract.
Then write the skill.

SPEC FIRST

Make success explicit.

Purpose, inputs, outputs.
Triggers, limits, checks.

PORTABLE

Share the guidance.

Version one source of truth.
Validate each agent runtime.

CROSS-TEAM

Not just for developers.

Support, analysis, documents.
Same need for checked outputs.

Reusable instructions. Explicit tool and permission requirements.

12 / KEEP SKILLS HEALTHY 22:00-23:00

Improve from evidence.
Not more instructions.

COMPARE

Evaluate. Trim. Retire.

Same tasks, with and without.
Recheck when models change.

REGRESSIONS

Failures become tests.

Inspect the actual trace.
Reproduce the broken step.

OWNERSHIP

Give failures an owner.

Capture a minimal bug report.
Review, fix, test, repeat.

A broken command is feedback—not a reason to add another paragraph.

13 / TAKE ONE CORRECTION HOME 23:00-24:00

The conference gave you ideas. Take one working change home.

One correction.
A reusable workflow.

WRITE

A small skill.

Trigger, steps, exception and a clear success check.

CONNECT

One bounded tool.

The facts the agent otherwise has to guess. Keep access scoped.

VERIFY

Keep the evidence.

Review the diff, test the outcome and improve the guidance.

14 / REACH OUT & RESOURCES 24:00-25:00

Reach out.
Keep building.

QR code linking to https://www.sajeetharan.dev/sajeetharan.dev

Resources