agentleFS
brokspacebrokspace/brok/skills/engineering/write-skill/SKILL.md

write-skill

Skill12 starsChanged 27 days agoApache-2.0View on GitHub

Author or improve an agent skill (a SKILL.md) for Brokspace and coding agents. Use when the user wants to capture a repeatable workflow as a skill, edit a SKILL.md, decide whether something should be a skill, or publish skills as a skill shard.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use grill, write-docs and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 5 projects that use this

  • SentrySkill

    write-docs

    Create or update documentation pages for the Abacus docs site. Use when adding new documentation, updating existing pages, or ensuring docs stay in sync with code changes. Ensures pages follow Starlight patterns and build correctly.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

  • GoogleSkill

    teach

    Teach the user a new skill or concept, within this workspace.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 28 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Test for model-invoked: would it help if the agent reached for it without being asked?

    line 33
  2. Very specific:

    Keep SKILL.md under about 100 lines.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 28 edited versions of this file we could read. “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

Write a skill

A skill is a short instruction file an agent loads only when it is relevant. Good skills are small, explicit and composable. Before writing one, check whether the workflow already composes from existing skills (brok skill list); if it does, a line in AGENTS.md may be enough.

1. Create it

brok skill new <name>                  # .brokspace/skills/<name>/SKILL.md (this workspace)
brok skill new <name> --user-invoked   # only a person can start it

A workspace skill with the same name as a built-in overrides it.

2. Choose who can invoke it

  • User-invoked: it orchestrates a flow the person should decide to start (publishing to a tracker, a multi-step interview). Frontmatter disable-model-invocation: true; in agents/openai.yaml set policy.allow_implicit_invocation: false. Description: one human-facing line.
  • Model-invoked (default): a discipline the agent should apply on its own when the situation fits. Description: what it does plus the triggers ("Use when ..., when the user mentions ..., or when ...").

Test for model-invoked: would it help if the agent reached for it without being asked? If not, make it user-invoked.

3. Write the body

  • Frontmatter: name equals the folder name (kebab-case); description in quotes if it contains a colon.
  • Imperative steps, numbered when order matters. Each step has an exit condition or an output.
  • Concrete commands and file paths, not advice. A small local model (7B parameters) must be able to follow it: no implied steps, no long prose.
  • Keep SKILL.md under about 100 lines. Move examples and formats into reference files in the same folder and link them.
  • Depend on other skills by name with "Call the Skill tool with "<name>"", and only on model-invoked ones. For a user-invoked prerequisite, tell the user to run it.
  • Say what to output at the end.

4. Test it

  • brok skill show <name> to check it parses.
  • brok skill run <name> "<realistic input>" on the local model, then in your coding agent after brok skill export --agent <agent>.
  • Fix the instruction that caused each mistake; do not add caveats for every case.

5. Share it

Move it into a skill shard (brok shard new <name> --skills-only, put the skill folder under skills/), push the repository, and teammates install it with brok shard install <git-url>.

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.