Skip to content

Commit 9af6f53

Browse files
committed
Cosslink
1 parent 72fdc7f commit 9af6f53

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

CONTRIBUTING.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@ Best for cross-cutting skills that do not have a natural product home.
2929
```
3030
8. Open a pull request. The `validate` GitHub Actions workflow runs `./.github/scripts/check.sh` and must pass before merge. See [Validating locally](#validating-locally) for the full set of enforced rules.
3131

32-
### Path B: Skills authored in a product repository
32+
### Path B: Skills authored in a product repository (federation)
3333

34-
Best for skills that should ship and version with a product (HIP, MIGraphX, Ryzen AI, Lemonade, etc.).
34+
Best for skills that should ship and version with a product (HIP, MIGraphX, Ryzen AI, Lemonade, etc.). Your repo stays the source of truth and the catalog vendors a pinned copy. This is called **federation**, and the full walkthrough lives in [docs/federating-your-repo.md](docs/federating-your-repo.md).
3535

36-
1. Add the skill folder to your product repository; a common location is `.agents/skills/<skill-name>/`.
37-
2. Open a pull request here that adds (or extends) an entry in [`.github/scripts/sources.yml`](.github/scripts/sources.yml) — the master list — naming your repo, a pinned ref, the sub-path that holds skill folders, and your skill's folder name.
38-
3. Once the catalog change merges, dispatch the **Import external skills** workflow from the Actions tab. It shallow-clones your repo at the pinned ref, vendors the skill into `skills/<name>/`, updates `.claude-plugin/marketplace.json`, and opens a follow-up pull request. Validation then runs against the same rules as in-repo skills before merge.
36+
The short version:
37+
38+
1. Keep each skill as a folder with a valid `SKILL.md` and `skill-card.md` in your AMD-owned repo (a common location is `skills/` or `.agents/skills/<skill-name>/`).
39+
2. Add (or extend) an entry in [`.github/scripts/sources.yml`](.github/scripts/sources.yml) — the master list — naming your repo, a pinned ref, the sub-path that holds skill folders, and each skill's folder name.
40+
3. Vendor the skills and refresh the manifests locally, then open a pull request here for review. Validation runs against the same rules as in-repo skills before merge.
41+
42+
See [docs/federating-your-repo.md](docs/federating-your-repo.md) for the exact `sources.yml` schema, the import commands, and how to run the catalog's checks in your own repo.
3943

4044
## Is this task a good fit for a skill?
4145

docs/federating-your-repo.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
How to list skills that live in **your own AMD repo** in this catalog. Your repo
44
stays the source of truth; the catalog vendors a pinned copy.
55

6+
This is the detailed version of **Path B** in
7+
[CONTRIBUTING.md](../CONTRIBUTING.md#path-b-skills-authored-in-a-product-repository-federation).
8+
Start there for an overview of how it compares to authoring skills directly in
9+
this repo.
10+
611
> **Eligibility: AMD-owned repositories only.** The source `repo` must be under
712
> an AMD GitHub org (e.g. `AMD-AGI/...`). Non-AMD repos are not accepted.
813

0 commit comments

Comments
 (0)