一键导入
motif-analyze
Run Motif — your AI coding companion. Use when the user mentions "motif" in any context. Covers vibe reports, live dashboard, and AI personalization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Motif — your AI coding companion. Use when the user mentions "motif" in any context. Covers vibe reports, live dashboard, and AI personalization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Run Motif — your AI coding companion. Use when the user mentions "motif" in any context. Covers vibe reports, live dashboard, and AI personalization.
Run Motif to generate your vibe report, launch the live dashboard, or personalize your CLAUDE.md and skills. Use when the user says "motif", "run motif", "vibe report", "generate my report", "motif live", "start the dashboard", "analyze my coding patterns", "personalize my AI", "generate rules for me", or "motif analyze".
Systematic approach to fixing bugs reported via pasted logs. Prevents the agent from making broad changes that introduce regressions when only a targeted fix is needed. [GENERATED BY MOTIF — review and customize]
Standardized deployment workflow for this specific project's infrastructure. Prevents deployment failures from skipped steps or wrong order. [GENERATED BY MOTIF — review and customize]
Workflow for creating Unity tools and features that can be tested in isolation. Prevents untestable features in a multiplayer context. [GENERATED BY MOTIF — review and customize]
Ensures the agent is oriented on the current project state before taking action. Prevents the agent from working with stale context or making assumptions about project status. [GENERATED BY MOTIF — review and customize]
基于 SOC 职业分类
| name | motif-analyze |
| description | Run Motif — your AI coding companion. Use when the user mentions "motif" in any context. Covers vibe reports, live dashboard, and AI personalization. |
Your AI coding companion. Discover how you work with AI — generate your vibe report, track your output live, or personalize your agent config.
Any mention of "motif" by the user should trigger this skill. Examples:
Run in terminal:
motif --version
If the command is not found, fall back to python -m motif --version. If that also fails, tell the user to install: pip install motif-cli
Use whichever invocation worked (motif or python -m motif) for all subsequent commands in this session.
Next, check for updates:
motif update
If an update is available, the command will prompt the user to upgrade. Let the user decide — don't auto-upgrade. If they decline, continue with the current version. If they upgrade, run motif setup to refresh installed skill files and slash commands, then re-verify with motif --version before proceeding.
Ask the user what they'd like to do BEFORE extracting or running anything else. Extraction can take a while, and some paths (Live Dashboard) don't need it at all.
Routing rules:
Present these options:
| Option | Description |
|---|---|
| Vibe Report | Generate your Agentic Coding Assessment — a shareable HTML report |
| Live Dashboard | Launch real-time AI productivity tracking in your terminal |
| Personalize AI | Analyze your patterns → update CLAUDE.md & generate skill files |
How to present the options (platform-dependent):
Cursor: Use the AskQuestion tool:
Title: "What would you like to do?"
Questions: [{
id: "action",
prompt: "Choose a Motif feature:",
options: [
{ id: "vibe_report", label: "Vibe Report — your Agentic Coding Assessment (shareable HTML)" },
{ id: "live_dashboard", label: "Live Dashboard — real-time AI productivity tracking" },
{ id: "personalize", label: "Personalize AI — discover patterns, update CLAUDE.md & generate skills" }
]
}]
Claude Code / other agents: Present the options as a numbered list in your response and ask the user to pick one. Wait for their reply before continuing.
Based on the user's choice, follow the corresponding path below.
vibe_report)The key output of Motif — a self-contained HTML assessment of how you work with AI.
What the CLI computes automatically: Hero stats, agent concurrency, autonomy ratio, output density, growth scorecard, project constellation, and personality (frustration detection, catchphrases, swear counts via regex/heuristics).
What you (the agent) add: Qualitative analysis that makes the report personal — archetype, superpowers, communication style, growth narrative, notable moments, and blind spots. This requires reading a prepared data payload and producing a focused JSON.
Tell the user: "Extracting your conversation history — scanning Cursor and Claude Code data..."
motif extract all
Error: If no conversations found -> "You need some Cursor/Claude Code conversation history first. Use your AI assistant for a while and try again."
Run the analysis pipeline in vibe-report mode. This strips system noise, applies a 200k token budget, and splits output into multiple agent-friendly files:
motif analyze --prepare --mode vibe-report
The command prints paths to the prepared files: an instructions file and one or more data batch files (~20k tokens each). Read the instructions file first — it contains the analysis prompt, session index, and synthesis instructions.
If 0 scoped messages or fewer than 10 user messages: Skip qualitative analysis -- proceed directly to A4 and generate the report without it. Tell the user: "Not enough conversation history for qualitative analysis. Your report will include all quantitative metrics. Come back after more conversations for the full experience."
Tell the user: "Reading your conversations and running qualitative analysis — this takes about a minute."
The instructions file contains the analysis prompt with the JSON schema, assessment frameworks, and guidelines. The data batch files contain conversation sessions.
In Cursor: Delegate each data batch to a subagent (fast model). Pass the analysis instructions from the instructions file along with one batch file. Each subagent reads its batch and returns structured observations (notable quotes, archetype signals, superpower evidence, blind spot evidence, questioning behavior examples, communication style patterns). Then synthesize all observations into the final JSON following the schema in the instructions.
In Claude Code: Read each data batch sequentially, taking notes on the same observation categories. Then synthesize into the final JSON.
Save the JSON to ~/.motif/analysis/vibe-report-analysis-{YYYY-MM-DD}-{HHMM}.json (include hours and minutes to avoid same-day collisions).
Tell the user: "Generating your vibe report — computing metrics and building HTML..."
The vibe report uses all extracted projects by default -- no project selection needed.
Get the user's name: Run git config user.name. If it returns empty or looks like a machine name, ask the user for their preferred name. Fall back to "Vibe Coder" if they decline.
Build the command based on what's available:
# With qualitative analysis (recommended)
motif vibe-report --name "User Name" --analysis <path_to_analysis_json>
# Without qualitative analysis (quantitative only)
motif vibe-report --name "User Name"
The command outputs the path to the HTML file. Tell the user:
Done. No further steps needed for this path.
live_dashboard)The real-time AI productivity tracker. No analysis needed — just launch it.
Tell the user:
motif live # Full TUI dashboard
motif live --compact # Single-line compact display
motif live --summary # Quick summary of current session
Explain:
~/.motif/sessions/ with personal bests trackedDone. No further steps needed for this path.
personalize)The full analysis flow — discover coding patterns and generate personalized CLAUDE.md rules and skill files.
motif extract all
Error: If no conversations found -> "You need some Cursor/Claude Code conversation history first. Use your AI assistant for a while and try again."
Run motif list:
motif list
Determine the current workspace name (last component of the workspace path — e.g., if workspace is c:\Users\avivs\Documents\steam_page_analyst, the name is "steam_page_analyst").
Present project options to the user:
Build the list as follows:
motif list outputmotif list output (skip "unknown" — that's a data artifact)How to present (platform-dependent):
AskQuestion tool with the options aboveIf the user already specified a project, skip asking.
Run motif status to check for existing artifacts:
motif status --project <chosen_project>
Parse the output to determine:
If a previous analysis exists, ask the user whether they want to:
How to present (platform-dependent):
AskQuestion toolIf no previous analysis exists, proceed directly to C4.
Based on the project choice:
For a specific project:
motif analyze --prepare --project <name>
For all projects combined:
motif analyze --prepare
The command prints the path to the prepared output file. Read that file using the Read tool.
Error: If prepared file is very large -> "The analysis data is very large. Running with a smaller budget: motif analyze --prepare --budget 40000"
Warning: If fewer than 20 user messages -> "Limited data available. Analysis may be thin. Consider accumulating more conversation history."
If 0 scoped messages: "No conversation history found for [project]. Use your AI assistant in this workspace for a while first, then try again."
The prepared output file contains:
--- and ## Analysis Instructions)Follow those analysis instructions carefully. They tell you what patterns to look for:
After producing the analysis JSON, save it to a standardized location:
~/.motif/analysis/analysis-{safe_project}-{YYYY-MM-DD}.json
Where {safe_project} uses alphanumeric, hyphens, underscores — replace everything else with _.
Present in this format. Lead with context — the user may not know what Motif is.
I ran a Motif analysis on your [N] conversations ([M] user messages) and here's what I found:
## Summary
- [X] skills to add (recurring workflows I can automate)
- [Y] rules to add to CLAUDE.md (preferences and constraints)
- [Z] improvement areas (things that keep going wrong)
## Fun facts about your coding style
- [1-3 interesting observations from communication_style or project_context.
E.g., "You use structured numbered lists for feedback 80% of the time"
or "You've referenced [entity] in 40% of your conversations"]
## Recommended Rules
For each rule, explain:
**1. [rule name]**
What it does: [enforces description]
Why you need it: [evidence — quote the user's own words when possible, cite frequency]
## Recommended Skills
For each skill:
**1. [skill name]** (triggered by: "[trigger phrase]", [frequency])
Steps: [3-5 step outline]
Evidence: [what conversations showed this pattern]
## Communication Style Profile
- Brevity: [description]
- Feedback pattern: [description]
- Correction style: [description]
- Proactivity expectation: [description]
## Improvement Areas
For each:
- Problem: [description]
- Evidence: [what keeps going wrong]
- Proposed fix: [rule or skill that would prevent it]
---
Should I generate your skills and update your CLAUDE.md?
Critical: End with the question. Do NOT auto-generate. Let the user confirm.
Before generating skills from scratch, search for high-quality existing skills that match the discovered patterns.
For each skill identified in the analysis:
Search trusted repositories using web search or WebFetch:
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/Evaluate matches:
Record search results — found match: "adapt from {source}", no match: "generate from scratch"
Skip this step if: the user explicitly asks to skip, or if web search tools are unavailable.
When the user approves, generate two things:
Motif never writes to the user's CLAUDE.md. The
--applyflag only deploys skill files. For CLAUDE.md, you (the agent) propose edits to the user's existing file. The generated reference is at~/.motif/generated/CLAUDE.md.
If CLAUDE.md exists:
~/.motif/generated/CLAUDE.md## Motif-Discovered Rules — only rules the existing file doesn't already cover## Communication Style — if not already present## Workflow Triggers — add table entries for new skill files<!-- Added by Motif -- review and customize -->If CLAUDE.md does NOT exist:
<!-- Generated by Motif -- review and customize -->Do NOT create .cursorrules — Cursor reads CLAUDE.md, so one file is sufficient.
Read the quality bar first: Read motif/exemplars/QUALITY_BAR.md to understand structural requirements.
Read 1-2 exemplar skills from motif/exemplars/ to calibrate quality. Good exemplars:
motif/exemplars/brainstorming.md — for procedural workflow skillsmotif/exemplars/systematic-debugging.md — for debugging/investigation skillsmotif/exemplars/react-patterns.md — for reference/patterns catalog skillsFor each approved skill:
In Cursor: Launch up to 4 subagents in parallel (fast model), one per skill. In Claude Code / other agents: Generate skill files sequentially.
Skill file requirements:
<!-- Generated by Motif -- review and customize -->Deployment paths (handled by motif rules --apply):
~/.cursor/skills/{skill-name}/SKILL.md, Project-scoped → .cursor/skills/{skill-name}/SKILL.md~/.claude/commands/{skill-name}.md, Project-scoped → .claude/commands/{skill-name}.md (YAML frontmatter is stripped automatically)If deploying manually (without --apply), write to the correct paths for the user's platform.
| Situation | Response |
|---|---|
| motif not installed | Give install instructions: pip install motif-cli, then use motif |
| No conversations found | "You need some Cursor/Claude Code conversation history first. Use your AI assistant for a while and try again." |
| Many batch files generated | "Data split across many batch files — delegate each to a subagent for parallel analysis." |
| Fewer than 20 user messages | "Limited data available. Analysis may be thin. Consider accumulating more conversation history." |
| Web search unavailable | Skip search step, generate all skills from scratch using exemplars as quality reference |
motif rules --apply only deploys skill files. The generated CLAUDE.md at ~/.motif/generated/ is a reference only.~/.motif/analysis/.AskQuestion in Cursor, or present a numbered list and wait in Claude Code / other agents.