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
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- v2-docs/llms-full.txtllms.txt
- v2-docs/llms.txtllms.txt
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
- Very specific: line 15
Create short-lived branch from master: git checkout -b feat/description master
- Very specific: line 21
Create GitHub Release: gh release create vX.Y.Z --title "..." --notes "..."
- Very specific: line 81
All Python exceptions must use except Exception as e: log_event(f"[WARN] context: {str(e)[:100]}") — never bare except: pass
- Very specific: line 82
Use from src.logger import log_event for logging
- Very specific: line 83
Use from src.config import MADRID_TZ for timezone-aware timestamps
- Very specific: line 93
Keep @nubenetes Podcast playlists (PLBMAtCXWYfZA / PLB-3xSV3dAoU) strictly for two-host NotebookLM Audio Overviews (no slide-explainer …
≈ “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.
Files
CLAUDE.md — Nubenetes Project Instructions for Claude Code
Universal Cross-Agent Handbook: See
AGENTS.mdfor the complete cross-agent operational standard (including the 2-Stage Safe PR Gatekeeper07.2->07.1) andGEMINI.mdfor the 61 curation mandates ingested at runtime bysrc/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 frommaster.feat/*,fix/*,bot/*— Short-lived feature/automation branches created frommasterand merged back tomastervia Pull Request.gh-pages— Deployment artifact branch (if present). Never touch directly.
Release Process (mandatory for all releases)
- Create short-lived branch from
master:git checkout -b feat/description master - Implement changes, test locally, commit, and push branch
- Create PR:
gh pr create --base master --head feat/description - Merge PR to
master:gh pr merge N --merge --delete-branch - Tag directly on
master:git checkout master && git pull origin master && git tag -a vX.Y.Z -m "description" - Push tag:
git push origin vX.Y.Z - 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 codedata/— Inventory (YAML + SQL), config files, digest JSONscripts/— Utility scripts (backfill, etc.).github/workflows/— CI/CD (15 workflows)
Key Config Files
v2-mkdocs.yml— V2 MkDocs Material configurationmkdocs.yml— V1 MkDocs configurationdata/inventory.yaml/data/inventory.sql— Unified inventory (18K+ entries)data/curation_sources.yaml— RSS feeds and X/Twitter accountsdata/link_rules.yaml— Curation policiesGEMINI.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 rankingsrc/enrichment.py— CNCF Landscape + GitHub activity + license detectionsrc/dedup.py— URL/hash/title deduplication enginesrc/agentic_curator.py— Ingestion pipeline with AI evaluationsrc/autonomous_discovery.py— GitHub trending discovery (14 queries)src/gemini_utils.py— Gemini API wrapper with key rotationsrc/inventory_manager.py— Dual YAML+SQL inventory managementsrc/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 portalPipeline 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 bareexcept: pass - Use
from src.logger import log_eventfor logging - Use
from src.config import MADRID_TZfor timezone-aware timestamps - Inventory fields:
discovered_at(ISO),last_ai_eval(ISO),company,geo_regionmust be preserved during merges - The
update_inventory_entry()function preservesdiscovered_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 repogit@github.com:nubenetes/youtube-playlist-organizer.git(~/github/youtube-playlist-organizer; bootstrap./scripts/bootstrap_laptop.sh, external OAuth store~/.config/nubenetes/youtube/oryoutube-productionGitHub Environment). This public repo stays 100% read-only against public@nubenetesmetadata. src/v2_video_portal.pyis the single source of truth forv2-docs/videos/index.md(regenerated by04.1. V2 Publisher). Always updatePLAYLIST_DATES,known_playlist_ids, the domain table, and the track count insrc/v2_video_portal.py, then runPYTHONPATH=. python3 src/v2_video_portal.py.- Keep
@nubenetesPodcast playlists (PLBMAtCXWYfZA/PLB-3xSV3dAoU) strictly for two-host NotebookLM Audio Overviews (no slide-explainer videos or Shorts), setcontainsSyntheticMedia=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.
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
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.

