Agent Skills guide

Start with Agent Skills in DOCUMENTATION.md for this project's catalogue, installation commands and package location. Skills teach agents how to use a tool; they complement the binary, SDK and CLI documentation.

Agent-specific setup

The Skills CLI is the recommended cross-agent installer. Use --agent to select a tool. Native alternatives below use actual skill directories; no plugin or marketplace manifest is required. Copy the complete skill directory, not just SKILL.md. After installing or changing configuration, reload skills or restart the agent.

Claude Code
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent claude-code
Native alternative: copy a skill directory into `.claude/skills/` (project) or `~/.claude/skills/` (personal). Symlinked skill directories are supported. Invoke `/run-go-sdk-generator` or describe the task. See [Claude Code skills](https://code.claude.com/docs/en/skills).
OpenCode
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent opencode
Native alternative: copy the directories into `.opencode/skills/` or `~/.config/opencode/skills/`. OpenCode also discovers `.agents/skills/`. Explicit local sources can be configured using the `skills` setting supported by your OpenCode version; see [OpenCode skills](https://opencode.ai/docs/skills). Quit and restart OpenCode after configuration changes.
Codex
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent codex
Native alternative: copy or symlink each complete skill directory into `.agents/skills/` or `~/.agents/skills/`. Use `/skills` or mention `$run-go-sdk-generator` in a prompt. See [Codex skills](https://developers.openai.com/codex/skills).
Cursor
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent cursor
Native alternative: copy skill directories into `.cursor/skills/` or `.agents/skills/` for the project, or `~/.cursor/skills/` for personal use. Select a skill with `/` in Agent chat. See [Cursor skills](https://cursor.com/docs/context/skills).
GitHub Copilot
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent github-copilot
Native alternative: copy directories into `.github/skills/` or `.agents/skills/` for project use. Copilot CLI also supports personal skills in `~/.copilot/skills/`. IDE and cloud availability depend on the Copilot surface; see [GitHub's skill documentation](https://docs.github.com/en/copilot/concepts/agents/about-agent-skills).
Gemini CLI
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent gemini-cli
Native alternative for a local checkout:
gemini skills install ./.agents/skills/run-go-sdk-generator --scope workspace
Gemini discovers `.gemini/skills/` and `.agents/skills/`; use `/skills list` and `/skills reload` in a session. See [Gemini CLI skills](https://geminicli.com/docs/cli/skills/).
OpenClaw
npx skills add https://github.com/ARM-software/go-sdk-generator --skill '*' --agent openclaw
Native alternative: copy complete directories into `/skills/` or `~/.openclaw/skills/`. For package-managed skills, add `/etc/go-sdk-generator/.agents/skills` to `skills.load.extraDirs` in your OpenClaw configuration. This directly references the installed files. See [OpenClaw skills](https://docs.openclaw.ai/tools/skills).

For other tools, consult the Skills CLI supported agents and the tool's own discovery documentation. Native plugin installation is not advertised here because this project distributes standard skill directories.

Consuming packaged skills

DEB/RPM packages install the complete .agents/skills/ collection into /etc/go-sdk-generator/.agents/skills without touching user settings. APK retains explicit entries for the three generated tool SKILL.md files as a workaround for the nfpm tree-packaging issue; extra skills or resources require explicit APK entries. You can use installed skills offline, with an already-installed agent or Skills CLI. See the local installation commands.

For Codex, explicitly link one installed skill into the personal discovery directory:

mkdir -p "$HOME/.agents/skills"
ln -s "/etc/go-sdk-generator/.agents/skills/run-go-sdk-generator" "$HOME/.agents/skills/run-go-sdk-generator"

For Claude Code, use $HOME/.claude/skills instead. These commands deliberately do not overwrite an existing skill. Repeat for other desired skills. Links follow software package upgrades; remove dangling links after uninstalling the package. Agents running in a container need access to the package directory inside that container.

For OpenClaw, a direct source avoids copying:

{"skills": {"load": {"extraDirs": ["/etc/go-sdk-generator/.agents/skills"]}}}

Use the matching native setup above for other agents. A copied skill needs refreshing after a package upgrade; a linked or configured directory uses the package-owned files directly.

Skill scope

Record the intended audience in the standard frontmatter metadata map:

metadata:
  scope: "tool"

This is a project convention inside the Agent Skills specification's extensible, string-valued metadata map. It is not a new top-level frontmatter requirement. Existing or externally authored skills without it remain valid and appear as unspecified in the catalogue.

Scope is informational for now: it does not filter discovery, installation, validation, embedding or packaging. DEB/RPM include every skill under .agents/skills/; APK uses the explicit file entries in .goreleaser.yml. A future distribution policy can use this classification without conflating handwritten tool guidance with contributor-only skills.

Validation and maintenance

The same deterministic checks run locally and through the shared validation action. The action supports optional path (default .) and install (default true) inputs. It validates the caller's repository, including skills added by its maintainers.

This repository maintains the validation action, Python script and requirements by hand. Its skills workflow is also handwritten to exercise the local action and generated-project fixtures. Shared templates always emit the remote action reference; they do not reproduce these repository-specific customizations.

Install Python 3.11+, Go and Node.js 22.20+, then from the repository root:

go install github.com/coolapso/agent-skills-validator@v0.2.0
python -m pip install -r actions/validate-skills/requirements.txt
python actions/validate-skills/validate_skills.py
python actions/validate-skills/validate_skills.py --install

A local skill collection can also be checked with python actions/validate-skills/validate_skills.py /path/to/skills --install.

The release configuration in pyproject.toml has TAG_LATEST = true, sourced from tag_latest: true in generate.yml. CDS creates or moves latest when publishing a new stable release; beta and development releases do not advance it. Generated projects use ARM-software/go-sdk-generator/actions/validate-skills@latest, so the first release containing this action must be published before those remote references resolve.

Ensure Go's binary directory is on PATH. The installation checks use a pinned Skills CLI, temporary homes and projects, and disable telemetry. They check the complete collection and each individual skill, compare all installed assets, and never execute skill scripts.

The validator checks the Agent Skills specification, including metadata types and names. The small orchestration script adds discovery, duplicate-name checks, local Markdown resource containment and installation fidelity because the validator does not cover these. It discovers additional maintainer-authored skills automatically. Specification errors, missing resources and installation failures block CI. Length recommendations remain warnings; no LLM scoring or external link availability check gates distribution. The project's existing secret detection remains responsible for credentials.

Keep SKILL.md frontmatter first. Use continuous-delivery-scripts>=4.8.2 when updating copyright headers: this release excludes SKILL.md. Other bundled files retain their appropriate licence notices.

Author descriptions that say what the skill does and when to use it. Keep the main instructions focused (under 500 lines and approximately 5,000 tokens is recommended); place details in references/, scripts in scripts/, and examples or templates in assets/. Bundle required resources within each skill and use relative links. Do not require sibling skills or files from the original checkout after installation. Commit scripts with executable permissions when they are meant to be run directly.

Add handwritten skills and their supporting files under .agents/skills/; DEB/RPM pick up the whole collection. Maintain the APK skill-file list explicitly while its tree-packaging workaround is needed. Do not add package hooks that modify users' home directories.

Embedded skills in the generator

If you already have Go SDK Generator installed, run this from a target project:

go-sdk-generator agent --init

This installs its three embedded install, usage and GitHub Action skills into .agents/skills/ without network access or Node.js. Re-running after upgrading the binary refreshes those files and overwrites matching local copies. For additional handwritten skills, including manifest authoring, use the full repository or DEB/RPM package collection. metadata.scope does not currently select which skills are embedded.

See Embedded Agent Skills for the source-to-binary lifecycle, the purpose of generator/skills/, overwrite rules, and how to rebuild and verify agent --init after changing a skill.

Discoverability and registries

Keep the Git repository canonical, with valid, uniquely named skills under .agents/skills/. Verify discovery using npx skills add https://github.com/ARM-software/go-sdk-generator --list. Public repositories can be installed through Skills CLI and discovered through Skills.sh; indexing and ranking are platform-controlled and are not guaranteed by validation.

ClawHub, SkillsMP, OpenClaw Skills Hub, Skills Hub, and MyClaw Skills have their own submission, indexing and publishing policies. These portable directories provide a foundation for future publishing without marketplace-specific copies. No automatic marketplace publishing or synthetic installation telemetry is part of this project.