awesome-kubernetes
AGENTS.md677 starsChanged 3 days agoApache-2.0View on GitHub
This file is the canonical, vendor-neutral operational guide for all AI coding agents working in nubenetes/awesome-kubernetes (Antigravity, Gemini CLI, Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Windsurf). Every Pull Request targeting master is governed by a 2-Stage Fork-Safe Pipeline designed for zero "Pwn Request" exposure and €0.00 AI token operation:
- Reads credentials
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- v2-docs/llms-full.txtllms.txt
- v2-docs/llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Every Pull Request targeting master is governed by a 2-Stage Fork-Safe Pipeline designed for zero "Pwn Request" exposure and €0.00 AI token …
- Very specific: line 56
Markdown & Mermaid Standards: Every fenced code block must declare a language.
- Very specific: line 57
Python Error Handling: Never use bare except: pass.
- Very specific: line 67
Regenerate After Edits: Run PYTHONPATH=. python3 src/v2_video_portal.py locally before committing both src/v2_video_portal.py and …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md — Universal Agent Instructions for Nubenetes
This file is the canonical, vendor-neutral operational guide for all AI coding agents working in nubenetes/awesome-kubernetes (Antigravity, Gemini CLI, Claude Code, GitHub Copilot, OpenAI Codex, Cursor, Windsurf).
How Instruction Files Coexist in This Repository
AGENTS.md(this file): Concise operational rules, Trunk-Based Git workflow, Safe PR Gatekeeper governance, coding conventions, and verification commands for all agents.GEMINI.md: Exhaustive 61-mandate curation constitution and architectural history. Do not remove or reformat its## 🧠 Core Mandatesnumbered list —src/mandate_ingestor.pyparsesGEMINI.mdprogrammatically at runtime (Doc-as-Behavior Mandate Bridge). KeepAGENTS.mdandGEMINI.mdaligned when governance rules change.CLAUDE.md: Lightweight Claude Code quick-reference synced withAGENTS.md.
1. Dual-Edition Architecture & Source of Truth
docs/(V1 Exhaustive Archive — Source of Truth): 185+ human- and AI-curated category pages (>20,800links). Preserve existing titles, manual descriptions, deep links, and🌟badges (Mandates 1, 8, 10).v2-docs/(V2 Agentic Elite Portal — Derived View): Rendered deterministically fromdocs/+data/inventory.yamlviapython3 -m src.v2_optimizer --render-only(04.1. V2 Publisher). External contributors never editv2-docs/directly.data/inventory.sql&data/inventory.yaml: Coexisting SQLite dump + YAML mirror managed throughsrc/inventory_manager.py. Never discard database updates during curation runs.
2. Git Workflow: Trunk-Based Development
master: Single canonical trunk for code,docs/,v2-docs/, inventory databases, scheduled crons, and GitHub Pages deployments.feat/*,fix/*,bot/*: Short-lived branches created frommasterand merged back intomastervia Pull Request (gh pr create --base master).- Protected branches:
masterandgh-pagesMUST NEVER be force-pushed or deleted. - Releases: Cut annotated SemVer tags (
git tag -a vX.Y.Z) and GitHub Releases directly frommasterafter PR merge, updatingCHANGELOG.md.
3. Safe PR Gatekeeper & Auto-Merge Governance (07.2 -> 07.1)
Every Pull Request targeting master is governed by a 2-Stage Fork-Safe Pipeline designed for zero "Pwn Request" exposure and €0.00 AI token operation:
- Stage 1 — Untrusted PR Sandbox (
.github/workflows/07.2.markdown_linter.yml):- Runs on
pull_request(opened,synchronize,reopened,ready_for_review) withpermissions: contents: readand 0 secrets. - Validates Markdown syntax via
markdownlint-cli2without executing Python code from untrusted forks.
- Runs on
- Stage 2 — Trusted Gatekeeper & Auto-Merger (
.github/workflows/07.1.pr_guardian.yml+src/pr_guardian.py):- Triggered via
workflow_runafter07.2. Markdown Lintercompletes, hourlyschedule(with fast-exit check so idle sweeps consume0setup/AI tokens), or manually viaworkflow_dispatchwith a PR number orall_open. - Security Invariant: Checks out ONLY
ref: masterand reads PR file lists, patches, and blobs as untrusted data via the GitHub API. - Author Authority Tiers:
- Maintainer (
inafev): Full structural authority across V1, V2,src/,data/,.github/,README.md, and MkDocs configs. Auto-approved and merged (€0.00/ 0 AI tokens) once Stage 1 lint, 15-sectionREADME.mdvalidation, and Clean URL config checks pass. - Trusted Automation (
dependabot[bot]& same-repobot/*branches): Auto-approved and merged (€0.00/ 0 AI tokens) for minor/patch dependency updates and passingSafetyGuardcuration runs; major SemVer jumps or code/workflow edits are held open for@inafev. - External Contributors (
author != 'inafev') — 4-Gate Funnel:- Gate 1 — Deterministic Structural Lock (0 tokens): Only
modifiedfiles in existingdocs/<category>.mdpages (excludingdocs/index.mdanddocs/about.md, max 5 files / 10 new links). Any touch tov2-docs/**,mkdocs.yml,v2-mkdocs.yml,src/**,data/**,.github/**,README.md, file additions/deletions/renames,#–######headings, TOC entries, raw HTML, or removal/modification of existing curated lines causes the bot to leave the PR open, applyneeds-maintainer-review, and post a clear explanation for@inafev. - Gate 2 — Live URL & MVQ Verification (0 tokens): Multi-profile HTTP probe requiring
200 OK, blocking soft-404s, parked domains, URL shorteners, tracking params (utm_*), and generic-homepage redirects (Mandate 35), plus GitHub REST API checks (archived == false, last push<= 4years per Mandate 3, permissive FOSS license per Mandate 37). - Gate 3 — Semantic Category & Section Fit (€0.00 Free Tier -> Flash-Lite): Compares the submitted entry against live-scraped
<title>,<meta description>, and GitHubtopics+ 3 sibling links in the exact target## / ###section. Cascades from GitHub Models (permissions: models: read, €0.00) ->GEMINI_FREE_PR_KEY(€0.00) -> Tier-1 Gemini Flash-Lite (~350 tokens), requiringconfidence >= 0.85(fail-closed on outage). - Gate 4 — Auto-Approve, Merge & V2 Sync: Approves, merges to
master(or queues external fork PRs verified duringworkflow_runwithout anAUTOMERGE_PATunder labelautomerge-verified, completed in0AI tokens by the hourly07.1scheduled sweep running withGITHUB_TOKEN), and signals04.1. V2 Publisher(--render-only, 0 AI tokens) ->06.deploy_final.ymlviaworkflow_run.
- Gate 1 — Deterministic Structural Lock (0 tokens): Only
- Maintainer (
- Triggered via
4. Non-Negotiable Engineering Guardrails
- Clean URLs Policy: Both
mkdocs.ymlandv2-mkdocs.ymlMUST keepuse_directory_urls: true. NEVER enable the MkDocsofflineplugin (forces.htmlsuffixes and breaks SEO/deep links). - Zero-Token V2 Publisher:
04.1.agentic_v2_publish.ymlMUST NOT referenceGEMINI_API_KEYorsrc.news_digest. - README 15-Section Integrity: Whenever modifying
README.md, preserve all 15 numbered## N.sections, synchronize the Table of Contents, avoid emojis and&(useand) in headings/TOC, use Euros (€) as primary currency in Section 7, and runpython3 src/safety_readme.py. - Markdown & Mermaid Standards: Every fenced code block must declare a language; link brackets must have no inner padding (
[Title](URL)); Mermaid diagrams must quote node labels (A["Label"]) and wrap lines with<br/>(<= 30chars per line). - Python Error Handling: Never use bare
except: pass. Log exceptions viafrom src.logger import log_event(except Exception as e: log_event(f"[WARN] context: {str(e)[:100]}")) and useMADRID_TZfromsrc.configfor timestamps.
5. YouTube Video Hub & Playlist Sync (nubenetes.com/videos/)
- Two-Plane Architecture & New-Laptop Discovery:
- Channel Write Plane (Private Repo):
git@github.com:nubenetes/youtube-playlist-organizer.git(local clone~/github/youtube-playlist-organizer). Holdspublish_series.py,config.yaml, and tool-agnostic rules (AGENTS.md,CLAUDE.md,GEMINI.md,.github/copilot-instructions.md,.cursor/rules/nubenetes-youtube.mdc). Bootstrap on any new laptop via./scripts/bootstrap_laptop.sh; OAuth credentials live strictly outside Git at~/.config/nubenetes/youtube/(0700/0600) locally or in theyoutube-productionGitHub Environment (YOUTUBE_TOKEN_JSON/YOUTUBE_CLIENT_SECRET_JSON). - Portal Read Plane (This Public Repo):
src/v2_video_portal.pyand03.3. V2 Video Hub Builderare 100% read-only against public@nubenetesmetadata and MUST NEVER store or receive YouTube OAuth write tokens.
- Channel Write Plane (Private Repo):
- Single Source of Truth (
src/v2_video_portal.py):v2-docs/videos/index.mdand its sub-pages are regenerated automatically fromsrc/v2_video_portal.pyon every04.1. V2 Publisherrun (Execute Video Portal Generator). NEVER editv2-docs/videos/index.mdmanually without updatingsrc/v2_video_portal.py(PLAYLIST_DATES,known_playlist_ids, the domain table, and theCurated Architectural Trackscount). - Regenerate After Edits: Run
PYTHONPATH=. python3 src/v2_video_portal.pylocally before committing bothsrc/v2_video_portal.pyandv2-docs/videos/index.md. - Announcement Banner (
docs/overrides/main.html): Keep the{% block announce %}banner concise and single-line linking flagship sections including/videos/(no specific newly added playlist names). - Strict NotebookLM Podcast Isolation: In
@nubenetesYouTube playlists,PLBMAtCXWYfZA(English Podcasts) andPLB-3xSV3dAoU(Spanish Podcasts) MUST contain strictly two-host NotebookLM Audio Overviews without slides/images — never explainer slide videos or Shorts. All@nubenetesuploads must setcontainsSyntheticMedia=True("Uso de IA") and cite HTTP-200 verified official documentation per topic. - Repository Video References: Individual Nubenetes GitHub repositories (e.g.,
finops-agentic-ai-architectures) must list only@nubenetesvideos and playlists generated directly from that repository (linkinghttps://nubenetes.com/videos/for broader channel tracks).
6. Verification & Local Commands
# Run pipeline, model-selector, and PR Gatekeeper unit tests
python3 -m unittest discover -s tests -v
# Validate README 15-section and TOC integrity
python3 src/safety_readme.py
# Refresh MandateIngestor prompt cache after editing GEMINI.md
python3 -m src.mandate_ingestor
# Deterministic V2 portal render (0 AI tokens)
python3 -m src.v2_optimizer --render-only
# Preview portals locally
mkdocs serve -f v2-mkdocs.yml
mkdocs serve -f mkdocs.ymlDoes 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.

