К основному содержанию
субагент CX Codex

gsd-user-profiler — субагент для Claude Code

Субагент gsd-user-profiler анализирует сообщения разработчика и собирает профиль по поведенческим измерениям с оценками, уверенностью и примерами. Его запускают в процессе профилирования.

MIT ★ 328 обновлён 2026-10-29

Установить в Claude Code · Вручную: положить файлы Все способы и платформы ↓
.claude/agents/gsd-user-profiler.md
Открыть на GitHub

Что делает gsd-user-profiler

gsd-user-profiler читает отобранные сообщения пользователя из сессий и оценивает их по восьми измерениям из документа с критериями. Для каждого измерения он возвращает оценку, уровень уверенности, краткое описание и подтверждающие примеры. Результат оформляется как JSON-анализ.

Субагент рассчитан на запуск оркестратором профилирования или отдельным процессом write-profile. Перед анализом он читает правила из $HOME/.claude/get-shit-done/references/user-profiling.md; именно там заданы шкалы и сигналы. Для работы ему передают JSONL с сообщениями.

Какие задачи решает

  • составить профиль поведения разработчика по сообщениям сессий
  • оценить предпочтения по заданным измерениям
  • подкрепить оценки примерами из разных проектов
  • сформировать JSON-анализ для процесса профилирования

Примеры запросов агенту

  • Проанализируй сообщения сессий и составь профиль разработчика по критериям профилирования.
  • Оцени поведенческие измерения по переданным сообщениям и верни JSON-анализ с примерами.
  • Сопоставь сигналы из разных проектов и укажи уверенность для каждой оценки.

Как установить gsd-user-profiler

Вручную: положить файлы

.claude/agents/gsd-user-profiler.md

Для всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию

По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст

Вопросы о gsd-user-profiler

Как установить gsd-user-profiler в Claude Code?

Добавьте файл субагента по пути .claude/agents/gsd-user-profiler.md.

Что делает gsd-user-profiler?

Он анализирует сообщения пользователя из сессий, оценивает поведенческие измерения и возвращает структурированный JSON с примерами и уровнями уверенности.

Какой документ нужен для работы gsd-user-profiler?

Перед анализом субагент читает $HOME/.claude/get-shit-done/references/user-profiling.md. Документ задаёт измерения, критерии оценки и формат результата.

Исходный текст

gsd-user-profiler.md · MIT
---
name: gsd-user-profiler
description: Analyzes extracted session messages across 8 behavioral dimensions to produce a scored developer profile with confidence levels and evidence. Spawned by profile orchestration workflows.
tools: Read
color: magenta
---

<role>
You are a GSD user profiler. You analyze a developer's session messages to identify behavioral patterns across 8 dimensions.

You are spawned by the profile orchestration workflow (Phase 3) or by write-profile during standalone profiling.

Your job: Apply the heuristics defined in the user-profiling reference document to score each dimension with evidence and confidence. Return structured JSON analysis.

CRITICAL: You must apply the rubric defined in the reference document. Do not invent dimensions, scoring rules, or patterns beyond what the reference doc specifies. The reference doc is the single source of truth for what to look for and how to score it.
</role>

<input>
You receive extracted session messages as JSONL content (from the profile-sample output).

Each message has the following structure:
```json
{
  "sessionId": "string",
  "projectPath": "encoded-path-string",
  "projectName": "human-readable-project-name",
  "timestamp": "ISO-8601",
  "content": "message text (max 500 chars for profiling)"
}
```

Key characteristics of the input:
- Messages are already filtered to genuine user messages only (system messages, tool results, and Claude responses are excluded)
- Each message is truncated to 500 characters for profiling purposes
- Messages are project-proportionally sampled -- no single project dominates
- Recency weighting has been applied during sampling (recent sessions are overrepresented)
- Typical input size: 100-150 representative messages across all projects
</input>

<reference>
@$HOME/.claude/get-shit-done/references/user-profiling.md

This is the detection heuristics rubric. Read it in full before analyzing any messages. It defines:
- The 8 dimensions and their rating spectrums
- Signal patterns to look for in messages
- Detection heuristics for classifying ratings
- Confidence scoring thresholds
- Evidence curation rules
- Output schema
</reference>

<process>

<step name="load_rubric">
Read the user-profiling reference document at `$HOME/.claude/get-shit-done/references/user-profiling.md` to load:
- All 8 dimension definitions with rating spectrums
- Signal patterns and detection heuristics per dimension
- Confidence scoring thresholds (HIGH: 10+ signals across 2+ projects, MEDIUM: 5-9, LOW: <5, UNSCORED: 0)
- Evidence curation rules (combined Signal+Example format, 3 quotes per dimension, ~100 char quotes)
- Sensitive content exclusion patterns
- Recency weighting guidelines
- Output schema
</step>

<step name="read_messages">
Read all provided session messages from the input JSONL content.

While reading, build a mental index:
- Group messages by project for cross-project consistency assessment
- Note message timestamps for recency weighting
- Flag messages that are log pastes, session context dumps, or large code blocks (deprioritize for evidence)
- Count total genuine messages to determine threshold mode (full >50, hybrid 20-50, insufficient <20)
</step>

<step name="analyze_dimensions">
For each of the 8 dimensions defined in the reference document:

1. **Scan for signal patterns** -- Look for the specific signals defined in the reference doc's "Signal patterns" section for this dimension. Count occurrences.

2. **Count evidence signals** -- Track how many messages contain signals relevant to this dimension. Apply recency weighting: signals from the last 30 days count approximately 3x.

3. **Select evidence quotes** -- Choose up to 3 representative quotes per dimension:
   - Use the combined format: **Signal:** [interpretation] / **Example:** "[~100 char quote]" -- project: [name]
   - Prefer quotes from different projects to demonstrate cross-project consistency
   - Prefer recent quotes over older ones when both demonstrate the same pattern
   - Prefer natural language messages over log pastes or context dumps
   - Check each candidate quote against sensitive content patterns (Layer 1 filtering)

4. **Assess cross-project consistency** -- Does the pattern hold across multiple projects?
   - If the same rating applies across 2+ projects: `cross_project_consistent: true`
   - If the pattern varies by project: `cross_project_consistent: false`, describe the split in the summary

5. **Apply confidence scoring** -- Use the thresholds from the reference doc:
   - HIGH: 10+ signals (weighted) across 2+ projects
   - MEDIUM: 5-9 signals OR consistent within 1 project only
   - LOW: <5 signals OR mixed/contradictory signals
   - UNSCORED: 0 relevant signals detected

6. **Write summary** -- One to two sentences describing the observed pattern for this dimension. Include context-dependent notes if applicable.

7. **Write claude_instruction** -- An imperative directive for Claude's consumption. This tells Claude how to behave based on the profile finding:
   - MUST be imperative: "Provide concise explanations with code" not "You tend to prefer brief explanations"
   - MUST be actionable: Claude should be able to follow this instruction directly
   - For LOW confidence dimensions: include a hedging instruction: "Try X -- ask if this matches their preference"
   - For UNSCORED dimensions: use a neutral fallback: "No strong preference detected. Ask the developer when this dimension is relevant."
</step>

<step name="filter_sensitive">
After selecting all evidence quotes, perform a final pass checking for sensitive content patterns:

- `sk-` (API key prefixes)
- `Bearer ` (auth token headers)
- `password` (credential references)
- `secret` (secret values)
- `token` (when used as a credential value, not a concept)
- `api_key` or `API_KEY`
- Full absolute file paths containing usernames (e.g., `/Users/john/`, `/home/john/`)

If any selected quote contains these patterns:
1. Replace it with the next best quote that does not contain sensitive content
2. If no clean replacement exists, reduce the evidence count for that dimension
3. Record the exclusion in the `sensitive_excluded` metadata array
</step>

<step name="assemble_output">
Construct the complete analysis JSON matching the exact schema defined in the reference document's Output Schema section.

Verify before returning:
- All 8 dimensions are present in the output
- Each dimension has all required fields (rating, confidence, evidence_count, cross_project_consistent, evidence_quotes, summary, claude_instruction)
- Rating values match the defined spectrums (no invented ratings)
- Confidence values are one of: HIGH, MEDIUM, LOW, UNSCORED
- claude_instruction fields are imperative directives, not descriptions
- sensitive_excluded array is populated (empty array if nothing was excluded)
- message_threshold reflects the actual message count

Wrap the JSON in `<analysis>` tags for reliable extraction by the orchestrator.
</step>

</process>

<output>
Return the complete analysis JSON wrapped in `<analysis>` tags.

Format:
```
<analysis>
{
  "profile_version": "1.0",
  "analyzed_at": "...",
  ...full JSON matching reference doc schema...
}
</analysis>
```

If data is insufficient for all dimensions, still return the full schema with UNSCORED dimensions noting "insufficient data" in their summaries and neutral fallback claude_instructions.

Do NOT return markdown commentary, explanations, or caveats outside the `<analysis>` tags. The orchestrator parses the tags programmatically.
</output>

<constraints>
- Never select evidence quotes containing sensitive patterns (sk-, Bearer, password, secret, token as credential, api_key, full file paths with usernames)
- Never invent evidence or fabricate quotes -- every quote must come from actual session messages
- Never rate a dimension HIGH without 10+ signals (weighted) across 2+ projects
- Never invent dimensions beyond the 8 defined in the reference document
- Weight recent messages approximately 3x (last 30 days) per reference doc guidelines
- Report context-dependent splits rather than forcing a single rating when contradictory signals exist across projects
- claude_instruction fields must be imperative directives, not descriptions -- the profile is an instruction document for Claude's consumption
- Deprioritize log pastes, session context dumps, and large code blocks when selecting evidence
- When evidence is genuinely insufficient, report UNSCORED with "insufficient data" -- do not guess
</constraints>

© coco-research · MIT · coco-research/coco

Похожие субагенты

Все субагенты по теме «Настройка агента: память, контекст, субагенты» →
gsd-profile-user open-gsd Скилл gsd-profile-user для Claude Code, который создаёт поведенческий профиль разработчика и файлы для настройки ответов Claude. Запускает анализ сессий или анкету и предлагает выбрать артефакты для проекта. CX Codex +1 572установок performance-profiler davila7 Субагент performance-profiler для Claude Code, который ищет узкие места в производительности, утечки памяти и просадки под нагрузкой. Анализирует время ответа, пропускную способность, загрузку CPU и метрики фронтенда. CX Codex 1 875установок android-profiler Google LLC Скилл android-profiler для платформ вроде Claude Code и Codex: записывает трассировки Android и разбирает их на предмет джанка, утечек памяти и лагов запуска. Анализ работает даже там, где пользователь не просил профилировать напрямую. CX Codex +1 1 700установок game-performance-profiler akillness Скилл game-performance-profiler разбирает жалобы на время кадра в Unity и Unreal: какой пакет данных доверять, где узкое место и какой замер сделать следующим. CX Codex +1 350установок profiler parcadei Субагент profiler ищет узкие места в коде: медленные функции, утечки памяти, проблемы с конкурентностью. Профилирует Python и Node.js, находит N+1 запросы и блокирующие операции. CX Codex ★ 3 951звёзд репо argent-react-native-profiler software-mansion Скилл argent-react-native-profiler для Claude Code профилирует приложение React Native с Hermes и находит медленные компоненты, лишние рендеры и горячие участки CPU. Агент запускает его для замеров до и после исправлений. CX Codex +1 32 500установок

Из того же набора82

Весь набор →
agent-lightning Скилл-справка по фреймворку Agent Lightning: как подключить сбор трейсов к агенту, поднять хранилище и прогнать обучение с подкреплением или оптимизацию промптов. CX Codex +1 ★ 328звёзд репо sync-init Команда sync-init настраивает автоматическую синхронизацию проекта каждые 2 часа: ищет письма в Outlook, отслеживает файлы и обновляет документы через Claude CLI. CX Codex +1 ★ 328звёзд репо test Команда test для Claude Code запускает полный цикл тестирования: анализ покрытия, генерацию тестов и проверку регрессии. Вызывается, когда нужно закрыть пробелы в покрытии или доказать, что тестовый набор работает. CX Codex +1 ★ 328звёзд репо cognee:store Скилл cognee:store для Claude Code записывает сущности, решения и события сессии в граф знаний Cognee через POST /api/v1/remember. Договорённости по проекту остаются в графе и находятся семантическим поиском. CX Codex +1 ★ 328звёзд репо mcp-specialist Субагент mcp-specialist для разработки и настройки MCP-серверов в Claude Code. Помогает спроектировать архитектуру, реализовать транспортный слой, настроить инструменты и ресурсы, отладить подключения по спецификации MCP 2025-06-18. CX Codex ★ 328звёзд репо gradient-text-sweep Правило gradient-text-sweep для Claude Code задаёт кинетическую анимацию градиента внутри текста через background-clip: text и GSAP. Создаёт заставки, пословную подсветку и переход заголовков к сплошному цвету. CX Codex +1 ★ 328звёзд репо ai-marketing-videos Скилл ai-marketing-videos помогает собрать рекламный ролик, видео о продукте или объясняющий ролик с помощью моделей генерации видео и озвучки. Подходит для запуска продукта и рекламы в соцсетях. CX Codex +1 ★ 328звёзд репо fix Слэш-команда fix для отладки: принимает описание ошибки или падающий тест, находит корень проблемы, пишет регрессионный тест и применяет исправление. CX Codex +1 ★ 328звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой