John

Senior Cloud Engineer & Technical Lead

Claude Code Instructions

Context Priority: This file contains critical project-specific instructions that override Claude Code defaults. Follow these instructions precisely for optimal performance in this repository.

Project Context

Repository Type: Personal portfolio and technical blog Framework: Jekyll 4.4.1 with GitHub Pages deployment Theme: Minima (customized) Domain Focus: Cloud engineering, AWS, DevOps, infrastructure automation, AI/ML tooling Live Site: https://johnoct.github.io

Content Statistics (as of January 2026)

Critical Path Patterns

When asked to create content, prioritize this workflow:

  1. Blog posts → Always check writing style guidelines before creating
  2. GitHub stars posts → Use existing automation patterns and formatting
  3. Code changes → Follow Jekyll conventions and test locally first

Core Capabilities & Constraints

Critical Constraints

Quick Reference Commands

# Development server
bundle exec jekyll serve --host 0.0.0.0 --port 4000

# Alternative port (if 4000 is in use)
bundle exec jekyll serve --port 4001

# GitHub stars automation (daily)
./scripts/daily-stars.sh

# GitHub stars automation (weekly roundup)
./scripts/quick-stars.sh

# Install dependencies
bundle install

Repository Structure

johnoct.github.io/
├── _config.yml              # Jekyll configuration (theme, plugins, permalinks)
├── _layouts/                # Page templates
│   ├── default.html         # Base layout with navigation, mermaid, copy button
│   └── post.html            # Blog post layout
├── _posts/                  # Blog posts (Markdown)
│   └── YYYY-MM-DD-title.md
├── scripts/                 # Automation scripts
│   ├── daily-stars.sh       # Daily GitHub stars collection
│   └── quick-stars.sh       # Weekly GitHub stars roundup
├── .claude/                 # Claude AI agent configuration
│   └── agents/
│       └── blog-post-writer.md  # Blog post writing agent
├── .github/workflows/       # GitHub Actions
│   ├── claude.yml           # Claude Code integration (@claude mentions)
│   └── daily-stars.yml      # Automated daily stars posting
├── docs/                    # Comprehensive documentation
│   ├── README.md            # Documentation index
│   ├── getting-started.md
│   ├── architecture.md
│   ├── content-management.md
│   ├── github-stars-automation.md
│   ├── deployment.md
│   └── style-guide.md
├── chat-modes/              # AI assistant chat modes
│   ├── mental-model-builder.md
│   └── mental-model-builder.txt
├── styles.css               # Main stylesheet
├── index.html               # Homepage
├── blog.md                  # Blog listing page (/blog/)
├── github-stars.md          # GitHub stars listing page (/github-stars/)
├── Gemfile                  # Ruby dependencies
├── Gemfile.lock             # Locked dependency versions
├── CLAUDE.md                # This file - AI assistant instructions
└── README.md                # Project documentation

Content Creation Workflows

Technical Blog Posts

File Pattern: _posts/YYYY-MM-DD-descriptive-title.md

Required Front Matter:

---
title: "Specific, Technical Title"
date: YYYY-MM-DD
layout: post
categories: blog
tags: [aws, cloud, devops, specific-tech]
---

Writing Style Requirements:

Example Topics Already Covered:

GitHub Stars Posts

Automation: Use ./scripts/daily-stars.sh for consistent formatting Manual Weekly Roundup: Use ./scripts/quick-stars.sh

Required Front Matter:

---
title: "Daily GitHub Stars: [Full Date]"
date: YYYY-MM-DD
layout: post
categories: github-stars
tags: [github, open-source, gists]
---

Format for Each Repository:

## 1. [repo-name](url)

**Author:** username | **Language:** Go | **Stars:** 1,234

_Repository description here_

**Topics:** topic1, topic2, topic3

---

Technical Implementation Patterns

Markdown Rendering

Site Features

Jekyll Configuration

# Key _config.yml settings
permalink: /blog/:year/:month/:day/:title/
theme: minima
plugins:
  - jekyll-feed
  - jekyll-sitemap

Categories System

GitHub Workflows

Claude Code Integration (.github/workflows/claude.yml)

Daily Stars Automation (.github/workflows/daily-stars.yml)

Agent Configuration

Blog Post Writer Agent (.claude/agents/blog-post-writer.md)

Use for creating new blog posts that match the established writing style:

Deployment Flow

  1. Local Testing: Use Jekyll development server
  2. Git Commit: Clean, professional messages without AI attribution
  3. Push to Master: Automatic GitHub Pages build and deployment
  4. Verification: Site updates at https://johnoct.github.io within 1-2 minutes

Decision Trees

When creating content:

When modifying code:

Error Prevention

Common Pitfalls to Avoid

Validation Checklist

Before any content creation or modification:

Performance Optimization

Context Efficiency

Quality Assurance

Dependencies

Ruby Gems (Gemfile)

gem "jekyll", "~> 4.4.1"
gem "minima", "~> 2.5"
gem "jekyll-feed", "~> 0.12"
gem "jekyll-sitemap"

External Resources (CDN)

CLI Tools for Scripts