agentleFS
nubenetesnubenetes/awesome-kubernetes/CLAUDE.md

awesome-kubernetes

CLAUDE.md677 starsChanged 3 days agoApache-2.0View on GitHub

Universal Cross-Agent Handbook: See AGENTS.md for the complete cross-agent operational standard (including the 2-Stage Safe PR Gatekeeper 07.2 -> 07.1) and GEMINI.md for the 61 curation mandates ingested at runtime by src/mandate_ingestor.py. This repository uses Trunk-Based Development. All agents MUST follow this branching model:

  • Installs packages
  • Commits and pushes

The file

We split this CLAUDE.md into the rules it gives an agent

6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create short-lived branch from master: git checkout -b feat/description master

    line 15
  2. Very specific:

    Create GitHub Release: gh release create vX.Y.Z --title "..." --notes "..."

    line 21
  3. Very specific:

    All Python exceptions must use except Exception as e: log_event(f"[WARN] context: {str(e)[:100]}") — never bare except: pass

    line 81
  4. Very specific:

    Use from src.logger import log_event for logging

    line 82
  5. Very specific:

    Use from src.config import MADRID_TZ for timezone-aware timestamps

    line 83
  6. Very specific:

    Keep @nubenetes Podcast playlists (PLBMAtCXWYfZA / PLB-3xSV3dAoU) strictly for two-host NotebookLM Audio Overviews (no slide-explainer …

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md — Nubenetes Project Instructions for Claude Code

Universal Cross-Agent Handbook: See AGENTS.md for the complete cross-agent operational standard (including the 2-Stage Safe PR Gatekeeper 07.2 -> 07.1) and GEMINI.md for the 61 curation mandates ingested at runtime by src/mandate_ingestor.py.

Git Workflow: Trunk-Based Development

This repository uses Trunk-Based Development. All agents MUST follow this branching model:

Branches

  • master — Canonical trunk (single source of truth for code, docs, inventory, CI schedules, and GitHub Pages deployment). Every release gets a tag and a GitHub Release directly from master.
  • feat/*, fix/*, bot/* — Short-lived feature/automation branches created from master and merged back to master via Pull Request.
  • gh-pages — Deployment artifact branch (if present). Never touch directly.

Release Process (mandatory for all releases)

  1. Create short-lived branch from master: git checkout -b feat/description master
  2. Implement changes, test locally, commit, and push branch
  3. Create PR: gh pr create --base master --head feat/description
  4. Merge PR to master: gh pr merge N --merge --delete-branch
  5. Tag directly on master: git checkout master && git pull origin master && git tag -a vX.Y.Z -m "description"
  6. Push tag: git push origin vX.Y.Z
  7. Create GitHub Release: gh release create vX.Y.Z --title "..." --notes "..."

Versioning

  • Current: v2.11.1
  • Format: v{major}.{minor}.{patch}
  • Major: breaking changes or major platform overhauls
  • Minor: new features or architectural shifts (like Trunk migration, digest engine, Gen-4 AI selector)
  • Patch: bug fixes, config tweaks

Protected Branches

master and gh-pages are NEVER deleted. Branch cleanup runs bi-monthly (08.1) for merged and stale short-lived branches.

Repository Structure

Key Directories

  • docs/ — V1 source (exhaustive archive, source of truth)
  • v2-docs/ — V2 source (AI-curated elite portal, derived from V1)
  • src/ — Python pipeline source code
  • data/ — Inventory (YAML + SQL), config files, digest JSON
  • scripts/ — Utility scripts (backfill, etc.)
  • .github/workflows/ — CI/CD (15 workflows)

Key Config Files

  • v2-mkdocs.yml — V2 MkDocs Material configuration
  • mkdocs.yml — V1 MkDocs configuration
  • data/inventory.yaml / data/inventory.sql — Unified inventory (18K+ entries)
  • data/curation_sources.yaml — RSS feeds and X/Twitter accounts
  • data/link_rules.yaml — Curation policies
  • GEMINI.md — AI mandates and learning roadmap (read by Gemini agents)

Pipeline Modules

  • src/v2_optimizer.py — Main rendering engine (V2VisionEngine class)
  • src/news_digest.py — 26-category temporal digest with Gemini ranking
  • src/enrichment.py — CNCF Landscape + GitHub activity + license detection
  • src/dedup.py — URL/hash/title deduplication engine
  • src/agentic_curator.py — Ingestion pipeline with AI evaluation
  • src/autonomous_discovery.py — GitHub trending discovery (14 queries)
  • src/gemini_utils.py — Gemini API wrapper with key rotation
  • src/inventory_manager.py — Dual YAML+SQL inventory management
  • src/pr_guardian.py — 4-Gate Safe PR Gatekeeper & Auto-Merger (07.1.pr_guardian.yml)

Build and Run

Local testing (no API keys needed)

pip install -r requirements.txt
mkdocs serve -f v2-mkdocs.yml          # Preview V2 portal
mkdocs serve -f mkdocs.yml             # Preview V1 portal

Pipeline commands

python3 -m scripts.backfill_discovered_at   # Backfill discovered_at field
python3 -m src.news_digest                   # Generate digest (needs Gemini API key)
python3 -m src.enrichment                    # CNCF + GitHub enrichment (needs GH_TOKEN)
python3 -m src.dedup                         # Dedup scan (dry-run by default)
python3 -m src.v2_optimizer --render-only    # Render V2 portal (no AI calls)

Coding Conventions

  • All Python exceptions must use except Exception as e: log_event(f"[WARN] context: {str(e)[:100]}") — never bare except: pass
  • Use from src.logger import log_event for logging
  • Use from src.config import MADRID_TZ for timezone-aware timestamps
  • Inventory fields: discovered_at (ISO), last_ai_eval (ISO), company, geo_region must be preserved during merges
  • The update_inventory_entry() function preserves discovered_at — never overwrite it with new data

URL Policy: Clean URLs, No .html Suffix

Both V1 and V2 MUST use use_directory_urls: true in their mkdocs.yml. This produces clean URLs like /kubernetes/ instead of /kubernetes.html. NEVER enable the offline plugin — it forces .html suffixes on all URLs, breaking SEO and existing deep-links. This is a hard rule.

YouTube Video Hub & Playlist Synchronization (src/v2_video_portal.py)

  • Two-Plane Split & Discovery: YouTube write automation (publishing, containsSyntheticMedia=True, playlists) lives in the private companion repo git@github.com:nubenetes/youtube-playlist-organizer.git (~/github/youtube-playlist-organizer; bootstrap ./scripts/bootstrap_laptop.sh, external OAuth store ~/.config/nubenetes/youtube/ or youtube-production GitHub Environment). This public repo stays 100% read-only against public @nubenetes metadata.
  • src/v2_video_portal.py is the single source of truth for v2-docs/videos/index.md (regenerated by 04.1. V2 Publisher). Always update PLAYLIST_DATES, known_playlist_ids, the domain table, and the track count in src/v2_video_portal.py, then run PYTHONPATH=. python3 src/v2_video_portal.py.
  • Keep @nubenetes Podcast playlists (PLBMAtCXWYfZA / PLB-3xSV3dAoU) strictly for two-host NotebookLM Audio Overviews (no slide-explainer videos or Shorts), set containsSyntheticMedia=True ("Uso de IA") on all uploads, and include HTTP-200 verified official per-topic references in descriptions.

RSS/Twitter Sources

RSS feeds are limited to those that actually work (many block bots). Don't add new RSS feeds without testing. Current working feeds are defined in data/curation_sources.yaml.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.