agentleFS
linuxfoundationlinuxfoundation/lfx-skills/skills/lfx/SKILL.md

lfx

Skill9 starsChanged 2 months agoMITView on GitHub

LFX cross-repo topology and ownership router. Use when the task spans more than one LFX repo, asks "which repo owns X", "where does Y live", "what repos does this touch", "what consumes Z", or needs a peer-repo file path from inside a single repo. Loads per-repo configs when invoked from the LFX workspace root with a full task prompt; gives targeted cross-repo guidance when invoked from inside a single repo. Also answers LFX glossary and topology questions, and performs read-only discovery when the user asks whether a contract, API, event, field, workflow, or repo capability exists. Do not fire for single-repo implementation tasks where the active repo's own CLAUDE.md already governs (those belong to the repo's local skills). Do not fire for V2 platform composition, service classes, or cross-service handoffs (use `/lfx-skills:lfx-platform-architecture`), ITX wrapper plumbing (`/lfx-skills:lfx-itx-integration`), or Intercom app/Fin workflows (`/lfx-skills:lfx-intercom`).

The file

Show its rules and text

We split this skill into the rules it gives an agent

29 rules. About 0 are common, 11 are distinctive, and 18 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 18

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Give guidance: when an agent inside a single repo needs cross-repo knowledge.

    line 34
  2. Distinctive:

    Research before implementation: when the user asks what exists, what a task would touch, or whether an upstream contract supports a change.

    line 37
  3. Very specific:

    Use $LFX_DEV_ROOT throughout this skill's paths.

    line 45
  4. Very specific:

    If a required repo is not present at $LFX_DEV_ROOT/<repo>, read its GitHub: URL from references/repo-map.md and clone it into the workspace …

    line 47
  5. Distinctive:

    If the clone fails because of auth, network, or missing access, report that repo as blocked.

    line 55
  6. Very specific:

    Read owned truth from the owner repo: Use CLAUDE.md for local work mode and the top-level docs/ files it names for contracts and other …

    line 90
  7. Very specific:

    If $LFX_DEV_ROOT/<repo> is missing, clone the repo from the GitHub: URL in references/repo-map.md, then continue with local reads.

    line 103
  8. Very specific:

    Read the top-level docs/ contract files named by that repo's CLAUDE.md when cross-repo contracts, payloads, subjects, chart handoffs, …

    line 108
  9. Distinctive:

    Use this protocol when an agent in one repo needs a contract, payload, subject, chart surface, deployment handoff, or integration detail …

    line 128
  10. Distinctive:

    Do not infer cross-repo contracts from local examples.

    line 130
  11. Very specific:

    If $LFX_DEV_ROOT/<owner-repo> is missing, clone the GitHub: URL from repo-map.md into the workspace root.

    line 133
  12. Very specific:

    Read references/contract-ownership.md for the exact owner files for the contract, payload, subject, chart surface, deployment handoff, or …

    line 135
  13. Very specific:

    Read $LFX_DEV_ROOT/<owner-repo>/CLAUDE.md or AGENTS.md for that repo's local context order.

    line 138
  14. Very specific:

    Read the top-level docs/ files named by that repo's CLAUDE.md for the relevant owned contract.

    line 140
  15. Very specific:

    Prefer stable top-level contract docs such as docs/fga-contract.md, docs/indexer-contract.md, docs/fga-sync-contract.md, …

    line 142
  16. Distinctive:

    Use references plus forward to sibling skills for depth.

    line 151
  17. Distinctive:

    Use this mode for read-only discovery before an implementation starts.

    line 156
  18. Very specific:

    Ensure the required repos are available locally.

    line 160
  19. Very specific:

    Read the owning repo's local truth: CLAUDE.md or AGENTS.md, relevant top-level docs/ contract files, .claude/skills/, .claude/rules/, …

    line 162
  20. Very specific:

    Use docs/agent-guidance/ only where repo-map.md explicitly lists it as a transitional owner location.

    line 165
  21. Very specific:

    references/glossary.md: read FIRST if an LFX term is unclear (Goa, Heimdall, FGA, OpenFGA, OpenSearch, etc.).

    line 188
  22. Very specific:

    references/contract-ownership.md: read after repo-map.md when an agent needs the exact owner and file path for a cross-repo contract, …

    line 192
  23. Very specific:

    references/routing-playbook.md: read only when repo-map.md doesn't give a clear answer or when the task spans multiple repos.

    line 196
  24. Very specific:

    references/deployment-routing.md: read INSTEAD of repo-map.md for deployment-related tasks (charts, ApplicationSets, image tags, …

    line 199
  25. Distinctive:

    Never load all references by default.

    line 213
  26. Very specific:

    Before routing a task to an -ops skill, check whether the current GitHub user is an org member (for example, gh api …

    line 234
  27. Distinctive:

    Don't teach implementation recipes (Angular, Goa, Helm, ArgoCD, query-service, FGA, etc.) using this skill.

    line 300
  28. Distinctive:

    Don't provide repo-specific setup, preflight, test, build, or deploy commands without reading that repo's current instructions this turn.

    line 303
  29. Distinctive:

    Don't assert live deployment state, service health, or production behavior from this skill alone.

    line 305

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- Copyright The Linux Foundation and each contributor to LFX. --><!-- SPDX-License-Identifier: MIT -->

LFX

Find which LFX repos are needed for a task, load their configs, give cross-repo guidance, or answer LFX questions.

Four scenarios:

  1. Load configs for multi-repo work (workspace-root invocation with a full task prompt or JIRA ticket).
  2. Give guidance when an agent inside a single repo needs cross-repo knowledge.
  3. Answer questions about LFX when no edits are coming.
  4. Research before implementation when the user asks what exists, what a task would touch, or whether an upstream contract supports a change.

Finding the LFX workspace root

The workspace root (parent directory containing all LFX repo checkouts) varies per user (~/lfx/, ~/lf/, etc.). Find it before referencing peer-repo paths. Ask the user if unsure (and offer /lfx-skills:lfx-setup to persist). Use $LFX_DEV_ROOT throughout this skill's paths.

If a required repo is not present at $LFX_DEV_ROOT/<repo>, read its GitHub: URL from references/repo-map.md and clone it into the workspace root:

git clone <github-url> "$LFX_DEV_ROOT/<repo>"

If the clone fails because of auth, network, or missing access, report that repo as blocked. Do not replace the missing repo with central implementation guesses.

How LFX fits together (high-level)

LFX is the Linux Foundation's project-management platform. Three main layers:

  • Self Serve / LFX One (lfx-self-serve): user-facing product (Angular 20 SSR + Express BFF + @lfx-one/shared). Consumes V2 APIs.
  • V2 platform (~14 Go services): resource services own domain (project, committee, meeting, vote, survey, mailing-list, member); platform services compose (fga-sync, indexer, query, access-check, auth). Built on Goa + NATS
    • KV + OpenFGA. Writes publish contracts to fga-sync (access tuples) and indexer (search documents).
  • Deployment: GitOps via ArgoCD. Service-local Helm charts per repo; umbrella chart + OpenFGA model in lfx-v2-helm; values, image tags, and ApplicationSets in lfx-v2-argocd. Auth0 emits JWTs, Heimdall enforces ruleset checks per route, fga-sync answers access decisions.

Depth lives in the sibling skills below.

Workflow

Three steps apply to every scenario:

  1. Classify the task or question. Read references/glossary.md if any LFX term is unclear.
  2. Identify the primary repo via references/repo-map.md. The primary is where most edits happen and whose local instructions govern.
  3. Identify peer repos (if any) via repo-map.md plus (when ambiguous) routing-playbook.md. Add peers only for contracts, generated APIs, FGA/indexer data, deployment values, or product consumption that matter.
  4. Resolve missing checkouts by cloning the GitHub: URL listed in repo-map.md when a primary or required peer repo is absent locally.
  5. Read owned truth from the owner repo. Use CLAUDE.md for local work mode and the top-level docs/ files it names for contracts and other repo-owned truth that other agents may consume.

Then, depending on context:

Workspace-root invocation (full task prompt, JIRA ticket, etc.)

The primary mode for multi-repo work. Load configs for the primary repo and each peer.

For each repo:

  • If $LFX_DEV_ROOT/<repo> is missing, clone the repo from the GitHub: URL in references/repo-map.md, then continue with local reads.
  • Load $LFX_DEV_ROOT/<repo>/CLAUDE.md
  • Load $LFX_DEV_ROOT/<repo>/.claude/rules/ for path-scoped conventions
  • Load $LFX_DEV_ROOT/<repo>/.claude/skills/ for available workflows
  • Read the top-level docs/ contract files named by that repo's CLAUDE.md when cross-repo contracts, payloads, subjects, chart handoffs, integrations, or deployment surfaces matter.
  • Browse $LFX_DEV_ROOT/<repo>/docs/agent-guidance/ only when references/repo-map.md explicitly lists that path as a transitional owner location for the repo. For Self Serve, use docs/architecture/ when CLAUDE.md or local skills point there.

Work continues in the same session with the loaded context.

Single-repo invocation (cross-repo knowledge request)

Give targeted guidance: name the specific peer-repo files the asking agent should read (at $LFX_DEV_ROOT/<peer-repo>/<path>) and any constraints to apply. Skip the full config load; the asking agent's session is what matters and may not need everything. If the work is genuinely multi-repo, recommend relaunching from $LFX_DEV_ROOT.

Cross-repo contract lookup

Use this protocol when an agent in one repo needs a contract, payload, subject, chart surface, deployment handoff, or integration detail owned by another repo. Do not infer cross-repo contracts from local examples.

  1. Resolve the owner repo using references/repo-map.md.
  2. If $LFX_DEV_ROOT/<owner-repo> is missing, clone the GitHub: URL from repo-map.md into the workspace root.
  3. Read references/contract-ownership.md for the exact owner files for the contract, payload, subject, chart surface, deployment handoff, or integration detail being checked.
  4. Read $LFX_DEV_ROOT/<owner-repo>/CLAUDE.md or AGENTS.md for that repo's local context order.
  5. Read the top-level docs/ files named by that repo's CLAUDE.md for the relevant owned contract.
  6. Prefer stable top-level contract docs such as docs/fga-contract.md, docs/indexer-contract.md, docs/fga-sync-contract.md, docs/query-service-contract.md, or docs/service-chart-patterns.md when present.
  7. Report the exact owner file read. If the path is absent, report a repo-readiness gap instead of substituting central guidance.

Pure question (no edits coming)

Use references plus forward to sibling skills for depth. Skip the full config load.

Research before implementation

Use this mode for read-only discovery before an implementation starts. It preserves the useful research workflow without adding another central skill.

  1. Route the task to the primary repo and required peers using the repo map.
  2. Ensure the required repos are available locally; clone missing repos from their GitHub: URLs if needed.
  3. Read the owning repo's local truth: CLAUDE.md or AGENTS.md, relevant top-level docs/ contract files, .claude/skills/, .claude/rules/, docs/architecture/, generated contracts, chart templates, or event docs. Use docs/agent-guidance/ only where repo-map.md explicitly lists it as a transitional owner location.
  4. Validate whether the needed API, event, field, relation, index document, query shape, chart value, or deployment reference exists.
  5. Find the closest existing example in the owning repo first. Use peer repos only when the owner points to them as canonical examples.
  6. Return concise findings:
## Research Findings

**Primary repo:** <repo> - <why it owns the work>
**Peers:** <repo list or none> - <why each matters>
**Contract status:** <exists / partial / missing>. <path, method, subject, field, relation, value>
**Local truth read:** <CLAUDE/rules/skills/docs paths>
**Closest example:** <path> - <why it matches>
**Likely files:** <paths or "implementation belongs in repo-local workflow">
**Blockers:** <none or concrete missing contract/access/repo issue>
**Next step:** <repo-local skill or central skill to use next>

How to use the references

  • references/glossary.md: read FIRST if an LFX term is unclear (Goa, Heimdall, FGA, OpenFGA, OpenSearch, etc.). Skip for routing decisions.
  • references/repo-map.md: the primary tool for identifying primary and peer repos. Match task nouns to "route when the task mentions" phrases.
  • references/contract-ownership.md: read after repo-map.md when an agent needs the exact owner and file path for a cross-repo contract, payload, subject, chart surface, deployment handoff, integration detail, or other repo-owned truth.
  • references/routing-playbook.md: read only when repo-map.md doesn't give a clear answer or when the task spans multiple repos. Contains concrete primary/peer examples.
  • references/deployment-routing.md: read INSTEAD of repo-map.md for deployment-related tasks (charts, ApplicationSets, image tags, environment values). It's the deployment-specific decision tree.
  • references/topology.md: thin routing stub. For platform-shape depth, forward to /lfx-skills:lfx-platform-architecture instead of expanding it.
  • references/service-types.md: thin routing stub. For native, wrapper, proxy, or V2 Go service-class depth, forward to /lfx-skills:lfx-platform-architecture.
  • references/data-privacy.md: canonical hard rules for handling PII in test data, logs, persisted stores, tickets, PRs, and code comments. Read before generating fixtures/examples, before adding a log line that includes a user field, or before writing a user identifier into a KV, index doc, FGA tuple, or Jira ticket.

Never load all references by default. Start with the smallest one.

Sibling central skills

Each auto-fires on its own triggers; can also be invoked explicitly. These ship in this same lfx-skills plugin.

TopicSkill
Platform composition, V2 service classes, write/read/access-check flows, cross-repo owners/lfx-skills:lfx-platform-architecture
Go coding conventions after routing to a service repoThat repo's path-scoped <short-repo-name>-dev skill
ITX wrapper plumbing (OAuth2 M2M, ID mapping, v1 KV sync)/lfx-skills:lfx-itx-integration
Intercom app workflow and Fin AI optimization/lfx-skills:lfx-intercom
Object storage capability in a service (uploads, S3, CDN, local dev)/lfx-skills:lfx-object-store-design
Object storage backend provisioning (buckets, CloudFront, IRSA)/lfx-skills:lfx-object-store-ops

-ops skill convention

Skills whose names end in -ops are written for members of the linuxfoundation GitHub org (Ops/infrastructure audience). They are provided for that audience's use and are not gated by the skill itself. Before routing a task to an -ops skill, check whether the current GitHub user is an org member (for example, gh api orgs/linuxfoundation/members/$(gh api user -q .login) — a 204 means member). If membership cannot be confirmed, decline the provisioning request and say so; do not substitute the corresponding design skill as a stand-in, since design skills explicitly exclude provisioning work.

Workflow skills (this plugin)

Nine workflow skills ship alongside the architecture skills in this same lfx-skills plugin. Forward to them by name when relevant.

TopicSkill
Onboarding and first-time setup/lfx-skills:lfx-setup
DCO and GPG signing/lfx-skills:lfx-git-setup
Cross-repo personal PR dashboard/lfx-skills:lfx-pr-catchup
GitHub PR review threads/lfx-skills:lfx-pr-resolve
Local multi-branch journey worktrees/lfx-skills:lfx-test-journey
Snowflake access requests/lfx-skills:lfx-snowflake-access
CDP Snowflake connector scaffolding/lfx-skills:lfx-cdp-snowflake-connectors
Security review before merging/lfx-skills:lfx-security-engineer
Pre-PR review round, before a PR/lfx-skills:lfx-pre-pr-review

Pre-PR review has two routes, decided by the repo, not by this table. A repo whose root CLAUDE.md carries a ## Pre-PR review section runs /lfx-skills:lfx-pre-pr-review; a repo that still carries ## Review lifecycle configuration runs /lfx-skills:lfx-local-review (its Mode 2) and must not be sent to the new skill, which stops on the missing section. A CLAUDE.md carrying both headings is a broken migration, not a choice: report it and route to neither. The table row above is the former case.

PR review threads are routed by the repo, not by this table. First the same guard as above: a root CLAUDE.md carrying both ## Review lifecycle configuration and ## Pre-PR review is a broken migration — report it and route to neither (lfx-local-review validates only its own declaration and will not notice the second heading). Then: a repo whose root CLAUDE.md carries exactly one ## Review lifecycle configuration section and no ## Pre-PR review section has adopted /lfx-skills:lfx-local-review as the sole owner of its review lifecycle; forward its PR-thread work there, not to lfx-pr-resolve — that skill validates the declaration and fails closed itself, so a malformed section is its problem to report, not a reason to route elsewhere. A repo with no such section is not an adopter, and /lfx-skills:lfx-pr-resolve above is correct for it — unless its ## Pre-PR review section names a PR driver:; forward PR-thread work to that repo skill instead (the third destination, for repos that own their own PR iteration). More than one ## Review lifecycle configuration section is a broken adoption, not an absent one: report the problem rather than routing to either skill.

Cross-repo path convention

Cross-repo references use repo-qualified paths, not relative filesystem paths:

lfx-v2-indexer-service/docs/indexer-contract.md

That's the file inside lfx-v2-indexer-service, regardless of disk layout. Resolve by reading at $LFX_DEV_ROOT/<repo>/<path> or Glob/find if unsure. Never assume ../../<repo>/.

Hard rules

  • Don't teach implementation recipes (Angular, Goa, Helm, ArgoCD, query-service, FGA, etc.) using this skill. Point to the owning repo or a sibling skill instead.
  • Don't provide repo-specific setup, preflight, test, build, or deploy commands without reading that repo's current instructions this turn.
  • Don't assert live deployment state, service health, or production behavior from this skill alone.
  • lfx-self-serve is the canonical Self Serve repo; legacy deployment artifacts may say lfx-v2-ui, which is deployment naming only.
  • Never generate real user PII (real emails, names, usernames, phone numbers, LFIDs, GitHub/Discord handles, addresses, etc.) in test data, fixtures, examples, logs, commits, PRs, or tickets. Never persist PII outside a field the resource contract requires. When in doubt, stop and ask the user. Exceptions to the commit/PR/ticket/comment prohibition (hard rule 4 in references/data-privacy.md) are limited to two, each scoped tightly: every contributor's own DCO Signed-off-by: trailer required by DCO (see lfx-git-setup) — the commit author's signoff is always required, and each coauthor who participated as a contributor MUST add their own Signed-off-by: line alongside their Co-authored-by: trailer; and author attribution — the commit's own git-author identity (name + email), plus Co-authored-by: trailers only for individuals who actually co-authored the change and consented to real-identity attribution (Co-authored-by: is not a DCO trailer and is not produced by --signoff). Neither exception permits a non-contributor's PII (an affected end user, support contact, member org's staff, etc.) in commit messages, PR bodies, tickets, or code comments. A separate narrow exception applies to hard rule 2 (the no-PII-in-logs default): a dedicated audit-log code path may emit raw PII only when every condition in the canonical "Logging exception (narrow)" section of references/data-privacy.md is satisfied — do not memorize a fixed gate count here; consult the canonical section, since gates may be added or refined over time. Authentication material is unconditionally excluded from that exception. Full rules and safe alternatives: references/data-privacy.md.

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.