---
title: "Discussion on \"Agent Skills Explained: How to Write a SKILL.md for Claude Code, Cursor, Codex and Copilot\" | Hashnode"
description: "Discussion on \"Agent Skills Explained: How to Write a SKILL.md for Claude Code, Cursor, Codex and Copilot\". Agent Skills explained: the SKILL.md format, where Claude Code, Cursor, Codex and Copilot look for skills, npx skills add, and a validated example."
url: "https://hashnode.com/posts/agent-skills/6ade00675819f19be2dd9cd8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Agent Skills Explained: How to Write a SKILL.md for Claude Code, Cursor, Codex and Copilot](https://fabwaseem.hashnode.dev/agent-skills?utm_source=hashnode&utm_medium=feed)

Agent Skills explained: the SKILL.md format, where Claude Code, Cursor, Codex and Copilot look for skills, npx skills add, and a validated example.

Oct 25 · 18 min read · fabwaseem.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#claude](https://hashnode.com/tag/claude)
-   [#cursor](https://hashnode.com/tag/cursor)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[Waseem Anjum](https://hashnode.com/@fabwaseem)

@fabwaseem · Lahore, Pakistan

  
[View profile](https://hashnode.com/@fabwaseem)

Full Stack & AI Automation Engineer

I'm a full stack and AI automation engineer in Lahore, Pakistan. I build AI agents, MCP servers and automation pipelines, and the Next.js, React, Node.js and NestJS products around them, on PostgreSQL or MongoDB. Clear system design, fast pages and code that holds up in production.

## Responses 2

Markdown supported · ⌘↵ to post

[Adam Lewis](https://hashnode.com/@nark3d)

[Oct 27](https://hashnode.com/posts/agent-skills/6ade00675819f19be2dd9cd8/comment/6ae11b34dfe4cdf6f890cde1)

Walk through the gotchas properly. Sharp surviving a Next.js bump and the advisories npm audit misses both read like things found by getting it wrong first. Did any of those turn up after you'd started trusting the checker's exit code?

[Waseem Anjum](https://hashnode.com/@fabwaseem)

[Oct 27](https://hashnode.com/posts/agent-skills/6ade00675819f19be2dd9cd8/comment/6ae11b34dfe4cdf6f890cde1#reply-6ae12dd12ff9a9b78492e254)

Thanks, Adam. Both came before the skill existed. I hit them while writing my Next.js security update guide, and the skill just packages what I learned there. npm audit didn't flag the October advisories for me, which is why the skill compares installed versions against the advisory table instead of trusting it. The sharp one showed up when I patched a 15.x app to 15.5.28: the lockfile kept sharp on 0.34.x, so the image optimizer was still exposed until I ran npm update sharp. That's the whole case for a Gotchas section. If the agent can't guess it and you only learn it by getting it wrong, it belongs in the skill.
