azure/codegen
Generate code from TypeSpec via tsp-client (update, sync, generate). Requires a tsp-location.yaml in the current working directory. Supports updating the commit hash before running.
npx skills add https://github.com/Azure/azure-sdk-for-java --skill codegen
Use this skill to run tsp-client workflows for projects that include a tsp-location.yaml file.
tsp-location.yaml.If the user provides a commit hash, update the commit: field in tsp-location.yaml before running tsp-client.
commit: line.commit: 6267b6...commit: <new_hash>tsp-client updatePull the latest codegen tooling or definitions (default action when the user is vague).
tsp-client update
tsp-client syncFetch/sync TypeSpec inputs for the project.
tsp-client sync
tsp-client generateGenerate code from TypeSpec inputs.
tsp-client generate
Keep the synced TypeSpec inputs:
tsp-client generate --save-inputs
tsp-location.yaml exists in the current directory. If not, stop and ask for the correct location.commit: value in tsp-location.yaml.tsp-client update.tsp-client sync.tsp-client generate (use --save-inputs only if the user asks to keep inputs).tsp-client generate.tsp-client update.TempTypeSpecFiles folder and the user wants code generation, run tsp-client generate (with --save-inputs if requested).tsp-location.yaml. Build a GitHub URL from repo: and directory: (and include the commit: as the ref), e.g.:Azure/azure-rest-api-specs6267b6...specification/cognitiveservices/OpenAI.Inferencehttps://github.com/Azure/azure-rest-api-specs/tree/6267b6.../specification/cognitiveservices/OpenAI.InferenceTake azure/codegen from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.