Write a skill

From projectbluefin/bluefin · View interactive version

Write a skill is an AI agent skill from the GitHub repository projectbluefin/bluefin. Defines the required SKILL.md front-matter keys, size budget, index entry, and validation command for a new skill in this repository. Use when adding a new docs/skills directory or repairing front matter that fails validation.

How to use this skill

Skill file

Write a skill

Use when

Do not use when

skill-improvement.

Required front matter

Every docs/skills/<name>/SKILL.md starts with exactly these keys:

---
name: <kebab-case-name>          # must equal the directory name
version: "1.0"                   # quoted semver string
last_updated: YYYY-MM-DD
id: <kebab-case-name>            # must equal name and the directory name
one_line_purpose: <=120 chars, imperative, no "Use when" clause
entry_point: docs/skills/<name>/SKILL.md
category: ci-ops | test-authoring | meta
mcp_compliance_level: partial
optimization_status: draft
status: active | deprecated | reserved
dependencies: []                 # ids of skills that must load first
tags: [tag1, tag2, tag3]         # 3-6 lowercase keywords
description: >-                   # <=256 chars: capability sentence, then
  <capability>. Use when <triggers>.
metadata:
  type: procedure | reference | runbook | policy
  source-of-truth:
    - <path that owns the mutable facts>
---

metadata.source-of-truth is load-bearing: it tells an agent which files to

read before documenting mutable behavior. Never drop it when editing front

matter. metadata accepts additional keys (audience, context7-sources).

Procedure

  1. Confirm no existing skill covers the domain. Prefer updating one.
  2. Create docs/skills/<name>/SKILL.md with the front matter above.
  3. Write real values. one_line_purpose and description must describe this

skill specifically; templated filler is a defect.

  1. Add a row to CODE0 linking <name>/SKILL.md.
  2. Move long detail to docs/skills/<name>/references/*.md and link it.
  3. Run the validation gate.

Body sections

  1. ## Use when — concrete triggers.
  2. ## Do not use when — pointers to the neighbouring skills.
  3. ## Procedure or ## Decision tree — the agent workflow.
  4. ## Verify — commands that re-derive project-internal facts.

Local variances from projectbluefin/common

This repository intentionally diverges from projectbluefin/common:

docs/skills/<name>/SKILL.md. Flat docs/skills/<name>.md files are not

recognized by validate-docs.py and will fail the missing-SKILL.md check.

than common's 200-line soft / 500-line hard budget. AGENTS.md is capped at

150 lines and docs/skills/index.md at 80.

index.json, index.schema.json, or generate_skill_index.py. The catalog

is small enough to curate by hand; validate-docs.py fails if a skill is

missing from index.md.

a small hand-rolled reader, so the validate CI job needs no extra

packages. Keep new front-matter constructs simple: top-level scalars, inline

[a, b] lists, folded >- blocks, and one nested metadata mapping.

Red flags

Verify

python3 .github/scripts/validate-docs.py
wc -l docs/skills/*/SKILL.md
pre-commit run --all-files
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.