agentleFS
thewaifucorpthewaifucorp/bastion-agent/skills/skill-writer/SKILL.md

bastion/skill-writer

Skill8 starsChanged 4 months agoMITView on GitHub

Creates and evolves local Bastion skills from an explicit user request, with scoped paths, validation, version snapshots, and approval before reload.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask what the skill must do, when it should activate, and what output it must produce.

    line 27
  2. Distinctive:

    Search the existing local skills for overlapping behavior.

    line 29
  3. Distinctive:

    Keep the previous snapshot available for rollback and reload only after the user approves the validated version.

    line 39
  4. Distinctive:

    Never install or publish a skill as a side effect of this flow.

    line 44
  5. Distinctive:

    Never overwrite an existing skill without explicit approval and a snapshot.

    line 45
  6. Distinctive:

    Treat generated skills as instructions, not as permission to bypass Kekkai, privacy tiers, tool approvals, or runtime policy.

    line 48

≈ “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

Skill Writer

Objective

Turn a recurring, user-approved behavior into a reviewable SKILL.md. Bastion keeps the skill local to the deployment; it does not silently download, publish, or activate third-party code.

Required flow

  1. Ask what the skill must do, when it should activate, and what output it must produce.
  2. Search the existing local skills for overlapping behavior. Prefer editing an existing skill when that avoids duplicate or conflicting instructions.
  3. Choose the scope with the user:
    • global: skills/{skill-name}/SKILL.md
    • persona-private: skills/personas/{persona-slug}/{skill-name}/SKILL.md
  4. Generate frontmatter with name, version, description, and specific triggers, followed by objective, instructions, examples, and edge cases.
  5. Show the proposed path and meaningful behavioral changes before writing.
  6. Validate the document with a real user example. If it fails, revise and test again.
  7. Keep the previous snapshot available for rollback and reload only after the user approves the validated version.

Safety requirements

  • Never install or publish a skill as a side effect of this flow.
  • Never overwrite an existing skill without explicit approval and a snapshot.
  • Reject path traversal; names and persona slugs are single kebab-case segments.
  • Warn when triggers are generic enough to activate accidentally.
  • Treat generated skills as instructions, not as permission to bypass Kekkai, privacy tiers, tool approvals, or runtime policy.
  • In managed deployments, return a reviewable proposal to the control plane instead of mutating the worker loadout.

Minimum skill shape

---
name: bastion/example-skill
version: "1.0.0"
description: A precise description of the behavior.
triggers:
  - "specific trigger"
---

# Example Skill

## Objective

What the skill accomplishes.

## Instructions

1. Concrete action.
2. Concrete validation.

## Examples

One input and its expected behavior.

## Edge cases

- Known failure mode and safe response.

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.