agentleFS
nubenetesnubenetes/awesome-kubernetes/AGENTS.md

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.

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
  1. Distinctive:

    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 …

    line 32
  2. Very specific:

    Markdown & Mermaid Standards: Every fenced code block must declare a language.

    line 56
  3. Very specific:

    Python Error Handling: Never use bare except: pass.

    line 57
  4. Very specific:

    Regenerate After Edits: Run PYTHONPATH=. python3 src/v2_video_portal.py locally before committing both src/v2_video_portal.py and …

    line 67

≈ “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.

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

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 Mandates numbered list — src/mandate_ingestor.py parses GEMINI.md programmatically at runtime (Doc-as-Behavior Mandate Bridge). Keep AGENTS.md and GEMINI.md aligned when governance rules change.
  • CLAUDE.md: Lightweight Claude Code quick-reference synced with AGENTS.md.

1. Dual-Edition Architecture & Source of Truth

  • docs/ (V1 Exhaustive Archive — Source of Truth): 185+ human- and AI-curated category pages (>20,800 links). Preserve existing titles, manual descriptions, deep links, and 🌟 badges (Mandates 1, 8, 10).
  • v2-docs/ (V2 Agentic Elite Portal — Derived View): Rendered deterministically from docs/ + data/inventory.yaml via python3 -m src.v2_optimizer --render-only (04.1. V2 Publisher). External contributors never edit v2-docs/ directly.
  • data/inventory.sql & data/inventory.yaml: Coexisting SQLite dump + YAML mirror managed through src/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 from master and merged back into master via Pull Request (gh pr create --base master).
  • Protected branches: master and gh-pages MUST NEVER be force-pushed or deleted.
  • Releases: Cut annotated SemVer tags (git tag -a vX.Y.Z) and GitHub Releases directly from master after PR merge, updating CHANGELOG.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:

  1. Stage 1 — Untrusted PR Sandbox (.github/workflows/07.2.markdown_linter.yml):
    • Runs on pull_request (opened, synchronize, reopened, ready_for_review) with permissions: contents: read and 0 secrets.
    • Validates Markdown syntax via markdownlint-cli2 without executing Python code from untrusted forks.
  2. Stage 2 — Trusted Gatekeeper & Auto-Merger (.github/workflows/07.1.pr_guardian.yml + src/pr_guardian.py):
    • Triggered via workflow_run after 07.2. Markdown Linter completes, hourly schedule (with fast-exit check so idle sweeps consume 0 setup/AI tokens), or manually via workflow_dispatch with a PR number or all_open.
    • Security Invariant: Checks out ONLY ref: master and 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-section README.md validation, and Clean URL config checks pass.
      • Trusted Automation (dependabot[bot] & same-repo bot/* branches): Auto-approved and merged (€0.00 / 0 AI tokens) for minor/patch dependency updates and passing SafetyGuard curation runs; major SemVer jumps or code/workflow edits are held open for @inafev.
      • External Contributors (author != 'inafev') — 4-Gate Funnel:
        1. Gate 1 — Deterministic Structural Lock (0 tokens): Only modified files in existing docs/<category>.md pages (excluding docs/index.md and docs/about.md, max 5 files / 10 new links). Any touch to v2-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, apply needs-maintainer-review, and post a clear explanation for @inafev.
        2. 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 <= 4 years per Mandate 3, permissive FOSS license per Mandate 37).
        3. Gate 3 — Semantic Category & Section Fit (€0.00 Free Tier -> Flash-Lite): Compares the submitted entry against live-scraped <title>, <meta description>, and GitHub topics + 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), requiring confidence >= 0.85 (fail-closed on outage).
        4. Gate 4 — Auto-Approve, Merge & V2 Sync: Approves, merges to master (or queues external fork PRs verified during workflow_run without an AUTOMERGE_PAT under label automerge-verified, completed in 0 AI tokens by the hourly 07.1 scheduled sweep running with GITHUB_TOKEN), and signals 04.1. V2 Publisher (--render-only, 0 AI tokens) -> 06.deploy_final.yml via workflow_run.

4. Non-Negotiable Engineering Guardrails

  • Clean URLs Policy: Both mkdocs.yml and v2-mkdocs.yml MUST keep use_directory_urls: true. NEVER enable the MkDocs offline plugin (forces .html suffixes and breaks SEO/deep links).
  • Zero-Token V2 Publisher: 04.1.agentic_v2_publish.yml MUST NOT reference GEMINI_API_KEY or src.news_digest.
  • README 15-Section Integrity: Whenever modifying README.md, preserve all 15 numbered ## N. sections, synchronize the Table of Contents, avoid emojis and & (use and) in headings/TOC, use Euros (€) as primary currency in Section 7, and run python3 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/> (<= 30 chars per line).
  • Python Error Handling: Never use bare except: pass. Log exceptions via from src.logger import log_event (except Exception as e: log_event(f"[WARN] context: {str(e)[:100]}")) and use MADRID_TZ from src.config for 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). Holds publish_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 the youtube-production GitHub Environment (YOUTUBE_TOKEN_JSON / YOUTUBE_CLIENT_SECRET_JSON).
    • Portal Read Plane (This Public Repo): src/v2_video_portal.py and 03.3. V2 Video Hub Builder are 100% read-only against public @nubenetes metadata and MUST NEVER store or receive YouTube OAuth write tokens.
  • Single Source of Truth (src/v2_video_portal.py): v2-docs/videos/index.md and its sub-pages are regenerated automatically from src/v2_video_portal.py on every 04.1. V2 Publisher run (Execute Video Portal Generator). NEVER edit v2-docs/videos/index.md manually without updating src/v2_video_portal.py (PLAYLIST_DATES, known_playlist_ids, the domain table, and the Curated Architectural Tracks count).
  • Regenerate After Edits: Run PYTHONPATH=. python3 src/v2_video_portal.py locally before committing both src/v2_video_portal.py and v2-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 @nubenetes YouTube playlists, PLBMAtCXWYfZA (English Podcasts) and PLB-3xSV3dAoU (Spanish Podcasts) MUST contain strictly two-host NotebookLM Audio Overviews without slides/images — never explainer slide videos or Shorts. All @nubenetes uploads must set containsSyntheticMedia=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 @nubenetes videos and playlists generated directly from that repository (linking https://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.yml

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.