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`).
In this repository23 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.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
- lfx-snowflake-accessSkill
- lfx-test-journeySkill
- lfx-v2-ticket-writerSkill
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
- Distinctive: line 34
Give guidance: when an agent inside a single repo needs cross-repo knowledge.
- Distinctive: line 37
Research before implementation: when the user asks what exists, what a task would touch, or whether an upstream contract supports a change.
- Very specific: line 45
Use $LFX_DEV_ROOT throughout this skill's paths.
- Very specific: line 47
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 …
- Distinctive: line 55
If the clone fails because of auth, network, or missing access, report that repo as blocked.
- Very specific: line 90
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 …
- Very specific: line 103
If $LFX_DEV_ROOT/<repo> is missing, clone the repo from the GitHub: URL in references/repo-map.md, then continue with local reads.
- Very specific: line 108
Read the top-level docs/ contract files named by that repo's CLAUDE.md when cross-repo contracts, payloads, subjects, chart handoffs, …
- Distinctive: line 128
Use this protocol when an agent in one repo needs a contract, payload, subject, chart surface, deployment handoff, or integration detail …
- Distinctive: line 130
Do not infer cross-repo contracts from local examples.
- Very specific: line 133
If $LFX_DEV_ROOT/<owner-repo> is missing, clone the GitHub: URL from repo-map.md into the workspace root.
- Very specific: line 135
Read references/contract-ownership.md for the exact owner files for the contract, payload, subject, chart surface, deployment handoff, or …
- Very specific: line 138
Read $LFX_DEV_ROOT/<owner-repo>/CLAUDE.md or AGENTS.md for that repo's local context order.
- Very specific: line 140
Read the top-level docs/ files named by that repo's CLAUDE.md for the relevant owned contract.
- Very specific: line 142
Prefer stable top-level contract docs such as docs/fga-contract.md, docs/indexer-contract.md, docs/fga-sync-contract.md, …
- Distinctive: line 151
Use references plus forward to sibling skills for depth.
- Distinctive: line 156
Use this mode for read-only discovery before an implementation starts.
- Very specific: line 160
Ensure the required repos are available locally.
- Very specific: line 162
Read the owning repo's local truth: CLAUDE.md or AGENTS.md, relevant top-level docs/ contract files, .claude/skills/, .claude/rules/, …
- Very specific: line 165
Use docs/agent-guidance/ only where repo-map.md explicitly lists it as a transitional owner location.
- Very specific: line 188
references/glossary.md: read FIRST if an LFX term is unclear (Goa, Heimdall, FGA, OpenFGA, OpenSearch, etc.). - Very specific: line 192
references/contract-ownership.md: read after repo-map.md when an agent needs the exact owner and file path for a cross-repo contract, … - Very specific: line 196
references/routing-playbook.md: read only when repo-map.md doesn't give a clear answer or when the task spans multiple repos. - Very specific: line 199
references/deployment-routing.md: read INSTEAD of repo-map.md for deployment-related tasks (charts, ApplicationSets, image tags, … - Distinctive: line 213
Never load all references by default.
- Very specific: line 234
Before routing a task to an -ops skill, check whether the current GitHub user is an org member (for example, gh api …
- Distinctive: line 300
Don't teach implementation recipes (Angular, Goa, Helm, ArgoCD, query-service, FGA, etc.) using this skill.
- Distinctive: line 303
Don't provide repo-specific setup, preflight, test, build, or deploy commands without reading that repo's current instructions this turn.
- Distinctive: line 305
Don't assert live deployment state, service health, or production behavior from this skill alone.
≈ “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.
Files
<!-- 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:
- Load configs for multi-repo work (workspace-root invocation with a full task prompt or JIRA ticket).
- Give guidance when an agent inside a single repo needs cross-repo knowledge.
- Answer questions about LFX when no edits are coming.
- 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 inlfx-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:
- Classify the task or question. Read
references/glossary.mdif any LFX term is unclear. - Identify the primary repo via
references/repo-map.md. The primary is where most edits happen and whose local instructions govern. - Identify peer repos (if any) via
repo-map.mdplus (when ambiguous)routing-playbook.md. Add peers only for contracts, generated APIs, FGA/indexer data, deployment values, or product consumption that matter. - Resolve missing checkouts by cloning the
GitHub:URL listed inrepo-map.mdwhen a primary or required peer repo is absent locally. - Read owned truth from the owner repo. Use
CLAUDE.mdfor local work mode and the top-leveldocs/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 theGitHub:URL inreferences/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'sCLAUDE.mdwhen cross-repo contracts, payloads, subjects, chart handoffs, integrations, or deployment surfaces matter. - Browse
$LFX_DEV_ROOT/<repo>/docs/agent-guidance/only whenreferences/repo-map.mdexplicitly lists that path as a transitional owner location for the repo. For Self Serve, usedocs/architecture/whenCLAUDE.mdor 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.
- Resolve the owner repo using
references/repo-map.md. - If
$LFX_DEV_ROOT/<owner-repo>is missing, clone theGitHub:URL fromrepo-map.mdinto the workspace root. - Read
references/contract-ownership.mdfor the exact owner files for the contract, payload, subject, chart surface, deployment handoff, or integration detail being checked. - Read
$LFX_DEV_ROOT/<owner-repo>/CLAUDE.mdorAGENTS.mdfor that repo's local context order. - Read the top-level
docs/files named by that repo'sCLAUDE.mdfor the relevant owned contract. - 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, ordocs/service-chart-patterns.mdwhen present. - 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.
- Route the task to the primary repo and required peers using the repo map.
- Ensure the required repos are available locally; clone missing repos from
their
GitHub:URLs if needed. - Read the owning repo's local truth:
CLAUDE.mdorAGENTS.md, relevant top-leveldocs/contract files,.claude/skills/,.claude/rules/,docs/architecture/, generated contracts, chart templates, or event docs. Usedocs/agent-guidance/only whererepo-map.mdexplicitly lists it as a transitional owner location. - Validate whether the needed API, event, field, relation, index document, query shape, chart value, or deployment reference exists.
- Find the closest existing example in the owning repo first. Use peer repos only when the owner points to them as canonical examples.
- 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 afterrepo-map.mdwhen 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 whenrepo-map.mddoesn't give a clear answer or when the task spans multiple repos. Contains concrete primary/peer examples.references/deployment-routing.md: read INSTEAD ofrepo-map.mdfor 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-architectureinstead 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.
| Topic | Skill |
| 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 repo | That 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.
| Topic | Skill |
| 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.mdThat'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-serveis the canonical Self Serve repo; legacy deployment artifacts may saylfx-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 DCOSigned-off-by:trailer required by DCO (seelfx-git-setup) — the commit author's signoff is always required, and each coauthor who participated as a contributor MUST add their ownSigned-off-by:line alongside theirCo-authored-by:trailer; and author attribution — the commit's own git-author identity (name + email), plusCo-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 ofreferences/data-privacy.mdis 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.
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.

