Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

specialization-loader

БесплатноБез исполняемых скриптовНе проверен

Compose technology-specific agent identity and patterns. Invoke before spawning agents (Developer, SSE, QA, Tech Lead, RE, Investigator) to enhance expertise…

mehdicот mehdic★ 23 звезды на GitHub11 установок в других каталогах

Об этом скилле

Specialization Loader Skill

You are the specialization-loader skill. You compose technology-specific identity and pattern guidance for agents based on detected project stack, with per-model token budgeting and version-aware adaptation.

When to Invoke This Skill

  • Before spawning Developer, SSE, QA Expert, Tech Lead, Requirements Engineer, or Investigator
  • When task_group has assigned specializations (non-empty array)
  • After reading project_context.json (created by Tech Stack Scout)

Do NOT invoke when:

  • specializations array is empty or null
  • skills_config.json has specializations.enabled = false

Handle gracefully (with defaults):

  • No project_context.json exists → skip version guards, use generic patterns

Your Task

Step 1: Parse Input Context

Primary source: The orchestrator provides context as text before invoking you.

Fallback source: If text parsing fails AND session_id is known, read from session-specific JSON:

# SECURITY: Only read from session-specific path - NEVER use wildcard for session directory
# The session_id MUST be provided in orchestrator context text first
if [ -n "$SESSION_ID" ]; then
  CONTEXT_FILE="bazinga/artifacts/${SESSION_ID}/skills/spec_ctx_${GROUP_ID}_${AGENT_TYPE}.json"
  if [ -f "$CONTEXT_FILE" ]; then
    cat "$CONTEXT_FILE"
  fi
fi

🔴 SECURITY: Never use wildcard (*) for session directory path. This prevents cross-session data leakage.

Extract from either source:

Session ID: {session_id}         # REQUIRED for database save
Group ID: {group_id}             # REQUIRED for database save
Agent Type: {developer|senior_software_engineer|qa_expert|tech_lead|requirements_engineer|investigator}
Model: {haiku|sonnet|opus}
Specialization Paths: {JSON array of template paths}
Testing Mode: {full|minimal|disabled}  # Orchestrator-provided, defaults to "full" if not specified
Context File: {path to JSON file}  # Optional, for reference

🔴 CRITICAL: If session_id cannot be extracted from either source, output error and stop:

ERROR: session_id not found in context. Cannot save skill output to database.
Please ensure orchestrator provides session_id in text or creates context file.

Testing Mode Source Priority:

  1. Use orchestrator-provided Testing Mode field (preferred)
  2. If not provided, default to "full"

Do NOT parse testing_config.json - the orchestrator is the source of truth for testing_mode.

Step 2: Read Project Context (with Fallback Detection)

Step 2a: Try reading cached project context

cat bazinga/project_context.json

Step 2b: If file missing → Run inline fallback detection

If project_context.json doesn't exist, detect versions from common config files:

# TypeScript/Node version
cat package.json 2>/dev/null | grep -E '"typescript"|"node"' || true

# Python version
cat pyproject.toml 2>/dev/null | grep -E 'python|requires-python' || true
cat .python-version 2>/dev/null || true

# Go version
cat go.mod 2>/dev/null | head -3 || true

# Java version
cat pom.xml 2>/dev/null | grep -E '<java.version>|<maven.compiler' || true
cat build.gradle 2>/dev/null | grep -E 'sourceCompatibility|targetCompatibility' || true

Parse detected versions into a temporary context:

detected_versions = {
  "typescript": "5.x" (from package.json),
  "node": "20.x" (from package.json engines),
  "python": "3.11" (from pyproject.toml),
  ...
}

Step 2c: Extract for version guards

  • primary_language and version (from project_context OR fallback detection)
  • components[].framework and version
  • components[].type (frontend/backend/fullstack)

Fallback priority: project_context.json > inline detection > conservative defaults (no version guards)

Step 3: Determine Token Budget

Per-model token limits:

Model Soft Limit Hard Limit
haiku 900 1350
sonnet 1800 2700
opus 2400 3600

Default to sonnet limits if model not specified.

Step 3.5: Filter by Agent Compatibility

For each template path, check frontmatter compatible_with array:

  • If agent_type is in compatible_with: include template
  • If agent_type NOT in compatible_with: skip template
  • If compatible_with is empty/missing: include by default

This ensures QA agents get testing patterns, not implementation patterns. Tech Leads get review patterns, Investigators get debugging patterns, etc.

Step 3.6: Auto-Augment Role Defaults (Dynamic QA/TL Templates)

After filtering by compatibility, if filtered_templates is empty or missing role-specific guidance, auto-add role defaults.

Gating conditions:

  1. agent_type is in augmentation table below
  2. Template file exists at path (verified via Glob/Read)
  3. For qa_expert only: testing_mode == "full" (from orchestrator context, defaults to "full")
    • Tech Lead and Requirements Engineer augment regardless of testing_mode ("always" condition)

**Role De

Полный SKILL.md на GitHub

Установить specialization-loader в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Bash

FAQ

Что делает скилл specialization-loader?

Compose technology-specific agent identity and patterns. Invoke before spawning agents (Developer, SSE, QA, Tech Lead, RE, Investigator) to enhance expertise based on project stack. Returns composed specialization block with token budgeting.

Как установить скилл specialization-loader?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл specialization-loader запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить specialization-loader с