history — команда Claude Code: изучить прошлые попытки
Команда history для исследования исторических попыток решить задачу: что пробовали раньше, что сработало, какие ошибки повторять не стоит. Помогает избежать повторения ошибок и учиться на опыте.
MIT ★ 1 988 обновлён 2026-04-01
/plugin marketplace add glittercowboy/taches-cc-resources
/plugin install taches-cc-resources@taches-cc-resourcesЧто делает history
История показывает, что решал Claude раньше — внутри проекта и во внешних примерах. Команда задаёт несколько уточняющих вопросов: какую историю искать (отраслевые попытки, внутренние проекты, научные исследования), как далеко смотреть (1–2 года назад, 3–5 лет или дольше), что учить (почему не вышло, что сработало, что изменилось).
После этого исследует попытки, документирует для каждой, что пробовали, что получилось и что сломалось. Извлекает паттерны успеха и ошибок, объясняет, что отличается сейчас. Результат сохраняется в artifacts/research/ с датой и названием темы.
Приходит с готовыми шаблонами для анализа: стратегическое резюме, список попыток с разбором причин, общие паттерны, что можно делать и чего избежать, открытые вопросы. Каждый пункт — конкретный факт или вывод, не размывающие фразы.
Какие задачи решает
- найти, что уже пробовали решить эту задачу в прошлых проектах
- разобраться, почему предыдущие попытки не сработали
- выделить, какие подходы удались и стоит повторить
- понять, что изменилось с тех пор и применимо ли это теперь
Примеры запросов агенту
- Какие попытки были в истории синхронизации данных в реальном времени?
- Исследуй историю миграции с монолита на микросервисы в нашей компании
- Что пробовали для аутентификации OAuth, и почему отказались?
Как установить history
1Через маркетплейс плагинов
/plugin marketplace add glittercowboy/taches-cc-resources/plugin install taches-cc-resources@taches-cc-resources2Вручную: положить файлы
.claude/commands/history.mdВызов — /history. Для всех проектов — ~/.claude/commands/
Вручную: положить файлы
~/.codex/prompts/history.mdВызов — /prompts:history. В Codex этот формат помечен устаревшим, замена — скиллы
Вручную: положить файлы
.github/prompts/history.prompt.mdВручную: положить файлы
.gemini/commands/history.tomlGemini хранит команды в TOML: текст запроса — в поле prompt
Вопросы о history
Как установить history в Claude Code?
Выполни /plugin marketplace add glittercowboy/taches-cc-resources, затем /plugin install taches-cc-resources@taches-cc-resources. Команда будет доступна через .claude/commands/history.md.
Что делает history?
Исследует исторические попытки решить задачу или подход. Задаёт вопросы о масштабе, временной глубине и фокусе, затем ищет прошлые примеры, анализирует, что в них сработало и не сработало, извлекает уроки для текущего проекта.
Куда history сохраняет результаты?
В директорию artifacts/research/ с именем файла в формате YYYY-MM-DD-[тема]-history.md. Если директории нет, история создаёт её.
Исходный текст
history.md · MIT
--- description: Research what's been tried before - past attempts, lessons learned argument-hint: [problem/approach or leave blank for current context] --- <objective> Research historical attempts at $ARGUMENTS (or the current topic if no arguments provided). Find what's been tried before - internally and externally - and extract lessons to avoid repeating mistakes. </objective> <intake_gate> <context_analysis> First, analyze $ARGUMENTS to extract what's already provided: - The problem/approach to investigate - Known past attempts - How far back to look - Internal vs external focus Only ask about genuine gaps - don't re-ask what's already stated. </context_analysis> <initial_questions> Use AskUserQuestion to ask 2-4 questions based on actual gaps: **If scope unclear:** - "What kind of history?" with options: Industry attempts, Internal past projects, Academic/research, All of the above, Other **If timeframe unclear:** - "How far back?" with options: Recent (1-2 years), Medium (3-5 years), Long (5+ years), All time, Other **If focus unclear:** - "What do you want to learn?" with options: Why things failed, Success patterns, What's changed since then, All of the above, Other **If context unclear:** - "Any known past attempts?" with options: Yes (I'll list them), No (find them), Some internal knowledge, Other Skip questions where $ARGUMENTS already provides the answer. </initial_questions> <decision_gate> After receiving answers, use AskUserQuestion: Question: "Ready to research history, or would you like me to ask more questions?" Options: 1. **Start research** - I have enough context 2. **Ask more questions** - There are details to clarify 3. **Let me add context** - I want to provide additional information If "Ask more questions" → generate 2-3 contextual follow-ups, then present decision gate again If "Let me add context" → receive input, then present decision gate again If "Start research" → proceed to research </decision_gate> </intake_gate> <process> After intake complete: 1. Define what problem/approach we're investigating 2. Find past attempts (internal projects, industry examples, academic) 3. For each attempt, document: - What they tried - What worked - What failed and why - What's different now 4. Extract patterns and lessons 5. Identify what to adopt and what to avoid </process> <output_format> ## History Research: [Problem/Approach] ### Strategic Summary [2-3 sentences: key historical pattern, main lesson, what's different now] ### What we're investigating [The problem or approach we want to learn from] ### Past Attempts **[Attempt 1: Name/Company/Project]** - **When:** [Timeframe] - **What they tried:** [Approach] - **What worked:** [Successes] - **What failed:** [Failures and root causes] - **Why:** [Analysis of success/failure factors] **[Attempt 2: Name/Company/Project]** [Same structure...] **[Attempt 3: Name/Company/Project]** [Same structure...] ### Patterns **Common success factors:** - [Factor that correlates with success] - [Factor that correlates with success] **Common failure modes:** - [Why things typically fail] - [Why things typically fail] ### What's Different Now - [Technology/market/context change]: [implication] - [Technology/market/context change]: [implication] ### Lessons to Apply **Do:** - [Lesson to adopt] - [Lesson to adopt] **Don't:** - [Mistake to avoid] - [Mistake to avoid] **Open question:** [What we still don't know from history] ### Implementation Context <claude_context> <adopt> - patterns: [successful patterns to follow] - approaches: [technical approaches that worked] - validations: [things to validate early based on past failures] </adopt> <avoid> - antipatterns: [approaches that failed repeatedly] - assumptions: [false assumptions that caused failures] - shortcuts: [shortcuts that backfired] </avoid> <changed> - now_possible: [things that are feasible now but weren't before] - still_hard: [things that remain challenging] - new_risks: [new risks that didn't exist before] </changed> </claude_context> **Next Action:** Apply lessons to planning, research specific aspect deeper, or validate key assumptions ### Sources - [Source name]: [URL] - [date accessed] - [Source name]: [URL] - [date accessed] </output_format> <artifact_output> Save the research to a file: 1. Create directory structure if it doesn't exist: - `[current-working-directory]/artifacts/research/` 2. Generate filename from topic: - Get current date in YYYY-MM-DD format - Slugify the topic (lowercase, hyphens for spaces) - Format: `YYYY-MM-DD-[topic]-history.md` - Example: `2025-01-15-real-time-sync-history.md` 3. Write the complete research to the file 4. Report to user: "Saved to `artifacts/research/[filename]`" </artifact_output> <success_criteria> - Past attempts are relevant (similar problem/context) - Failure analysis goes to root cause (not surface) - Lessons are actionable (not just "be careful") - Acknowledges what's changed since then - Implementation context gives Claude specific patterns to adopt/avoid - Informs current approach concretely - Output saved to artifacts/research/ directory </success_criteria>
© Lex Christopherson · MIT · glittercowboy/taches-cc-resources