Automated Development Diary

VerifiedCaution

Automates diary entry creation from Claude Code history and git commits for KStoryBridge.

Sby Skills Guide Bot
DocumentationIntermediate
7/22/2026
Claude Code
#dev-diary#changelog#git-history#automation#slack-notifications

Recommended for

Automated summary

Automates the KStoryBridge development diary by turning Claude Code session history and git commits into published daily entries.

Strengths

  • Scheduled daily generation at 4:00 AM PST via a macOS LaunchAgent, with commands to load, unload and run the script manually
  • Structured insight capture by category (decision, learning, insight, todo) directly during a session
  • Builds a full entry from real sources — Claude Code history and repo commits — plus feature screenshots
  • Rich Slack notification (date, highlight, summary, stats, web link) once the webhook is configured

Limitations

  • Tightly coupled to the KStoryBridge repo: hard-coded paths (marketing/development_diary/, ~/.claude/history.jsonl, skill scripts)
  • Automatic scheduling depends on a macOS LaunchAgent; no Linux or Windows equivalent is described
  • Slack delivery requires manual webhook setup in config.env, and no entry is produced if the history file or git repo is missing
When to use it

Use it at the end of a development session or to let the system generate and publish the daily KStoryBridge diary entry automatically.

When not to use it

Avoid it on projects other than KStoryBridge, on non-macOS systems for scheduling, or when you need a changelog independent of local Claude Code history.

Security analysis

Caution
Quality score88/100

The skill automates a personal development diary by reading local Claude history and git data, then optionally posting to Slack. These are powerful operations involving sensitive files and network transmission, but they serve a legitimate documentation purpose and do not instruct destructive actions. The lack of script review and potential for accidental data exposure warrants caution rather than a safe rating.

Findings
  • •Reads ~/.claude/history.jsonl, which may contain sensitive prompts, code, or secrets from prior sessions.
  • •Optionally sends collected data to an external Slack webhook; if the webhook is compromised or misconfigured, this could exfiltrate local information.
  • •Uses launchctl to load/unload a LaunchAgent, modifying system-level scheduling without explicit user confirmation.
  • •Executes Python scripts (collect_history.py, analyze_commits.py) that are not provided for review, so their behavior cannot be fully verified.
How this analysis is made

Examples

Generate a dated entry
/diary generate --date=2026-01-08
Log a decision mid-session
/diary add --category=decision "Chose confidence threshold of 0.7"
Screenshot a finished feature
/diary screenshot --name="quality-preview" --url=http://localhost:8081/some-page

name: diary description: Development diary automation for KStoryBridge. This skill should be used when capturing development session insights, generating daily diary entries from Claude Code history and git commits, or managing entries for the public development diary at kstorybridge.com/diary.

Development Diary Skill

Automates the creation and management of development diary entries for KStoryBridge, capturing work sessions from Claude Code history and git commits.

When to Use This Skill

  • At the end of a development session to generate a diary entry
  • During sessions to capture important insights or decisions
  • To take screenshots of completed features for the diary
  • To check diary status and recent entries

Automated Daily Generation

The diary is automatically generated daily at 4:00 AM PST for the previous day's work.

How it works:

  • A macOS LaunchAgent (com.kstorybridge.daily-diary) runs scripts/daily-diary.sh
  • Collects Claude Code history from ~/.claude/history.jsonl
  • Analyzes git commits from the KStoryBridge repo
  • Generates and publishes entry directly to marketing/development_diary/published/

Manage the schedule:

# Check if running
launchctl list | grep kstorybridge

# Stop the scheduled job
launchctl unload ~/Library/LaunchAgents/com.kstorybridge.daily-diary.plist

# Start the scheduled job
launchctl load ~/Library/LaunchAgents/com.kstorybridge.daily-diary.plist

# Run manually for a specific date
.claude/skills/diary/scripts/daily-diary.sh 2026-01-25

# View logs
tail -f marketing/development_diary/logs/daily-diary.log

Files:

  • Script: .claude/skills/diary/scripts/daily-diary.sh
  • LaunchAgent: ~/Library/LaunchAgents/com.kstorybridge.daily-diary.plist
  • Config: .claude/skills/diary/config.env
  • Logs: marketing/development_diary/logs/

Slack Notifications

When configured, the daily diary sends a rich Slack notification with:

  • Date and highlight
  • Daily summary
  • Session/commit stats
  • Link to view on web

Setup:

# Create config file from example
cp .claude/skills/diary/config.env.example .claude/skills/diary/config.env

# Edit and add your Slack webhook URL
# Get one from: https://api.slack.com/messaging/webhooks

The Slack message includes:

  • Header with date
  • Highlight of the day's work
  • Summary paragraph
  • Stats (sessions, commits, categories)
  • Button link to web view

Commands

Generate Entry

Generate a diary entry for today or a specific date.

/diary generate                    # Generate today's entry
/diary generate --date=2026-01-08  # Generate for specific date
/diary generate --screenshot       # Include screenshot capture

Add Insight

Capture an insight or decision during a session.

/diary add "insight text"
/diary add --category=decision "Chose confidence threshold of 0.7"
/diary add --category=learning "Edge function timeout at 25s for large payloads"

Categories: decision, learning, insight, todo

Capture Screenshot

Take a screenshot of current app state.

/diary screenshot                           # Auto-named
/diary screenshot --name="quality-preview"  # Custom name
/diary screenshot --url=http://localhost:8081/some-page

Manage Entries

/diary list                    # List recent entries
/diary status                  # Show today's progress

Generation Workflow

When /diary generate is invoked:

Date Determination

First, determine the target date for the entry:

  1. If user specified --date=YYYY-MM-DD: Use that date (e.g., /diary generate --date=2026-01-08 → use 2026-01-08)
  2. If no date specified: Use today's date in YYYY-MM-DD format

Store this as the TARGET_DATE to use in all subsequent steps.

Step 1: Collect Claude Code History

Run scripts/collect_history.py to parse ~/.claude/history.jsonl:

python3 .claude/skills/diary/scripts/collect_history.py --date={TARGET_DATE}

This extracts:

  • User prompts from sessions for the KStoryBridge project
  • Timestamps and session IDs
  • Groupings by session

Step 2: Analyze Git Commits

Run scripts/analyze_commits.py to get git activity:

python3 .claude/skills/diary/scripts/analyze_commits.py --date={TARGET_DATE}

This extracts:

  • Commit messages and timestamps
  • Files changed (names only, no code)
  • Lines added/deleted statistics
  • Auto-categorization based on commit messages

Step 3: Correlate and Categorize

Match prompts with commits by timestamp proximity. Categorize all activities using these keywords:

| Category | Keywords | |----------|----------| | Research | research, investigate, explore, analyze, study, compare | | Planning | plan, design, architect, structure, decide, spec | | Implementation | implement, create, add, build, develop, feature | | Bug Fix | fix, bug, issue, error, crash, resolve, debug | | Refactoring | refactor, cleanup, reorganize, simplify, improve | | Documentation | doc, document, readme, update docs | | Testing | test, e2e, playwright, unit test, coverage |

Step 4: Load Manual Insights

Check for insights added during the day via /diary add:

marketing/development_diary/drafts/.insights-{TARGET_DATE}.json

Step 5: Capture Screenshots (if --screenshot)

Use Playwright MCP to capture current app state:

mcp__plugin_playwright_playwright__browser_navigate
mcp__plugin_playwright_playwright__browser_take_screenshot

Save to: marketing/development_diary/screenshots/{TARGET_DATE}/

Step 6: Generate Entry

Use the template at marketing/development_diary/templates/daily-entry.md to generate a complete entry with:

  • YAML frontmatter (date, status, categories, etc.)
  • Daily summary (2-3 sentences)
  • Work sessions with timestamps
  • Categorized activity lists
  • Screenshots with captions
  • Statistics table
  • Tomorrow's focus section

Step 7: Publish Entry

Write directly to: marketing/development_diary/published/YYYY/MM/{TARGET_DATE}.md

Create the directory structure (published/YYYY/MM/) if it doesn't exist. Set status: published in the frontmatter.

Privacy Guidelines

DO NOT include in entries:

  • Actual code snippets
  • API keys, secrets, or credentials
  • Internal business logic details
  • User data or PII

DO include:

  • Feature names and descriptions
  • File counts and change statistics
  • High-level architectural decisions
  • Public-facing UI screenshots

Output Locations

| Type | Path | |------|------| | Published | marketing/development_diary/published/YYYY/MM/YYYY-MM-DD.md | | Screenshots | marketing/development_diary/screenshots/YYYY-MM-DD/ | | Insights | marketing/development_diary/drafts/.insights-YYYY-MM-DD.json |

Web Dashboard

  • Public: kstorybridge.com/diary
  • Admin: kstorybridge.com/marketing/diary

Example Generated Entry

---
date: 2026-01-09
status: published
author: Sung Ho Lee
session_count: 3
commit_count: 7
categories: [Implementation, Bug Fix, Documentation]
highlight: "Shipped quality assessment feature for AI design generation"
tags: [ai-design, quality, gemini]
---

# Development Diary - January 9, 2026

## Daily Summary

Focused on implementing quality assessment for AI-generated designs. Added server-side validation to catch hallucinations before returning results to users. Also fixed a background removal edge case and updated documentation.

---

## Work Sessions

### Session 1: Morning Research (8:00 AM - 10:30 AM)

**Focus:** Quality Assessment Research

Activities:
- Researched Gemini image generation hallucination patterns
- Analyzed existing design results for failure modes

**Key Prompts:**
- "Research Gemini hallucination patterns for image generation"
- "What quality checks can we add to detect bad generations?"

---

### Session 2: Implementation (11:00 AM - 3:00 PM)

**Focus:** Quality Service Implementation

Activities:
- Created quality service for assessing generated designs
- Added database migration for quality tracking
- Integrated quality checks into design generation flow

**Files Changed:** 5 files (+342/-28 lines)

---

## Categorized Work

### Implementation
- Quality service for design assessment
- Database migration for quality tracking

### Bug Fix
- Fixed background removal edge case for transparent images

### Documentation
- Updated CLAUDE.md with quality service documentation

---

## Screenshots

![Quality Preview](/marketing/development_diary/screenshots/2026-01-09/quality-preview.png)
*Quality assessment UI showing confidence scores*

---

## Insights & Learnings

> **Decision:** Chose to implement retry logic on client side rather than server to reduce Gemini API costs.

> **Learning:** Background removal API fails silently on very low contrast images.

---

## Statistics

| Metric | Value |
|--------|-------|
| Sessions | 3 |
| Commits | 7 |
| Files Changed | 12 |
| Lines Added | 487 |
| Lines Deleted | 56 |
| Primary Category | Implementation |

---

## Tomorrow's Focus

- Complete quality service integration tests
- Deploy to staging for user testing

---

*Generated with KStoryBridge Development Diary*

Related Skills

  • /deploy-staging - Often used together after implementation sessions
  • /health-check - Verify system health after deployments
  • /cost-report - Track API costs mentioned in diary entries

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/automated-development-diary-mrwak9wj/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/automated-development-diary-mrwak9wj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/automated-development-diary-mrwak9wj/download' --output '.skill-downloads/automated-development-diary-mrwak9wj/SKILL.md.part' && mv '.skill-downloads/automated-development-diary-mrwak9wj/SKILL.md.part' '.skill-downloads/automated-development-diary-mrwak9wj/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/automated-development-diary-mrwak9wj/SKILL.md' && test -s '.skill-downloads/automated-development-diary-mrwak9wj/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/diary' && cp -R '.skill-downloads/automated-development-diary-mrwak9wj' '.claude/skills/diary'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/automated-development-diary-mrwak9wj'

openskills read 'automated-development-diary-mrwak9wj'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/automated-development-diary-mrwak9wj/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills