/lfx-mcp-playbooks:lfx-data-queryingfrom lfx-mcp-playbooks
Answers a question about Linux Foundation projects, members, contributors, events, training, maintainers, health, social listening, governance rosters, meetings or mailing lists through the LFX MCP tools — which tool for which kind of question, name and value discovery, why two tools give two figures, and an answer with its provenance. Use whenever a question asks for a count, a share, a ranking, a series, a roster or a record from LFX data.
Ships in lfx-mcp-playbooks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For callers with staff tools, read the guidance once per session before
the first call:
read_lfx_standard_metrics_guidance for the standard metrics,
read_lfx_semantic_layer_guidance for the semantic layer and the SQL
assistant. They and the tool descriptions own the mechanics of a call:
every parameter, grouping, switch, default, literal, error and worked
call. This playbook owns the work: which tool answers which kind of
question, in what order, how the same figure differs across tools and why,
and how an answer is worded and sourced. It never restates a parameter.
Answer from fresh calls only. Community callers have neither these guidance
tools nor the standard metrics, layer or SQL assistant: follow the service-tool
routes below, label every reading "visible to you", and say when the requested
LF-wide or company-wide total is not available.
Standard metrics — query_lfx_standard_metrics. Governed recipes with
a fixed definition; the caller chooses only grouping, scope and dates, so a
re-run gives the same figure. First choice for any count, revenue, share or
series in a family the guidance lists: memberships and their movements,
contributors and contributions, maintainers, health and software value,
events, training, social listening. The governed lane that reaches a
project's whole tree and a company's subsidiaries at any depth. Every answer
carries an applied block saying what ran, with a truncated flag, and the
compiled SQL for anyone who asks how a figure was made. Guidance:
"Inventory", "The contract".
Semantic layer — explore_lfx_semantic_layer, then
query_lfx_semantic_layer. Named metrics and dimensions over the same
warehouse, for a grouping, filter or slice the families do not offer (a
consortium, a meeting type, a direct-children list, a dimension a family
has no switch for). Explore discovers names and stored values; query runs
them; how far its organisation and project dimensions reach (one hop,
the whole group, the subtree) is the guidance's "Scope" (Reach). Answers
are labelled ad hoc. Guidance: "Protocol", "Scope".
SQL assistant — query_lfx_lens. Generated SQL over the warehouse, for
cross-domain joins and hierarchy shapes no standard metric expresses.
Answers are labelled as generated SQL. Every answer opens with a scope
line (LF-wide when no project scope was set) and carries the SQL it ran.
Unknown slugs are rejected before any query runs. Never for social
listening, people rankings or membership counts on any date — those are
standard metrics. This is the fallback lane, for the shapes and domains
the families and the layer do not cover yet: it interprets everyday
words on its own (see the plain-words reference), so it is the last lane
tried, and an answer that needed it says so in its provenance ("no
governed reading for this shape today"). Guidance: "Routing".
Service tools — records, caller-visible counts and actions, never
warehouse totals. Counts: count_lfx_resources. Names:
search_projects, get_project, search_b2b_orgs. Membership records:
search_members, get_member_membership, the key-contact tools. Rosters:
search_committees, search_committee_members, get_committee,
get_committee_member, get_org_committee_seats,
audit_committee_coverage. Meetings: search_meetings, search_past_meetings,
search_past_meeting_participants, search_meeting_registrants,
search_past_meeting_summaries, get_meeting, get_past_meeting,
get_past_meeting_participant, get_past_meeting_summary. Lists:
search_mailing_lists, search_mailing_list_members, get_mailing_list.
Discord and email tools: actions on an explicit ask only. Anything counted
from these is "what is visible to you": say so. The craft for each group:
references/service-tools.md.
| The question asks for | Tool | Why this one | Label |
|---|---|---|---|
| A count, value, share, ranking or series in a family the inventory lists (members, dues, new and churned memberships, contributors, contributions, participants, maintainers, health, software value, registrations, sponsorships, speakers, training, certifications, social mentions and reach) | standard metrics | fixed definition, whole tree and all subsidiaries, applied block, repeatable | governed |
| A company's figure "including subsidiaries", or a foundation's "and its projects" | standard metrics | governed hierarchy readings for the families it covers | governed |
| A slice the families have no switch for (consortium, meeting type, direct children, a dimension seen in explore) | semantic layer | named metric and dimension, stored values discoverable | ad hoc |
| How many organisations are members, were new to the LF, or were lost, as against memberships | standard metrics | the organisation families count distinct organisations, the membership families count project-account pairs; the answer says which grain it reports | governed |
| A cross-domain join or a hierarchy shape no metric expresses | SQL assistant | generated SQL, with its scope line and SQL returned | generated SQL |
| A project's slug, record, parent, legal entity | search_projects, get_project | the record is the truth about what a slug is | — |
| A company's legal name and identifier | search_b2b_orgs | the CRM account name; service-tool roster and participant spellings come from their own records | — |
| What one company holds: memberships, tiers, dates, contacts | search_members, get_member_membership | the record view of the CRM, the story behind the figure | visible to you |
| Who sits on a board or committee, with what vote | committee tools | the authoritative source for committee rosters in LFX v2 (rule 18 for the SQL assistant's v1 copy; the layer has no committee metric); "who represents a company" is two records side by side (rule 17) | visible to you |
| A company's seats across the LF, split by board and project | organisation seats tool | one call, under the organisation gate, with the membership contacts of record and a per-project representation pairing beside the seats when asked | visible to you |
| Which of a foundation's projects have committees onboarded, and where the gaps are | coverage audit tool | when a roster comes back empty, read over its foundation before the empty result is interpreted: per project, the committees indexed with their visible member counts, and a gap where a project with active memberships has no committee, no board committee or an empty board; a zero can be an access effect or a roster not yet onboarded | visible to you |
| How many meetings, committees or members a project or a committee has in LFX v2 | count tool | one kind a call, filters on the record's own fields, complete flag read; the same visibility as LFX Self Serve | visible to you |
| Which organisations hold the most seats | count tool, one call per candidate organisation (its identifier, board category when asked); an open LF-wide ranking only through the SQL assistant as the staff last resort | caller-visible LFX v2 seats for a bounded set; the assistant reads the warehouse copy of the v1 committee records, a different source: active seats only, staff and unaffiliated seats set aside and said, board seats separate from technical seats; without staff tools, offer a bounded ranking or a foundation roster, never a complete LF-wide ranking | visible to you / generated SQL |
| Whether a stated figure holds, why two figures differ, a slide or report checked against LFX — and every answer's own figures before they are reported | the lfx-figure-checking skill | the fresh reads come from here; the mechanism, verdict and written check come from there; loaded once per session, before the first answer is written | as the fresh read |
| Which meetings a project or committee held, who was invited, who attended, what was discussed | meeting tools, for staff and community alike | occurrence records with participants and summaries | visible to you |
| How many meetings were held, how many scheduled minutes, how many people attended, over a period, LF-wide or by foundation, project or committee | semantic layer (staff) | named meeting metrics: occurrences, scheduled minutes, unique attendees; without the layer, the count tool over past meetings gives meetings visible to you, the participants listing gives people per project or committee; an LF-wide total is not available to community callers | ad hoc; visible to you |
| Attendances or people over a period, by company, committee or meeting type | semantic layer (staff) | attendances (one person at one occurrence) and unique attendees; by company through the account entity at the chosen grain — the account alone by default, the whole group by its top parent when the reading is the company including subsidiaries — with the grain named and the unattributed share stated; without the layer, the participants search for the company slice per project or committee, visible to you, never a company-wide total | ad hoc; visible to you |
| How many meetings a company's people attended over a period | SQL assistant (staff), because no named metric counts distinct occurrences by company | distinct occurrences with an attendee from the company; never attendances, never attendances divided by people; without staff tools, distinct occurrences on the attended participants listing per project or committee, visible to you, never a company-wide total (the lfx-deck-building skill's org-briefing reference, Section 5) | generated SQL; visible to you |
| A mailing list and its subscriber count | mailing-list tools | list-service records | visible to you |
| A role check or assignment, an email | Discord and email tools | actions, on an explicit ask, confirmed first | — |
Decide in this order; stop at the first row that fits:
lfx-figure-checking skill's why-figures-differ reference, one
section per domain).search_projects and CRM account discovery with
search_b2b_orgs; stored spellings are not everyday ones. Copy roster
organisation names from roster records and participant organisation names
from participant records, not from the CRM spelling. Identifiers can come
from the appropriate readable records this session. A foundation is found
by its short name or slug, not its long legal name; the record confirms
which it is. An empty organisation search can be a permission limit, not
absence: community callers continue with readable membership, roster or
participant records in that tool's vocabulary and say what remains
inaccessible. For staff, the guidance also names warehouse recovery:
the value search on the account-name dimension ("Name discovery" in the
semantic-layer guidance), and an organisation-scoped standard-metric call
with the everyday name, whose rejection lists the stored names that carry
the family's data, parent alongside. When the
search is empty and the family accepts the name first time, the parent
is still unknown: a by-organisation reading of that name with the
separate switch returns the parent beside each row — read it before
saying the account stands alone. A membership record confirms its own
spelling and identifier, not the warehouse's account hierarchy.
A project the search cannot find is
not absent from the data: the search reads the LFX v2 index, which
lags the project directory the metrics read, so a standard-metric
rejection's candidate slugs and the layer's project values are the
census — take the slug from there and say which surface named it.search_projects
returns a slug for the foundation's own name, and that slug is one bucket
of hosted projects, never the umbrella; an LF-wide question leaves the
project unset on every lane. Passing the bucket understates LF-wide
figures several times over with no error — "The contract" in the
standard-metrics guidance, "Scope" in the semantic-layer guidance.search_projects and
get_project, never from memory. On memberships, a foundation's slug
is that foundation's own membership programme, one slug: a child
foundation's memberships carry the child's slug and are neither
included in nor "excluded" from the parent's reading; there is no
subtree scope on memberships, and LF-wide is no project filter. So the
prose never says "CNCF is not part of the LF" (wrong on the tree) and
never says "memberships in projects under the LF" or attaches a
child-project count to a membership figure (wrong on the membership
axis). Which axis a figure sits on is said in the reader's words. Every
scope axis — project, switches, organisation, time, population,
geography, ranking, the assistant's scope line — has a row in
references/axes.md: what it selects, what it
does not, and the sentence never to write.lfx-figure-checking skill's why-figures-differ reference, Events
and training).Before writing, with the reads in hand, load the lfx-figure-checking
skill if this session has not yet, and read the figures against its
gotchas and, for any second reading, its mechanism catalogue. It is the
step most answers skip and the one that catches a wrong key, a wrong
scope or an unbounded window before the reader does. Run it deliberately
whenever something looks wrong: a figure out of scale for its scope, two
reads that disagree, an answer that came too easily. The check changes
the answer and leaves no trace in it beyond the basis clause and the
provenance block; it adds a sentence only when the reader would
otherwise read the figure wrongly (a grain the word hides, a floor taken
for a census, a choice between two readings that differ materially). No
routine talk of data issues: the reader came for the number.
The prose is for the person who asked: no field names, dimension keys, metric names, SQL, tool or parameter names unless they ask how a figure was made. "People with a code contribution to CNCF and its projects in the last twelve months, bots excluded" — not a column, not a filter. Provenance goes in the block below.
Every figure states, in the reader's words, the three things that define it: scope ("CNCF and its subprojects", "IBM as one company including subsidiaries", "LF-wide"), window ("the twelve months to today", "as of the end of last year"), population ("people with a code contribution, bots excluded"; "accepted registrations"; "list-price membership value, not dues billed"). A default that was applied is stated as if chosen. A region grouping is said to be provisional pending stakeholder sign-off.
The habits the reader never sees but the figure depends on:
applied block carries
three sentences the reader cannot do without, and a paraphrase that
drops their qualifier changes the figure: scope (what the name
resolved to — the tree or the bucket, subsidiaries folded or not);
definition (the population and its kind: a past as-of reading is
date-based and reads above the status-based current count; a people
ranking is one row per identity; event figures follow the event's
start date); note (the basis, such as the account's billing
country). Each is repeated once, in the reader's words with the
qualifier kept, next to the figure it qualifies. Two readings of one
family side by side — a past as-of figure and today's — carry their
kinds in the row, or they read as one series and are not.lfx-figure-checking
skill's why-figures-differ reference has the list.After the answer, one block per figure: scope as applied (the scope sentence the standard metrics return, quoted: the name, and whether it covered the tree or the subsidiaries; the SQL assistant's scope line likewise — and the same sentence is quoted where the figure is given, since a paraphrase in the headline is not the scope); window as concrete dates or an as-of date; population (the definition sentence the tool returned); defaults and coverage (what the tool chose for you; unattributed rows, distinct counts, partial last period, future-dated end); SQL produced on request only (every query lane returns it) — say it was kept only if you kept it. The label is written only when the figure is not a governed family — ad hoc, generated SQL, visible to you, published — because that is when it changes how far the figure can be trusted; "governed" is said only next to a figure that is not. The label is written in the sentence that carries the figure, not only in the block — "visible to you" on a record count; "ad hoc, a floor bounded by platform onboarding" on company attendances and people — because the reader keeps the sentence. No lane stamps a data refresh time today: the run date stands for freshness.
truncated is true: the answer is "the top N", never "all". Say so
or re-run for the full set.search_projects.
Never present a candidate as the asker's choice; never retry the everyday
name.search_b2b_orgs. A candidate that itself carries nothing is not a
choice (section 3). Never sum stray same-company accounts into a
parent by hand: the folded reading is the tool's.When two tools give two figures for what sounds like one question, both
are usually right about different populations. Name the two populations,
find the mechanism in the lfx-figure-checking skill's
why-figures-differ reference (one section per domain), choose the
reading the question wants, and say why in a sentence. The governed
reading wins for a headline. A difference no mechanism explains is a
discovery failure, not a disagreement between sources; "sources differ"
never goes in an answer. Where the applied block and a guidance sentence
disagree on a definition, the applied block ran.
Load that skill once the reads are in and before the answer is written, if this session has not: it holds the traps that return a plausible wrong number. Load it earlier whenever the question is itself a check — "is this figure right", "why does the deck say X and the tool Y", "verify these numbers", a comparison against a report or an earlier run — and whenever a cross-framing read comes back further from the first figure than scope or drift explains. This playbook takes the fresh reads it asks for.
The sentence that compares two figures carries the caveat that qualifies the comparison: two subjects (an account's billing country against a person's own country), two vocabularies, two grains. A caveat that sits only in a coverage note under the table has not been said.
"Organisations", "members", "developers", "projects", "revenue",
"attendees", "last year" each have two or more readings on these tools.
Answer with the default reading, name it in a clause, and offer the
alternative in one sentence that says what the difference is — never the
larger number by preference, never two readings as a contradiction.
Organisations are legal organisations known to the CRM unless the reader
asks for the broader inferred-employer view; members are memberships
unless the reader asks for distinct organisations; developers who "took
part" are participants, contributors the narrower reading. The family's
applied.definition sentence is the default reading in the tool's words;
repeat its meaning, never a paraphrase that widens it. The list, with the
family's definition and the offer sentence for each word:
references/plain-words.md.
Symptom, cause, check and guidance section for each: the
lfx-figure-checking skill's gotchas reference, in this order.
-fund project are one consortium: the
membership and organisation families read the whole consortium in one
call by default and list its members in the applied block; excluded
reads the named project alone; other families never merge one.lfx-figure-checking skill names the mechanism and gives a
verdict); a figure from another product is not: say what this figure
covers and stop.lfx-figure-checking skill's "Rosters: LFX v2 vs the v1 warehouse copy"
entry).lfx-figure-checking skill has been loaded this session and the
figures about to be reported were walked through its traps and, where
two readings exist, its mechanisms. If it has not been loaded, load it
now; the check is part of the answer, not an extra.truncated, defaults
and coverage read from the applied block, not from the request you
think you sent.lfx-figure-checking skill when the mechanism is not
obvious); every check sum was computed from all the rows and quoted
exactly, and a cut breakdown gave a floor and said so.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
4 skills in this plugin
/lfx-deck-buildingProduces a deck's worth of LFX figures that stay consistent with each other — conventions fixed before the first query, cross-framing checks, a data-notes appendix, a final consistency pass, and the citation rule for what LFX cannot reproduce. Use it whenever the ask is for a deck, a slide, a section of a deck, a briefing, a board pre-read, a member report, an executive summary — even when only one slide or one section is asked for, and even when the word "deck" is missing: "the governance section", "the maintainers slide", "a briefing on <company>", "refresh these figures for the board". Not a presentation skill: it supplies the figures, their conventions, checks and provenance to whatever workflow builds the slides./lfx-engagement-packetFills Parts B and C of an Applicant Engagement Packet — the snapshot, the board view, the table of measures in three circles (the foundation, the rest of the Linux Foundation, beyond the LF) and the detail tables — from the LFX MCP tools, with one recipe per measure so that every applicant's packet is built the same way. Use it whenever the ask is an engagement packet, an applicant packet, an application packet for a membership tier change, a membership-elevation packet, "fill Parts B and C", an applicant snapshot or board view from LFX, "generate the packet for <company>", or the word "packet" with a foundation or an applicant named. Not a document-editing skill: it supplies the figures, labels, footnotes and provenance to whatever tool writes the document. For callers with the staff data tools.npx claudepluginhub linuxfoundation/lfx-mcp-playbooks --plugin lfx-mcp-playbooks