reskill

GitHub

通过审计并提取团队代理章程和历史中的重复模式,将其转化为可复用的技能文件,同时精简章程与历史记录体积,以降低上下文消耗。

.squad/templates/skills/reskill/SKILL.md microsoft/Generative-AI-for-beginners-dotnet

Trigger Scenarios

收到 'team, reskill' 指令 怀疑章程或历史膨胀需要优化

Install

npx skills add microsoft/Generative-AI-for-beginners-dotnet --skill reskill -g -y
More Options

Non-standard path

npx skills add https://github.com/microsoft/Generative-AI-for-beginners-dotnet/tree/main/.squad/templates/skills/reskill -g -y

Use without installing

npx skills use microsoft/Generative-AI-for-beginners-dotnet@reskill

指定 Agent (Claude Code)

npx skills add microsoft/Generative-AI-for-beginners-dotnet --skill reskill -a claude-code -g -y

安装 repo 全部 skill

npx skills add microsoft/Generative-AI-for-beginners-dotnet --all -g -y

预览 repo 内 skill

npx skills add microsoft/Generative-AI-for-beginners-dotnet --list

SKILL.md

Frontmatter
{
    "name": "reskill",
    "domain": "team-optimization",
    "source": "manual — Brady directive to reduce per-agent context overhead",
    "confidence": "high",
    "description": "Team-wide charter and history optimization through skill extraction"
}

Context

When the coordinator hears "team, reskill" (or similar: "optimize context", "slim down charters"), trigger a team-wide optimization pass. The goal: reduce per-agent context consumption by extracting shared patterns from charters and histories into reusable skills.

This is a periodic maintenance activity. Run whenever charter/history bloat is suspected.

Process

Step 1: Audit

Read all agent charters and histories. Measure byte sizes. Identify:

  • Boilerplate — sections repeated across ≥3 charters with <10% variation (collaboration, model, boundaries template)
  • Shared knowledge — domain knowledge duplicated in 2+ charters (incident postmortems, technical patterns)
  • Mature learnings — history entries appearing 3+ times across agents that should be promoted to skills

Step 2: Extract

For each identified pattern:

  1. Create or update a skill at .squad/skills/{skill-name}/SKILL.md
  2. Follow the skill template format (frontmatter + Context + Patterns + Examples + Anti-Patterns)
  3. Set confidence: low (first observation), medium (2+ agents), high (team-wide)

Step 3: Trim

Charters — target ≤1.5KB per agent:

  • Remove Collaboration section entirely (spawn prompt + agent-collaboration skill covers it)
  • Remove Voice section (tagline blockquote at top of charter already captures it)
  • Trim Model section to single line: Preferred: {model}
  • Remove "When I'm unsure" boilerplate from Boundaries
  • Remove domain knowledge now covered by a skill — add skill reference comment if helpful
  • Keep: Identity, What I Own, unique How I Work patterns, Boundaries (domain list only)

Histories — target ≤8KB per agent:

  • Apply history-hygiene skill to any history >12KB
  • Promote recurring patterns (3+ occurrences across agents) to skills
  • Summarize old entries into ## Core Context section
  • Remove session-specific metadata (dates, branch names, requester names)

Step 4: Report

Output a savings table:

Agent Charter Before Charter After History Before History After Saved

Include totals and percentage reduction.

Patterns

Minimal Charter Template (target format after reskill)

# {Name} — {Role}

> {Tagline — one sentence capturing voice and philosophy}

## Identity
- **Name:** {Name}
- **Role:** {Role}
- **Expertise:** {comma-separated list}

## What I Own
- {bullet list of owned artifacts/domains}

## How I Work
- {unique patterns and principles — NOT boilerplate}

## Boundaries
**I handle:** {domain list}
**I don't handle:** {explicit exclusions}

## Model
Preferred: {model}

Skill Extraction Threshold

  • 1 charter → leave in charter (unique to that agent)
  • 2 charters → consider extracting if >500 bytes of overlap
  • 3+ charters → always extract to a shared skill

Anti-Patterns

  • Don't delete unique per-agent identity or domain-specific knowledge
  • Don't create skills for content only one agent uses
  • Don't merge unrelated patterns into a single mega-skill
  • Don't remove Model preference line (coordinator needs it for model selection)
  • Don't touch .squad/decisions.md during reskill
  • Don't remove the tagline blockquote — it's the charter's soul in one line

Version History

  • bd4e082 Current 2026-08-20 14:06

Same Skill Collection

.github/skills/agent-collaboration/SKILL.md
.github/skills/coordinator-init-mode/SKILL.md
.github/skills/coordinator-response-mode/SKILL.md
.github/skills/coordinator-source-of-truth/SKILL.md
.github/skills/cross-squad-communication/SKILL.md
.github/skills/cross-squad/SKILL.md
.github/skills/error-recovery/SKILL.md
.github/skills/git-workflow/SKILL.md
.github/skills/iterative-retrieval/SKILL.md
.github/skills/reflect/SKILL.md
.github/skills/reviewer-protocol/SKILL.md
.github/skills/secret-handling/SKILL.md
.github/skills/session-recovery/SKILL.md
.github/skills/squad-conventions/SKILL.md
.github/skills/squad-help/SKILL.md
.github/skills/squad-version-check/SKILL.md
.github/skills/squad/SKILL.md
.github/skills/tiered-memory/SKILL.md
.squad/templates/skills/agent-collaboration/SKILL.md
.squad/templates/skills/agent-conduct/SKILL.md
.squad/templates/skills/architectural-proposals/SKILL.md
.squad/templates/skills/ci-validation-gates/SKILL.md
.squad/templates/skills/client-compatibility/SKILL.md
.squad/templates/skills/coordinator-init-mode/SKILL.md
.squad/templates/skills/coordinator-response-mode/SKILL.md
.squad/templates/skills/coordinator-source-of-truth/SKILL.md
.squad/templates/skills/cross-machine-coordination/SKILL.md
.squad/templates/skills/cross-squad-communication/SKILL.md
.squad/templates/skills/cross-squad/SKILL.md
.squad/templates/skills/distributed-mesh/SKILL.md
.squad/templates/skills/docs-standards/SKILL.md
.squad/templates/skills/e2e-template-testing/SKILL.md
.squad/templates/skills/economy-mode/SKILL.md
.squad/templates/skills/error-recovery/SKILL.md
.squad/templates/skills/external-comms/SKILL.md
.squad/templates/skills/fact-checking/SKILL.md
.squad/templates/skills/gh-auth-isolation/SKILL.md
.squad/templates/skills/git-workflow/SKILL.md
.squad/templates/skills/github-multi-account/SKILL.md
.squad/templates/skills/history-hygiene/SKILL.md
.squad/templates/skills/humanizer/SKILL.md
.squad/templates/skills/init-mode/SKILL.md
.squad/templates/skills/iterative-retrieval/SKILL.md
.squad/templates/skills/model-selection/SKILL.md
.squad/templates/skills/nap/SKILL.md
.squad/templates/skills/notification-routing/SKILL.md
.squad/templates/skills/personal-squad/SKILL.md
.squad/templates/skills/pr-review-response/SKILL.md
.squad/templates/skills/pr-screenshots/SKILL.md
.squad/templates/skills/ralph-two-pass-scan/SKILL.md

Metadata

Files
0
Version
bd4e082
Hash
40df857c
Indexed
2026-08-20 14:06

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 09:12
浙ICP备14020137号-1 $방문자$