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.
In this repository17 other files it gives its agents.
- bastion/agentskills-installSkill
- bastion/agentskills-publishSkill
- bastion/calendarSkill
- bastion-pet-packSkill
- bastion/channel-scaffoldSkill
- bastion/crisis-modeSkill
- bastion/life-logSkill
- mcporterSkill
- bastion/mesh-connectSkill
- bastion/mobile-connectSkill
- bastion/onboardingSkill
- bastion/output-validatorSkill
- bastion/persona-engineSkill
- bastion/proactive-engineSkill
- bastion/self-improvingSkill
- bastion/weekly-reviewSkill
- bastion/weight-systemSkill
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
- Distinctive: line 27
Ask what the skill must do, when it should activate, and what output it must produce.
- Distinctive: line 29
Search the existing local skills for overlapping behavior.
- Distinctive: line 39
Keep the previous snapshot available for rollback and reload only after the user approves the validated version.
- Distinctive: line 44
Never install or publish a skill as a side effect of this flow.
- Distinctive: line 45
Never overwrite an existing skill without explicit approval and a snapshot.
- Distinctive: line 48
Treat generated skills as instructions, not as permission to bypass Kekkai, privacy tiers, tool approvals, or runtime policy.
≈ “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.
Files
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
- Ask what the skill must do, when it should activate, and what output it must produce.
- Search the existing local skills for overlapping behavior. Prefer editing an existing skill when that avoids duplicate or conflicting instructions.
- Choose the scope with the user:
- global:
skills/{skill-name}/SKILL.md - persona-private:
skills/personas/{persona-slug}/{skill-name}/SKILL.md
- global:
- Generate frontmatter with
name,version,description, and specific triggers, followed by objective, instructions, examples, and edge cases. - Show the proposed path and meaningful behavioral changes before writing.
- Validate the document with a real user example. If it fails, revise and test again.
- 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.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
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.

