chronicle-workflow
Complete workflow for tracking development work with Chronicle - session recording, git tracking, AI summarization, and Obsidian documentation. Works with CLI commands (portable) or MCP tools (faster). Use when starting a new development session, setting up project tracking, or when user wants comprehensive session management.
What this skill does
# Chronicle Workflow
This skill guides you through the complete Chronicle workflow for tracking and documenting development work. Primarily uses CLI commands for portability, with optional MCP tools for faster programmatic access.
## Auto-Activation
> **This skill auto-activates!** (Milestone #13)
>
> Prompts like "start a new session" or "is this tracked?" automatically trigger this skill. No manual loading needed!
>
> **Trigger patterns:** start session, is this tracked, chronicle workflow, setup
> **See:** `docs/HOOKS.md` for full details
## When to Use This Skill
Use this skill when:
- User is starting a new development session
- Setting up Chronicle for the first time
- Want to ensure all work is being tracked
- Need guidance on Chronicle best practices
- Building a comprehensive development knowledge base
## Complete Workflow
### 1. Session Start (If Not Already Tracking)
**Check if in Chronicle session:**
- Current session is likely NOT being tracked unless started with `chronicle start claude`
- To track current work, user must exit and restart with Chronicle
**Guide user:**
```bash
# Exit current session
exit
# Start new Chronicle-tracked session
chronicle start claude
# Or for other tools:
chronicle start gemini
```
**Important:** Chronicle sessions must be started explicitly - they don't auto-track.
### 2. During Development
**Best Practices:**
- Work naturally - Chronicle captures everything automatically
- Make frequent git commits with descriptive messages
- Chronicle links commits to sessions automatically (ยฑ30 min window)
**Available Commands (don't interrupt work to run these):**
```bash
chronicle sessions # List recent sessions
chronicle show today # See today's commits
chronicle timeline today # Combined view
```
### 3. Session End
**Automatic on Exit:**
- Full transcript captured to `~/.ai-session/sessions/session_N.log`
- Metadata saved (duration, timestamp, repo)
- Session record created in database
**What happens:**
```
๐ Session #{id} complete! Duration: {minutes} minutes
๐พ Full transcript saved
โจ Use 'chronicle session {id}' to view
```
### 4. Post-Session Documentation
**Generate Summary (Automatic on first view):**
```bash
# View session and auto-generate summary
chronicle session {id}
# For very large sessions (>50K lines)
chronicle summarize-chunked {id}
```
**Document to Obsidian:**
Use the `chronicle-session-documenter` skill or manually:
```
"Document session {id} to my Obsidian vault"
```
### 5. Retrieval & Context
**Find Past Work:**
Use the `chronicle-context-retriever` skill:
```
"How did I implement authentication last time?"
"What was the blocker with database migrations?"
"Show me all work on the API refactor"
```
**Browse Sessions (CLI):**
```bash
# Filter by repo
chronicle sessions --repo /path/to/project
# View timeline
chronicle timeline week
# Search sessions
chronicle search "authentication" --limit 5
```
**Browse Sessions (MCP - if available):**
```python
# Faster programmatic access
sessions = mcp__chronicle__get_sessions(repo_path="/path/to/project", limit=20)
results = mcp__chronicle__search_sessions(query="authentication", limit=5)
```
## Workflow Patterns
### Pattern 1: Quick Feature Work
```
1. chronicle start claude
2. [Make changes, commit]
3. exit
4. [Summary auto-generates on next view]
```
### Pattern 2: Multi-Session Project
```
1. chronicle start claude (Day 1)
2. [Work, commit]
3. exit
4. Document to Obsidian
5. chronicle start claude (Day 2)
6. "What did I do yesterday?" (retrieves context)
7. [Continue work]
```
### Pattern 3: Research & Context
```
1. "Show me all sessions about X" (context retriever)
2. Review past approaches and decisions
3. chronicle start claude
4. [Implement with informed approach]
```
## Multi-Project Tracking
**Automatic Detection:**
- Sessions detect working directory and git repo
- Stored in database for filtering
**Filter by Project:**
```bash
chronicle sessions --repo /path/to/project
chronicle timeline today --repo /path/to/project
chronicle summarize today --repo /path/to/project
```
## Key Features to Highlight
### Chunked Summarization
- Handles sessions of **unlimited size**
- Tested with 83,000+ line sessions
- Uses rolling summaries (10,000 lines/chunk)
- No rate limit issues
### Obsidian Integration
- Full MCP server integration
- Create structured session notes
- Search past work
- Build knowledge graph
- Wikilinks between sessions/commits/repos
### Local-First
- Everything stored locally (`~/.ai-session/`)
- SQLite database
- No data leaves your machine (except AI summarization)
## Common Questions
**Q: "Is this session being tracked?"**
A: Only if started with `chronicle start claude`. Must be explicit.
**Q: "Can I track a session retroactively?"**
A: No - must start with Chronicle from the beginning.
**Q: "How do I see what I did yesterday?"**
A: Use `chronicle timeline yesterday` or search Obsidian vault
**Q: "How do I link commits to sessions?"**
A: Automatic! Commits within ยฑ30 minutes of session are linked.
## Database Location
All data stored at:
```
~/.ai-session/
โโโ sessions.db # Main database
โโโ sessions/
โ โโโ session_N.log # Transcripts
โ โโโ session_N.meta # Metadata
โโโ config.yaml # Configuration
```
## Pro Tips
1. **Start Chronicle early** - Can't retroactively track
2. **Commit frequently** - Better session-commit linking
3. **Document important sessions** - Build knowledge base in Obsidian
4. **Search before building** - Use context retriever to avoid repeating work
5. **Use tags in Obsidian** - Makes finding past work easier
6. **Review summaries** - Helps remember key decisions
## Integration with Other Skills
- Use `chronicle-session-documenter` after completing sessions
- Use `chronicle-context-retriever` when starting related work
- Combine with git workflows for comprehensive tracking
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.