define-profiles — команда для Claude Code: профили аудиторий
Команда define-profiles для Claude Code описывает схемы профилей аудитории, источники данных и требования к активации. Задача — персонализация по нескольким каналам.
Apache-2.0 ★ 450 обновлён 2026-04-03
.claude/commands/define-profiles.mdЧто делает define-profiles
Команда проходит от целей программы и целевых аудиторий к атрибутам профиля, логике сегментов и способам активации. На выходе — схема профиля с типами атрибутов, источниками и заметками о приватности, документы с правилами включения и исключения, а также чек-лист для каналов и инструментов.
План сохраняется в .claude/plans и включает зависимости, обработку ошибок и метрики успеха. В работе могут участвовать personalization-architect, customer-data-engineer и скилл decision-trees. Если согласие на обработку данных или соответствие требованиям блокирует работу, команда предусматривает эскалацию; такие вопросы нужно решить до активации профилей.
Для настройки укажите инициативу и каналы; метрики, ограничения и сроки можно добавить отдельно. Команда также описывает источники данных, правила согласия и частоту обновления атрибутов.
Какие задачи решает
- описать атрибуты и источники данных профиля аудитории
- задать логику включения и исключения для сегментов
- связать профили с каналами и требованиями к активации
- зафиксировать зависимости, согласования и метрики в плане
Примеры запросов агенту
- Определи профили для инициативы «Онбординг PLG» в каналах веб, внутри приложения и электронной почты.
- Составь схему атрибутов аудитории, укажи источники данных и правила согласия.
- Подготовь план активации профилей для веба и электронной почты с учётом ограничений по приватности.
Как установить define-profiles
Вручную: положить файлы
.claude/commands/define-profiles.mdВызов — /define-profiles. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/define-profiles.mdВызов — /prompts:define-profiles. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/define-profiles.prompt.mdВручную: положить файлы
.gemini/commands/define-profiles.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о define-profiles
Как установить define-profiles в Claude Code?
Сохраните файл команды в проекте по пути .claude/commands/define-profiles.md. После этого вызовите её командой /personalization-engine:define-profiles.
Что делает define-profiles?
Команда описывает профили аудиторий: их атрибуты, источники данных, правила сегментации и активацию по каналам. Результаты включают схему профиля, логику включения и исключения и план в .claude/plans.
Какие данные нужно задать для define-profiles?
Укажите инициативу и каналы. Метрики, ограничения и сроки можно передать как дополнительные параметры.
Исходный текст
define-profiles.md · Apache-2.0
--- name: define-profiles description: Produces audience profile schemas, data sources, and activation requirements for personalization programs. usage: /personalization-engine:define-profiles --initiative "PLG Onboarding" --channels "web,in-app,email" --- # Command: define-profiles ## Inputs - **initiative** – program or campaign name anchoring the personalization effort. - **channels** – comma-separated channels to activate (web, in-app, email, ads, sales). - **metrics** – optional KPIs (activation rate, pipeline $, retention). - **constraints** – optional compliance, consent, or tooling notes. - **timeline** – optional delivery window. ### GTM Agents Pattern & Plan Checklist > Mirrors GTM Agents orchestrator blueprint @puerto/plugins/orchestrator/README.md#112-325. - **Pattern selection**: Profile definition typically runs **diamond** (objective intake ↔ attribute inventory in parallel, reconverging into activation/governance) or **pipeline** when sequential; document pattern choice in plan header. - **Plan schema**: Save `.claude/plans/plan-<timestamp>.json` capturing initiative, data sources, dependency graph (data eng, legal, privacy), error handling, and success metrics (attribute coverage %, consent integrity, activation lift). - **Tool hooks**: Reference `docs/gtm-essentials.md` stack—Serena for schema diffs, Context7 for privacy/compliance docs, Sequential Thinking for governance reviews, Playwright for consent/opt-in flow QA if needed. - **Guardrails**: Default retry limit = 2 for data pulls or consent checks; escalation ladder = Personalization Architect → Data Privacy Lead → Exec sponsor. - **Review**: Run `docs/usage-guide.md#orchestration-best-practices-puerto-parity` before finalizing to confirm dependencies + approvals. ## Workflow 1. **Objective Intake** – clarify business goals, target personas, lifecycle stages. 2. **Attribute Inventory** – list required fields, source systems, refresh cadence, and consent rules. 3. **Profile Definition** – outline segments, eligibility logic, scoring, decay windows. 4. **Activation Mapping** – document downstream systems, API/webhook needs, fallback states. 5. **Governance Plan** – assign owners, QA cadences, and change management checkpoints. ## Outputs - Profile schema deck/table (attributes, types, source, SLA, privacy notes). - Eligibility + suppression logic doc for each profile. - Activation checklist linking profiles to channels and tooling. - Plan JSON entry stored/updated in `.claude/plans` for audit trail. ## Agent/Skill Invocations - `personalization-architect` – leads objectives + profile design. - `customer-data-engineer` – validates data feasibility. - `decision-trees` skill – ensures logic structures align with downstream rules. ## GTM Agents Safeguards - **Fallback agents**: document substitutes (e.g., Customer Data Engineer covering Architect) when leads unavailable. - **Escalation triggers**: escalate if consent/compliance blockers occur twice or attribute coverage misses SLA; log remediation in plan JSON. - **Plan maintenance**: update plan JSON/change log when attributes, data sources, or governance cadences change. ---
© gtmagents · Apache-2.0 · gtmagents/gtm-agents