set-repo-managed

set-repo-managed is a skill for Claude Code from christian289/dotnet-with-claudecode. It costs 102 tokens per session (406 once invoked), scanned A, original, MIT.

A configuration helper that controls whether a WPF knowledge server may forcibly reset its local Git clone during refresh.

In plain words
What is it for?
Use it to set the server's managed flag and avoid accidentally losing local changes during repository refreshes.
Why use it?
It helps choose between automatic synchronization for a dedicated clone and non-destructive updates for a working repository.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the wpf-dev-pack plugin — 28 skills, 10 agents, 4 hooks, 2 MCP servers shipped together

Good fit Use it to set the server's managed flag and avoid accidentally losing local changes during repository refreshes.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add christian289/dotnet-with-claudecode
Claude Code
/plugin install wpf-dev-pack

Made for: Claude Code.

Or install wpf-dev-pack, the plugin that ships this one along with the rest of its 28 skills, 10 agents, 4 hooks, 2 MCP servers.

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 set-repo-managed

README.md
[![agentmods](https://agentmods.dev/badge/skills/christian289/dotnet-with-claudecode/set-repo-managed/github.svg)](https://agentmods.dev/skills/christian289/dotnet-with-claudecode/set-repo-managed)
Your own site
<a href="https://agentmods.dev/skills/christian289/dotnet-with-claudecode/set-repo-managed"><img src="https://agentmods.dev/badge/skills/christian289/dotnet-with-claudecode/set-repo-managed/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 set-repo-managed

Your own site · 80×15
<a href="https://agentmods.dev/skills/christian289/dotnet-with-claudecode/set-repo-managed"><img src="https://agentmods.dev/badge/skills/christian289/dotnet-with-claudecode/set-repo-managed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00102 $0.00406
Opus 5.5 $0.00041 $0.00162
Sonnet 5.5 $0.00020 $0.00081
Haiku 4.5 $0.00010 $0.00041

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

Security

Grade A, and why

set-repo-managed scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

wpf-dev-pack/skills/set-repo-managed/SKILL.md · 26 lines

What it actually says

Set WpfDevPackMcp Managed Flag

Sets Managed in ~/.wpf-dev-pack-mcp/state.json (preserving LastPullUtc). This flag decides how the server refreshes the clone at repoPath.

If $0 is empty, use AskUserQuestion to ask for true or false. Do NOT proceed until a value is provided.

dotnet "${CLAUDE_PLUGIN_ROOT}/scripts/SetWpfDevPackManaged.cs" "$0"

What it controls (mcp/Git/RepoRefresher.cs):

  • true — on refresh the server runs git fetch + git reset --hard origin/<branch> on repoPath. Use ONLY for a dedicated clone the server created/owns. Never set true when repoPath is your active working repo — a refresh will discard uncommitted changes and reset the branch to origin/<branch>, destroying local work.
  • false — refresh is non-destructive: git pull --ff-only when the tree is clean, skip when dirty. Use when repoPath points at your own working clone.

Surface the output verbatim. Inspect the current flag with /wpf-dev-pack:show-wpf-dev-pack-config.

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 · 26 lines · 102 tokens per session scan A 27944a32279c

Subscribe to this mod's changes

set-repo-managed is a skill published in the GitHub repository christian289/dotnet-with-claudecode (41 stars, last pushed 2mo ago), licensed MIT. It adds 102 tokens to every session and 406 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

lightningcad

Use when doing architectural facade panel layout and detailing in AutoCAD, ZWCAD or GstarCAD — panel numbering, shop drawing generation, material optimization. LightningCAD: building envelope detailing plugin for AutoCAD/ZWCAD/GstarCAD.

znlgis/opengis-skills · 52 tokens

reogrid

Use when embedding an Excel-like spreadsheet control in .NET WinForms/WPF applications — formula engine, cell editing, clipboard, undo/redo. ReoGrid: .NET spreadsheet component with NPOI-based Excel read/write.

znlgis/opengis-skills · 50 tokens

mapsui

Use when embedding interactive 2D maps in .NET desktop (WinForms/WPF) or mobile (MAUI) applications — tile layers, vector features, map controls. Mapsui: cross-platform .NET map component library.

znlgis/opengis-skills · 49 tokens

date-formatter

Converts dates between formats and handles timezone differences.

Azure/azure-sdk-for-net · 13 tokens

semantic-kernel

Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building…

managedcode/dotnet-skills · 116 tokens

winforms

Build, maintain, or modernize Windows Forms applications with practical guidance on designer-driven UI, event handling, data binding, MVP separation, and migration to modern .NET. USE FOR: working on Windows Forms UI, event-driven workflows, or classic LOB applications; migrating WinForms from .NET Framework to modern…

managedcode/dotnet-skills · 122 tokens