Generative-AI-for-beginners-dotnet: Skill for Claude Code

.github/skills/git-workflow/SKILL.md

git-workflow is a skill for Claude Code, Codex from microsoft/Generative-AI-for-beginners-dotnet. It costs 16 tokens per session (1,557 once invoked), scanned C, a copy of git-workflow, MIT.

A Git workflow for Squad, a project that uses separate branches for released code, integration work, and early previews.

In plain words
What is it for?
Use it to create an issue branch from dev, mark the issue in progress, open a draft pull request, test and commit changes, then publish preview or released packages through the appropriate branch.
Why use it?
It explains where new work starts, how issue branches must be named, and where pull requests should go. This reduces mistakes when sharing changes with the team.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is microsoft/Generative-AI-for-beginners-dotnet's own configuration. It tells Claude Code and Codex how to work on Generative-AI-for-beginners-dotnet itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Generative-AI-for-beginners-dotnet configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add ../squad-195 -b squad/195-fix-stamp-bug origin/dev.

About the project

Generative AI for Beginners .NET is a hands-on course that teaches .NET developers to build applications using generative AI models and related tools. Its lessons use practical samples covering scenarios such as chat, audio transcription, agents, and local AI. The catalogue entries are add-ons associated with the course repository.

microsoft/Generative-AI-for-beginners-dotnet · 3,136 stars · on GitHub · aka.ms

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/Generative-AI-for-beginners-dotnet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/Generative-AI-for-beginners-dotnet/main/.github/skills/git-workflow/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/Generative-AI-for-beginners-dotnet

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow/github.svg)](https://agentmods.dev/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow)
Your own site
<a href="https://agentmods.dev/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow"><img src="https://agentmods.dev/badge/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow"><img src="https://agentmods.dev/badge/skills/microsoft/generative-ai-for-beginners-dotnet/git-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,557 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01557
Opus 5.5 $0.00006 $0.00623
Sonnet 5.5 $0.00003 $0.00311
Haiku 4.5 $0.00002 $0.00156

Measured 1mo ago against content hash 0591afc3b9be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

git-workflow scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

If a worktree was deleted manually (rm -rf), `git worktree prune` recovers the state.
Origin

This is a copy

100% identical to git-workflow — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/skills/git-workflow/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context

Squad uses a three-branch model. All feature work starts from dev, not main.

Branch Purpose Publishes
main Released, tagged, in-npm code only npm publish on tag
dev Integration branch — all feature work lands here npm publish --tag preview on merge
insiders Early-access channel — synced from dev npm publish --tag insiders on sync

Branch Naming Convention

Issue branches MUST use: squad/{issue-number}-{kebab-case-slug}

Examples:

  • squad/195-fix-version-stamp-bug
  • squad/42-add-profile-api

Workflow for Issue Work

  1. Branch from dev:

    git checkout dev
    git pull origin dev
    git checkout -b squad/{issue-number}-{slug}
    
  2. Mark issue in-progress:

    gh issue edit {number} --add-label "status:in-progress"
    
  3. Create draft PR targeting dev:

    gh pr create --base dev --title "{description}" --body "Closes #{issue-number}" --draft
    
  4. Do the work. Make changes, write tests, commit with issue reference.

  5. Push and mark ready:

    git push -u origin squad/{issue-number}-{slug}
    gh pr ready
    
  6. After merge to dev:

    git checkout dev
    git pull origin dev
    git branch -d squad/{issue-number}-{slug}
    git push origin --delete squad/{issue-number}-{slug}
    

Parallel Multi-Issue Work (Worktrees)

When the coordinator routes multiple issues simultaneously (e.g., "fix bugs X, Y, and Z"), use git worktree to give each agent an isolated working directory. No filesystem collisions, no branch-switching overhead.

When to Use Worktrees vs Sequential

Scenario Strategy
Single issue Standard workflow above — no worktree needed
2+ simultaneous issues in same repo Worktrees — one per issue
Work spanning multiple repos Separate clones as siblings (see Multi-Repo below)

Setup

From the main clone (must be on dev or any branch):

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 205 lines · 16 tokens per session scan C 0591afc3b9be

Subscribe to this mod's changes

git-workflow is a skill published in the GitHub repository microsoft/Generative-AI-for-beginners-dotnet (3,136 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 1,557 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to git-workflow, differing in 0 lines, and is treated as a copy.