Skip to content

About

Agent swarm automation for kriskrug.co WordPress site

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1,388 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inside kriskrug.co

Desktop preview of the Aurora homepage from the May 2026 redesign

Aurora homepage preview, May 2026. Click through for the current site.

I’m Kris Krüg, a photographer in Vancouver. This is my personal site, where photographs, writing, and talks from a few decades on the web share a WordPress install. Two good places to poke around:

Maintaining the site

The live install runs on Pagely. For work in this repo, start with the contributor instructions, the current site notes, and the two-track operating model. The November 11 maintenance report records an earlier verification and branch recovery pass.

Repository Purpose

This repository is used for:

  1. Site audits + state snapshots of the live kriskrug.co WordPress install (see docs/current-state/)
  2. Content pipeline — Notion → kriskrug.co publisher with safety guards (see scripts/notion-to-wp/)
  3. Custom WordPress code — schema markup, theme tweaks, helper plugins (see fixes/, inc/, and plugins/)
  4. Aurora theme work — canonical theme source is tracked on main, with lane-scoped feature branches for bounded changes; verify any historical evidence branch still exists before relying on it
  5. Issue tracking + project management for fixes, content, and theme work

Project Structure

content/drafts/                  # Notion-derived post drafts before publication
  └── YYYY-MM-DD-<slug>/         # post.md, post.html, images/, seo-meta.md, etc.

content/source-packs/            # Curated source packs for page/content overhauls
  └── keynotes-2026/             # Speaking/Work/About payloads and source notes for issue #76

backup/                          # Manifests and page-level rollback snapshots; archives are ignored
  └── YYYYMMDD-HHMMSS/           # Small REST/HTML snapshots used for targeted rollback

scripts/                         # Repository automation and validation
  ├── batch_create_issues.py     # Validated JSON/CSV issue creation with dry-run
  ├── validate_wordpress.sh      # PHP CodeSniffer + WordPress standards gate
  └── notion-to-wp/              # Notion → kriskrug.co publisher
      ├── kk_notion_to_wp.py     # Single-file CLI: fetch, convert, upload, publish
      ├── block_rules.py         # Notion block → Gutenberg block mapping
      └── README.md              # Setup + safety notes

fixes/                           # Production-ready code snippets / migrations
  ├── schema-snippets.php        # JSON-LD (Person + WebSite + Article + Breadcrumb + Service)
  ├── schema-snippets-deployed.php  # The version actually running on prod
  ├── llms.txt                   # Deployment-ready curated llms.txt for AI search
  ├── llms-txt-template.md       # Deployment and rollback guide for llms.txt
  ├── robots-txt-update.txt      # Two AI-crawler stance options
  └── issue-*.{css,php,md}       # Older queued fixes from earlier batches

plugins/
  └── kk-sidebar-promos/         # Packaged helper plugin for auto-expiring sidebar promos

docs/current-state/              # Dated truth snapshots plus recovery/redesign handoffs
  ├── README.md                  # Index of the snapshot
  ├── CURRENT-STATE-*.md         # Dated snapshots; Makefile names the drift baseline
  ├── ROADMAP-2026-11-12.md      # Current priorities and acceptance gates
  ├── WORK-PLAN-*.md             # Dated runbooks; read their status before acting
  ├── MASTER-PLAN-2026-07-30.md  # Historical hygiene plan
  ├── TWO-TRACK-MODEL.md         # The active operating model
  ├── ACCESS_CHANNELS.md         # MCP / REST / browser / SFTP — verified vs unverified channels
  ├── BACKUP_PLAN.md             # The four pieces of a real WP backup + paths to get them
  ├── ROLLBACK_PLAYBOOK.md       # If a change breaks prod, here's the order of operations
  ├── INCIDENT-2026-05-15-overwritten-post.md   # Postmortem for the connector overwrite
  ├── reports/                   # Timestamped morning-truth reports
  ├── archive/                   # Superseded May–June audits (SITE_INVENTORY, REPO_STATE, SEO_AUDIT, CONTENT_AUDIT, FIX_QUEUE, ROADMAP, FULL-AUDIT-ROADMAP-2026-05-18)
  └── raw/                       # Underlying API/HTML evidence behind the audit

issues-to-create/                # Historical issue payloads and a few contingent stubs (new issues go straight to GitHub)

inc/                             # Custom WordPress modules (e.g., digital-composting CPT)

.github/                         # PR validation plus parked historical agent-swarm definitions

Where to start

  • Reading the site state: docs/current-state/README.md
  • Planning next work: docs/current-state/README.md and the November 12 roadmap. Dated WORK-PLAN-*.md files are retained procedures or history; read their status banner first
  • Current startup truth: make status-readonly prints current repo/site signals without writing a file
  • Local generated report: make morning-truth writes to the gitignored .generated/current-state/ directory
  • Durable checkpoint: make morning-truth-checkpoint writes to docs/current-state/reports/ only for an explicit release, incident, durable decision, or handoff
  • Backlog: the open GitHub issue list. docs/current-state/archive/ROADMAP.md and archive/FIX_QUEUE.md are archived evidence, not guidance
  • Publishing a Notion post: scripts/notion-to-wp/README.md
  • Reviewing staged drafts: content/drafts/README.md
  • Filing an issue: issues-to-create/ is historical (write new issues directly on GitHub); existing ones at WalksWithASwagger/kriskrug-wp/issues

How work happens here

Two parallel lanes. Keep one lane per commit — don't mix unrelated theme/content changes in the same commit.

Track A — Content + SEO (on main, weekly cadence)

Notion → kriskrug.co publishing, post-publish enrichment, schema maintenance, alt-text batches, category sweeps, GSC + sitemap health.

Track B — Aurora theme (on main via lane-scoped branches)

FSE theme rebuild and polish. Touches theme/kk-aurora/, FSE templates, theme.json. Avoid bundling theme edits with content publishing changes in the same commit.

  • Current branch model: start Track B work from main on a lane-scoped codex/... branch. The old aurora/v2 and aurora/v3-reconcile remotes are gone (REPO-HYGIENE-AUDIT-2026-07-12.md). Do not fetch or treat them as pullable evidence unless a dated handoff names a commit that is still reachable another way.
  • Worktree safety: run git worktree list before editing. Treat every listed side worktree as owned until its branch, PR, and filesystem state are verified; do not rely on hard-coded paths from historical handoffs.
  • Archived migration plan (historical, retired Cloudways and aurora/v2 steps; do not follow): docs/current-state/archive/AURORA-MIGRATION-PLAN.md

Which track am I in?

If you're editing a post, page, schema, redirect, or category → Track A. If you're editing theme files or FSE templates → Track B. Use the two-track model for the decision rule and the current-state index plus a fresh make status-readonly run for current branch/layout truth.

Getting Started

What runs here

There is no local app server. The live WordPress site runs on Pagely and is not file-synced with this repo. "Running" this repo means the CLI and validation surfaces:

  • make help lists the supported commands and their options.
  • make doctor checks the runtime. make status-readonly checks the site and queue; use make morning-truth only when a local generated copy is useful
  • make test for the local test suite (Python, JavaScript syntax, plugin and theme smoke). CI runs these as separate jobs with their own triggers; see What CI runs
  • make ruff-changed BASE_REF=origin/main for the E4/E7/E9/F Ruff baseline on Python files changed by the current branch; the existing repo-wide backlog is not part of this ratchet
  • make validate for the WordPress PHP security ruleset (run composer install first)
  • make verify for the standard local gate (test + docs-truth-check + validate)
  • The Notion publisher CLI in scripts/notion-to-wp/

The full Python gate needs the packages in requirements-test.txt at the repo root:

python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements-test.txt
make python-test PYTHON=python

For agents

Start at AGENTS.md, then read docs/current-state/README.md.

For human contributors

  1. Browse open issues
  2. Read CONTRIBUTING.md
  3. Use issue templates when filing new issues
  4. Run composer install once, then make verify before submitting code changes

Historical: GitHub Actions agent swarm (retired)

An older issue-to-PR pipeline (orchestrator → analyzer → test-writer → implementer → QA → reviewer → PR creator) produced PRs #71 and #72 in May 2026 and is not used by current sessions. agent-pr-generator.yml was deleted 2026-08-23. On 2026-11-12 (#1220, KK's ruling) the swarm's agent definitions (.github/agents/), state records (.github/agent-state/), config (.github/agent-config/) and the two manually disabled workflows, Auto-Triage Issues and Marquee Weekly Scan, were deleted; git history keeps them. test-pr.yml and backlog-reconcile.yml remain the active repo workflows. See docs/current-state/AGENT-RUNTIME-REFERENCE.md. Historical swarm write-ups live in docs/architecture.md and docs/automation-guide.md.

Technology Stack

  • Platform: WordPress on Pagely with the Aurora kk-aurora theme; run make status-readonly for current production versions
  • Content pipeline: Python (Notion API → WordPress REST API)
  • Custom code: PHP snippets (Code Snippets plugin on prod), inc/digital-composting.php, and packaged helper plugins such as plugins/kk-sidebar-promos/
  • CLI Tools: GitHub CLI (gh), Claude Code / Cursor agents
  • Languages: PHP, JavaScript, Python, Bash
  • CI runtimes: PHP 8.2, Python 3.12 and Node 24. See the contributor guide for the browser-test requirements and the Aurora stylesheet for the theme’s minimum PHP version.

Issue Labels

  • bug - Something isn't working
  • enhancement - New feature or improvement
  • accessibility - WCAG compliance and a11y improvements
  • performance - Speed and optimization
  • seo - Search engine optimization
  • content - Content updates and UX
  • documentation - Documentation improvements
  • auto-implement - Historical automation-intent label; does not currently start the parked Agent PR Generator
  • needs-human-review - Requires manual review

Project Links

Contact

For questions about this repository or Kris Krug:

  • Create an issue in this repository
  • Visit kriskrug.co for general inquiries

License

Licensing is mixed on purpose:

  • The repo's own tooling, scripts, and docs are declared proprietary in composer.json. This is Kris's personal operations tooling, not a redistributable package.
  • The Aurora theme (theme/kk-aurora/) is GPL-2.0-or-later, as declared in its style.css. WordPress themes are GPL derivatives, so the theme carries the GPL even though the surrounding repo does not.
  • WordPress core and third-party plugins/themes keep their own licenses.

About

Agent swarm automation for kriskrug.co WordPress site

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages