Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

workflow-mastery掌握工作流程

Agent Skill

workflow-mastery 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

494

周安装

21

GitHub Stars

315

下载量

173
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:workflow-mastery(掌握工作流程)
来源仓库:https://github.com/codewithmukesh/dotnet-claude-kit
仓库路径:skills/workflow-mastery
安装命令:
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill workflow-mastery
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill workflow-mastery

简介

用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 支持基于关键词、任务场景或来源线索进行信息筛选,适用于掌握工作流程场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限与维护状态。
  • 安装前建议核实是否会触发联网、命令执行或文件读写操作。
  • 可结合原始 README 进一步了解具体用法和功能边界。

SKILL.md

Workflow Mastery for.NET

Core Principles

  1. Parallel over sequential — Run 3-5 Claude sessions simultaneously using git worktrees. Build a feature in one, fix a bug in another, run tests in a third. The single biggest productivity unlock.
  2. Plan then execute — For any non-trivial task, start in plan mode, iterate until the plan is bulletproof, then switch to auto-accept. A good plan means Claude 1-shots the implementation.
  3. Verification closes the loop — Give Claude a way to prove its work: dotnet build, dotnet test, get_diagnostics via MCP. This single practice 2-3x the quality of the output.
  4. Automate the repetitive — If you do it more than once a day, make it a hook, a slash command, or a subagent. Pre-allow safe permissions. Eliminate friction.
  5. Compound your knowledge — Every correction becomes a rule in MEMORY.md (see self-correction-loop skill). Every PR review adds a learning. Over time, Claude's mistake rate drops because your project's knowledge base grows.

Patterns

Parallel Sessions with Git Worktrees

The biggest productivity multiplier. Each worktree gets its own Claude session, its own files, zero conflicts.

# Create worktrees for parallel work
git worktree add ../my-project-feature origin/main
git worktree add ../my-project-bugfix origin/main
git worktree add ../my-project-tests origin/main

# Start Claude in each (separate terminal tabs)
cd ../my-project-feature && claude
cd ../my-project-bugfix && claude
cd ../my-project-tests && claude

Practical.NET workflow:

WorktreeTaskClaude Session
featureBuild new endpoint + handlerMain development
bugfixFix the failing CI testAutonomous bug fix
testsWrite integration tests for existing featureTest generation
analysisQuery the Roslyn MCP, read logs, review architectureRead-only research

Tips:

  • Name your terminal tabs by task so you never lose track
  • Use shell aliases (alias zf='cd../my-project-feature') for one-keystroke switching
  • Enable terminal notifications so you know when a session needs input

Auto-Format Hook for.NET

Catch formatting issues on every file write — eliminates the "CI failed on formatting" loop.

// .claude/settings.json
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "dotnet format --include \"$CLAUDE_FILE_PATH\" --no-restore 2>/dev/null || true"
          }
        ]
      }
    ]
  }
}

Why || true: The hook should never block Claude's workflow. If formatting fails (e.g., on a non-C# file), silently continue.

Pre-Allow Safe.NET Permissions

Stop clicking "allow" for every dotnet command. Add these to .claude/settings.json:

{
  "permissions": {
    "allow": [
      "Bash(dotnet build *)",
      "Bash(dotnet test *)",
      "Bash(dotnet run *)",
      "Bash(dotnet ef *)",
      "Bash(dotnet format *)",
      "Bash(dotnet restore *)",
      "Bash(dotnet pack *)",
      "Bash(dotnet tool *)"
    ]
  }
}

Check this into git so the whole team gets frictionless workflows.

Plan Mode Strategy

For any task touching 3+ files or involving architecture decisions:

Step 1: Enter plan mode (Shift+Tab twice)
Step 2: Describe the task with full context
Step 3: Iterate on the plan — challenge assumptions, ask "what about edge cases?"
Step 4: Once the plan is solid, switch to normal mode
Step 5: Claude executes with auto-accept — often 1-shots the implementation

Advanced pattern: Have one Claude write the plan, then spin up a second Claude session to review it as a staff engineer:

"Review this plan as a staff .NET engineer. Challenge every assumption.
What could go wrong? What's missing? What would you do differently?"

When things go sideways: The moment implementation deviates from the plan, STOP. Don't push through. Switch back to plan mode, understand what changed, re-plan, then resume.

Verification Loop for.NET

For the full 7-phase verification pipeline (build, diagnostics, anti-patterns, tests, security, format, diff review) with structured PASS/FAIL reporting, see the verification-loop skill.

Boris's #1 tip: "Give Claude a way to verify its work." The short version: always tell Claude to run dotnet build, dotnet test, get_diagnostics, and dotnet format --verify-no-changes before declaring done. The verification-loop skill has the complete pipeline with short-circuit rules and report templates.

Compounding Knowledge via Corrections

For the full correction capture system — detection, generalization, categorized storage, and periodic audits — see the self-correction-loop skill. The short version: after every correction, capture a generalized rule in MEMORY.md so the same mistake never recurs.

Prompting Techniques for.NET

Challenge Claude's work:

"Grill me on these changes. Would this pass a staff .NET engineer's code review?
Check for: N+1 queries, missing CancellationToken, exposed domain entities,
missing validation, incorrect service lifetimes."

Demand proof:

"Prove this works. Run the tests, show me the output.
Then diff the API response between main and this branch."

After a mediocre fix:

"Knowing everything you know now, scrap this and implement the elegant solution.
No hacks, no workarounds."

For EF Core migrations:

"Generate the migration, then show me the raw SQL it produces.
I want to verify the migration before applying it."

Subagent Patterns for.NET

Context-aware delegation: For guidance on when to use subagents to manage token budgets effectively, see the context-discipline skill.

Create reusable subagents in .claude/agents/:

<!-- .claude/agents/verify-api.md -->
You are a .NET API verification agent. Your job:
1. Run `dotnet build` and fix any compilation errors
2. Run `dotnet test` and fix any test failures
3. Use `get_diagnostics` to check for warnings
4. Verify all endpoints return proper TypedResults
5. Check that no domain entities leak into API responses
Report: PASS with summary, or FAIL with specific issues.
<!-- .claude/agents/code-simplifier.md -->
You are a code simplification agent for .NET projects.
Review the recent changes and simplify:
- Replace verbose LINQ with simpler alternatives
- Use primary constructors where applicable
- Replace manual null checks with pattern matching
- Consolidate duplicated code
- Remove unnecessary using statements
Do not change behavior. Only simplify.

Use them:

"Run the verify-api agent on my changes before I create the PR."
"Run code-simplifier on the files I just modified."

Anti-patterns

Don't Skip Plan Mode for Complex Tasks

// BAD — dive straight into a multi-file refactor
"Refactor the Orders module to use DDD with aggregates and value objects"
*Claude modifies 15 files, misses half the invariants, tangles the migration*

// GOOD — plan first, execute after
"Enter plan mode. I want to refactor the Orders module to use DDD.
Let's plan which files change, what the aggregate boundary is,
how value objects map to EF Core, and what the migration strategy is."

Don't Work in a Single Session When You Could Parallelize

// BAD — sequential work in one session
1. Build feature       (20 min)
2. Write tests         (15 min)
3. Fix formatting      (5 min)
4. Update docs         (10 min)
Total: 50 minutes

// GOOD — parallel worktrees
Worktree 1: Build feature     (20 min)
Worktree 2: Write tests       (15 min, started simultaneously)
Worktree 3: Update docs       (10 min, started simultaneously)
Total: ~20 minutes (wall clock)

Don't Accept the First Solution

// BAD — accept mediocre code
Claude: "Here's the implementation" *generic, works but not great*
You: "Looks good, ship it"

// GOOD — push for quality
Claude: "Here's the implementation"
You: "Would a staff .NET engineer approve this?
      What about the service lifetime? Is this N+1 safe?
      Is there a more elegant way using C# 14 features?"

Decision Guide

ScenarioRecommendation
Task touches 3+ filesPlan mode first
Task is a simple bug fixJust fix it, verify with dotnet test
Need to build + test + review3 parallel worktrees
CI keeps failing on formatAdd PostToolUse format hook
Tired of permission promptsPre-allow dotnet * commands
Claude made a mistake"Update CLAUDE.md so you don't make that mistake again"
Code feels hacky"Knowing everything you know now, implement the elegant solution"
Want to verify architectureSpin up a second session as staff reviewer
Repetitive PR workflowCreate a subagent (verify-api, code-simplifier)
Learning a new codebaseUse "Explanatory" output style via /config

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.89%
按下载量换算64

Claude

29.67%
按下载量换算51

Cursor

17.64%
按下载量换算31

Gemini CLI

10.31%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/codewithmukesh/dotnet-claude-kit --skill workflow-mastery 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills