✨ Visual Editor

close

Thread Truncated

Only the first 20 tweets are shown to ensure high-quality rendering and prevent image size issues.

palette Canvas & Background

Gradient:arrow_forward
Text Color:
135°

style Card Style

40px
16px

text_fields Typography

16px
Priyanka Vergadia
@pvergadia
There’s a moment every AI engineer knows well. You’ve built something impressive — a multi-agent pipeline that researches, analyzes, writes, and publishes. It works great in testing. You demo it to your team and everyone is amazed. Then you push it to production, and within 48 hours, it’s doing something nobody asked for. Your analyst agent is writing reports. Your writer agent is pulling data. Your orchestrator is talking directly to users. Everything is technically functional, and yet everything is wrong.
Thread image
Priyanka Vergadia
@pvergadia
I lived that moment. And the root cause, every single time, was the same: nobody had told the agents who they were, what they could do, where they fit, or how they should behave. The agents were brilliant but unsupervised — like hiring a team of genius contractors and forgetting to give them job descriptions.
Priyanka Vergadia
@pvergadia
The fix turned out to be four simple files. Not new frameworks. Not more prompts. Just four markdown files, each answering one specific question. Let me walk you through them.
Priyanka Vergadia
@pvergadia
Thread image
Priyanka Vergadia
@pvergadia
## The Problem With Winging It
Priyanka Vergadia
@pvergadia
Most teams start the same way. They write one giant system prompt for each agent — a sprawling wall of text that describes the agent’s personality, its tools, its rules, its role, and its outputs all in one place. It works at first. Then it breaks in weird ways. The agent ignores half the prompt because it’s too long. It hallucinates a rule that wasn’t there. It starts doing things that made sense in isolation but clash with what another agent is doing downstream.
Priyanka Vergadia
@pvergadia
The root issue is that one system prompt is trying to answer four fundamentally different questions at once:
Priyanka Vergadia
@pvergadia
1. What can this agent do?
Priyanka Vergadia
@pvergadia
1. Who is this agent in the system?
Priyanka Vergadia
@pvergadia
1. Where does it fit among all the other agents?
Priyanka Vergadia
@pvergadia
1. How should it behave, step by step?
Priyanka Vergadia
@pvergadia
When those four questions live in the same blob of text, agents treat them all with equal weight — or worse, they mush them together into something incoherent. The solution is to give each question its own file.
Priyanka Vergadia
@pvergadia
Thread image
Priyanka Vergadia
@pvergadia
## SKILL.md (The Training Manual)
Priyanka Vergadia
@pvergadia
A skill file answers: “How do I actually do this specific thing?”
Priyanka Vergadia
@pvergadia
Think of it as a certification document. If you hire a data engineer, you expect them to know SQL. The SKILL.md file is the proof — and the reference — for exactly that knowledge.
Priyanka Vergadia
@pvergadia
Thread image
Priyanka Vergadia
@pvergadia
Here’s a real example. Imagine you’re building a web scraping agent. Its SKILL.md would look something like thi
Priyanka Vergadia
@pvergadia
---
name: web-scraper
description: Extracts structured data from websites using BeautifulSoup
and Playwright. Use when asked to scrape tables, listings, or articles.
---

## When to use this skill
- User provides a URL and wants structured data back
- Page may be JS-rendered (use Playwright) or static (use requests + BS4)

## Step-by-step process
1. Check if the page is JS-rendered. If yes, use Playwright headless.
2. Prefer semantic selectors:
, , role= attributes.
Avoid brittle CSS paths like .div > span:nth-child(3).
3. Return a pandas DataFrame. Save to /outputs/data.csv.

## Error handling
- 403 or 429: Add User-Agent header, add a 2-second delay, retry once.
- Empty results: Log the selector used. Suggest an alternative to the user.
Priyanka Vergadia
@pvergadia
Notice what’s here: real code patterns, explicit steps, and — critically — failure modes. The best SKILL.md files don’t just describe sunny-day scenarios. They tell the agent exactly what to do when things go wrong.
Generated by Thread Navigator
100%
view_carousel Carousel Studio NEW
Press + S to quick-export