agentleFS
thewaifucorpthewaifucorp/bastion-agent/skills/agentskills-publish/SKILL.md

bastion/agentskills-publish

Skill8 starsChanged 4 months agoMITView on GitHub

Publishes a local Bastion skill to agentskills.io by stripping the bastion/ prefix, writing publish-ready frontmatter, validating with skills-ref, and guiding the git push.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After writing the publish-ready frontmatter, run:

    line 87
  2. Distinctive:

    If validation fails, show the error and ask the user to fix before proceeding.

    line 98
  3. Distinctive:

    After validation passes, guide the user:

    line 104
  4. Very specific:

    Privacy tier: only skills with privacy_tier: cloud-ok (or no privacy_tier set) are safe to publish.

    line 120
  5. Very specific:

    Skill does not exist: if skills/<name>/SKILL.md is not found, ask the user to check the name and path.

    line 129
  6. Very specific:

    Non-bastion/ prefix: if the skill name does not start with bastion/ (e.g., it is already a bare slug), skip the strip step and proceed …

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

bastion/agentskills-publish

Guides the user through publishing a local Bastion skill to agentskills.io — handling the bastion/ prefix strip (Pitfall 4), required metadata fields, and validation via skills-ref.

Objective

Turn a local skills/<name>/SKILL.md into a published agentskills.io entry by transforming the frontmatter, validating the result, and walking the user through the git push step.


Flow

StepAction
1Ask the user which skill to publish: "Which skill do you want to publish? (e.g., weekly-review)"
2Read skills/<name>/SKILL.md and confirm it exists
3Strip bastion/ prefix from the name field (see Frontmatter Transform below)
4Write the publish-ready frontmatter, preserving metadata.bastion_name
5Run skills-ref validate skills/<name>/SKILL.md — must pass before proceeding
6Show the user the git push steps to submit to agentskills.io
7Confirm the expected public URL and inform the user of the review timeline

Frontmatter Transform (Pitfall 4)

Existing Bastion skills use name: bastion/<slug>. The agentskills.io registry rejects names with slashes. The publish action must strip the prefix and preserve it in metadata.

Before (local SKILL.md):

---
name: bastion/my-skill
version: "1.0.0"
description: > Does something useful.
triggers:
  - /my-skill
  - "my trigger phrase"
---

After (publish-ready frontmatter):

---
name: my-skill
version: "1.0.0"
description: > Does something useful.
triggers:
  - /my-skill
  - "my trigger phrase"
metadata:
  bastion_name: bastion/my-skill
  version: "1.0.0"
  triggers:
    - /my-skill
    - "my trigger phrase"
---

Key rules:

  • name field: strip bastion/ prefix → bare slug (max 64 chars, no slashes)
  • metadata.bastion_name: preserve the original bastion/<slug> for reinstall mapping
  • metadata.version: copy from the version field
  • metadata.triggers: copy the triggers list so the hub can index by intent
  • description: max 1024 chars; truncate with ... if longer

Validation Step

After writing the publish-ready frontmatter, run:

skills-ref validate skills/<name>/SKILL.md

This checks:

  • name has no slashes (immediate rejection otherwise)
  • description is within 1024 chars
  • Required fields are present

If validation fails, show the error and ask the user to fix before proceeding.


Git Push Steps

After validation passes, guide the user:

  1. Fork or clone the agentskills.io skills repository
  2. Copy the skill directory to skills/<name>/
  3. Commit: git commit -m "add: <name> skill"
  4. Open a pull request — the agentskills.io team reviews within ~48 h
  5. Once merged, the skill is available at: https://agentskills.io/skills/<name>

Security Notes

Before publishing, check:

  • No secrets in SKILL.md: API keys, tokens, passwords, and personal data must not appear in the file. SKILL.md is public after merge — treat it as public documentation.
  • Privacy tier: only skills with privacy_tier: cloud-ok (or no privacy_tier set) are safe to publish. Skills that reference privacy_tier: local-only beliefs must not be published — they may leak information about the user's local data handling.
  • No hardcoded URLs or internal hostnames: replace with placeholders (e.g., https://your-bastion.example.com).

Edge Cases

  • Skill does not exist: if skills/<name>/SKILL.md is not found, ask the user to check the name and path.
  • Name already on agentskills.io: warn the user that the name exists; suggest renaming with -v2 suffix or contacting the hub maintainers to claim the existing entry.
  • Description too long: truncate to 1024 chars and warn the user to review the description for coherence.
  • Non-bastion/ prefix: if the skill name does not start with bastion/ (e.g., it is already a bare slug), skip the strip step and proceed directly to validation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.