lfx-skills
CLAUDE.md9 starsChanged 2 months agoMITView on GitHub
This file guides agents and contributors changing this repo — adding or editing skills, reviewer agents, and the plugin's distribution machinery. For what the plugin does and how to install it, see README.md. Two sources of truth sit behind this file; this file summarizes them and they win on detail: - The review bar: .github/skills/lfx-skills-code-review/SKILL.md is the exact lens every PR here is reviewed against — what makes a skill sound, and which side of the central-vs-repo boundary content belongs…
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- copilot-code-reviewerSkill
- lfx-skills-code-reviewSkill
- lfx-cdp-snowflake-connectorsSkill
- lfx-data-engineerSkill
- lfx-general-code-reviewSkill
- lfx-git-setupSkill
- lfx-intercomSkill
- lfx-itx-integrationSkill
- lfx-local-reviewSkill
- lfx-object-store-designSkill
- lfx-object-store-opsSkill
- lfx-platform-architectureSkill
- lfx-pr-catchupSkill
- lfx-pre-pr-reviewSkill
- lfx-pr-resolveSkill
- lfx-security-engineerSkill
- lfx-setupSkill
- lfxSkill
- lfx-snowflake-accessSkill
- lfx-test-journeySkill
- lfx-v2-ticket-writerSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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 85
Imperative form, explained: Prefer direct instructions, but state the why behind each rule in lieu of heavy-handed MUSTs — an agent that …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
<!-- Copyright The Linux Foundation and each contributor to LFX. --><!-- SPDX-License-Identifier: MIT -->Contributing to lfx-skills
This file guides agents and contributors changing this repo — adding or editing skills, reviewer agents, and the plugin's distribution machinery. For what the plugin does and how to install it, see README.md.
Two sources of truth sit behind this file; this file summarizes them and they win on detail:
- The review bar:
.github/skills/lfx-skills-code-review/SKILL.mdis the exact lens every PR here is reviewed against — what makes a skill sound, and which side of the central-vs-repo boundary content belongs on. Read it before authoring, not after the review comes back. - Distribution: the README's Project Structure section.
What this repo is
The central LFX AI plugin, distributed two ways: as a Claude Code plugin (the .claude-plugin/
manifest declares "skills": "./skills/") and as plain Agent Skills symlinked by ./install.sh for
Codex and similar tools (see docs/platform-install.md). Both paths
auto-discover any skills/<name>/SKILL.md — a new
skill needs no manifest registration, and a skill at a non-standard path is invisible to both. Reviewer
agents under agents/ ship only via the Claude Code plugin path. Files under .github/ are not shipped.
Does your content belong here?
The core principle of the fanout architecture: central finds the right owners and explains the shared
platform; each repo explains itself. Before adding or expanding content, ask: does this help agents
across multiple repos, or does it serve a single repo? Content spanning repos belongs here; implementation
truth one repo owns belongs in that repo, with central pointing to it. The ownership index is
skills/lfx/references/repo-map.md — when it shows a single repo
owning the surface your change teaches, the fix is a pointer to that repo, not a central write-up.
One deliberate exception: repo-specific reviewer agents live centrally under agents/ because they
are named workers repos launch explicitly — but they must direct the agent to read the owning repo's own
docs at runtime, never inline a copy of a repo's rulebook. Inlined copies drift; drift here misleads every
consumer of the plugin.
Authoring a skill
The recommended workflow is Anthropic's skill-creator plugin (/skill-creator:skill-creator, from the
official marketplace): it walks the draft → test-prompt → evaluate → iterate loop and can optimize the
description for triggering accuracy. What follows is the craft it teaches plus this repo's own rules.
Anatomy
skills/<name>/
├── SKILL.md # required; frontmatter (name, description) + markdown instructions
└── bundled resources # optional
├── scripts/ # executable code for deterministic or repetitive steps
├── references/ # docs loaded into context only when needed
└── assets/ # files used in output (templates, icons)Frontmatter name: must match the directory name — skill resolution breaks otherwise. The two MIT
license comment lines (as at the top of this file) sit directly below the frontmatter, never inside it;
CI enforces headers on every PR.
Progressive disclosure
A skill loads in three levels, and each level has a budget:
- Metadata (
name+description) — always in context, for every skill, on every prompt. - SKILL.md body — loads in full whenever the skill triggers; keep it under ~500 lines.
- Bundled resources — loaded (or executed) only as needed; effectively unlimited.
So push depth downward: a body approaching the limit moves detail into references/<topic>.md files,
each linked from the body with explicit guidance on when to read it (give reference files over ~300 lines
a table of contents). When a skill spans variants (frameworks, clouds, repos), give each variant its own
reference file so the agent reads only the relevant one. Ship deterministic repeated procedures as
bundled scripts, not prose the agent re-derives every run.
The description is the triggering mechanism
The description: is the only surface an agent sees when deciding whether to load the skill, and agents
undertrigger by default — so make it a little pushy: state what the skill does plus concrete positive
triggers ("Use when the user mentions X, Y, or asks any variation of Z, even without naming the skill"),
and negative triggers when a nearby skill could fire on the same prompt. All when-to-use information goes
in the description; buried in the body it cannot influence triggering.
Writing style
- Imperative form, explained. Prefer direct instructions, but state the why behind each rule in lieu of heavy-handed MUSTs — an agent that knows the reason can generalize to cases you did not foresee.
- General, not overfitted. The skill fires across many repos and prompts, not just the incident you wrote it from. Draft, then re-read with fresh eyes.
- Show output formats and examples as explicit templates and input → output pairs rather than describing them in prose.
- Internal consistency is the highest-signal review finding here: a value or rule stated in one section and contradicted in another leaves the consuming agent unable to resolve them. Re-read the whole file after editing part of it, and check that every cross-reference (files, skills, commands, external facts) actually resolves.
Repo-specific rules
- Use Claude Code tool names in the body, and carry the tool-vocabulary note pointing at
docs/tool-mapping.mdif the skill names tools. - Placeholder data only. Examples use synthetic identities and credentials (
user@example.com-style addresses, reserved IP ranges, fixed sample UUIDs) — never real emails, names, tokens, or keys. This repo is public; a real address in an example is a PII leak, not a style issue. - Register the skill on the human-facing surfaces (discovery is automatic, listings are not): the
skills table and project-structure tree in
README.md, and — if the router should forward to it — the tables inskills/lfx/SKILL.md, which also state skill counts in prose.
Test before you PR
You can load your local checkout as the plugin without installing anything: from the repo root, run
claude --plugin-dir .This loads the working tree — uncommitted edits included — as the lfx-skills plugin for that session
only, taking the place of any installed copy, so skills resolve under their real /lfx-skills:<name>
namespaces exactly as users will see them. For quick non-interactive checks, combine it with headless
mode:
claude --plugin-dir . -p "Is lfx-my-new-skill available? Give its namespaced name."Then, even without the full skill-creator eval loop, run 2–3 realistic prompts — the kind a real user would actually say — in such a session, and check the skill triggers and that following it produces the expected result. Simple one-step prompts are poor tests: agents skip skills for tasks they can handle directly, so test with the substantive multi-step requests the skill exists for.
Before you push
claude plugin validate .— must pass. Its missing-versionwarning is expected: this plugin deliberately doesn't use versioning (see the README's Plugin versioning section) — don't "fix" it.npx markdownlint-cli2 "**/*.md" "#node_modules" "#local-agents"— the baseline is not fully clean, so the bar is: introduce no new errors relative tomain.- License headers on new files (CI blocks the PR otherwise).
- Commits need DCO sign-off (
git commit -s); GPG signing is the LFX convention — thelfx-git-setupskill walks through both.
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.

