This guide explains how to configure skills for agents in the Fuchsia project.
The Fuchsia project maintains agents' “global” skills in //.agents/skills in fuchsia.git. However, you can also manage your own skill configurations using skills.json files.
As you add a new skill to the Fuchsia codebase, follow these guidelines:
fuchsia.git (e.g. a team subdirectory) so that others can discover and use it.fuchsia.git) users by putting it in the global registry.Note: If your skill is only useful to a small group of Fuchsia developers, it does not need to be a global skill in the Fuchsia codebase.
Use this stage when a skill works reliably and you want to share it with your sub-team or group of teammates.
Add your skill to a directory or sub-directory in the fuchsia.git repository outside of the top-level //.agents/skills/ directory (for example, //src/devices/skills/).
Keep in mind that agents do not automatically discover skills outside the top-level //.agents/skills directory in fuchsia.git. Other Fuchsia workspace users need to configure their skills.json files to discover and use these skills. See Skill discovery and configuration.
Use this stage when a skill works reliably and is useful to most of the Fuchsia team.
fuchsia.git repository in //.agents/skills/.OWNER listed in the //.agents/ OWNERS file.Agents use JSON configuration files (skills.json) to discover custom skills.
The agent reads skills.json from these paths (loaded in order):
~/.gemini/config/skills.json - Active globally across all workspaces on your machine..agents/skills.json - Active within this Fuchsia workspace.When loading large skill repositories or team configurations, avoid having every single skill active at once. Create a skills.json that includes skills using inherits and entries.
inherits: Imports another entire JSON configuration file. Use this for importing a standard team config.entries: Points directly to a directory containing a single skill.Both keys support include_only and exclude filters (string arrays) to selectively parse skills.
{ "inherits": [ { "path": "/path/to/fuchsia/docs/team_skills.json", "include_only": ["cpp-to-rust-porting"] } ], "entries": [ { "path": "/path/to/fuchsia/src/devices/skills/custom_sensor_skill" } ] }
The fx manage-skills tool provides an interactive command-line interface for creating and editing the skills.json file in your Fuchsia workspace (specifically at //.agents/skills.json).
Run the following command in your shell:
fx manage-skills
This command scans the workspace, displays all discovered skills, and prompts you to select the ones you want to enable. It automatically generates or updates the .agents/skills.json file with your selections.