Production-ready, cross-platform configuration framework, 16 operational system rules (Prime Directives), 36 modular skills (
agentskills.iostandard), repository blueprints (AGENTS.md), and Model Context Protocol (MCP) configurations for OpenAI Codex, Antigravity / Gemini CLI, Claude Code, and Modern Cursor IDE (.mdc) across Windows, macOS, and Linux.
If you are using an AI coding assistant (Claude Code, OpenAI Codex, Cursor Composer, Gemini CLI, Cline, Roo Code, OpenCode, Aider), simply paste this prompt:
Clone https://github.com/Gzyms69/agent-setup-bundle.git and install the full AI engineering operating system for me following AGENTS.md in the repo.
Sklonuj https://github.com/Gzyms69/agent-setup-bundle.git i zainstaluj całe środowisko inżynieryjne według instrukcji w AGENTS.md.
Your AI assistant will read AGENTS.md, auto-detect your operating system (Windows, macOS, or Linux), run the appropriate native installer, validate suite integrity, and immediately adopt the Senior AI Pair Programmer persona.
Traditional approaches to AI pair programming ("Just write this feature") fail consistently on non-trivial codebases due to four core traps:
- Simulation & Mocking Traps: Writing fake stubs or untested boilerplate without running verification suites.
- Context Window Flooding: Inefficiently dumping thousands of prompt lines instead of on-demand skill discovery.
- Monolithic Spaghetti Code: Creating giant "god files" (>150 lines) that mix state, presentation, networking, and styles.
- Hardware & Version Hallucinations: Speculating about hardware capabilities, compiler flags, or package versions without live verification.
agent-setup-bundle solves this by establishing a deterministic, multi-platform engineering operating system across all major coding assistants.
flowchart TD
subgraph Core_Directives["16 Żelaznych Reguł Operacyjnych (~/.agents/rules)"]
PRAR["Protokół PRAR & Zero-Speculation"]
Gate["4-Phase Pre-Flight Skill Gate"]
Context["Context Engineering & 100L/5KB Rule"]
PlanInt["Living Plan Integrity & State Machine"]
SubEco["Subagent Economy & Zero Context Bleed"]
Handoff["Lossless Session Handoff"]
end
subgraph Skills_Matrix["Baza 36 Modułowych Umiejętności (~/.agents/skills)"]
DomA["Domain A: Cartography, Planning & Orchestration (7)"]
DomB["Domain B: Frontend & UI/UX Craftsmanship (5)"]
DomC["Domain C: Backend, Systems & Low-Level MCP (8)"]
DomD["Domain D: AI, Data Science & Intelligence (7)"]
DomE["Domain E: QA, Diagnostics & Career Conversion (9)"]
end
subgraph Deployer_Mesh["Instalatory & Live Symlink Mesh"]
Inst["install.sh / install.ps1 / install.py"]
Val["Automated QA Validator (validate_suite.py)"]
end
subgraph Target_Environments["4 Środowiska Docelowe"]
Codex["OpenAI Codex (~/.codex/)"]
Gemini["Antigravity / Gemini CLI (~/.gemini/)"]
Claude["Claude Code (~/.claude/)"]
Cursor["Cursor IDE (~/.cursor/)"]
end
Core_Directives --> Skills_Matrix
Skills_Matrix --> Deployer_Mesh
Deployer_Mesh --> Target_Environments
Every agent configured with this suite strictly adheres to the following non-negotiable protocols:
- PRAR Workflow (Perceive, Reason, Act, Refine):
- Agents never write code blindly. Every task begins with environmental analysis (Perceive), architectural design (Reason), surgical modifications (Act), and verification (Refine).
- Mandatory 4-Phase Pre-Flight Skill Gate:
- Before executing file discovery (
grep,find,cat) or modifying code, agents must evaluate and load domain skills in a strict 4-phase sequence.
- Before executing file discovery (
- The Wait-For-GO Mandate:
- On tasks requiring architectural decisions, touching >3 files, or introducing new dependencies, agents must present a detailed implementation plan and wait for an explicit user approval ("GO") before mutating files.
- Zero Speculation Protocol:
- Total ban on guessing hardware specs, software versions, API endpoints, error causes, or compiler flags. Technical facts must be verified using live terminal commands or documentation lookup.
- Root Cause Only & Anti-Workaround:
- Ban on temporary workarounds, path symlinks, or defensive
try/catchwrappers that mask failures. Bugs must be resolved at the lowest architectural layer (Kernel > Driver > OS Config > Runtime > Framework > Application Code).
- Ban on temporary workarounds, path symlinks, or defensive
- Critical TypeScript Safety Gate:
- After modifying any
.ts/.tsxfile, agents must runnpx tsc --noEmit. Deleting business logic to bypass type errors is strictly forbidden.
- After modifying any
- Single Source of Truth (SSOT) & Anti-Duplication:
- Duplicate helpers, parallel endpoints, or competing schemas are forbidden. Existing implementations must be reused or refactored in-place.
- Anti-Destruction Protocol:
- Strict ban on
git clean, blind mass search-and-replace, or destructive workspace operations without explicit user confirmation.
- Strict ban on
- Context Engineering & Attention Preservation:
- Strict 100-line / 5 KB offloading mandate to
./scratch/for bulky logs/dumps, Attention U-Curve defense (anchoring critical invariants at start and active goals at end), and immediate quarantine of invalid assumptions via[INVALIDATED: <reason>].
- Strict 100-line / 5 KB offloading mandate to
- Interactive Planning Mode & Living Document Integrity:
- Stateful planning via 3-state machine (Draft -> Refinement -> Execution), mandatory
Iteration Deltaheader, permanent lock on discovered codebase facts, and active SSOT cleansing with 1-line[PRUNED]tombstones to prevent zombie code.
- Stateful planning via 3-state machine (Draft -> Refinement -> Execution), mandatory
- Subagent Economy & Zero Context Bleed:
- Cost-efficient model routing (
flash_litefor file reads,flashfor research,profor deep reasoning). Subagents communicate strictly via structured schemas (Status,Findings,Artifacts,Blockers) without dumping raw tool logs.
- Cost-efficient model routing (
- Lossless Session Handoff & Lean SSOT:
- Zero conversation dumping into persistent architecture files. Seamless multi-session transitions via
NEXT_SESSION_PLAN.mdand self-contained, executable handoff bootstrap prompts.
- Zero conversation dumping into persistent architecture files. Seamless multi-session transitions via
To prevent context window bloat and eliminate architectural guessing, skills are activated through a gated hierarchy:
[Level 0: Metadata & Cartography] ──→ [Level 1: Planning & Spec] ──→ [Level 2: Domain Specialists]
│
[Level 3: QA & Verification Gate] ◀───────┘
graph TD
A[User Request] --> B{Phase 0: Workspace Cartography}
B -->|Unmapped Repo| B1[skill-codebase-onboarding / spec-miner / AGENTS.md]
B --> C{Phase 1: Planning & Architecture}
C -->|>15 min / >3 files / /plan| C1[spec-driven-development / monorepo / plugin]
C --> D{Phase 2: Domain Specialists}
D -->|Frontend| D1[skill-frontend-architect / design-engineering / creative-design]
D -->|Backend/Systems| D2[skill-backend-architect / c-cpp-systems / wasm-emscripten]
D -->|AI / Data| D3[skill-ai-ml / skill-data-science / skill-graph-analytics]
D -->|Specialized| D4[skill-stealth-scraping / skill-system-diagnostics / research]
D --> E{Phase 3: QA & Verification}
E -->|On Code Execution| E1[skill-qa-engineer: TDD & TSC / skill-code-review: 5-Axis]
Global rules in ~/.agents/ define agent behavior, but individual repositories require project-level context.
This bundle provides the standardized templates/AGENTS.md blueprint based on the Agentic AI Foundation (AAIF) specification.
- Copy the blueprint to your project root:
- Linux / macOS:
cp ~/.agents/templates/AGENTS.md ~/Dev/MyProject/AGENTS.md - Windows:
Copy-Item $env:USERPROFILE\.agents\templates\AGENTS.md C:\Dev\MyProject\AGENTS.md
- Linux / macOS:
- Fill in the 4 core sections:
- Project Identity & Stack Architecture: Language, runtime, framework versions, database ORM, styling system.
- Mandatory Commands (Executable Truth): Exact commands with flags for
install,dev,build,test,tsc, andlint(agents will NEVER guess CLI flags). - Directory Topography & Module Boundaries: Explicit directory layout and boundaries (e.g.
src/domain/,src/adapters/,src/components/). - Invariants & Guardrails (Never-Do Rules): Strict project invariants (e.g. "Never import DB models in client components", "Files must remain under 150 lines").
When OpenAI Codex, Claude Code, Gemini CLI, or Cursor opens your project, it reads AGENTS.md as the primary Source of Truth.
| Rule | File | Purpose & Key Mandate |
|---|---|---|
| Skill Orchestration | skill-orchestration.md |
Mandates the 4-Phase Pre-Flight Skill Gate before file discovery or code modifications. |
| Planning & Document Integrity | planning-and-document-integrity.md |
Multi-turn /plan lifecycle, Iteration Delta, Discovered Facts Lock, and Active SSOT (anti-zombie context). |
| Context Engineering | context-engineering.md |
Attention budget preservation, scratchpad offloading (>100 lines/5KB), and context poisoning circuit breaker. |
| Zero Speculation | zero-speculation.md |
Total ban on guessing versions, APIs, or system specs without live diagnostic verification. |
| Modular Architecture | modular-architecture.md |
Anti-Monolith constraint (max ~150-200 lines), Clean/Hexagonal boundaries, typed contracts. |
| Systemic Excellence | systemic-excellence.md |
Anti-workaround protocol, root-cause fixes, DRY, and Single Source of Truth (SSOT). |
| System Identity | system-identity.md |
Hardware & OS baseline template with auto-discovery commands to prevent hallucinations. |
| Command Verification | command-verification.md |
Mandatory secondary read-only check after any state-modifying command. |
| Subagent Economy | subagent-economy.md |
Dynamic LLM model tiering, Zero Context Bleed mandate, workspace isolation, and barrier sync. |
| Problem Isolation | problem-isolation.md |
Strict scope containment; zero unrequested refactors or global OS alterations. |
| Environment Integrity | env-integrity.md |
Sanity checks on workspace, lockfiles, and dependencies before modifying files. |
| Error Triage | error-triage.md |
Deterministic diagnostic priority order: Documentation -> Web Search -> Code Inspection. |
| Full Log Reporting | full-log-reporting.md |
Ban on truncated, summarized, or paraphrased error reporting. |
| MemPalace Discovery | mempalace-discovery.md |
Absolute priority of MemPalace memory retrieval before broad filesystem searches. |
| MCP Master Playbook | mcp-master-playbook.md |
11-server MCP execution matrix, permission boundaries, and synergy workflows. |
| Session Handoff | session-handoff.md |
Lossless context transfer, Lean SSOT enforcement, and standardized bootstrap prompts. |
All skills adhere to the agentskills.io standard with YAML frontmatter, progressive disclosure, and anti-rationalization verification gates:
skill-codebase-onboarding: Systematic 5-phase repository cartography, entrypoint discovery, and command extraction.spec-miner: Reverse-engineering engine for extracting specifications and dataflows from legacy/undocumented code.spec-driven-development: Gated SDLC workflow (Specify -> Plan -> Tasks -> Implement) with verification matrices.skill-context-engineering: Production context engineering, Attention U-Curve defense, Anchored Iterative Summarization, and Artifact Trail tracking.skill-master-orchestrator: Master agent orchestration, multi-agent swarm coordination, Task DAG decomposition, and model economy routing.skill-monorepo-architect: Polyglot monorepo management (uvPython workspaces,pnpmworkspaces, Turborepo).skill-plugin-architecture: Microkernel architecture, dynamic plugin discovery, lifecycle hooks, and error boundaries.
skill-frontend-architect: Next.js 15+ App Router, React Server Components (RSC), Client Island boundaries, WCAG 2.2 AA.skill-design-engineering: Creative frontend engineering, Motion.dev spring animations, CSS Subgrid, Container Queries, 21st.dev UI components.skill-creative-design: Art direction, Swiss/Bauhaus aesthetics, Fontjoy typography math, and OKLCH color physics.skill-web-performance: Core Web Vitals optimization (LCP, INP, CLS), Lighthouse 100/100 audits, and runtime tracing.seo-optimization-and-audit: Search engine ranking optimization, structured metadata, semantic HTML, and head audits.
skill-backend-architect: Contract-first API design, database schemas, query optimization (EXPLAIN ANALYZE), indexing, and Expand/Contract migrations.skill-mcp-builder: Architecture, implementation, and debugging of Model Context Protocol (MCP) servers (FastMCP, TypeScript SDK, stdio/SSE).skill-web-architecture: Full-stack architectural standards, module boundaries, and end-to-end API contracts.c-cpp-systems: Memory safety, struct packing (#pragma pack), manual RAII, bitwise math, and sanitizers (ASan/UBSan).skill-low-level-programming: Low-level systems programming, Assembly, byte manipulation, memory layout, and endianness handling.wasm-emscripten: WebAssembly compilation via Emscripten,ccall/cwrapFFI bindings, virtual FS, and HEAP views.retro-emulation-engineering: Retro hardware simulation (CPU/RSP/RDP), frame timing, dynamic audio resampling, and ROM validation.skill-emulator-wasm: WebAssembly retro emulation engineering, Emscripten bridge lifecycle, WebGL rendering, and cartridge saves.
skill-ai-ml: LLM model integrations, embeddings, vector databases (Redis, ChromaDB), and agentic workflows.skill-data-science: Data ingestion pipelines, exploratory data analysis (EDA), dataframes (Polars/Pandas), and validation.skill-data-analysis: Statistical analysis, hypothesis testing, anomaly detection, and scientific claim verification.skill-graph-analytics: Graph databases (Neo4j), Cypher queries, topology analysis, and Graph Data Science (GDS).skill-stealth-scraping: Anti-bot evasion (Cloudflare/DataDome), TLS fingerprint spoofing, and browser automation.skill-osint-engineering: Open Source Intelligence gathering, Pydantic entity graphs, pivoting engines, and OPSEC.skill-research: Academic and technical literature research, arXiv paper analysis, and multi-source fact checking.
skill-qa-engineer: Test-Driven Development (TDD Red-Green), TypeScript compilation safety gates (npx tsc --noEmit).skill-code-review: Systematic 5-axis code review (Correctness, Readability, Architecture, Security OWASP Top 10, Performance).doubt-driven-development: Adversarial verification gate to challenge false confidence and prevent silent failures.skill-system-diagnostics: Hardware, OS, driver, kernel panic diagnostics, and log analysis.skill-devops-cloud: Docker containers, Docker MCP inspection, CI/CD pipelines, and cloud deployments.skill-resume-tailor: ATS-optimized resume, CV, and cover letter tailoring following the Google XYZ formula.marketing-copywriting: Conversion-focused technical copywriting and value proposition design.avoid-ai-writing: Detection and elimination of AI writing clichés, robotic cadence, and filler words.mempalace/mempalace-recall: Long-term memory palace management and historical knowledge retrieval.
The suite delivers full behavioral and operational parity across Linux, macOS, and Windows through three dedicated, idempotent installers:
install.sh(Linux / macOS): Native Bash script enforcingset -euo pipefail. Provisions shared rules and skills, links platform-specific manifests, and establishes symlinks.install.ps1(Windows PowerShell): Windows-native script with a 3-tier fallback engine:- SymbolicLink: Attempts native symlink via
New-Item -ItemType SymbolicLink(used when Developer Mode or Admin rights are enabled). - Directory Junction: Automatically falls back to
New-Item -ItemType Junctionif symlink creation is restricted by OS policy (works without elevation on NTFS). - Recursive Directory Copy: Falls back to
Copy-Item -Recurseif filesystem junctions are unsupported.
- SymbolicLink: Attempts native symlink via
install.py(Universal Python 3): Cross-platform standard usingpathlibandshutil, providing graceful symlink-to-copy fallback across any environment.
- Live Symlink Mesh (Zero-Redundancy SSOT): Platforms like OpenAI Codex (
~/.codex/skills/custom) and Claude Code (~/.claude/skills) are dynamically symlinked to~/.agents/skills. Updating or adding a skill in the shared directory updates all agent runtimes in real time. - Non-Destructive Idempotency: Existing user configuration files (
~/.gemini/settings.json,~/.codex/config.toml,~/.claude/mcp.json,~/.cursor/mcp.json) are never overwritten. Only missing templates and system manifests are deployed, preserving personal API keys and local tokens.
To ensure zero drift, correct token bounds, and strict compliance with the agentskills.io standard, the bundle includes a built-in CI/CD test validator:
python3 scripts/validate_suite.py- YAML Frontmatter Specification Check:
- Validates that every skill folder contains a
SKILL.mdstarting with---. - Ensures
name:matches the directory name exactly (case-sensitive). - Enforces a hard character limit on
description:(len <= 1024chars) to protect the model prompt budget.
- Validates that every skill folder contains a
- Rule Integrity & Non-Triviality:
- Audits all 16 markdown rules in
rules/to ensure minimum non-empty content lengths and structural integrity.
- Audits all 16 markdown rules in
- Platform Manifest Parity:
- Ensures all 4 platform definitions (
CODEX.md,GEMINI.md,CLAUDE.md,.cursorrules) are synchronized with the 4-Phase Pre-Flight Skill Gate and core directives.
- Ensures all 4 platform definitions (
- Configuration & Template Parsing:
- Validates syntax of all JSON files in
config/(mcp_config.json,settings.json,cursor_mcp.json) and ensurescodex_config.tomlandtemplates/AGENTS.mdare present.
- Validates syntax of all JSON files in
Clone and run the installer for your operating system:
git clone https://github.com/Gzyms69/agent-setup-bundle.git
cd agent-setup-bundleSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
.\install.ps1 -AllPlatform options: .\install.ps1 -Codex, .\install.ps1 -Gemini, .\install.ps1 -Claude, .\install.ps1 -Cursor
chmod +x install.sh
./install.sh --allPlatform options: ./install.sh --codex, ./install.sh --gemini, ./install.sh --claude, ./install.sh --cursor
python install.py --allPlatform options: python install.py --codex, python install.py --gemini, python install.py --claude, python install.py --cursor
| Platform | Manifest / Rule Location | Config Location | Skill Discovery Path |
|---|---|---|---|
| OpenAI Codex | ~/.codex/AGENTS.md & instructions.md |
~/.codex/config.toml |
~/.codex/skills/custom -> ~/.agents/skills |
| Antigravity / Gemini CLI | ~/.gemini/GEMINI.md |
~/.gemini/settings.json |
~/.agents/skills/ |
| Claude Code | ~/.claude/CLAUDE.md + .claude/agents/ |
~/.claude/mcp.json |
~/.claude/skills -> ~/.agents/skills |
| Cursor IDE | ~/.cursor/rules/*.mdc |
~/.cursor/mcp.json |
On-demand referencing |
agent_setup_bundle/
├── AGENTS.md # Master repository blueprint & AI installer instructions
├── README.md # Master technical documentation & cross-platform guide
├── PROMPT_FOR_AI.md # Universal bootstrap prompts
├── llms.txt # Semantic summary for web-enabled LLM agents
├── install.sh # Native Bash installer (Linux / macOS)
├── install.ps1 # Native PowerShell installer (Windows)
├── install.py # Universal Python 3 installer (All OSes)
├── core/ # Platform manifests (CODEX.md, GEMINI.md, CLAUDE.md, cursor)
├── rules/ # 16 Universal Rules (~/.agents/rules/)
├── skills/ # 36 Modular Skills (~/.agents/skills/)
├── templates/
│ └── AGENTS.md # Project-level starter template
├── config/ # Configuration & MCP templates (codex, gemini, cursor)
├── policies/ # MCP tool planning policies
└── scripts/
└── validate_suite.py # Quality assurance test suite
This project is licensed under the MIT License.