# Yocto Layer Review

> Review Yocto/OpenEmbedded layer structure, layer.conf, BBFILE collections and patterns, LAYERSERIES_COMPAT, LAYERDEPENDS, BBFILE_PRIORITY, BBFILES_DYNAMIC, bbappend matching, overlayed recipes, provider selection, and layer compatibility. Use for layer creation, layer migration, layer review, or when a bbappend/recipe is not being applied.

- **Type:** Skill
- **Install:** `agentstack add skill-higangssh-yocto-agent-skills-yocto-layer-review`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Higangssh](https://agentstack.voostack.com/s/higangssh)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Higangssh](https://github.com/Higangssh)
- **Source:** https://github.com/Higangssh/yocto-agent-skills/tree/main/skills/yocto-layer-review

## Install

```sh
agentstack add skill-higangssh-yocto-agent-skills-yocto-layer-review
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Yocto Layer Review

Use this skill to review layers and diagnose metadata visibility problems. Layer issues often look like recipe, provider, or package failures; prove whether BitBake sees the metadata first.

## Required Evidence

Ask for or inspect:

```text
conf/layer.conf
conf/bblayers.conf
bitbake-layers show-layers
bitbake-layers show-recipes 
bitbake-layers show-appends
bitbake-layers show-overlayed
```

## Layer Checklist

Review:

```bitbake
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "mylayer"
BBFILE_PATTERN_mylayer = "^${LAYERDIR}/"
BBFILE_PRIORITY_mylayer = "6"
LAYERSERIES_COMPAT_mylayer = "scarthgap walnascar"
LAYERDEPENDS_mylayer = "core"
```

Check:

- collection name is unique and stable
- `LAYERSERIES_COMPAT_*` matches the target release
- required layers are declared with `LAYERDEPENDS_*`
- recipe and append globs cover intended files
- `BBFILE_PRIORITY_*` is not used to hide provider/version policy problems
- optional bbappends use `BBFILES_DYNAMIC` when the target layer may be absent
- `.bbappend` filename matches an existing recipe version or intentionally uses `%`

## Common Problems

- layer is present in the tree but missing from `bblayers.conf`
- `.bbappend` silently not applied due to recipe version mismatch
- collection name in `BBFILES_DYNAMIC` does not match target layer collection
- layer priority causes a recipe to win unexpectedly
- vendor BSP layer pins an older release and rejects modern syntax
- dependency layer missing even though a recipe path exists locally

## References

- Read [../../references/shared/official-doc-map.md](../../references/shared/official-doc-map.md) for official layer docs.
- Read [../../references/shared/yocto-field-guide.md](../../references/shared/yocto-field-guide.md) for layer and provider basics.
- Read [../../references/yocto/migration.md](../../references/yocto/migration.md) for release compatibility checks.

## Output

Answer with:

1. whether BitBake sees the layer and append
2. exact layer.conf or filename issue
3. metadata visibility command to prove it
4. minimal fix
5. validation command

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Higangssh](https://github.com/Higangssh)
- **Source:** [Higangssh/yocto-agent-skills](https://github.com/Higangssh/yocto-agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-higangssh-yocto-agent-skills-yocto-layer-review
- Seller: https://agentstack.voostack.com/s/higangssh
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
