Skip to content

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.

Copy the prompt and paste it into the AI assistant you already use.

Directory blueprint of top-ranked portable skill packages

  1. 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/.

  2. 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.

  3. 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.

  4. 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.