Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add GrayCodeAI/starling --skill mdc-openaigit clone --depth 1 https://github.com/GrayCodeAI/starlingWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/graycodeai/starling/mdc-openai)<a href="https://agentmods.dev/skills/graycodeai/starling/mdc-openai"><img src="https://agentmods.dev/badge/skills/graycodeai/starling/mdc-openai/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/graycodeai/starling/mdc-openai"><img src="https://agentmods.dev/badge/skills/graycodeai/starling/mdc-openai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00035 | $0.02277 |
| Opus 5.5 | $0.00014 | $0.00911 |
| Sonnet 5.5 | $0.00007 | $0.00455 |
| Haiku 4.5 | $0.00003 | $0.00228 |
Grade B, and why
mdc-openai scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks the agent to reveal its instructionsmediumSystem prompt leakage
Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.
# This assumes get_response_good is adapted for keyword extraction with JSON output prompt = f"""Extract 3-5 keywords from the following text as a JSON array. How it starts
The opening of the file, as written. The whole thing — 286 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Text 3: {user_text} Keywords 3:"""
response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": few_shot_prompt}] )
#### 2.1.6 Role/Persona and Constraints
Define the AI's role and explicitly state what it should *not* do.
❌ **BAD**: Only negative constraints
```python
system_message = "DO NOT MENTION PRICES. DO NOT BE OVERLY FORMAL."
✅ GOOD: Clear role, positive instructions, and specific constraints
system_message = """You are a friendly, helpful customer support agent for a SaaS product.
Your goal is to diagnose user issues and suggest solutions.
NEVER ask for Personally Identifiable Information (PII) like passwords or credit card numbers.
Instead, refer users to our secure help portal at `https://support.example.com/security`.
"""
2.2 Agent Design
For building autonomous agents, follow OpenAI's "Practical Guide to Building Agents" framework.
2.2.1 Core Components
Agents require:
- Model: The LLM for reasoning and decision-making.
- Tools: External functions/APIs the agent can use.
- Instructions: Explicit guidelines and guardrails.
2.2.2 Function Calling
Use function calling for agents to reliably interact with external tools and APIs. Define tools with clear schemas.
from openai import OpenAI
import json
client = OpenAI()
def get_current_weather(location: str, unit: str = "fahrenheit") -> str:
"""Get the current weather in a given location"""
# In a real app, this would call an external weather API
if "san francisco" in location.lower():
return json.dumps({"location": location, "temperature": "72", "unit": unit})
return json.dumps({"location": location, "temperature": "unknown"})
tools = [
{
"type": "function",
"function": {
"name": "get_current_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. San Francisco, CA",
},
"unit": {"type": "string", "enum": ["celsius", "fahrenheit"]},
},
"required": ["location"],
},
},
}
]
def run_agent_with_tool(user_message: str):
messages = [{"role": "user", "content": user_message}]
response = client.chat.completions.create(
model="gpt-4o",
messages=messages,
tools=tools,
tool_choice="auto", # Let the model decide if it needs to call a tool
)
response_message = response.choices[0].message
if response_message.tool_calls:
tool_call = response_message.tool_calls[0]
function_name = tool_call.function.name
function_args = json.loads(tool_call.function.arguments)
if function_name == "get_current_weather":
function_response = get_current_weather(**function_args)
messages.append(response_message) # Extend conversation with assistant's reply
messages.append(
{
"tool_call_id": tool_call.id,
"role": "tool",
"name": function_name,
"content": function_response,
}
)
second_response = client.chat.completions.create(
model="gpt-4o",
messages=messages,
)
return second_response.choices[0].message.content
return response_message.content
# Example usage:
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 286 lines · 35 tokens per session scan B 5d21ceccbbff
mdc-openai is a skill published in the GitHub repository GrayCodeAI/starling (2 stars, last pushed 3mo ago), licensed MIT. It adds 35 tokens to every session and 2,277 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
mdc-openai compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mdc-openaiGrayCodeAI/starling | Skill | 2 | 3mo ago | MIT | B | 35 | Claude Code |
| v4-best-practicesHmbown/CodeWhale | Skill | 41k | 5d ago | MIT | A | 51 | Claude Code, Codex |
| agent-evolutionbojieli/ai-agent-book | Skill | 61k | 3d ago | Apache-2.0 | A | 126 | Claude Code, Codex |
| post-training-strategybojieli/ai-agent-book | Skill | 61k | 3d ago | Apache-2.0 | A | 159 | Claude Code, Codex |
| gepa-optimize-anythinggepa-ai/gepa | Skill | 7.7k | 4d ago | MIT | D | 206 | Claude Code |
| context-engineering-advisorgetcrew44/crew44 | Skill | 350 | 5mo ago | MIT | A | 32 | Claude Code, Codex |
| prompt-polishercnfjlhj/ai-collab-playbook | Skill | 478 | 10d ago | none | A | 65 | Claude Code, Codex |