Skip to content

Self-evolving second brain with 35 AI skills, 10 agents, and people CRM. Closed-loop harness: a V-model verification lifecycle where the worker never grades its own homework. Plus paired anti-slop design skills for marketing and product UI. Works with Claude Code, Cursor, Kiro, Gemini CLI, Codex.

Simplify installation to 2 steps: clone and run

Claude4c23f86ddaab
diff --git a/README.md b/README.md
index 1807aa8..1ff3961 100644
--- a/README.md
+++ b/README.md
@@ -20,36 +20,39 @@ COG is a personal productivity and knowledge management system that:
### Prerequisites
-- [Obsidian](https://obsidian.md/) installed
-- [Claude Code](https://claude.ai/download) (or VSCode with Claude extension)
-- Git (optional but recommended)
+- [Claude Code](https://claude.ai/download) - Required
+- [Obsidian](https://obsidian.md/) - Recommended for viewing/editing your notes
+- Git - Already on your system if you can run the clone command below
-### Installation (3 Steps)
+### Installation (2 Steps)
-1. **Clone this repo into your Obsidian vault:**
+1. **Clone this repo to where you want your second brain:**
```bash
- cd /path/to/your/obsidian-vault
git clone https://github.com/huytieu/COG-second-brain.git
+ cd COG-second-brain
```
-2. **Copy COG structure to your vault:**
- ```bash
- cp -r COG-second-brain/.claude .
- ```
-
-3. **Open Claude Code in your vault and invoke onboarding:**
+2. **Open Claude Code and run onboarding:**
```bash
code .
# In Claude Code, ask: "Run onboarding" or "Set up my COG profile"
```
-That's it! The onboarding will personalize COG for your needs in 3-5 minutes.
+That's it! The onboarding will personalize COG for your needs in 2-3 minutes.
+
+**What just happened?**
+- The cloned repo IS your second brain - all files are ready to use
+- `.claude/skills/` contains 5 AI skills ready to invoke
+- Directory structure is already set up for your notes
+- Just run onboarding to personalize it
-> **Note:** COG is also available in community plugin marketplaces. Once official Claude Code plugin support is released, marketplace installation will be the recommended method.
+**Want Obsidian integration?**
+- Open Obsidian → "Open folder as vault" → Select the `COG-second-brain` folder
+- Now you can view/edit notes in Obsidian while using Claude Code for AI features
### Detailed Setup Guide
-See [SETUP.md](SETUP.md) for step-by-step instructions with screenshots.
+See [SETUP.md](SETUP.md) for optional configurations (Git sync, iCloud, etc.).
## What You Get
@@ -171,9 +174,9 @@ your-obsidian-vault/
## Example Workflows
-### First Time Setup
+### First Time Setup (After Cloning)
-Ask Claude: "Run onboarding" or "Set up my COG profile"
+In Claude Code, ask: "Run onboarding" or "Set up my COG profile"
The onboarding skill will ask:
- Your name
@@ -183,17 +186,17 @@ The onboarding skill will ask:
- Active projects you're working on (optional)
- Companies/people you want to track (optional)
-**Takes 2 minutes. Everything is stored as readable markdown files in your vault.**
+**Takes 2 minutes. Everything is stored as readable markdown files.**
-It creates:
-- `MY-PROFILE.md` - Your basic info and projects
-- `MY-INTERESTS.md` - Your topics and news sources
-- `COMPETITIVE-WATCHLIST.md` - Companies/people you're tracking (if any)
-- Project folders for each active project
+Onboarding creates:
+- `00-inbox/MY-PROFILE.md` - Your basic info and projects
+- `00-inbox/MY-INTERESTS.md` - Your topics and news sources
+- `03-professional/COMPETITIVE-WATCHLIST.md` - Companies/people you're tracking (if any)
+- `04-projects/[project-name]/` folders for each active project
After onboarding, COG will:
- Personalize daily briefs to your topics
-- Offer your projects in braindumps
+- Offer your projects when you braindump
- Auto-extract competitive intel you care about
### Daily Intelligence Briefing
@@ -233,10 +236,10 @@ Weekly or monthly:
## Why COG Works
### What Works
-- ✅ **Setup is trivial**: Drop files in, done. No complex configuration.
+- ✅ **Setup is trivial**: Clone repo, run onboarding. Done in 2 minutes.
- ✅ **Maintenance-free**: Self-heals and auto-organizes
- ✅ **Actually portable**: Works on iPhone, iPad, Mac via iCloud
-- ✅ **Custom agents >> generic AI**: Specialized beats ChatGPT for repeated tasks
+- ✅ **Custom skills >> generic AI**: Specialized beats ChatGPT for repeated tasks
- ✅ **Git for thoughts**: Version control shows thinking evolution
### What Doesn't Work
@@ -252,27 +255,43 @@ Weekly or monthly:
## Advanced Configuration
-### Customizing Commands
+### Customizing Skills
-Edit `.claude/commands/*.md` to customize workflows:
+Edit `.claude/skills/[skill-name]/SKILL.md` to customize workflows:
```markdown
-# Custom Command Example
-/my-workflow
+---
+name: my-custom-skill
+description: What this skill does
+---
+
+# My Custom Skill
-Your custom prompt here...
+## When to Invoke
+[When Claude should use this skill]
+
+## Process Flow
+[How it works]
```
-### Adding New Agents
+### Adding New Skills
-Create `.claude/subagents/my-agent.md`:
+Create `.claude/skills/my-skill/SKILL.md`:
```markdown
-# My Custom Agent
+---
+name: my-skill
+description: Brief description for Claude to know when to invoke this
+---
+
+# My Custom Skill
## Purpose
-[What this agent does]
+[What this skill does]
-## Process
-[How it works]
+## When to Invoke
+[User intent patterns that should trigger this]
+
+## Process Flow
+[Detailed instructions]
```
### Template Customization
diff --git a/SETUP.md b/SETUP.md
index 62da96f..9abf02c 100644
--- a/SETUP.md
+++ b/SETUP.md
@@ -2,358 +2,373 @@
Complete step-by-step instructions for setting up your COG (Claude + Obsidian + Git) second brain system.
-## Prerequisites
+## Quick Start (Easiest Way)
-Before you begin, ensure you have:
+### What You Need
-1. **Obsidian** installed ([Download here](https://obsidian.md/))
-2. **Claude Code** or VSCode with Claude extension ([Download here](https://claude.ai/download))
-3. **Git** (optional but recommended) - Check if installed: `git --version`
-4. **iCloud Drive** (optional, for multi-device sync on Apple devices)
+1. **Claude Code** ([Download here](https://claude.ai/download)) - Required
+2. **Obsidian** ([Download here](https://obsidian.md/)) - Recommended (optional)
+3. **Git** - Already on your system if you can run clone commands
-## Installation Methods
+### Installation (2 Steps)
-### Method 1: Quick Setup (Recommended)
-
-1. **Clone COG into your Obsidian vault:**
- ```bash
- cd /path/to/your/obsidian-vault
- git clone https://github.com/huytieu/COG-second-brain.git
- cd COG-second-brain
- ```
-
-2. **Copy COG structure to your vault root:**
- ```bash
- # Copy Claude configuration
- cp -r .claude ../
-
- # Copy templates
- cp -r templates ../06-templates
+**Step 1: Clone the repo to where you want your second brain**
+```bash
+git clone https://github.com/huytieu/COG-second-brain.git
+cd COG-second-brain
+```
- # Copy example vault structure
- cp -r example-vault/* ../
- ```
+**Step 2: Open Claude Code and run onboarding**
+```bash
+code .
+# In Claude Code, ask: "Run onboarding"
+```
-3. **Open your vault in Obsidian:**
- - Launch Obsidian
- - Open your vault (or create new vault first)
- - You should now see the COG directory structure
+That's it! You now have a working second brain.
-4. **Configure Claude Code:**
- ```bash
- # In your vault root directory
- code .
- ```
+**What just happened?**
+- The cloned `COG-second-brain` folder IS your second brain
+- All directory structure is already set up
+- 5 AI skills are ready to use in `.claude/skills/`
+- You just need to personalize it via onboarding
- - In Claude Code, test the setup: Ask "I need to braindump"
- - If Claude recognizes the skill, COG is working!
+**Optional: Use with Obsidian**
-### Method 2: Manual Setup
+If you want to view/edit your notes in Obsidian:
+1. Open Obsidian
+2. Click "Open folder as vault"
+3. Select the `COG-second-brain` folder
+4. Done! Now you have both Claude Code AI features AND Obsidian's visual interface
-If you prefer to understand each step:
+## First Use
-#### Step 1: Create Directory Structure
+### Day 1: Personalize COG
-In your Obsidian vault, create these folders:
+**In Claude Code, ask:** "Run onboarding"
-```bash
-mkdir -p 00-inbox
-mkdir -p 01-daily/briefs
-mkdir -p 01-daily/checkins
-mkdir -p 02-personal/braindumps
-mkdir -p 02-personal/development
-mkdir -p 02-personal/wellness
-mkdir -p 03-professional/braindumps
-mkdir -p 03-professional/leadership
-mkdir -p 03-professional/strategy
-mkdir -p 03-professional/skills
-mkdir -p 04-projects
-mkdir -p 05-knowledge/consolidated
-mkdir -p 05-knowledge/patterns
-mkdir -p 05-knowledge/timeline
-mkdir -p 06-templates
-```
+Onboarding will ask you:
+- Your name
+- What you do (role/job)
+- Topics you're interested in (3-5 areas)
+- Where you get your news
+- Active projects (optional)
+- Companies/people to track (optional)
-#### Step 2: Set Up Claude Skills
+**Takes 2 minutes. Everything is stored as markdown files you can edit.**
-1. Create `.claude` directory in your vault root:
- ```bash
- mkdir -p .claude/skills
- ```
+Onboarding creates:
+- `00-inbox/MY-PROFILE.md` - Your info and projects
+- `00-inbox/MY-INTERESTS.md` - Topics for daily briefs
+- `03-professional/COMPETITIVE-WATCHLIST.md` - Tracking list (if any)
+- Project folders in `04-projects/`
-2. Download skill files from the COG repository:
- - Navigate to https://github.com/huytieu/COG-second-brain/.claude/skills/
- - Download each skill folder (onboarding, braindump, daily-brief, weekly-checkin, knowledge-consolidation) to your `.claude/skills/` folder
- - Each skill folder should contain a `SKILL.md` file
+### Test Your Setup
-#### Step 3: Set Up Templates
+**Try your first braindump:**
+Ask Claude: "I need to braindump"
-1. Download template files from repository
-2. Place them in `06-templates/` folder in your vault
+Share any thoughts on your mind. The system will:
+- Capture your raw thoughts
+- Analyze themes and patterns
+- Extract action items
+- Save to appropriate domain folder
-#### Step 4: Test Your Setup
+**Get your first daily brief:**
+Ask Claude: "Give me my daily brief"
-1. Open Claude Code in your vault directory:
- ```bash
- cd /path/to/your/vault
- code .
- ```
+COG will generate personalized news based on your interests.
-2. Try invoking a skill:
- Ask Claude: "I need to braindump"
+### Week 1: Build the Habit
-3. If Claude recognizes the skill and responds, you're ready to go!
+Use these skills daily:
+- **Morning:** "Give me my daily brief" - Get personalized intelligence
+- **Throughout day:** "I need to braindump" - Capture thoughts
+- **Evening:** Open Obsidian to review your braindumps
-## Configuration
+### Week 2: Start Reflecting
-### Customizing Your Interests
+After a week of braindumps:
+- **Weekly:** "Weekly review" or "Weekly checkin" - Pattern analysis
+- **Monthly:** "Consolidate my knowledge" - Build frameworks
-Run the onboarding skill to set up your profile, or directly edit `00-inbox/MY-INTERESTS.md` to customize your interest areas for news curation.
+## Understanding the Directory Structure
-### Adding Projects
+When you clone COG, you get this structure ready to use:
-When starting a new project:
+```
+COG-second-brain/ # This is your second brain folder
+├── .claude/
+│ └── skills/ # 5 AI skills ready to invoke
+│ ├── onboarding/
+│ ├── braindump/
+│ ├── daily-brief/
+│ ├── weekly-checkin/
+│ └── knowledge-consolidation/
+├── 00-inbox/ # Temporary & profile files (created by onboarding)
+├── 01-daily/ # Daily briefs and check-ins
+│ ├── briefs/
+│ └── checkins/
+├── 02-personal/ # Personal domain (private)
+│ └── braindumps/
+├── 03-professional/ # Professional domain
+│ └── braindumps/
+├── 04-projects/ # Project-specific (created by onboarding)
+├── 05-knowledge/ # Consolidated insights
+│ ├── consolidated/
+│ ├── patterns/
+│ └── timeline/
+└── 06-templates/ # Markdown templates
+```
-1. Create project folder:
- ```bash
- mkdir -p 04-projects/your-project-name/{braindumps,competitive,content,planning}
- ```
+## Optional: Advanced Configuration
-2. Projects will be automatically detected by COG skills
+### Git Version Control
-### Setting Up Git (Optional but Recommended)
+Your second brain is already a Git repo (you cloned it). To track your changes:
-1. Initialize git in your vault:
- ```bash
- cd /path/to/your/vault
- git init
- ```
+**Track your personal changes:**
+```bash
+git add .
+git commit -m "Updated my braindumps and profiles"
+```
-2. Create `.gitignore`:
- ```bash
- echo ".obsidian/workspace*" >> .gitignore
- echo ".obsidian/cache" >> .gitignore
- echo ".trash/" >> .gitignore
- echo "*.tmp" >> .gitignore
- ```
+**Create your own GitHub backup:**
+```bash
+# Remove the original remote
+git remote remove origin
-3. Make your first commit:
- ```bash
- git add .
- git commit -m "Initial COG setup"
- ```
+# Add your own GitHub repo
+git remote add origin https://github.com/yourusername/my-second-brain.git
+git push -u origin main
+```
-4. (Optional) Connect to GitHub for backup:
- ```bash
- git remote add origin https://github.com/yourusername/your-vault.git
- git branch -M main
- git push -u origin main
- ```
+**Keep `.gitignore` updated:**
+The repo includes a `.gitignore` that excludes Obsidian cache files. If you notice unwanted files being tracked, add them:
+```bash
+echo "unwanted-folder/" >> .gitignore
+git add .gitignore
+git commit -m "Update gitignore"
+```
-### Setting Up iCloud Sync (Apple Devices)
+### iCloud Sync (Apple Devices)
-1. Move your Obsidian vault to iCloud Drive:
- ```bash
- mv /path/to/your/vault ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/
- ```
+Want your second brain on iPhone, iPad, and Mac?
-2. Open Obsidian and point it to the new location
+**Step 1: Move to iCloud**
+```bash
+# Move the COG folder to iCloud Obsidian folder
+mv COG-second-brain ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/
+```
-3. Install Obsidian Mobile on iPhone/iPad
+**Step 2: Update Obsidian**
+- Open Obsidian on Mac
+- "Open folder as vault" → Navigate to iCloud location
+- Select the COG folder
-4. Open the same vault - it will sync automatically via iCloud
+**Step 3: Install Obsidian Mobile**
+- Install Obsidian on iPhone/iPad
+- Open the same vault
+- iCloud will sync automatically
-## First Use Workflow
+**Step 4: Claude Code on Mac**
+```bash
+cd ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/COG-second-brain
+code .
+```
-### Day 1: Set Up Your Profile
+Now your braindumps sync across all Apple devices!
-1. **Run onboarding:**
- Ask Claude: "Run onboarding" or "Set up my COG profile"
+### Customizing Your Interests
- This will guide you through personalization and create:
- - Your profile with goals and projects
- - Your interests for news curation
- - Your competitive watchlist (optional)
+**Option 1: Edit directly**
+Open `00-inbox/MY-INTERESTS.md` and edit the topics and sources.
-2. **Create your first braindump:**
- Ask Claude: "I need to braindump"
+**Option 2: Re-run onboarding**
+In Claude Code, ask: "Run onboarding" and select "Update interests"
- Share what's on your mind to test the system
+### Adding Projects
-3. **Test daily brief:**
- Ask Claude: "Give me my daily brief"
+**Option 1: Via onboarding**
+In Claude Code, ask: "Run onboarding" → "Add new projects"
- This will generate your first intelligence briefing based on your interests
+**Option 2: Manual**
+Create project folder manually:
+```bash
+mkdir -p 04-projects/my-new-project/{braindumps,competitive,content,planning,resources}
+```
-### Week 1: Build the Habit
+Then create `04-projects/my-new-project/PROJECT-OVERVIEW.md`:
+```markdown
+---
+type: project-overview
+project: My New Project
+created: 2025-01-15
+status: active
+---
-Use these skills daily:
-- Morning: Ask for "daily brief" for intelligence
-- Throughout day: "braindump" for capturing thoughts
-- Evening: Quick review of your braindumps
+# My New Project
-### Week 2: Start Consolidating
+## What is this project?
+[Brief description]
-After a week of braindumps:
-- Run `/weekly-checkin` for pattern analysis
-- Try `/consolidate-knowledge` to build frameworks
+## Current Status
+[What phase you're in]
-## Troubleshooting
+## Next Steps
+- [ ] Action 1
+- [ ] Action 2
+```
-### Command Not Recognized
+Update `00-inbox/MY-PROFILE.md` to include the new project in your active projects list.
-**Problem**: Typing `/braindump` shows "command not found"
+## Customizing Skills
-**Solutions**:
-1. Ensure `.claude/commands/` folder exists in vault root
-2. Check that command files are `.md` format
-3. Restart Claude Code
-4. Verify you're in the correct vault directory
+Want to customize how COG works?
-### Files Saving to Wrong Location
+**Edit existing skills:**
+```bash
+# Example: Customize the braindump skill
+code .claude/skills/braindump/SKILL.md
+```
-**Problem**: COG creates files in unexpected directories
+Each `SKILL.md` file contains:
+- `name` and `description` (tells Claude when to invoke)
+- `When to Invoke` section (trigger patterns)
+- `Process Flow` (detailed instructions)
-**Solutions**:
-1. Ensure all required directories exist (see directory structure above)
-2. Check that you're running commands from vault root
-3. Verify directory structure matches COG expectations
+**Create new skills:**
+```bash
+mkdir -p .claude/skills/my-skill
+touch .claude/skills/my-skill/SKILL.md
+```
-### iCloud Sync Not Working
+Add content:
+```markdown
+---
+name: my-skill
+description: What this skill does (Claude uses this to decide when to invoke)
+---
-**Problem**: Changes don't sync across devices
+# My Custom Skill
-**Solutions**:
-1. Check iCloud Drive is enabled in System Settings
-2. Ensure Obsidian mobile is pointing to same vault
-3. Wait a few minutes - iCloud can be slow
-4. Check available iCloud storage space
+## When to Invoke
+- User says "do the thing"
+- User mentions "custom workflow"
-### Git Conflicts
+## Process Flow
-**Problem**: Git shows merge conflicts
+### 1. Do Something
+[Instructions for Claude]
-**Solutions**:
-1. COG files are markdown - conflicts are easy to resolve
-2. Open conflicted file in text editor
-3. Look for `<<<<<<` and `>>>>>>` markers
-4. Keep the version you want, remove conflict markers
-5. Commit the resolved file
+### 2. Create Output
+[More instructions]
+```
-## Advanced Configuration
+## Troubleshooting
-### Customizing Commands
+### Skills Not Recognized
-1. Edit any `.claude/commands/*.md` file
-2. Modify the prompts to match your workflow
-3. Save and test the changes
+**Problem:** Claude doesn't recognize skill invocations
-Example: Customize `/braindump` to always ask specific questions:
-```markdown
-# Brain Dump Command
+**Solutions:**
+1. Check `.claude/skills/` folder exists in your COG folder
+2. Verify each skill folder has a `SKILL.md` file
+3. Make sure you're running Claude Code from the COG folder root
+4. Try restarting Claude Code
-## Purpose
-[Your custom description]
+### Files Saving to Wrong Location
-## Command: `/braindump`
+**Problem:** Braindumps or briefs save to unexpected directories
-## Custom Questions
-Always ask the user:
-1. What domain is this? (personal/professional/project)
-2. What energy level? (high/medium/low)
-3. Any urgent actions?
+**Solutions:**
+1. Make sure you're in the COG folder when running Claude Code
+2. Check that all required directories exist (they should if you cloned the repo)
+3. The directory structure should match the layout shown above
-[Rest of command]
-```
+### Obsidian Not Showing Files
-### Creating New Commands
+**Problem:** Files created by COG don't appear in Obsidian
-1. Create new file in `.claude/commands/`:
- ```bash
- touch .claude/commands/my-custom-command.md
- ```
+**Solutions:**
+1. In Obsidian, make sure you opened the COG folder as a vault
+2. Try refreshing Obsidian (Cmd/Ctrl+R)
+3. Check Obsidian settings → Files & Links → "Excluded files" doesn't block COG files
-2. Add command definition:
- ```markdown
- # My Custom Command
+### iCloud Sync Issues
- ## Purpose
- What this command does
+**Problem:** Changes don't sync across devices
- ## Command: `/my-custom-command`
+**Solutions:**
+1. Check iCloud Drive is enabled in System Settings
+2. Ensure Obsidian mobile points to the same iCloud vault
+3. Wait a few minutes - iCloud can be slow
+4. Check available iCloud storage space
+5. Try turning iCloud sync off and on again
- ## Process
- 1. Step 1
- 2. Step 2
+### Git Conflicts
- [Your custom prompt]
- ```
+**Problem:** Git shows merge conflicts
-3. Test it in Claude Code:
- ```
- /my-custom-command
- ```
+**Solutions:**
+COG files are just markdown - conflicts are easy to resolve:
+1. Open the conflicted file in a text editor
+2. Look for `<<<<<<<`, `=======`, and `>>>>>>>` markers
+3. Keep the version you want, delete conflict markers
+4. Save the file
+5. Run: `git add [filename] && git commit -m "Resolved conflict"`
-### Adding Specialized Agents
+## Daily Workflow Examples
-Create custom subagents for specific tasks:
+### Morning Routine (5 minutes)
+```
+In Claude Code:
+"Give me my daily brief"
-1. Create file in `.claude/subagents/`:
- ```bash
- touch .claude/subagents/my-agent.md
- ```
+Review the intelligence, note any actions needed
+```
-2. Define agent purpose and process
-3. Reference agent in command files
+### Throughout the Day
+```
+Whenever you have thoughts:
+"I need to braindump"
-## Daily Workflow Examples
+Just dump your thoughts - no structure needed
+The system will analyze and organize automatically
+```
-### Morning Routine (5 minutes)
-```bash
-/daily-brief
-# Review the intelligence
-# Note any actions needed
+### End of Week (30 minutes)
```
+Friday afternoon:
+"Weekly review" or "Let's do my weekly checkin"
-### Throughout Day
-```bash
-/braindump
-# Capture any thoughts, ideas, insights
-# No structure needed - just dump it
+Reflect on patterns, plan next week
```
-### Weekly Review (30 minutes)
-```bash
-/weekly-checkin
-# Reflect on the week
-# Identify patterns
-# Plan next week
+### Monthly (1 hour)
```
+First of the month:
+"Consolidate my knowledge" or "Build frameworks from my notes"
-### Monthly Consolidation (1 hour)
-```bash
-/consolidate-knowledge
-# Build frameworks from insights
-# Update knowledge base
-# Archive processed content
+Analyze accumulated braindumps, build frameworks
```
## Getting Help
-- **Issues**: https://github.com/huytieu/COG-second-brain/issues
-- **Discussions**: https://github.com/huytieu/COG-second-brain/discussions
-- **Documentation**: https://github.com/huytieu/COG-second-brain/wiki
+- **Issues:** https://github.com/huytieu/COG-second-brain/issues
+- **Discussions:** https://github.com/huytieu/COG-second-brain/discussions
+- **Updates:** Watch the repo for improvements
## Next Steps
-Once you're comfortable with the basics:
+Once you're comfortable:
-1. Explore advanced commands (see README.md)
-2. Customize templates for your workflow
-3. Add new projects and tracking areas
-4. Experiment with knowledge consolidation
-5. Share your improvements with the community!
+1. ✅ Use COG daily for 2 weeks to build the habit
+2. ✅ Customize skills to match your workflow
+3. ✅ Set up Git backup to your own GitHub
+4. ✅ Try iCloud sync for multi-device access
+5. ✅ Explore knowledge consolidation features
+6. ✅ Share your improvements with the community
---
-**Welcome to COG!** Your second brain is now ready to learn and evolve with you.
+**Welcome to COG!** Your second brain is ready to learn and evolve with you.