Index of every page on this site: llms.txt
All skills
skilld-dev avatar

/publish-skill

@da527b9
by skilldskilld-dev/skills2 stars
Run it yourself

Prepare, validate, package, and publish portable Agent Skills through GitHub or npm. WHEN: "publish a skill", "publish SKILL.md", "ship a skill", "release an agent skill", "make this skill installable", "add a skill to my package".

  • 2 files
  • 2.7 KB
  • MIT
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/skilld-dev/skills/publish-skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈62 tokens for metadata: the name and description. ≈531 when used: this file. ≈48 more on demand in 1 file.

Description uses 3.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈247 characters, or 3.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Publish Skill

Turn a skill into a portable artifact, prove it works, then publish only to a destination the user authorized.

Workflow

  1. Inspect repository instructions, status, remotes, package metadata, and existing skill directories. Preserve unrelated changes.

  2. Define concrete trigger prompts and expected outcomes. Keep one workflow per skill unless the tasks share inputs, tools, and validation.

  3. Create skills/<skill-name>/SKILL.md. For an npm package whose docs should seed the skill, run:

    npx skilld author package --yes
  4. Refine the generated or handwritten skill:

    • Match the directory and frontmatter name; use lowercase letters, numbers, and hyphens.
    • Make description state what the skill does and when it triggers.
    • Use imperative, ordered steps with validation and recovery.
    • Keep the body concise. Add references/, scripts/, or assets/ only when they reduce repeated work or context cost.
    • Remove absolute paths, secrets, temporary files, symlinks, generated caches, and .skilld/ internals.
  5. Validate the portable directory:

    npx -y skills-ref validate skills/<skill-name>
    npx skilld add ./ --skill <skill-name> --yes

    Fix every failure, then rerun both commands. Execute bundled scripts with representative input.

  6. Forward test with at least one realistic trigger prompt in a fresh agent session. Verify activation, outcome, and failure behavior. Tighten the description or workflow when the test misses.

  7. Prepare the destination:

    • Standalone repository: keep skills under skills/, add a concise root README and license, then commit and push.
    • npm package: ensure package.json#files includes skills, run the package's checks, then confirm npm pack --dry-run contains every skill file.
  8. Review the final diff and publish. Do not create a remote, push, tag, release, or publish an npm package without explicit authorization for that action.

  9. Verify the published source by installing it into a temporary project with npx skilld add gh:<owner>/<repo> --skill <skill-name> --yes.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at da527b9. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month
Other metadata
compatibility
Requires an agent with filesystem and shell access. Network access is needed for remote sources.

README badge

README badge for skilld-dev/skills/publish-skill