Organize modular SKILL.md folders with scripts/, references/, and assets/ following open specs
Follow the standard Agent Skills directory layout so your package installs cleanly across Claude Code, Codex, Cursor, and CI harnesses.
Directory blueprint of top-ranked portable skill packages
- 01
Separate SKILL.md, scripts/, references/, and assets/
Keep orchestration in SKILL.md, deterministic CLIs in scripts/, deep docs in references/, and output templates in assets/.
- 02
Use PEP 723 inline dependencies for Python helpers
Header blocks declaring dependencies let 'uv run scripts/check.py' execute cleanly without polluting the user's project virtualenv.
- 03
Make every bundled script emit LLM-friendly --help and errors
When a script fails, print actionable stderr hints ('Missing --schema; pass path to .json') rather than raw 40-line tracebacks.
- 04
Use relative paths anchored to the skill directory
Never hardcode '/Users/alice/.claude/skills/...'; reference './scripts/validate.py' relative to the loaded skill root.
How it works in practice
Package layout comparison
Audit portability of 'openapi-linter-skill' across macOS Claude Code, Linux Docker CI, and Cursor.
Portability verification
v1 (global pip install + hardcoded ~/.claude path): failed in Linux CI and broke project venv. v2 (standard SKILL.md + uv PEP-723 scripts/ + relative paths): 100% zero-config pass across all 3 harnesses.
Self-contained scripts and relative paths turn fragile laptop hacks into zero-setup packages your whole org can install in seconds.
Questions and answers
Should agents read the source code of scripts/ or just execute them?
Instruct the agent in SKILL.md to execute 'scripts/tool.py --help' as a black-box CLI rather than wasting context tokens reading 300 lines of Python.
What files do NOT belong inside a published skill directory?
Leave out README-duplicating changelogs, node_modules, __pycache__, .DS_Store, sample secrets, and gigantic binary fixtures.
Does SkillMarket validate Agentskills spec conformance automatically?
Yes—every indexed package receives a spec-compliance score checking frontmatter fields, folder conventions, and broken relative paths.
Related tasks in this category
See all in Authoring & Publishing SKILL.md Packages-
Write SKILL.md YAML frontmatter descriptions that trigger reliably without hijacking unrelated chats
If your frontmatter description is vague, Claude Code and Cursor ignore your skill completely—or fire it on every generic Python question.
-
Transform dusty Confluence and Notion engineering runbooks into executable SKILL.md packages
Human wiki pages mix outdated screenshots, tribal jargon, and implicit safety checks. Refactor static SOPs into testable agent workflows.
-
Enforce strict JSON Schema and Pydantic validation inside skills feeding downstream pipelines
One stray 'Here is the JSON you requested:' preamble breaks downstream webhooks. Combine schema constraints with local validator loops.
-
Apply semantic versioning, compatibility tags, and benchmarked changelogs to published skills
Silent force-pushes to a shared SKILL.md break downstream team workflows overnight. Treat skill releases like real software packages.
-
Adapt SKILL.md packages cleanly across Claude Code, OpenAI Codex CLI, Cursor, and Windsurf
Your team uses three different AI IDEs and CLI agents. Author once with clean cross-harness conventions instead of maintaining four drifted copies.
-
Author crisp negative boundaries in SKILL.md to stop unasked-for refactors, commits, and scope creep
You asked for a two-line bug fix; the agent reformatted 14 files, upgraded TypeScript, and committed to main. Fix overreach with actionable boundaries.